I tried to make a Toontown animation in Geany as a finished version of a tutorial.
After copypasting everything in, clicking execute, pview loads, but then stops and I am greeted with this error message (WARNING LONG):
:loader(error): couldn’t load file phase_3.5/models/char/suitB-mod.bam: not found on model path (currently: “/c/users/owner/desktop;/c/users/owner/desktop/panda3D-1.9.4/etc./…j/c/users/owner/desktop/panda3d-1.9.4/etc/…/models”)
Traceback (most recent call list):
File “Test.py”, line 29, in
LoanShark = Actor ('phase_3/models/char/suitB-mod.bam, {‘fingerwag’ : phase_5/models/char/suitB-finger-wag.bam})
File C:Users\Owner\Desktop\Panda3D-1.9.4\direct\actor\Actor.py", line 280, in init
self.loadModel (models, copy = copy, okMissing = okMissing
File C:Users\Owner\Desktop\Panda3D-1.9.4\direct\actor\Actor.py", line 1910, in loadModel
That’s not the whole thing, but can anyone help me with why it won’t work?
Panda3D will issue such an error if you passed a model filename that doesn’t exist. Make sure there is in fact a file called “phase_3.5/models/char/suitB-mod.bam” relative to the working directory.
Panda won’t look for models in the “bin” directory by default. If you’d like to put your models there, you can add this to your PANDA_DIR/etc/Config.prc file:
model-path $THIS_PRC_DIR/../bin
Alternatively, move the phase_3.5 directory to the “models” directory.
Even though you say the actual path (relative to the models directory, which is in the model-path) is:
phase_3.5/char/suitB-mod.bam
The problem seems clear, then. You’re simply passing the wrong path to the load function. Change the path you’re loading to the second one, or reorganise your directory tree to match the first one.