I’ve been using Panda3D( 1.8 ) to build a little class project game, and got a couple of apparently unsolvable issues in the process, that i hope someone can help me with:
1)I have an actorInterval that i would like to set the playRate to more than 1, but doesnt matter if i put “playRate=x” in the interval constructor or use something like animation control and then try actor.play(), the character (the default moving panda of Panda3D) doesnt seem to move any quicker. Any clues?
Since installers are generated by p3d files, i would like to know how to include my music files (ogg) in the p3d file. As for now my p3d game and installers have no sound.
I’ve seen in another thread that i should use ‘base.AppRunner.multifileRoot’ as a base to search for the file, but i couldnt find how to access this variable (even tried the Reference).
Tried also -n and -e with “ogg” in the packp3d.
3)I also would like to know how to include stuff like “loadPrcFileData(’’, ‘fullscreen #t’)” in the p3d file, because my code runs fine, but when i get to the p3d it seems to lose all these extra configs.
Hmmm, there should be an error in your packing process since I can pack p3d files with working audio support. Could you write here a small example (like a small program which only plays a sound) and precisely describe the process you are following to make the p3d file?
Anyway, please verify that your p3d file correctly contains ogg files with something like
multify -tvf yourFile.p3d
Moreover, be sure that you used the -r fmod/openal/audio switch in the packp3d invocation, and check your logs to see which error has occurred (file not found? Missing audio support?).
Same here, the loadPrcFileData function works as expected in my game, so there should be an error somewhere in your process. Could you produce a small example which contains the minimal amount of code which reproduces your problem?
You are welcome. I don’t know about this new issue, 1.8.0 didn’t bring this problem in my project, anyway you could analyze your project in order to see how the time is differently consumed: this could give more information.
I don’t really know if this helps or not, but i’ve just successfully done in windows exactly what i was trying to do in Ubuntu 11.10.
Trying the same commands in Windows I’ve experienced none of the issues with p3d files or installers said above.
I’d like to mention that I’ve tested the resulting p3d file and intallers in Ubuntu 11.04, 11.10 and Windows, and in Ubuntu 11.10 running the game through any of these resulted i very slow FPS (6-7) compared to running directly from the source or any of the other platforms mentioned (60 FPS).
Guess I’ll just leave Ubuntu 11.10 be for a while…