Zip files - What am I doing wrong?
by Jaimi McEntire · in Torque Game Engine Advanced · 03/11/2009 (9:23 pm) · 22 replies
I zipped up the ScriptsAndAssets directory (by going into the ScriptsAndAssets directory) - I used "copy" mode, there was no compression, and no encryption. The path inside the ScriptsAndAssets.zip file does not include "ScriptsAndAssets" - just the directories underneath. They look like this:
client/config.cs
data/textures/detail001.png
etc.
the resource manager loads the zip file, and creates a resource object for every file in the zip.
The engine goes to execute the .CS files, and they work. It loads the profiles, etc.
But textures and DTS files do not load - every single one of them errors out, the screen turns pink and the engine just sits there.
Has anyone successfully used zip files in TGEA 1.8? Have I missed something?
I've tried 7zip, WinRar, and WinZip.
I'm absolutely sure that I must be misunderstanding something, and that TGEA is golden. However, I can't figure it out.
client/config.cs
data/textures/detail001.png
etc.
the resource manager loads the zip file, and creates a resource object for every file in the zip.
The engine goes to execute the .CS files, and they work. It loads the profiles, etc.
But textures and DTS files do not load - every single one of them errors out, the screen turns pink and the engine just sits there.
Has anyone successfully used zip files in TGEA 1.8? Have I missed something?
I've tried 7zip, WinRar, and WinZip.
I'm absolutely sure that I must be misunderstanding something, and that TGEA is golden. However, I can't figure it out.
#22
12/17/2009 (3:24 pm)
Jason - that is not all the code, This is basically a stand alone class. You would need to add that class to your code, and then search through your code and figure out where to use it based on what is not loading from zip files. I would recommend not pursuing this modification unless you are extremely technically oriented.
Torque Owner J L
Psycho Hamster Games