Sign in to follow this  

Resources protection

This topic is 4870 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! I was always wondering how can I make game resources protected from the users? I mean - what can be done to make the editing of - for example graphic files - impossible or at least really difficult? It always seemed to me a little non-elegant to have all the data powerless against the posy players. :) Thx -------------

Share this post


Link to post
Share on other sites
[standard reply to this question]
Well the most sucessful pc games usually allow the players to change what they want. After all if Valve and iD are fine with it then who are we mere mortals to disagree? :) Besides if anyone wants to get in they will anyway.
[/standard reply to this question]

However to answer you question there are a couple of ways.

If you are making a simple game where the only resources are bitmaps its very simple to place your bitmaps as resources in your exe. Granted people can grab them using special programs but the average user won't be bothered.

If you feel more advanced than that then you can try some simple encryption, either use libraries around the internet or write your own (simple XORs and such). Ofcourse as you supply the key inside the exe so your game can unencrypt them if someone wants your graphics they will get them. Besides, decrypting large amounts of data can cause slower laoding times!

Lastly, just use custom data formats. Write plugings for your art editor and modelling package. Unless you tell someone your format people will need to reverse engineer or guess what you have to get their hands on your lovely art.

p.s. This question has been asking alot, the search button is there for a reason!!! :)

Share this post


Link to post
Share on other sites
Modding is different from someone with a litle PC knowledge snooping around, finding all your textures as .bmps and screwing them up before realising they've knackered the game! I'd obscure things so you have to know what you're doing to get to the data. Unless of course it's multiplayer in which case giving your car 400bhp extra needs to be prevented!

Share this post


Link to post
Share on other sites
Thanks guys!

Quote:
d000hg
finding all your textures as .bmps and screwing them up before realising they've knackered the game


I hate it! This sucks really hard. Then someone can give your game to someone else saying, 'Hey look, the guy who made this game is an idiot. I've changed all the sounds and textures. <stupid laugh>Hehehehhehehe ..."

Quote:
Original post by Drazgal
p.s. This question has been asking alot, the search button is there for a reason!!! :)


Ups. I didn't know it is so popular question. :)

Bye

------------------

Share this post


Link to post
Share on other sites
Mainly, you can't. If the game can use them, and the user can play the game, they can muddle with the resources. It'd be better to spend the time making your textures and things better so users won't want to change them.

Share this post


Link to post
Share on other sites
Quote:

If you are making a simple game where the only resources are bitmaps its very simple to place your bitmaps as resources in your exe. Granted people can grab them using special programs but the average user won't be bothered.

i think this is what i want! how do you do that? ( but the program size will increase :( )

Share this post


Link to post
Share on other sites
Simply add the graphics and sounds files as resources in your .exe or .dll files and use them. I am sure if you use the search button you will find some tutorials on how to perform this simple task :)

Share this post


Link to post
Share on other sites
You could also use some sort of compression library that supports encryption aswell.. Think that zlib does it. Then you have the übercoolness of a .pak file system along with encrypted data. It's not 100% safe, but I guess that atleast 99% of all computer users doesn't know how to decode the encrypted data.

Share this post


Link to post
Share on other sites

This topic is 4870 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this