Hello everyone,
It’s been a long time since I write here. For the people who don’t remember me or for the new one, I’m the programmer of the Silence X game http://darkjaff.p3dp.com
Every month or so, I’m looking at the pand3d site to see what’s new. I just saw that there were now a way to put our game on the web! YEAH! What a nice idea!
So I download the new version of panda3d 1.7.0 to check if my game still works and if it works, then I will try the new web thing. But my game is not working anymore…
Each song in the game start for 1 or 2 seconds then stops. After that, when we come to the menu, it crach… I don’t know if there is a list of function that need to be changed, deprecated things, new way to call some objets.
Here is the error that is trown at me. Please notice that this game was programmed using panda3d 1.5.3 and everything was working fine.
DirectStart: Starting the game.
Known pipe types:
wglGraphicsPipe
(all display modules loaded.)
:display:wgldisplay(error): SetPixelFormat(57) failed; trying 5 instead
Traceback (most recent call last):
File "C:\Panda3D-1.7.0\direct\showbase\EventManager.py", line 61, in eventLoopTask
self.doEvents()
File "C:\Panda3D-1.7.0\direct\showbase\EventManager.py", line 55, in doEvents
processFunc(self.eventQueue.dequeueEvent())
File "C:\Panda3D-1.7.0\direct\showbase\EventManager.py", line 124, in processEvent
messenger.send(eventName)
File "C:\Panda3D-1.7.0\direct\showbase\Messenger.py", line 325, in send
self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
File "C:\Panda3D-1.7.0\direct\showbase\Messenger.py", line 410, in __dispatch
method (*(extraArgs + sentArgs))
File "C:\Panda3D-1.7.0\samples\SilenceX\lib\Intro.py", line 65, in cleanBeforeMenu
self.showMainMenu()
File "C:\Panda3D-1.7.0\samples\SilenceX\lib\Intro.py", line 70, in showMainMenu
mm = MainMenu(self.musicPlayer)
File "C:\Panda3D-1.7.0\samples\SilenceX\lib\MainMenu.py", line 36, in __init__
self.setLight()
File "C:\Panda3D-1.7.0\samples\SilenceX\lib\MainMenu.py", line 549, in setLight
directionalLightNP = self.dummyAmbiantMenu.attachNewNode(directionalLight.upcastToPandaNode())
AttributeError: 'libpanda.DirectionalLight' object has no attribute 'upcastToPandaNode'
:task(error): Exception occurred in PythonTask eventManager
Traceback (most recent call last):
File "main.py", line 16, in <module>
import main2
File "C:\Panda3D-1.7.0\samples\SilenceX\main2.py", line 6, in <module>
intro.run()
File "C:\Panda3D-1.7.0\samples\SilenceX\lib\Intro.py", line 227, in run
run()
File "C:\Panda3D-1.7.0\direct\showbase\ShowBase.py", line 2531, in run
self.taskMgr.run()
File "C:\Panda3D-1.7.0\direct\task\Task.py", line 496, in run
self.step()
File "C:\Panda3D-1.7.0\direct\task\Task.py", line 454, in step
self.mgr.poll()
File "C:\Panda3D-1.7.0\direct\showbase\EventManager.py", line 61, in eventLoopTask
self.doEvents()
File "C:\Panda3D-1.7.0\direct\showbase\EventManager.py", line 55, in doEvents
processFunc(self.eventQueue.dequeueEvent())
File "C:\Panda3D-1.7.0\direct\showbase\EventManager.py", line 124, in processEvent
messenger.send(eventName)
File "C:\Panda3D-1.7.0\direct\showbase\Messenger.py", line 325, in send
self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
File "C:\Panda3D-1.7.0\direct\showbase\Messenger.py", line 410, in __dispatch
method (*(extraArgs + sentArgs))
File "C:\Panda3D-1.7.0\samples\SilenceX\lib\Intro.py", line 65, in cleanBeforeMenu
self.showMainMenu()
File "C:\Panda3D-1.7.0\samples\SilenceX\lib\Intro.py", line 70, in showMainMenu
mm = MainMenu(self.musicPlayer)
File "C:\Panda3D-1.7.0\samples\SilenceX\lib\MainMenu.py", line 36, in __init__
self.setLight()
File "C:\Panda3D-1.7.0\samples\SilenceX\lib\MainMenu.py", line 549, in setLight
directionalLightNP = self.dummyAmbiantMenu.attachNewNode(directionalLight.upcastToPandaNode())
AttributeError: 'libpanda.DirectionalLight' object has no attribute 'upcastToPandaNode'
**** End of process output ****
Thanks a lot for your help. If my game can work again and if I’m able to pack it for the web, I would like to give it to the community in the Online Demo (if they want it hehehe).
DarkJaff