[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5150: file_get_contents(https://freedomsponsors.org/api/project/294): failed to open stream: HTTP request failed! HTTP/1.1 502 Bad Gateway
Archive Format? - Forums | Torque 3D

Archive Format?

Friendly conversations, and everything that doesn't fit into the other forums.
6 posts Page 1 of 1
Mitovo
Posts: 70
Joined: Sun Apr 12, 2015 5:46 pm
by Mitovo » Thu Jan 26, 2017 2:25 am
Hello,

Was just wondering. Many/most engines I see utilize a kind of custom file format which acts like a "package" or archive of the various assets used in a game. I'm guessing they're encrypted or compressed in a way that makes them tougher to unpack/hack open.

Does T3D support something like this? Or, has anyone ever done anything like that with this engine?

Thanks!
Duion
Posts: 698
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Thu Jan 26, 2017 2:27 am
Yes.
By the way the Quake "pk3" format does not really make the game harder to "hack", you can tell your system those are zip files and suddenly you can browse them like normal folders.
Mitovo
Posts: 70
Joined: Sun Apr 12, 2015 5:46 pm
by Mitovo » Thu Jan 26, 2017 4:42 pm
Duion wrote:Yes.
By the way the Quake "pk3" format does not really make the game harder to "hack", you can tell your system those are zip files and suddenly you can browse them like normal folders.


Indeed. In fact, the pk3 format is one I was thinking of in particular, as well as what the Unreal engine uses, etc. In some cases, though, they are a custom format and aren't so easily opened. But that's beside the point of my question.

I was thinking more in terms of organization, where instead of having folders that are basically art/music/asset dumps, they're more organized.

There's another engine I've used that utilizes a kind of "virtual folder" system which I really like. Outside of the engine/editor, it looks like a single file with a custom extension. Inside the editor, though, it's an entire hierarchy of folders and files the engine uses. I suppose it's effectively like having an entire folder hierarchy archived into a single file, which is then opened by the engine/editor. Whatever the mechanics behind it, it's a cleaner, more organized presentation that I really like.
LukasPJ
Site Admin
Posts: 318
Joined: Tue Feb 03, 2015 7:25 pm
 
by LukasPJ » Thu Jan 26, 2017 6:00 pm
Torque3D has a virtual file system, which allows you to pack stuff into zip files and access it like it was a normal folder. It should support password-protected zips too I believe. Can't remember how it works though :P
Duion
Posts: 698
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Thu Jan 26, 2017 8:49 pm
pk3 does not seem to be a special format, I remember renaming them to .zip and I could browse them like folders or other archive files and open and close items out of it. Other games have much more complicated archive formats.
Mitovo
Posts: 70
Joined: Sun Apr 12, 2015 5:46 pm
by Mitovo » Fri Jan 27, 2017 7:42 pm
Duion wrote:pk3 does not seem to be a special format, I remember renaming them to .zip and I could browse them like folders or other archive files and open and close items out of it. Other games have much more complicated archive formats.


Indeed. PK3 is one of those "just rename it to .zip" deals. But some are actually custom formats with some kind of archiving algorithm (or something similarly implemented by some smart person) where you can't simply rename it, etc.

I'm thinking more of the latter.
6 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest