Hi what solutions are there to pack up all your graphics/audio data into a single archive file? To protect a bit from casual hacking/copying.
I'm not sure what would be good to use with Pascal...
:?
Hi what solutions are there to pack up all your graphics/audio data into a single archive file? To protect a bit from casual hacking/copying.
I'm not sure what would be good to use with Pascal...
:?
I use zipfiles personally. You can get numerous headers and units for that. I'd reccommend ZipForge and their Personal License.
Personally, I use Abbrevia.
It was originally developed by TurboPower, now its open source.
:: AthenaOfDelphi :: My Blog :: My Software ::
I used ZLib as its cross platform and easy to use. You can also mess around with the header so it won’t be readable.
Or in case you have some free time without having any TV show to watch or a good computer game you can always create your own file format.. (and I’ve been there and done that :roll: )
[size=9px]BEGIN GEEK CODE BLOCK
<br />d s-- : a24 GB GCS GTW GE C++ P L+ W++ N+ K- w++++ M- PS+ PE+ Y- t+ 5+++ X+ R*
<br />tv b+ DI++ D+ e++ h+ G-
<br />END GEEK CODE BLOCK[/size]
<br />Create your own GeekCode block at: <a href="">...</a>
Harry Hunt wrote a nice article on this http://www.pascalgamedevelopment.com...pic.php?t=1466
but unfortunatly it doesn;t exist on his site anymore
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
i just write a header containing length, filename and offset for all the files which i then stuff into the same file. no compression going on though i use a stream based approach and could easily change the memorystreams to be zlib-streams
Peregrinus, expectavi pedes meos in cymbalis
Nullus norvegicorum sole urinat
Yeah, I used to play around with his XCESS tools back then. He did some neat stuff. Too bad he wasn't able to keep up enough to have a complete product. Everything was VERY polished. Probablably one of the most polished Pascal-type library suites/packages I've seen to date.
Whatever happened to Kai? I haven't seen him around after Turbo slowed to a crawl. :?
So does anyone know for sure if Abbrevia can be used with FPC?
The system we use in our games at Krome is quite complex, but blindingly fast, which is important for console games running from DVD.
The data archive contains the files in access order. That is, the files are sorted to make sure the seek time is kept to an absolute minimum. If the game loads fileA, fileC then fileB, then that is the order in which they exist in the archive. We also have what we call binary packages. If a level loads fileA, fileB and fileC, then those files are grouped together into a binary package. This binary package is loaded into memory in one file read and then handed out to the bits of the game that asked for them. If a different loads fileD, fileE and fileB, then it has its own binary package in which fileB is duplicated so that we can still load the entire package in one file read into memory. There are other features, such as per-file compression, CRC checks, CRC filenames (access a file by the CRC of its filename instead of by the filename. Finding a file in the archive is then just a matter of comparing numbers instead of comparing strings), file overrides (a second archive can override files contained in the first archive), and much more.
Yeah, it's a great solution if you have a it on DVD, but by copying it to the harddrive it's consuming space.
But i'm wondering what's best for PC: the unreal way (for textuers, sounds etc. seperat packages) or the quake way (1 package that contains everything).
NecroSOFT - End of line -
Bookmarks