|
|
|
Return to Code Snippets
by Adanf » Wed Feb 22, 2012 3:54 pm
Thanks to your help, I was able to download it by copying part of the link from panda3dprojects.com p3dp.com, but I noticed that there isn't a direct link to the file in the second site, right?
p.s.: Ah sorry, I haven't seen your last post update. xD
-
Adanf
-
- Posts: 57
- Joined: Tue Feb 21, 2012 7:41 pm
- Location: Italy
by syndicatedragon » Mon Jun 25, 2012 2:27 pm
Downloaded everything this morning, put it into the OIDE directory. I extracted testDynScene into OIDE_Examples. Ran IDE_STARTER.pyw, added dyn1.py as the file. A scene appears but then it seems to crash.
- Code: Select all
IDE started on Monday, Jun 25 2012, 13:22 Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win 32
=================================== C++ TextDrawer extension loaded, built with Panda3D v1.8.0. ===================================
############### YOUR FILES ############### D:\personal\python\panda\OIDE_Examples\dyn1.py ########################################## CWD : D:\personal\python\panda\OIDE_Examples ########################################## args : [] ##########################################
DirectStart: Starting the game. Known pipe types: wglGraphicsPipe (all display modules loaded.)
INFO: run() is not here, use IDErun() instead.
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_ win32\build\panda3d\panda\src\event\asyncTask.cxx :gobj(error): Texture::read() - couldn't read: logTextOverScene-win.png :gobj(error): Unable to find texture "logTextOverScene-win.png" on model-path /d /personal/python/panda/OIDE_Examples;/d/Program Files/Panda3D-1.8.0/etc/..;/d/Pr ogram Files/Panda3D-1.8.0/etc/../models;/d/personal/python/panda/OIDE;/d/persona l/python/panda/OIDE/sounds;/d/personal/python/panda/OIDE/fonts;/d/personal/pytho n/panda/OIDE/images;/d/personal/python/panda/OIDE/tab skins;/d/personal/python/p anda/OIDE/slider skins;/d/personal/python/panda/OIDE_Examples Traceback (most recent call last): File "IDEmini.py", line 970, in IDE_doActivate exec('import IDE\nfrom IDE import *') in GLOBALS File "<string>", line 1, in <module> File "D:\personal\python\panda\OIDE\IDE.py", line 3056, in <module> createLogTextTexture(msgText) File "D:\personal\python\panda\OIDE\IDE.py", line 3053, in createLogTextTextur e M.IDE_logOverSceneTex=loader.loadTexture(IDE_logOverSceneTexName) File "D:\Program Files\Panda3D-1.8.0\direct\showbase\Loader.py", line 554, in loadTexture raise IOError, message IOError : Could not load texture: logTextOverScene-win.png :task(error): Exception occurred in PythonTask IDE_TASKS_activate Traceback (most recent call last): File "D:\personal\python\panda\OIDE\IDELog.py", line 42, in checkNotify if self.stream.getDataSize(): File "IDEmini.py", line 970, in IDE_doActivate exec('import IDE\nfrom IDE import *') in GLOBALS File "<string>", line 1, in <module> File "D:\personal\python\panda\OIDE\IDE.py", line 3056, in <module> createLogTextTexture(msgText) File "D:\personal\python\panda\OIDE\IDE.py", line 3053, in createLogTextTextur e M.IDE_logOverSceneTex=loader.loadTexture(IDE_logOverSceneTexName) File "D:\Program Files\Panda3D-1.8.0\direct\showbase\Loader.py", line 554, in loadTexture raise IOError, message IOError : Could not load texture: logTextOverScene-win.png :task(error): Exception occurred in PythonTask IDE_TASKS_checkNotify
I guess _ ____________________________________________ I'm _ [C]lueless / \ O | | That's why you make mistakes all the time | _=^==^ \ __________________________________________/ \_| /," .^. / | | `O__) .____|/._________./_<.___ \_________________________________ \_______ E_R_R_O_R \
Traceback (most recent call last): File "IDEmini.py", line 823, in IDE_safeRun taskMgr._origRun() File "D:\Program Files\Panda3D-1.8.0\direct\task\Task.py", line 502, in run self.step() File "D:\Program Files\Panda3D-1.8.0\direct\task\Task.py", line 460, in step self.mgr.poll() File "D:\personal\python\panda\OIDE\IDELog.py", line 42, in checkNotify if self.stream.getDataSize(): File "IDEmini.py", line 970, in IDE_doActivate exec('import IDE\nfrom IDE import *') in GLOBALS File "<string>", line 1, in <module> File "D:\personal\python\panda\OIDE\IDE.py", line 3056, in <module> createLogTextTexture(msgText) File "D:\personal\python\panda\OIDE\IDE.py", line 3053, in createLogTextTextur e M.IDE_logOverSceneTex=loader.loadTexture(IDE_logOverSceneTexName) File "D:\Program Files\Panda3D-1.8.0\direct\showbase\Loader.py", line 554, in loadTexture raise IOError, message IOError: Could not load texture: logTextOverScene-win.png Traceback (most recent call last): File "IDEmini.py", line 990, in <module> IDE_safeRun() File "IDEmini.py", line 834, in IDE_safeRun IDE_doActivate() File "IDEmini.py", line 968, in IDE_doActivate sys.modules[__name__] = sys.modules.pop('IDE') KeyError : 'IDE' >>>
-
syndicatedragon
-
- Posts: 33
- Joined: Wed Oct 19, 2011 3:59 pm
- Location: United States
by ynjh_jo » Mon Jun 25, 2012 5:36 pm
It fails in writing that generated texture to disk, in IDE.py line 3048, which is :
- Code: Select all
textBGimage.write(Filename(IDE_logOverSceneTexPath))
Change it to : - Code: Select all
textBGimage.write(Filename.fromOsSpecific(IDE_logOverSceneTexPath))
-

