Hi,
I wrote my game completely in Python and as long as I start it with python gameStart.py it works without any bugs.
But after packing it with packp3d it crashes in several situations. I used -D and -i to debug it and it crashes in two situations. The first one when I try to open a file:
f = open("level/" + self.levelName + ".hs", "w")
I get this error message:
IOError
:task(error): Exception occurred in PythonTask eventManager
Traceback (most recent call last):
File "C:\panda3d-1.7.0\built_cmu\direct\p3d\AppRunner.py", line 411, in run
File "C:\panda3d-1.7.0\built_cmu\direct\task\Task.py", line 496, in run
File "C:\panda3d-1.7.0\built_cmu\direct\task\Task.py", line 454, in step
File "C:\panda3d-1.7.0\built_cmu\direct\showbase\EventManager.py", line 61, in
eventLoopTask
File "C:\panda3d-1.7.0\built_cmu\direct\showbase\EventManager.py", line 55, in
doEvents
File "C:\panda3d-1.7.0\built_cmu\direct\showbase\EventManager.py", line 122, i
n processEvent
File "C:\panda3d-1.7.0\built_cmu\direct\showbase\Messenger.py", line 325, in s
end
File "C:\panda3d-1.7.0\built_cmu\direct\showbase\Messenger.py", line 410, in _
_dispatch
File "C:\panda3d-1.7.0\built_cmu\direct\gui\DirectEntry.py", line 178, in comm
andFunc
File "C:\Users\Michael\Desktop\Lab_mic_005_11_03_30\WinMsg.py", line 44, in ne
wHighscore
f = open("level/" + self.levelName + ".hs", "w")
File "C:\panda3d-1.7.0\built_cmu\direct\stdpy\file.py", line 94, in __init__
IOError
and when I use the radio button I get this message:
:task(error): Exception occurred in PythonTask eventManager
Traceback (most recent call last):
File "C:\panda3d-1.7.0\built_cmu\direct\p3d\AppRunner.py", line 411, in run
File "C:\panda3d-1.7.0\built_cmu\direct\task\Task.py", line 496, in run
File "C:\panda3d-1.7.0\built_cmu\direct\task\Task.py", line 454, in step
File "C:\panda3d-1.7.0\built_cmu\direct\showbase\EventManager.py", line 61, in
eventLoopTask
File "C:\panda3d-1.7.0\built_cmu\direct\showbase\EventManager.py", line 55, in
doEvents
File "C:\panda3d-1.7.0\built_cmu\direct\showbase\EventManager.py", line 124, i
n processEvent
File "C:\panda3d-1.7.0\built_cmu\direct\showbase\Messenger.py", line 325, in s
end
File "C:\panda3d-1.7.0\built_cmu\direct\showbase\Messenger.py", line 410, in _
_dispatch
File "C:\Users\Michael\Desktop\Lab_mic_005_11_03_30\Menu.py", line 15, in user
Clicks
self.g.gs.request('LevelSelect')
File "C:\panda3d-1.7.0\built_cmu\direct\fsm\FSM.py", line 309, in request
File "C:\panda3d-1.7.0\built_cmu\direct\fsm\FSM.py", line 443, in __setState
File "C:\panda3d-1.7.0\built_cmu\direct\fsm\FSM.py", line 477, in __callEnterF
unc
File "C:\Users\Michael\Desktop\Lab_mic_005_11_03_30\GameStatesFSM.py", line 30
, in enterLevelSelect
self.g.state = LevelSelect(self.g)
File "C:\Users\Michael\Desktop\Lab_mic_005_11_03_30\LevelSelect.py", line 36,
in __init__
self.loadLevelInfos()
File "C:\Users\Michael\Desktop\Lab_mic_005_11_03_30\LevelSelect.py", line 91,
in loadLevelInfos
text_pos = (0.1,-0.5)
File "C:\panda3d-1.7.0\built_cmu\direct\gui\DirectRadioButton.py", line 46, in
__init__
File "C:\panda3d-1.7.0\built_cmu\direct\showbase\Loader.py", line 169, in load
Model
IOError: Could not load model file(s): ['models/gui/radio_button_gui']
The rest of the GUI and all the 3D stuff works fine. Does anyone know why this happens?