2.7 Beta4

Tholal

Emperor
Joined
May 19, 2009
Messages
1,676
Zip file attached.

  • Players will now see a message when a Puppet State is Legitimized
  • Exposed setHasNonAggression, isHasPrepareWar and setHasPrepareWar to python
  • flagged some units for trade; canTradeUnit() now gated by bMilitaryTrade and bWorkerTrade XML tags; units that can abandon players cannot be traded
  • Advanced Diplomacy - Limited Borders no longer linked to Open Borders agreements; an attempt to fix the capital city visibility issue when trading embassies; Ai should be more interested in Limited Borders trades
  • Immmortal units will no longer be reborn if they die as cargo
  • tweaks to how Hyborem's starting location is chosen
  • Nuclear Dissuasion option has been removed
  • additional logging
 

Attachments

Thank's Tholal!


I know you already know of this bug from the PM I sent, but in case anyone else wants to fix it before the next release I thought I'd share it here too:

There is a mistake in WBGameDataScreen.py, in lines 377 and 379, where I forgot to include the new parameter which MNAI adds to the functions getAIAutoPlay() and setAIAutoPlay()

Code:
		elif inputClass.getFunctionName().find("AIAutoPlay") > -1:
			if inputClass.getData1() == 1030:
				CyGame().setAIAutoPlay([COLOR="red"]CyGame().getActivePlayer()[/COLOR], CyGame().getAIAutoPlay([COLOR="red"]CyGame().getActivePlayer()[/COLOR]) + iChange)
			elif inputClass.getData1() == 1031:
				CyGame().setAIAutoPlay([COLOR="red"]CyGame().getActivePlayer()[/COLOR], max(0, CyGame().getAIAutoPlay([COLOR="red"]CyGame().getActivePlayer()[/COLOR]) - iChange))
			self.placeStats()


Given the newly expose Python functions thought I might want to incorporate them into a new version of WorldBuilder, which would of course include this fix.
 
Back
Top Bottom