Game Development Community

Resources Zip files?

by Yue -Rookie Torque 3D- · in Torque 3D Beginner · 08/25/2013 (12:16 pm) · 6 replies

Well, so far looking at the development environment of Torque 3D, and the question about it: I can save project resources (png, jpg, models, etc.) in a zip file? and if this is possible as I do?

Greetings.

i40.tinypic.com/2ywxykp.jpg

About the author

http://www.iris3d.tk -Games Studios- <<I do not speak English: I use the google translator>> My goal as a rookie is knowing Torque 3D


#1
08/25/2013 (12:26 pm)
In TorqueConfig.h find and ncomment one of these:

/// Define me if you want to disable looking for the root of a given path
/// within a zip file.  This means that the zip file name itself must be
/// the root of the path.  Requires the virtual mount system to be active.
//#define TORQUE_DISABLE_FIND_ROOT_WITHIN_ZIP

//Uncomment this define if you want to use the alternative zip support where you can 
//define your directories and files inside the zip just like you would on disk
//instead of the default zip support that treats the zip as an extra directory.
//#define TORQUE_ZIP_DISK_LAYOUT

If you zip the core folder, you may find some issues with underwater shader going full screen all the time and some resources (like recast) won't work if the files are zipped.

There is also password protection for zips in zipArchive.h.

You may find that there is some lag on loading images/guis when they are zipped.
#2
08/25/2013 (12:46 pm)
Hello, forgive my ignorance, this implies recompile in visual studio for these changes to take effect?
#3
08/25/2013 (12:58 pm)
Oh yeah, any code change requires a recompile.
#4
08/25/2013 (1:49 pm)
@Steve

Will you give me some recommendations to compile visual studio 2010, what happens is that at the end of the compilation fails me.

I press f7 does not work. Any suggestions.
i44.tinypic.com/2zs8rvm.jpg
#5
08/26/2013 (5:25 am)
Setup VS as described in the Torque docs.

Your OS looks odd ...
#6
08/26/2013 (5:57 am)
Hi, error finish compiling...

LINK : fatal error LNK1181: no se puede abrir el archivo de entrada 'C:\Documents and Settings\Administrador\Escritorio\Torque3D-3-0\Torque3D\My Projects\Estudio\game\Estudio.lib'
16>
16>ERROR al compilar.
16>
16>Tiempo transcurrido 00:00:03.48
========== Generar: 14 correctos, 2 incorrectos, 0 actualizados, 0 omitidos ==========