Miel: Great idea about the code snippets.
Bigfoot29 : Good work opening this forum
Since I already posted it mid thread in another forum, might aswell put it up here where more ppl can use it. A sample thing where I used texture movies for water and point and click movement.
For anyone interested, it also contains an alternative to the FMOD sound lib. (audiere with python bindings) I havent documentated the bindings yet though, and havent added positional sound yet either.
Its compiled for windows, so when using linux, switch it off in soundmgr.py (set AUDIERE = True to False)
One thing though is that the islands arenât textured for me when the program runs. I do get an error message when I run the program that the several image files canât be loaded, including island.tif. I looked and couldnât find that file.
Hi! Another Noob here. I downloaded and run it, but I get the following error. I tried a couple of things to fix it, but my noob brain seems like it doesnât know enough yet
Can anybody point me to a solution?
I am using the latest Panda3D version 1.3.2. Thanks!
Are you using the windows version of panda3d or the linux version?
Are you able to run the GreetingCard example?
If in linux, you probably donât have your path configured correctly.
Type this in you shell: (only in linux, in windows it wonât work)
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/panda3d:/path/to/panda3d/lib:/path/to/panda3d/bin
export PYTHON_PATH=$PYTHON_PATH:/path/to/panda3d:/path/to/panda3d/lib:/path/to/panda3d/bin
(replacing /path/to/panda3d with the path to your panda3d installation, for example /usr/share/panda3d or /usr/local/panda3d)
I added
from direct.showbase.DirectObject import DirectObject
to Pirates.py and cameraControls.py to get past that error.
Now I get an import error on audiere. I installed the latest version I could find in the Ubuntu repositories but no success.
EDIT:
Ok, forum tells me to set AUDIERE = False in soundmgr.py
now I get:
Traceback (most recent call last):
File âPirates.pyâ, line 21, in ?
class Pirates(DirectObject):
TypeError: Error when calling the metaclass bases
module.init() takes at most 2 arguments (3 given)
Try moving the line âfrom direct.showbase.DirectObject import DirectObjectâ to the end of the list of import statements in Pirates.py.
The error message means that DirectObject is being imported as a module, not as a class. Since the above line imports DirectObject as a class, it means that you are inadvertently picking up a different definition of DirectObject from some other point, for instance from a different import statement. By moving this line to the end of the import statements, you minimize that probability.
ok that worked
Also added
from direct.task.Task import Task
to soundmgr.py
I see a spash screen and hear the pirate theme
then
:util:bam(error): Bam file is version 5.4.
:util:bam(error): This program can only load version 6.0 through 6.4 bams.
:loader(error): Couldnât load file models/frigate3-pirate: all matching files on model path invalid (the model path is currently: â.:/usr/share/panda3d:/usr/share/panda3d/modelsâ)
Right, youâll have to get the original poster to give you a version with updated bam files, or with egg files instead. Or, you can download and run it with the older version of Panda that it was originally written for.