Fixing a value error

Alrik2002

Warlord
Joined
May 24, 2012
Messages
214
Location
Berlin, Germany
Hi,

im getting the following error:
Code:
Traceback (most recent call last):
  File "BugEventManager", line 362, in _handleDefaultEvent
  File "CvEventManager", line 2705, in onCityAcquired
ValueError: need more than 5 values to unpack

CvEventManager, line 2705 in red:
Code:
	def onCityAcquired(self, argsList):
		'City Acquired'
		[COLOR="Red"]iOwner,iPreviousOwner,iNewOwner,pCity,bConquest,bTrade = argsList[/COLOR]
		CvUtil.pyPrint('City Acquired Event: %s' %(pCity.getName()))

Could anyone please explain what´s causing the error? Thank you!
 
Yes it has a modified .dll. I compared the CvEventManager.py to former versions and found out that iOwner shouldn´t be there. Thank you.

So if I really want to add a value to a function, I´ve to change the .dll correct?
 
Back
Top Bottom