Results 1 to 11 of 11

Thread: Hide Bitmaps from users

  1. #1

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339

    Hide Bitmaps from users

    How would one go about keeping the bitmaps for your game as your own.
    Is there a way to hide them easily without much code implimentation?
    Any complex ways?
    Any solutions?
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

  2. #2
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Hide Bitmaps from users

    Have you heard of Pak files? Professional games use this now. In this program called Pak Explorer you can create your own pak files as well as open them. And I believe you can use different compression techniques other than .zip's to really prevent people from accessig your data files. Although other people who have Pak explorer have a chance on accessing them.

    Also there is code on the internet to be able to load the bitmaps or any other data from your Pak files.
    Attached Files Attached Files

  3. #3
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: Hide Bitmaps from users

    If you don't want anyone to let anyone view them then best way is to make your own format up. If you want something working wuick then PAK files would be good enouhg but making your own format is more secure. I made one a while back that takes bitmaps and puts them all in one file and then runs a compression algo on them which when viewed it just looks like static.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  4. #4
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Hide Bitmaps from users

    Just remember that patching and upgrading software (this goes for shelf games) gets kind of slow if you have to update the whole resource file just to add some new textures and models. So if you make sutch a format, it should be pretty dynamicaly.


    ØØ

  5. #5

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339

    Re: Hide Bitmaps from users

    *.pak files??? that begins to bring me back to Doom.Wad, DukeNukem3D.grp, Quake.pak files....Those where the common formats...not anymore, there are billions now. I am a fan of Blizzard MpQ file structure, at least for Starcraft it provided nice ways to hack.

    Anyway I would enjoy my own file format...Problem is, I need to end up with a bmp and I have no idea how to 'make a file format' or run compression on a file.

    I don't even exactly know wut compression does, I believe it finds and marks any instances of like data, then removes the data and replaces it with a symbol. A symbol which relates to the data which it removed...

    Any assistance on this subject?
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

  6. #6
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Hide Bitmaps from users

    There is millions of diffrent ways to compress a file. I think that ZIP files relies in Huffaman codes. You can start by googleing on that.

  7. #7

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339

    Re: Hide Bitmaps from users

    Quote Originally Posted by NoteMe
    There is millions of diffrent ways to compress a file. I think that ZIP files relies in Huffaman codes. You can start by googleing on that.
    I checked google for Huffaman codes and it found 3 pages of nothing related.
    I search for compression algrythms and found nothing I could readily use, seems like a more indepth time consuming search is in need.

    I came to one easy conclusion.

    First I must know, I got a 32bit bitmap...Is that still a 256 colors picture? Or is it (255x255x255)

    My plan is to use GetBitmapBit and turn each picture in an Bit array.
    Stream the values into a textfile in binary mode.
    Encrpty the file by any means.

    Then on loading
    Unencrypt the binary file, stream its values back into a byte array and use SetBitmapBit to restore the bitmap.

    Will it work???
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

  8. #8
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Hide Bitmaps from users

    I did a search and I got 116000 hits, and the first one was pretty relevant...


    http://www.howtodothings.com/showart...sp?article=313

  9. #9
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: Hide Bitmaps from users

    There is also an API for compressing which is what i used, if you want I'll check what it was....I think you needed a small dll too but its on most windows machines.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  10. #10

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339

    Re: Hide Bitmaps from users

    lets see this api.
    thanks
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

  11. #11
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: Hide Bitmaps from users

    I've attached a zip file containing the dll & a class which does the compression using the dll.
    Attached Files Attached Files
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

Posting Permissions

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



Click Here to Expand Forum to Full Width