ynjh_jo
-
- Posts: 1795
- Joined: Tue Apr 18, 2006 12:41 am
- Location: Malang, Indonesia
-
by syndicatedragon » Tue Jun 26, 2012 10:39 am
That seems to have fixed it, thanks! It's a very impressive program!
edit- Not a big deal, but it crashes when you exit:
- Code: Select all
Next update : 143.913999444 hours later
IDE shutdown on Tuesday, Jun 26 2012, 13:20 GOOD BYE SystemExit :task(error): Exception occurred in PythonTask IDE_reallyExit
-
syndicatedragon
-
- Posts: 33
- Joined: Wed Oct 19, 2011 3:59 pm
- Location: United States
by ynjh_jo » Wed Jun 27, 2012 7:51 am
syndicatedragon wrote:it crashes when you exit: - Code: Select all
Next update : 143.913999444 hours later
IDE shutdown on Tuesday, Jun 26 2012, 13:20 GOOD BYE SystemExit :task(error): Exception occurred in PythonTask IDE_reallyExit
It's normal.
As you can read in IDEmini.py line 8, IDE_reallyExit is sys.exit.
SystemExit is an exception, of course it's caught by P3D.
If you don't like it, you're free to replace it with taskMgr.stop.
-

ynjh_jo
-
- Posts: 1795
- Joined: Tue Apr 18, 2006 12:41 am
- Location: Malang, Indonesia
-
by indisposed » Wed Jul 18, 2012 5:26 am
getting this when i try to use the compileTD script.
- Code: Select all
/usr/include/panda3d/py_panda.h: In member function ‘PyObject& Dtool_PyTypedObject::As_PyObject()’: /usr/include/panda3d/py_panda.h:172:55: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] #### TextDrawer.cxx compiled #### -rw-r--r-- 1 users 3.5M Jul 18 22:20 ./TextDrawer.o
Creating Python wrapper.......... *** Error in /usr/include/bits/sigcontext.h near line 34, column 2: syntax error, unexpected IDENTIFIER, expecting '{' or ';' or ':' or '=' Error parsing file: '../TextDrawer.h' :interrogatedb(error): Unable to find TextDrawer.in on . Error reading interrogate data. g++: error: TextDrawer_ig.cxx: No such file or directory g++: error: TextDrawer_module.cxx: No such file or directory g++: fatal error: no input files compilation terminated. g++: error: ./TextDrawer_ig.o: No such file or directory g++: error: ./TextDrawer_module.o: No such file or directory mv: cannot stat ‘./TD.so’: No such file or directory ls: cannot access ../*.so: No such file or directory
-
indisposed
-
- Posts: 2
- Joined: Wed Jul 18, 2012 5:18 am
by ynjh_jo » Fri Jul 20, 2012 10:50 am
@ indisposed :
I don't know what went wrong there, it's fine on ubuntu natty :
- Code: Select all
j@j-desktop:/media/PROJECTS/PANDA3D/- Panda3D forum/OIDE 054/TD/linux$ sh compileTD.sh rm: cannot remove `TextDrawer*.*': No such file or directory rm: cannot remove `../TD.so': No such file or directory
#### COMPILING TextDrawer.cxx #### In file included from /usr/include/panda3d/pointerToArray.h:71:0, from /usr/include/panda3d/pta_uchar.h:20, from /usr/include/panda3d/datagram.h:24, from /usr/include/panda3d/netDatagram.h:23, from /usr/include/panda3d/connectionManager.h:20, from /usr/include/panda3d/pStatClientImpl.h:24, from /usr/include/panda3d/pStatClient.h:21, from /usr/include/panda3d/pStatThread.h:20, from /usr/include/panda3d/pStatCollector.h:20, from /usr/include/panda3d/renderAttrib.h:25, from /usr/include/panda3d/renderState.h:20, from /usr/include/panda3d/pandaNode.h:27, from /usr/include/panda3d/nodePath.h:23, from ../TextDrawer.h:1, from ../TextDrawer.cxx:1: /usr/include/panda3d/py_panda.h: In member function ‘PyObject& Dtool_PyTypedObject::As_PyObject()’: /usr/include/panda3d/py_panda.h:172:55: warning: dereferencing type-punned pointer will break strict-aliasing rules #### TextDrawer.cxx compiled #### -rw-r--r-- 1 j 2.4M 2012-07-20 22:45 ./TextDrawer.o
Creating Python wrapper.......... Referencing Library TD In file included from TextDrawer_ig.cxx:12:0: /usr/include/panda3d/py_panda.h: In member function ‘PyObject& Dtool_PyTypedObject::As_PyObject()’: /usr/include/panda3d/py_panda.h:172:55: warning: dereferencing type-punned pointer will break strict-aliasing rules In file included from TextDrawer_module.cxx:6:0: /usr/include/panda3d/py_panda.h: In member function ‘PyObject& Dtool_PyTypedObject::As_PyObject()’: /usr/include/panda3d/py_panda.h:172:55: warning: dereferencing type-punned pointer will break strict-aliasing rules -rw-r--r-- 1 j 2.7M 2012-07-20 22:45 ../TD.so
Are you using 64bit system ?
-

ynjh_jo
-
- Posts: 1795
- Joined: Tue Apr 18, 2006 12:41 am
- Location: Malang, Indonesia
-
by indisposed » Sat Jul 21, 2012 9:08 pm
yea, and using arch linux x86-64
ill muck around with it again when i get home from work.
-
indisposed
-
- Posts: 2
- Joined: Wed Jul 18, 2012 5:18 am
Return to Code Snippets
Who is online
Users browsing this forum: No registered users and 0 guests
| | |