DC123456789
Deity
The latest svn is presently unplayable. If I choose any civ, it just says "You have been defeated". Also, I can't open the civilopedia or hall or fame.
Delete the mod and re-install it. That usually fixes big bugs like that.
if(self.getGoal(iSiam, 1) == -1):
cityList = PyPlayer(iSiam).getCityList()
for city in cityList:
if (city.getCulture() >= 50000):
self.setGoal(iSiam, 1, 1)
break
That does look in fact way more elegant than my solution When i come back i'll try that out.CA, I know you've probably already stopped with actual development work but since you've mentioned your continuous territory algorithm and its shortcomings I thought I'd share my implementation. It's basically a poor man's A* algorithm, don't know if that's actually overkill, but it works, and it's a lot more elegant. Unfortunately Python lacks a data structure with an O(log(n)) sorted insertion method so it's not perfectly efficient, but whatever.
I also required cities or railroads for my Trans-Siberian Railway goal, but obviously you could easily remove that part to get a continuous territory check.Code:def isConnectedByRailroad(self, iPlayer, iStartX, iStartY, iTargetX, iTargetY): startPlot = gc.getMap().plot(iStartX, iStartY) if not (startPlot.isCity() and startPlot.getOwner() == iPlayer): return False lNodes = [(-utils.calculateDistance(iStartX, iStartY, iTargetX, iTargetY), iStartX, iStartY)] lVisitedNodes = [] while len(lNodes) > 0: h, x, y = lNodes[0] lNodes.remove((h, x, y)) lVisitedNodes.append((h, x, y)) for i in range(x-1, x+2): for j in range(y-1, y+2): plot = gc.getMap().plot(i, j) if plot.getOwner() == iPlayer and (plot.isCity() or plot.getRouteType() == gc.getInfoTypeForString("ROUTE_RAILROAD")): if (i, j) == (iTargetX, iTargetY): return True tTuple = (-utils.calculateDistance(i, j, iTargetX, iTargetY), i, j) if not tTuple in lVisitedNodes: lNodes.append(tTuple) lNodes.sort() return False
Yeah, that wasn't my brightest idea to include that. I try to use the python files from the former revision when it worked.The latest svn is presently unplayable. If I choose any civ, it just says "You have been defeated". Also, I can't open the civilopedia or hall or fame.
I made a pretty primitive unit in the SVN, but it's far from perfect and i might even redo it completly.Wait, if the main designer ios one now.. does that mean I don't get the new firelancer unit we've been waiting for..? noooo...
It's just that with all the music it becomes way too big.I did and the mod works fine. I tried the Zhou and switched to Han when I failed the UHVs (failed the Han´s too, but the capture the Zhou-capital event was quite fun, even if it plummeted my income way into negative, because I suddenly got 3 cities that cost me tons of money in upkeep. This was partially solved when the Tang took the smallest of these, after which they agreed to a peace.)
Would be nice though if all files were put in a single install file.
Sorry, but i can't solve the CTDs atm.My game crashed again when I was playing as Tibet.
Actually most civs that I try to play crash early or late,but what causes that?
And when I play on the later start 500 AD,the turn timer remains at 0 for an eternity.
That is weird Never had that one before.Can´t confirm that, but I got a CTD playing as the Mauryans after concluding an Open Borders agreement with Tibet. It would seem there´s something rotten in the state of Tibet...
All right. I thought it worked, but thanks nevertheless.Siam's UHV2 doesn't trigger, so I rewrote it this way, and it seems to work:
Code:if(self.getGoal(iSiam, 1) == -1): cityList = PyPlayer(iSiam).getCityList() for city in cityList: if (city.getCulture() >= 50000): self.setGoal(iSiam, 1, 1) break
They only spawn in 500AD scenario.Do the Sui have a conditional spawn or something? I've never seen them.
Because of the faulty python files, i guess.Additionally, everytime I try to play Zhou, the game immediately crashes.. why is this?
Additionally, everytime I try to play Zhou, the game immediately crashes.. why is this?
It's just that with all the music it becomes way too big.
That is weird Never had that one before.All right. I thought it worked, but thanks nevertheless.They only spawn in 500AD scenario.Because of the faulty python files, i guess.
@merijn: It would be great if you could put the SVN version into a new patch or version, so everyone who doesn't use SVN can play with the fixes.
-Will you rework the Papua? It's too small. I think it's safe enough if you will, as this region will not likely to affect the stability..
-I hope you'll add the UHV Checklist Progress or whatever it's called like in RFCE or DoC... I had no idea how big my empire is or how many map I own unless I check WB every few turns...
Done a Gokturk play.
-I hope you'll add the UHV Checklist Progress or whatever it's called like in RFCE or DoC... I had no idea how big my empire is or how many map I own unless I check WB every few turns...
-Rename Bilge Khan to Bilge Qaghan or at least Bilge Khagan
-Why Wendi from Middle Country of Sui appear in leader board as Qin empire?
-I had some more suggestion/question, specifically the Gokturk capital. However, I need to do more research about this in Google Earth (Karabalgashun vs Balagasun)
-Will you rework the Papua? It's too small. I think it's safe enough if you will, as this region will not likely to affect the stability..
-I think you should swap Sundapura and a tile east of it (the Silver)
-Independent Mataram on central Java?
-Independent city Kutai on the eastern side of Borneo
-Is it just me or it looks like the Guptas are under-teched? I use the Chalukyans and the Cholas as reference.
-Is the Camel Archer invasion to Bukhara and Samarqand is supposed to represent the Samanid?
-Bukhara and Samarqand is too close to each other. Picture later
Last one, don't you think it's time for RFCA to have its own Sub-forum?