Game Development Community

About using zip files?

by KevinYuen · in Torque 2D Beginner · 04/08/2013 (1:42 am) · 2 replies

I try to compressed whole "modules" folder into zip file, but failed. :(

the code:

ModuleDatabase.scanModules( "modules" );
{
....
Platform::dumpDirectories( pathBuffer, directories, rootOnly ? 1 : -1 )
....
}

dumpDirectories use FindFirstFileA directly. Does that mean the "modules" folder must out of zip file?

what should I do? thank you :)

#1
04/09/2013 (10:29 am)
Zip file support is functional but has not been fully updated to match the newer features of T2D MIT.

As an example. you can easily zip up script files, png files, audio files, etc.

However, you cannot place .taml files in a zip file.
This makes modules and assets (asset.taml) files incredibly tricky to use.

There is a way to implement this but it will require some source code modifications on a scale that is hard to predict.

I will keep this post updated as I investigate the situation when I have the time to do so.

Sorry about the delayed response, Kevin!
#2
04/09/2013 (5:51 pm)
Hello Simon, thank you for your reply :)

I hope you and torque2.0 are getting better and better.