It is currently Mon Nov 20, 2017 1:04 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Is there a way of protecting assets/media?
PostPosted: Thu Nov 09, 2017 7:39 pm 
Offline
User
User
User avatar

Joined: Fri Aug 17, 2007 12:10 am
Posts: 30
Location: Worthing, UK
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: Is there a way of protecting assets/media?
PostPosted: Fri Nov 10, 2017 8:55 am 
Offline
Addict
Addict

Joined: Sun Jun 25, 2006 7:28 pm
Posts: 1258
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Is there a way of protecting assets/media?
PostPosted: Fri Nov 10, 2017 10:44 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5686
Location: Wales, UK
Well, there is the DataSection of course - numerous code examples on the forum using this method. See:
http://www.purebasic.com/documentation/reference/includes.html

Also the superb Bin2Data written by Thomas <ts-soft> Schulz:
http://www.purebasic.fr/english/viewtopic.php?p=374183

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: Is there a way of protecting assets/media?
PostPosted: Sat Nov 11, 2017 2:26 pm 
Offline
User
User
User avatar

Joined: Fri Aug 17, 2007 12:10 am
Posts: 30
Location: Worthing, UK
Thanks guys will have a look :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye