Encrypting and Storing resource. (with Any method)

This forum is currently in read-only mode.
From the Asset Store
Sync animations, animation frames, mirror state, sounds and anything else using these methods.
  • Hi everyone

    I want to encrypt and store bunch of resources in one file

    And read them again in game.

    So i searched the forum and found out that crc32 and md5

    will do the work.

    I also checked out samples, but i can't figure out how this

    works so i can't do the thing.

    I'd be grateful if you guys help me

    ( it would be very appreciating if you make a .cap file

    For me. :-) )

    [Edit : Any method of storing is okay. I just want to know as many way as I can, So I can think and decide the best solution. And also maybe I could collaborate multiple stuff to work.]

    EX )

    A.png, B.png, C.jpg . . . . . -> Graphics.pak

    A.ogg, B.wav, C.ogg . . . . . -> Sfx.pak

    A.mp3, B.wma, C.mod . . . . . -> Bgm.pak

    Ps ) I also want to get this packed files can

    Be modified (add / delete / change assets#

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You could use password protected zip files and use python to access the files. The only problem is in order to access a file it would have to be extracted somewhere before it is accessible by your game.

  • using *.zip files are too risky and also packing and unpacking

    would be a big bother. Could you tell me another good way?

    The best way i thought is to store all the stuff into a hash table,

    but... I don't think it can store bitmap files as well.

    (I succeed on saving some data files with hash table's save to file function,

    So I thought It might also work with resource files.)

  • You could rename the *.zip to *.pak, and wouldn't a password protected zip negate the risk?

    You could always add the resource files to the "files" folder of your project and use the resource plugin to access them. That way you would have only one big exe instead of many files.

  • Alright. It seems.I have no choice then.

    Last question ; How should I use that zipfile python lib

    You linked on your first reply?

  • Here is an example:

    http://dl.dropbox.com/u/5426011/examples13/zipresource.zip

    Python can extract password protected files but it needs another library to add password protected files, so I made res.zip with 7-zip to add the password (your unzipping program of choice should work as well).

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)