New Project Need Help

The problem from the first error message is, that it doesn't really say, where/in what file the problem is. It just crashes somewhere.

The second error:
CvAppInterface is just not up-to-date.
Look in a current CvAppInterface.py, and copy the missing entries over.
 
EDIT:

OK, i left an old Barbciv part in the custom.py and its messed with everything, so here is the NEW traceback:

Traceback (most recent call last):

File "CvEventInterface", line 25, in onEvent

Code:
def onEvent(argsList):
    """Called when a game event happens - return 1 if the event was consumed."""
    [B]return getEventManager().handleEvent(argsList)[/B]

File "CvCustomEventManager", line 136, in handleEvent

File "CvCustomEventManager", line 147, in _handleDefaultEvent

Code:
 def handleEvent(self, argsList):
        """Handles events by calling all installed handlers."""
        self.origArgsList = argsList
        flagsIndex = len(argsList) - 6
        self.bDbg, self.bMultiPlayer, self.bAlt, self.bCtrl, self.bShift, self.bAllowCheats = argsList[flagsIndex:]
        eventType = argsList[0]
        [B]return {[/B]
            "kbdEvent": self._handleConsumableEvent,
            "mouseEvent": self._handleConsumableEvent,
            "OnSave": self._handleOnSaveEvent,
            "OnLoad": self._handleOnLoadEvent
        }.get(eventType, self._handleDefaultEvent)(eventType, argsList[1:])

    def _handleDefaultEvent(self, eventType, argsList):
        if self.EventHandlerMap.has_key(eventType):
            for eventHandler in self.EventHandlerMap[eventType]:
                # the last 6 arguments are for internal use by handleEvent
                [B]eventHandler(argsList[:len(argsList) - 6])[/B]

File "CvImmigrationEventManager", line 114, in onUnitMove

Code:
def onUnitMove(self, argsList):
		'unit move'
		[B]objPlot, objUnit = argsList[/B]

		immigrationUtils.handleUnitMove(objUnit, objPlot)

ValueError: too many values to unpack
ERR: Python function onEvent failed, module CvEventInterface
 
OK next one:

Traceback (most recent call last):

File "CvEventInterface", line 25, in onEvent

File "CvCustomEventManager", line 136, in handleEvent

File "CvCustomEventManager", line 147, in _handleDefaultEvent

File "CvImmigrationEventManager", line 116, in onUnitMove

Code:
def onUnitMove(self, argsList):
		'unit move'
		objPlot, pOldPlot, objUnit = argsList

		[B]immigrationUtils.handleUnitMove(objUnit, objPlot)[/B]

File "ImmigrationUtils", line 464, in handleUnitMove

Code:
# Return False immediately if the city passed in is invalid
		[B]if(objCity.isNone()):[/B]
			return

AttributeError: 'CyPlot' object has no attribute 'getUnitType'
ERR: Python function onEvent failed, module CvEventInterface
 
Next one:

Traceback (most recent call last):

File "CvEventInterface", line 25, in onEvent

File "CvCustomEventManager", line 136, in handleEvent

File "CvCustomEventManager", line 147, in _handleDefaultEvent

File "CvImmigrationEventManager", line 158, in onCityDoTurn

Code:
def onCityDoTurn(self, argsList):
		'City Production'
		objCity = argsList[0]
		iPlayer = argsList[1]
				
		[B]immigrationUtils.generateImmigrant(objCity, false)[/B]

File "ImmigrationUtils", line 706, in generateImmigrant

Code:
# Create the actual immigrant unit in the game
		[B]objUnit = objPlayer.initUnit( gc.getInfoTypeForString("UNIT_IMMIGRANT"), objPlot.getX(), objPlot.getY(), UnitAITypes.NO_UNITAI )[/B]

ArgumentError: Python argument types in
CyPlayer.initUnit(CyPlayer, int, int, int, CvPythonExtensions.UnitAITypes)
did not match C++ signature:
initUnit(class CyPlayer {lvalue}, int, int, int, enum UnitAITypes, enum DirectionTypes)
ERR: Python function onEvent failed, module CvEventInterface
 
This one is the same as some you've seen before: you need one more argument that specifies a direction.

So:
Code:
		objUnit = objPlayer.initUnit( gc.getInfoTypeForString("UNIT_IMMIGRANT"), objPlot.getX(), objPlot.getY(), UnitAITypes.NO_UNITAI,  DirectionTypes.NO_DIRECTION)
 
OK i didnt get any python errors and no artdefines errors and the Immigration person worked before going into different cities but then all of a sudden another one went into a city and the game crashed to desktop, and i have NO reason why??
 
Is the error reproducable?
The logs don't say anything :dunno:, and digging through that big code-parts...no way.

Yeah i got it to where it does it everytime at this one point, one saved point from when it happens?? Do you want all the Whole Folder and the saved game part??



On a completely different game, i get this error?? And i dont even have a Spaceship screen in MY mod, i use the BtS original version??:crazyeye:

Traceback (most recent call last):

File "CvScreensInterface", line 154, in showSpaceShip

