Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Bulk Data File

  1. #1

    Bulk Data File

    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...

    :?

  2. #2

    Bulk Data File

    I use zipfiles personally. You can get numerous headers and units for that. I'd reccommend ZipForge and their Personal License.

  3. #3
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    Bulk Data File

    Personally, I use Abbrevia.

    It was originally developed by TurboPower, now its open source.
    :: AthenaOfDelphi :: My Blog :: My Software ::

  4. #4

    Bulk Data File

    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>

  5. #5

    Bulk Data File

    Abbrevia is also cross-platform if I'm not mistaken at last Delphi/Kylix and could probably be ported to FreePascal as well.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  6. #6
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Bulk Data File

    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)

  7. #7

    Bulk Data File

    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

  8. #8
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Bulk Data File

    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?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  9. #9

    Bulk Data File

    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.

  10. #10
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    Bulk Data File

    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 -

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •