Afforess
The White Wizard
Dancing Hoskuld, I'm not sure if you are aware of this or not, but using this modcomp in multiplayer causes an instant OOS. I'd appreciate it if you could look into this.
Dancing Hoskuld, I'm not sure if you are aware of this or not, but using this modcomp in multiplayer causes an instant OOS. I'd appreciate it if you could look into this.
I realized later that the old file I put up works, but it doesn't correctly show the price you get back for demolishing a building. It keeps saying zero, but when you get the building demolished it will correctly give you your gold back.
I fixed the line in the code so now it works... at least for me.
As for multiplayer... I uh... never played multiplayer... but I'll take a look into it.
Oh yeah, if my old files works perfectly for you (which it shouldn't) this one has nothing new, but a one line fix that corrects an error with showing the gold you get back for demolishing a building.
MongooseSDK has had an ability to do this that doesn't cause desyncs in Multiplayer since last summer.
I didn't provide the Python code that preserves unreplaceable things (World Wonders, Shrines, Corporate HQs) when razing one of your own cities b/c it's exploitable in its current form, but the city destruction part will work fine.
That being said... I hadn't thought of being able to sell off normal buildings, which is a great idea! It could be done as an instant refund for a fraction of the total hammer value of all the buildings present, or it could be something where the player can only sell one building per turn and thus has to take a while if he wants to get all the money out of a larger city before razing it... did you have a preference? I'm in the middle of a massive update atm so I'm happy to add this.
I realized later that the old file I put up works, but it doesn't correctly show the price you get back for demolishing a building. It keeps saying zero, but when you get the building demolished it will correctly give you your gold back.
I fixed the line in the code so now it works... at least for me.
As for multiplayer... I uh... never played multiplayer... but I'll take a look into it.
Oh yeah, if my old files works perfectly for you (which it shouldn't) this one has nothing new, but a one line fix that corrects an error with showing the gold you get back for demolishing a building.
indexWorker = CvUtil.findInfoTypeNum(gc.getUnitInfo,gc.getNumUnitInfos(),'UNIT_WORKER')
indexSettler = CvUtil.findInfoTypeNum(gc.getUnitInfo,gc.getNumUnitInfos(),'UNIT_SETTLER')
should be
indexWorker = CvUtil.findInfoTypeNum(gc.getUnitInfo,gc.getNumUnitInfos(),'UNITCLASS_WORKER')
indexSettler = CvUtil.findInfoTypeNum(gc.getUnitInfo,gc.getNumUnitInfos(),'UNITCLASS_SETTLER')
Logging by BUG Mod 4.5 [Build 2245] (BtS 3.13-3.19)
------------------------------------------------
[u][b]Turn 2/500 (3920 BC) [12-Apr-2012 22:47:54][/b][/u]
Worker Index: 182
Settler Index: 180
Unique worker Index: 0
Unique settler Index: 0
Creating worker: 0
Creating settler: 0
Logging by BUG Mod 4.5 [Build 2245] (BtS 3.13-3.19)
------------------------------------------------
[u][b]Turn 2/500 (3920 BC) [12-Apr-2012 22:54:07][/b][/u]
Worker Index: 127
Settler Index: 119
Unique worker Index: 183
Unique settler Index: 180
Creating worker: 183
Creating settler: 180