File "CvSpaceShipScreen", line 123, in interfaceScreen

File "CvSpaceShipScreen", line 196, in rebuildComponentPanel

RuntimeError: unidentifiable C++ exception
ERR: Python function showSpaceShip failed, module CvScreensInterface
 
Yeah i got it to where it does it everytime at this one point, one saved point from when it happens?? Do you want all the Whole Folder and the saved game part??

...mmmhh...not really :D.

Am i right, that it was a automated unit to one of your (->human) cities?

On a completely different game, i get this error?? And i dont even have a Spaceship screen in MY mod, i use the BtS original version??:crazyeye:

Traceback (most recent call last):

File "CvScreensInterface", line 154, in showSpaceShip

File "CvSpaceShipScreen", line 123, in interfaceScreen

File "CvSpaceShipScreen", line 196, in rebuildComponentPanel

RuntimeError: unidentifiable C++ exception
ERR: Python function showSpaceShip failed, module CvScreensInterface

What did you do to remove the new spaceship screen and add the old one?
 
...mmmhh...not really :D.

Am i right, that it was a automated unit to one of your (->human) cities?


Yes it was, nobody can control the unit.

What did you do to remove the new spaceship screen and add the old one?

I dont know what you mean by that? Like i said i dont even have a different CvSpaceShipScreen.py than the 3.19 version?

Other python personnel can help here also.
 
Yes it was, nobody can control the unit.

Does it generally crash, when a immigrant enters your (-> human controlled, not AI controlled) city, or also wheh the immigrant enters AI cities?

I dont know what you mean by that? Like i said i dont even have a different CvSpaceShipScreen.py than the 3.19 version?

Sorry, i thought of vanilla, not vanilla BtS.
Did you change the number of spaceship parts?
 
Does it generally crash, when a immigrant enters your (-> human controlled, not AI controlled) city, or also when the immigrant enters AI cities?

Ok i had like four of them move from town to town without any problem, then all of a sudden, as you can see in the pic, poof crash on this one??:crazyeye:


Sorry, i thought of vanilla, not vanilla BtS.
Did you change the number of spaceship parts?


Yes, there are alot of Projects in the ProjectInfo file. APOLLO_PROGRAM/SS_COCKPIT/SS_LIFE_SUPPORT/SS_STASIS_CHAMBER/SS_DOCKING_BAY/SS_ENGINE/SS_CASING and SS_THRUSTERS.
 
It has to be a python error, but none show up? All that was added was a unit called immigrant and all it is, is a settler unit. So nothing really added. See post 11.

It just crashes to desktop?

Heres what else i get?

Spoiler :
PY:Immigrants cannot spawn in capital cities
PY:Total immigration chance in New York is: 48/600 or 8.10
PY:Immigrant Created in New York? False 201<48.5714302063 201<60.0 48.5714302063/600 = 0.0809523835778
PY:Total immigration chance in Boston is: 48/600 or 8.10
PY:Immigrant Created in Boston? True 32<48.5714302063 32<60.0 48.5714302063/600 = 0.0809523835778
PY:1 out of 1 carried from Jeff civilization
PY:Immigrant created at Boston because of Unhappiness and is heading towards New York
PY:Immigrants cannot spawn in capital cities
PY:Thessalonica has grown
PY:Total immigration chance in Thessalonica is: 100/600 or 16.80
PY:Immigrant Created in Thessalonica? True 29<100.793655396 29<60.0 100.793655396/600 = 0.167989432812
PY:2 out of 2 carried from Justinian I civilization
PY:Immigrant created at Thessalonica because of Starvation and is heading towards Constantinople
PY:City Built Event: Haithabu
PY:Immigrants cannot spawn in capital cities
PY:Total immigration chance in Uppsala is: 58/600 or 9.76
PY:Immigrant Created in Uppsala? False 328<58.571434021 328<60.0 58.571434021/600 = 0.0976190567017
PY:Immigrants cannot spawn in capital cities
PY:Poverty Point has grown
PY:Total immigration chance in Poverty Point is: 53/600 or 8.93
PY:Immigrant Created in Poverty Point? False 250<53.5714302063 250<60.0 53.5714302063/600 = 0.0892857164145
PY:Immigrants cannot spawn in capital cities
PY:Total immigration chance in Oporto is: 53/600 or 8.93
PY:Immigrant Created in Oporto? False 526<53.5714302063 526<60.0 53.5714302063/600 = 0.0892857164145
PY:Player 18 Civilization Barbarian State Unit Warrior was killed by Player 2
PY:OnPreSave
23 SCREEN TURNED ON

Disabling Map Tab

PY:Immigrants cannot spawn in capital cities
PY:Total immigration chance in New York is: 48/600 or 8.10
PY:Immigrant Created in New York? False 461<48.5714302063 461<60.0 48.5714302063/600 = 0.0809523835778
PY:Immigrant lost city target, getting new target
PY:New target for immigrants found: Constantinople
PY:Adding 2 culture from Justinian I civilization to Constantinople


I am just perplexed?? :crazyeye::confused:
 
Back
Top Bottom