Advertisement

How to hide all gfx files in one large file ?

Started by June 04, 2000 11:46 AM
4 comments, last by |StarMan| 24 years, 6 months ago
Im in the near end of my game. and wounder how to hide files in larger .dat .pak files so that they cant be viewed or altered. One way is to put them in the resource pattern but then they will be inside the .exe file. Thats not a good idea since there is over 200mb of art, music & FMV. Ive looked at "pelite" but the file header is complex and I dont know how to read the right files from the pack. If there is anyone who have done anything similar please post here or send an e-mail. STR
STR
If you can modify the loading routines for your data, you could make your own file system. Make a header, some sort of directory listing and pack the files in there. Your header would contian info like version and a pointer to your directory listing, your directory listing would have the name of the file, size, and a pointer to where it is in your data file.

OneEyeLessThanNone

Hope that helps a bit.
Advertisement
I think the best way would be to code your own "filesystem". I saw some good articles on that topic on this site or at flipcode.com. Can''t remember where exactly :-)

Everything is possible ...
... at least I think so.
Found it, look right here :

http://www.gamedev.net/reference/articles/article902.asp

Everything is possible ...
... at least I think so.
Take a look at www.nukesoftware.dk

Under the NukeDX section, there's something called Nuke File Builder ...

http://www.nukesoftware.dk/files/nukedx/nukefile.zip

It's a file system library that lets you put multiple files into one resource file. It lets you specify directory structures inside that resource file, and even optionally lets you compress the files, using the zlib compression library - it's automatic, so you don't need to worry about decompressing.

There's a windows program that comes along with it that is used to build the resource file.

It's pretty sweet.

Clay

Edited by - Falagard on June 5, 2000 3:50:20 PM
Clay LarabieLead DeveloperTacendia.com
Thanx guys!!!

This information helped alot.. Im right on making a prototype engine.

Im adding your nicks in the credits list


STR
STR

This topic is closed to new replies.

Advertisement