Pack some data (PNG & WAV) into one file?

Hi,

in a game i need several PNG- and WAV-files.

I’d like to pack these data together in one single file
that i can load from the game. That file should contain
the configurable “skin” of the game.

  • I don’t want to unzip the skinfile to create an
    inbetween file on disk and then load that file, i
    want the data directly from the skinfile.

  • The skinfile should be small.

  • It would be great if i could use SDL_Perl to create the skinfile.

Does anybody know how to pack the data best?

Is something like this available from some other project?

Best regards,
Torsten.

First, the SDL list is not the place to ask such questions since they are
off topic. (not trying to be harsh, just pointing out.).
Second, this is probably what you are looking for:
http://www.gamedev.net/reference/programming/features/pak/

I would suggest looking through gamedev.net for other game developmen
related questions. Although there are a lot of new guys over there, the
vets are pretty knowledgable.On 4/13/06, Torsten Mohr wrote:

Hi,

in a game i need several PNG- and WAV-files.

I’d like to pack these data together in one single file
that i can load from the game. That file should contain
the configurable “skin” of the game.

  • I don’t want to unzip the skinfile to create an
    inbetween file on disk and then load that file, i
    want the data directly from the skinfile.

  • The skinfile should be small.

  • It would be great if i could use SDL_Perl to create the skinfile.

Does anybody know how to pack the data best?

Is something like this available from some other project?

Best regards,
Torsten.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Richard J Hancock
RJH Computers
http://www.rjhcomputers.com

Hey something cool is that zlib (which compresses gzip style) has functions
like… gzopen gzclose gzread gzwrite which are 100% the same syntax and
usage as fopen, fclose, fread and fwrite.

You could easily “roll your own” using that, or if you want to not roll your
own, use physfs! Its basically a library meant to do exactly what it is you
are trying to do!

http://icculus.org/physfs/> ----- Original Message -----

From: sdl-bounces+atrix2=cox.net@libsdl.org
[mailto:sdl-bounces+atrix2=cox.net at libsdl.org] On Behalf Of Torsten Mohr
Sent: Thursday, April 13, 2006 8:25 PM
To: sdl at libsdl.org
Subject: [SDL] pack some data (PNG & WAV) into one file?

Hi,

in a game i need several PNG- and WAV-files.

I’d like to pack these data together in one single file
that i can load from the game. That file should contain
the configurable “skin” of the game.

  • I don’t want to unzip the skinfile to create an
    inbetween file on disk and then load that file, i
    want the data directly from the skinfile.

  • The skinfile should be small.

  • It would be great if i could use SDL_Perl to create the skinfile.

Does anybody know how to pack the data best?

Is something like this available from some other project?

Best regards,
Torsten.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Another great site for general game programming questions of any kind is
::drum roll:: gameprogrammer.com

Several people from this list are there as well (:_____

From: sdl-bounces+atrix2=cox.net@libsdl.org
[mailto:sdl-bounces+atrix2=cox.net at libsdl.org] On Behalf Of Richard Hancock
Sent: Thursday, April 13, 2006 9:52 PM
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: Re: [SDL] pack some data (PNG & WAV) into one file?

First, the SDL list is not the place to ask such questions since they are
off topic. (not trying to be harsh, just pointing out.).
Second, this is probably what you are looking for:
http://www.gamedev.net/reference/programming/features/pak/

I would suggest looking through gamedev.net for other game developmen
related questions. Although there are a lot of new guys over there, the
vets are pretty knowledgable.

On 4/13/06, Torsten Mohr wrote:

Hi,

in a game i need several PNG- and WAV-files.

I’d like to pack these data together in one single file
that i can load from the game. That file should contain
the configurable “skin” of the game.

  • I don’t want to unzip the skinfile to create an
    inbetween file on disk and then load that file, i
    want the data directly from the skinfile.

  • The skinfile should be small.

  • It would be great if i could use SDL_Perl to create the skinfile.

Does anybody know how to pack the data best?

Is something like this available from some other project?

Best regards,
Torsten.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Richard J Hancock
RJH Computers
http://www.rjhcomputers.com

Looks like a good site (havn’t heard of it till now), especially if it has
info on the PS2 VPU. I would also recommend the physfs for a faster
solution to your situation.On 4/13/06, Alan Wolfe wrote:

Another great site for general game programming questions of any kind is
::drum roll:: gameprogrammer.com

Several people from this list are there as well (:


From: sdl-bounces+atrix2=cox.net at libsdl.org [mailto:
sdl-bounces+atrix2=cox.net at libsdl.org] *On Behalf Of *Richard Hancock
Sent: Thursday, April 13, 2006 9:52 PM
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: Re: [SDL] pack some data (PNG & WAV) into one file?

First, the SDL list is not the place to ask such questions since they are
off topic. (not trying to be harsh, just pointing out.).
Second, this is probably what you are looking for:
http://www.gamedev.net/reference/programming/features/pak/

I would suggest looking through gamedev.net for other game developmen
related questions. Although there are a lot of new guys over there, the
vets are pretty knowledgable.

On 4/13/06, Torsten Mohr wrote:

Hi,

in a game i need several PNG- and WAV-files.

I’d like to pack these data together in one single file
that i can load from the game. That file should contain
the configurable “skin” of the game.

  • I don’t want to unzip the skinfile to create an
    inbetween file on disk and then load that file, i
    want the data directly from the skinfile.

  • The skinfile should be small.

  • It would be great if i could use SDL_Perl to create the skinfile.

Does anybody know how to pack the data best?

Is something like this available from some other project?

Best regards,
Torsten.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Richard J Hancock
RJH Computers
http://www.rjhcomputers.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Richard J Hancock
RJH Computers
http://www.rjhcomputers.com