Game Development Community

Volume Files (AKA Zip files)

by PatG · in Torque Game Engine · 10/10/2006 (2:25 pm) · 5 replies

TGE (I'm using 1.4) is supposed to be capable of using Volume Files (a zip file basically).

Volume Files are supposed to be handled by the Resource Manager in Torque automatically, but I have been unable to get it to work.

Does anyone have an example or dcoument describing how to use Volume Files in TGE?

#1
10/10/2006 (2:28 pm)
Works out of the box. The trick, which many are missing, is that you need to zip up the contents of the folder, NOT the folder. :) Then remove the folder and place the zip where the folder used to reside, with the same name.

Whoala.
#2
10/10/2006 (2:35 pm)
So for example.. everything in my shapes folder.. move them into a zip file and name the zip file shapes.zip?


What about scripts?
Can they be put into zip files also?
#3
10/10/2006 (2:47 pm)
Aye, everything in your shapes folder should go into the zip, but not the shapes folder itself.

Shapes
- Crossbow
- Player

Which means the zip should contain CrossBow and Player.
Scripts in zip's work just fine.
#4
10/10/2006 (2:56 pm)
Thank you for the help Stefan! It worked perfectly...

Now.. one more question concerning Volume files... can they be password protected or will I need to add the functionality to the engine itself?
#5
10/10/2006 (3:00 pm)
There may be a resource on this site for password protected volumes. It is not something Torque supports out of the box. Try searching around the resources section.