Hey I am trying to get the p3d chain working for Second Anterean War.
I guess this should start with the “pdef” file, but there is just a little blurb about it?
class mypackage(package):
file(Filename('neededfile.dll'))
module('my.python.module')
dir(Filename('/c/my/root_dir'))
Why another format (even if it is python with meta classes). Would not a sane interface to p3d.Packadge stuff be nicer then yet another format?
I guess we need to examine panda3d.cvs.sourceforge.net/view … nda3d.pdef to figure out what it does?
Will p3d package compile all py to pyo before including them? Does it do some import analysis or does it just grab all py files?
p3d system automatically converts all bam’s to egg. Normally what i do is ship egg’s and compile them to bam’s first time users runs the game. Then during update i always clear the tmp directory. Should I always ship bam files? What about shipping txo’s? Currently i shipped only png’s. And when users has super bad graphics card i can half all of the textures and create new txo’s and i guess new bams that include those half sized txo? Then whats the point of bams?
Reading and writing files. It looks like open() is not supported inside the p3d packed files, so i have to use vfs.readFile(), I think it would be useful to create open()-python-like file interface to vfs.
Temp files. My game creates some temp files as it runs. It also can download some files from the web like user profiles. Normally my temp files and my compiled bam files lived in this tmp folder. Should i still have a temp folder even if i will not ship bams? Where this tmp model cache should live in the p3d system?
Where should i put odd fiddly multifile switches such as wav’s should be compressed because then they cant stream etc… Don’t compress png and jpgs because its waste of time…
Can I substitute the default panda3d p3d loader with my game logo? Its not that i don’t want to advertise panda3d, but i also don’t want the main logo of my sci-fi game be a cartoon panda, when loading, updating etc… breaks immersion you know.