Hidden game media

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
younes_kh
Posts: 13
Joined: Wed Jun 24, 2009 8:50 am
Location: Palestine-gaza will be free

Hidden game media

Post by younes_kh »

Hello
I am working in my first game and

I want to ask if there is way to completely prevent the end user form played or change the game images and textures .

thanks
:idea: :idea: :idea: :idea:
Brainsaw
Posts: 1177
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Post by Brainsaw »

In simple words: no.

You can make it harder by using a compressed file, but as long as your program can access the data the user also can. I wrote a cheat program for Descent ][ myself long time ago, where the data of the savegames was modified, and this data lies around in a non-documented (at least to the player) binary file, so it took some time to find the right spots in the file. It's the same with all other game media: is someone really wants to modfiy it and has some knowledge he will find a way to do so.
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
olivehehe_03
Posts: 157
Joined: Tue Mar 20, 2007 8:30 am

Post by olivehehe_03 »

That's true, no matter what you do, someone who really wants to is gonna get to your files. The only thing you can do is try to make it more difficult, or at least make it so the average user can't get to them. Once I get around to it for my own project, I intend to encrypt my files or at least make them a little less legible (at the moment you can see them perfectly in any internet browser) and possibly pack them all up in a .dat or .pak or .pk3 file or something that irrlicht will read
Tell me what you cherish most. Give me the pleasure of taking it away.
Jookia
Posts: 170
Joined: Wed Nov 19, 2008 1:11 am

Post by Jookia »

I'd say the biggest problem would be the lack of reading passworded zip files.
DeM0nFiRe
Posts: 117
Joined: Thu Oct 16, 2008 11:59 pm

Post by DeM0nFiRe »

You could always extend Irrlicht to read a better archive format. I am working on having it read a CAB file with a 576-bit Blowfish encryption algorithm.
CuteAlien
Admin
Posts: 9716
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

It's correct that you can't really prevent it in PC games (you can prevent it if you control the hardware like on consoles - at least until those protections are cracked which usually happens after the first weekend).

Still - I also had to "protect" some files recently due to a stupid license forcing me to do so. I used the new IFileArchive interface for that and basically wrote an own archive which contains a single zip file which is on openFile completely decompressed into a memory read file. That certainly sucks, but as long as I don't need it too much it's a solution that works.

In general I recommend just not protecting game resources. People starting to mod your game is usually about the best thing that can happen to you. So invest that time rather in making it easier for people to mod your game :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

DeM0nFiRe wrote:You could always extend Irrlicht to read a better archive format. I am working on having it read a CAB file with a 576-bit Blowfish encryption algorithm.
Lol what a waste of ressources...
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
d3jake
Posts: 198
Joined: Sat Mar 22, 2008 7:49 pm
Location: United States of America

Post by d3jake »

Brainsaw wrote: I wrote a cheat program for Descent ][ myself long time ago, where the data of the savegames was modified, and this data lies around in a non-documented (at least to the player) binary file,
A Descent2 player! Yeah! I'm involved in a project to remake a Descent-like game so something like this will have to be faced eventually.... If you're interested in helping out, lemme know.


It would be interesting to be able to hide data, and really handy in some cases.
The Open Descent Foundation is always looking for programmers! http://www.odf-online.org
"I'll find out if what I deleted was vital here shortly..." -d3jake
younes_kh
Posts: 13
Joined: Wed Jun 24, 2009 8:50 am
Location: Palestine-gaza will be free

Post by younes_kh »

Thank you for your answers
placing Zip file in Zip file with two password I test it and it succeed
I thing it good method and hard


:wink:
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

It will take someone with a debugger about 5 minutes to figure that out. You have to store tha passwords somewhere, and using and using a debugger, they are likely to have no problem finding them.

Travis
Ulf
Posts: 281
Joined: Mon Jun 15, 2009 8:53 am
Location: Australia

Post by Ulf »

In general I recommend just not protecting game resources. People starting to mod your game is usually about the best thing that can happen to you. So invest that time rather in making it easier for people to mod your game :-)
So True

Come on people, do you really think your stuff is so great that anyone actually "capable" would steal your game resources and use it in their own game!
If they have to steal resources then I'm pretty sure they will never get further than stealing them and rendering them in their own little bubble!
POP! the bubble burst!
I can hear birds chirping
:twisted:

I live in the Eye of Insanity.
Post Reply