Protect the game resources
BlitzMax Forums/BlitzMax Beginners Area/Protect the game resources| 
 | ||
| Hi, anybody can tell me how can i pack my game resources on a file in a way in wich it could be opened only by my game? Thank you! | 
| 
 | ||
| Use incbin. put this after strict or superstrict ifd you use them. incbin "myimage.png" Then when loading an image do the following. global myimage:timage = loadimage("incbin::myimage.png") | 
| 
 | ||
| Mmmm, thank you for the answer but i have a lot of resource files and i preffer to keep them out the exe file | 
| 
 | ||
| Molebox otherwise there is no way unless you implement it yourself (using pub.zlib + a self written AES stream | 
| 
 | ||
| This any help? http://home.arcor.de/al90/eng/rechts.htm#cruncher | 
| 
 | ||
| I dont want to pack the files with the executable, i want to packing in different files! Can i use the zlib mod for that? can i make pw protected zip files? | 
| 
 | ||
| Hi perturbatio thanks for the link, seems that the bbcruncher is a nice pack system but it doesnt have any kind of password so anyone who use it will be able to break the protection isnt it? -_- | 
| 
 | ||
| Yes, however you do get the source, so with a little knuckle grease and patience, you could implement say the blowfish algorithm from the code archives and use that in it. | 
| 
 | ||
|  Hi, anybody can tell me how can i pack my game resources on a file in a way in wich it could be opened only by my game? You can't.  Can i use the zlib mod for that? can i make pw protected zip files? No, because zlib and zip files are two distinctly different things. Besides which it is a trivial  task to break a password protected zip file. | 
| 
 | ||
| Thats exactly why I said zlib or zip for the "virtual VFS" and an AES stream to protect it securely. | 
| 
 | ||
|  I dont want to pack the files with the executable, i want to packing in different files!  Molebox again then. | 
| 
 | ||
| The license cost is too much for me :/ | 
| 
 | ||
| Encrypt them yourself (just XOR all the data with something) and then hand-roll a modified version of the file loaders in your code? | 
| 
 | ||
| What about this: Store media encrypted ? | 
| 
 | ||
| Rik, well i was seaching for an easier solution Thank you Xmicky that link seems very interesting! I was thinking on giving a try to the kelpto pack system too |