Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: Making a Package for the game? [sounds,graphics]

  1. #1

    Making a Package for the game? [sounds,graphics]

    Hello, im using sdl to my game it looks vry nine, fast, simple.

    But i have a some resources, and its does not look nice to distribute is separated files, its there a way to make a package with all them ?

    *Looks harder for me because PSDL_Surface only loadfiles from disk, and Samples and Streams of BASS too


    PS: sorry my english
    From brazil (:

    Pascal pownz!

  2. #2

    Making a Package for the game? [sounds,graphics]

    There is a way using SDL RWops (a very powerful and slightly underdocumented feature of SDL) it works for SDL, SDL_Image and SDL Mixer, the only issue you're going to have I think, is with BASS...

    but that's only because I've never used BASS, perhaps it has a way of loading from a resource already built in.

    But it's quite possible to load SDL Resources from a Zip file... or any other type of file for that matter.

    There are examples on the net of how to do it, some people on here have done it too. I'm not sure if the current version of JEDI-SDL has examples of WRops, perhaps it should.

  3. #3

    Making a Package for the game? [sounds,graphics]

    Bass can load everything from memory. No problem there. You just need to load it to a stream and pass that stream's memory pointer. Bass has a pretty inclusive help file, you might find it helpful to read about the load functions.

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

    Making a Package for the game? [sounds,graphics]

    Quote Originally Posted by jasonf
    There are examples on the net of how to do it, some people on here have done it too. I'm not sure if the current version of JEDI-SDL has examples of WRops, perhaps it should.
    Perhaps indeed.

    I'll see what Dom has to say about it sometime after he's back from vacation. I'm likely to look into this myself as a matter of fact.

    Though if I understand you correctly; you are talking about the method of compiling a large WAD-type file, loading it into memory and then instead of loading from file, you load from memory stream, yes?

    I, myself, would not be so worried about the music files though. It's common practice to leave music open. I'd only bother if you really want to make extracting the music harder. But if you have MOD-type music it could be a simple matter of renaming the files to throw them off, then again same with MP3 or OGG, but they'll obviously play without incident so less of a trick that way.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  5. #5

    Making a Package for the game? [sounds,graphics]

    In Dom's Absence, I will answer on behaf of JEDI-SDL

    The JEDI-SDL suite contains a sdlstreams.pas unit which wraps up the TStream and SDL_RWops.

    Basically you can use the functions in that unit to create the SDL_RWops from a TStream, TMemoryStream, TFileStream, TResourceStream etc and pass that to the appropriate SDL_Load function.

    Personally I have written a system which will allow you to load resources from a compressed archive and load them directly into SDL. e.g use IMG_LoadRW to load the resource from the compressed archive file.

    Unfortunately it's an integral part of my InfinitEngine which is still in development. sorry
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  6. #6

    Making a Package for the game? [sounds,graphics]

    Thanks for all the replies, i will take a look at both documentations.

    If anyone have a final solution for this please share withus
    From brazil (:

    Pascal pownz!

  7. #7

    Making a Package for the game? [sounds,graphics]

    Hi guys, I had a few minutes to spare, got bored sitting outside in the sun and jumping into the pool .

    As Dean says sdlstreams.pas ( in the SDL sub dir ) is a good place to start looking. I thought there was an example somewhere of of how to use it with zip archives, but I´m obviously mistaken and can´t double check it until I get back this Sunday.

    I just found this, which might get you started.
    <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 =-

  8. #8

    Making a Package for the game? [sounds,graphics]

    I have done it ;]

    Thx for all!
    From brazil (:

    Pascal pownz!

  9. #9

    Making a Package for the game? [sounds,graphics]

    Quote Originally Posted by arthurprs
    I have done it ;]

    Thx for all!
    unfortunaly i don't found a unit for unziping zip with password =(

    someone have ?
    From brazil (:

    Pascal pownz!

  10. #10

Page 1 of 4 123 ... 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
  •