multifiles

I’ve noticed that multify.exe creates archives that store game resources without mess. However, I don’t know how to access these multifiles from within a Python script. How is it done?

Create a Multifile object and use the interfaces there for reading and writing Multifiles.

If you want to load assets from a Multifile directly, you can “mount” it into the virtual file system:

vfs = VirtualFileSystem.getGlobalPtr()
vfs.mount(Filename(‘foo.mf’), ‘.’, VirtualFileSystem.MFReadOnly)

Then you can just load models by name out of the multifile as if you had extracted it into the current directory.

David