Resources protection

Started by
9 comments, last by sdlprorammer 19 years, 8 months ago
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 -------------
___Quote:Know where basis goes, know where rest goes.
Advertisement
[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!!! :)
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!
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

------------------
___Quote:Know where basis goes, know where rest goes.
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.
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 :( )
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 :)
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.
.. add it as recourses? do you mean to have an array of chars and initialize it with the bytes of my picture?
Nehe's Lesson 38 shows how to use resource files.

This topic is closed to new replies.

Advertisement