[gameprogrammer] RES: Re: Extending and Configuring my game

  • From: "Lilith Calbridge" <lilith@xxxxxxxxx>
  • To: <gameprogrammer@xxxxxxxxxxxxx>
  • Date: Fri, 09 Feb 2007 09:44:04 -0600

In a program I wrote a long time ago I would actually recompile a copy
with the individual's name in it if they paid the licensing fee. 
However, I would encrypt it against quick recognition by performing an
XOR on each byte.  But I would start with a specific xor mask byte and
then add a fixed value to the mask for each successive character in the
original string.  Not that anyone really wanted to distribute my
program.  :-)

Lilith

>>> On 2/8/2007 at 8:35 PM, "Edilson Vasconcelos de Melo Junior"
<dirso@xxxxxxxxxxxxxxxxxx> wrote:
> Hi,
> 
> I just don't want that some average boy start unlock the game's
rewards
> (bonus tracks and/or car body parts). The byte xor looks like a good
> solution to my problem. 
> 
> Thanks a lot!
> Dirso
> 
> -----Mensagem original-----
> De: gameprogrammer-bounce@xxxxxxxxxxxxx 
> [mailto:gameprogrammer-bounce@xxxxxxxxxxxxx] Em nome de Alan Wolfe
> Enviada em: quinta-feira, 8 de fevereiro de 2007 21:18
> Para: gameprogrammer@xxxxxxxxxxxxx 
> Assunto: [gameprogrammer] Re: Extending and Configuring my game
> 
> you could...
> 
> *use a proprietary binary format and hope they don't crack it
> 
> *encrypt the .ini file and hope they don't look through your source
to
> figure out how to unencrypt it
> 
> *hide it away in a .wad file or something similar
> 
> *hard code the data into your executable and hope they don't hex edit
your
> game
> 
> It all depends on how important it is to you that they can't cheat.
> 
> If you just don't want the average player to be able to easily edit
> your game, you could do something like add a constant to every byte
in
> the file, or xor it against a constant.
> 
> if you use either encryption method (not very secure, but effective
> against 99% of the people atleast) , you can undo "addition
> encryption" by subtraction and you can undo "xor encryption" by
doing
> the xor again.
> 
> in C++ the bitwise xor operator is the carrot (carret?) ie: ^
> 
> hope that helps (:
> 
> 
> On 2/8/07, Edilson Vasconcelos de Melo Junior
<dirso@xxxxxxxxxxxxxxxxxx>
> wrote:
>>
>>
>>
>> Hi,
>>
>>
>>
>> I'm working on a racing game and the racing tracks, cars and car
updates
>> (like engine, suspensions, NOS) could easily be read from a .ini
file. My
>> problems is if I use .ini files, the player could edit those files
and
> then
>> cheat on my game. What could I use for that?
>>
>>
>>
>> Thanks a lot,
>>
>> Dirso
>>
>>
>>
>>
>> --
>> No virus found in this outgoing message.
>> Checked by AVG Free Edition.
>> Version: 7.5.432 / Virus Database: 268.17.28/672 - Release Date:
6/2/2007
>> 10:22
>>
> 
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html 
> 
> 

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: