Placing Improvements At Start of Game

you have reinstalled all and got the error without any mod added ?

Have you tried to delete the cache or disable caching in CivilizationIV.ini ?

The cause can't comes from the script i give you , nothing refer to this function and a syntax error can't arrive from nowhere . Have you added the mods after reinstalling or have you reinstalled them ?

Hope this can help .

Tcho !
 
Well I reinstalled Civ4, BTS, and FfH2 altogether and now the game itself works. So I'm ready to finally start looking at updating the map again.

So where do I put the CvModEvents.py file? I can't find it in .30. Did .30 eliminate that file now? I don't suppose you can help figure it out again...
 
You have to copy paste all the function "def addImprovements():" in CvEventManager() and add the line in the function onGameStart :

Code:
	def onGameStart(self, argsList):
		'Called at the start of the game'
		[COLOR="Red"]addImprovements()[/COLOR]

You have also to verify if the list of improvements and summons on improvements are good with the new FFH :2* listImprovements and listUnitSpawn .

Tcho !
 
Ok, I added that line but it gave me this error message when I load up the map:
attachment.php
 

Attachments

  • ErebusError.jpg
    ErebusError.jpg
    35.9 KB · Views: 88
Ok , i've made it easier :

Download and add the file CustomAddImprovements.py in the python folder

add this line at the beginning of the eventmanager with the list of import :

Code:
import CustomAddImprovements

replace the line in onGameStart :

Code:
	def onGameStart(self, argsList):
		'Called at the start of the game'
                CustomAddImprovements.addImprovements()

Edit the file with notepad ++ or python to check xml values ( i've put #!! as a mark for parts of the code to check ) . Tell me if there is an error .

Tcho !
 

Attachments

Back
Top Bottom