Game Development Community

Loading Interior Objects from Zip Files

by Sky Frostenson · in Torque Game Engine · 05/03/2005 (1:33 pm) · 2 replies

I'm loading interior objects through script calls using:

%obj = new InteriorInstance()
	{
		position = %x@" "@%y@" "@%z;
		rotation = "0 0 1 "@%rotation;
		interiorFile = %fileName;
	};

I want to start enclosing my interior object files in .zip files - the zip file would contain the .dif as well as the textures and etc. that are required by the dif. Is there a way that I can access this data from within the zip file at runtime (through scripts)? That is, is there someway I can make the same function call I made above where the fileName will point to a dif file that is enclosed within a zip file?

Thanks!

#1
02/11/2006 (4:50 pm)
Can Anyone answer this? I'd like to know aswell

EDIT: Nevermind...
#2
02/13/2006 (4:49 am)
A quick search would've revealded that the resource manager can see ZIP files as folders, and you can load files and execute scripts inside of them seamlessly.