Multifiles not working

I’m making a Toontown server and need to change the phase folders in mf files. I created a folder on my desktop with all the phase folders and multify files (prntscr.com/5o12pi). These phase files worked fine when they were in their folders. Why aren’t they working in multifiles? Did I do something wrong or forget to do something?

Did you add code to mount the multifiles in the virtual file system?

All of the phase files have been mounted into the VirtualFileSystem using the ppython in Panda3D-v1.8.1. For some reason, my game still can’t read the multifiles.

I believe the loading background is a custom TTI file, you’ll have to find a replacement for that or replace the code that uses it.

Hmm… I’m not sure exactly what you mean by simply “using the ppython”. I don’t know if you’re talking about a command-line flag, a config option, or just in your code.

Your VirtualFileSystem should look similar to this:

from pandac.PandaModules import *

mountphase = VirtualFileSystem.getGlobalPtr()
mountphase.mount(Filename("phase_3.mf"), ".", VirtualFileSystem.MFReadOnly)
mountphase.mount(Filename("phase_3.5.mf"), ".", VirtualFileSystem.MFReadOnly)
mountphase.mount(Filename("phase_4.mf"), ".", VirtualFileSystem.MFReadOnly)
mountphase.mount(Filename("phase_5.mf"), ".", VirtualFileSystem.MFReadOnly)
mountphase.mount(Filename("phase_5.5.mf"), ".", VirtualFileSystem.MFReadOnly)
mountphase.mount(Filename("phase_6.mf"), ".", VirtualFileSystem.MFReadOnly)
mountphase.mount(Filename("phase_7.mf"), ".", VirtualFileSystem.MFReadOnly)
mountphase.mount(Filename("phase_8.mf"), ".", VirtualFileSystem.MFReadOnly)
mountphase.mount(Filename("phase_9.mf"), ".", VirtualFileSystem.MFReadOnly)
mountphase.mount(Filename("phase_10.mf"), ".", VirtualFileSystem.MFReadOnly)
mountphase.mount(Filename("phase_10.mf"), ".", VirtualFileSystem.MFReadOnly)
mountphase.mount(Filename("phase_11.mf"), ".", VirtualFileSystem.MFReadOnly)
mountphase.mount(Filename("phase_12.mf"), ".", VirtualFileSystem.MFReadOnly)
mountphase.mount(Filename("phase_13.mf"), ".", VirtualFileSystem.MFReadOnly)

This should work if you put this at the beginning of your code. Although, seeing as you’re using the TTI source, you might have to modify the filenames to be something like “/…/RetroResources/phase_x.mf” <<< I have not tested this; to be honest I’m just guessing, but hopefully you can figure it out.

Hope I helped.

In the ttisource folder there is a folder called config in there there will be 3 files replace the file mount with the one suggested