Page 1 of 1
Is there a way of protecting assets/media?
Posted: Thu Nov 09, 2017 7:39 pm
by EdzUp
As the title says is there a way to protect your assets/media maybe encryption or loading from memory sort of thing for images, meshes, materials etc?
Re: Is there a way of protecting assets/media?
Posted: Fri Nov 10, 2017 8:55 am
by applePi
there is an old useful thread talking about this, but the answer is negative, can't find it
but i have a superficial approach and not a real solution: look example Entity.pb in the PB distribution examples it needs these files skybox.zip robot.mesh robot.skeleton clouds.jpg r2skin.jpg
my approach is to drop robot.mesh robot.skeleton clouds.jpg r2skin.jpg inside skybox.zip and then change the skybox.zip to cheat.txt or something else.
then make these changes to these lines in the Entity.pb file
;Add3DArchive(#PB_Compiler_Home + "examples/3d/Data/Textures", #PB_3DArchive_FileSystem)
;Add3DArchive(#PB_Compiler_Home + "examples/3d/Data/Models", #PB_3DArchive_FileSystem)
;Add3DArchive(#PB_Compiler_Home + "examples/3d/Data/Packs/skybox.zip", #PB_3DArchive_Zip)
Add3DArchive(#PB_Compiler_Home + "examples/3d/Data/Packs/cheat.txt", #PB_3DArchive_Zip)
you will see the example still works
you can remove all folders but refer to this innocent file somewhere, this is not a real solution but it is a kind of simple cheating
Re: Is there a way of protecting assets/media?
Posted: Fri Nov 10, 2017 10:44 am
by IdeasVacuum
Well, there is the DataSection of course - numerous code examples on the forum using this method. See:
http://www.purebasic.com/documentation/ ... ludes.html
Also the superb Bin2Data written by Thomas <ts-soft> Schulz:
http://www.purebasic.fr/english/viewtopic.php?p=374183
Re: Is there a way of protecting assets/media?
Posted: Sat Nov 11, 2017 2:26 pm
by EdzUp
Thanks guys will have a look
