AGDI Birthday Competition!!!
-
- Knight Status
- Posts: 183
- Joined: Mon Aug 02, 2004 12:12 pm
Complicated? If you mean it's clumsy to enter/edit strings in the fashion I described above, I used a simple Quick Basic program that I wrote in about 30 minutes to convert an ordinary string into that series of Chr$ functions. Also, it would probably best to only obscure those strings that contain text that shouldn't be viewed when the program is finished. It might also be a good idea to include comments that tell what the string contains. Also, to me at least, there's nothing complicated about turning an executable into a self extracting compressed executable using a utility for that purpose.
Actually, in AGS the global messages and room messages are automatically encrypted, whereas strings used in the scripts are not. Thus, that april fools message could have been put in a global message to prevent it being so easy to see.
But still, maybe I should modify AGS to encrypt all strings in the game :P
But still, maybe I should modify AGS to encrypt all strings in the game :P
Actually, in retro-spect, it would have been best to simply make the displayed text a sprite that gets displayed. That would have made it pretty much impossible to retrieve it by any means.
By "cheating", I think Adeyke referred to a possible motivation to start looking into the file to begin with. There's two main motivations: suspicion or just trying to see if it's possible to figure out the supposed code without needing to win the slot game for it. Ironically, adventure games often encourage these kinds of practices as means of solving puzzles. And then they say FPS's give the bad example to kids.He means people who aren't fooled, because they "cheat" by looking at the text stored in the file, thus seeing that it's not possible without having to try.
-
- Knight Status
- Posts: 220
- Joined: Wed Jan 12, 2005 1:40 am
- Location: Jax Beach, Florida
- Contact:
-
- Knight Status
- Posts: 220
- Joined: Wed Jan 12, 2005 1:40 am
- Location: Jax Beach, Florida
- Contact:
-
- Peasant Status
- Posts: 19
- Joined: Fri Apr 01, 2005 1:56 am
-
- Peasant Status
- Posts: 19
- Joined: Fri Apr 01, 2005 1:56 am
Because that's exactly what triggered the message (and the code) showing up in this case. Of course, I initially tried overriding the address containing the amount of dinars. But changing it to 15,000 didn't do anything. Changing it to higher than 15,000 just crashed the program with an index out of bounds exception. Then I tried changing it to 14,999 and gambling with 1 dinar each time, which failed every time, of course.
I then thought maybe there was something in the program checking the amount of rolls (since it shouldn't really be possible to get to 15,000 in 2 rolls). So I changed the amount of spins to a really really high number (10,000+ or so) and this actually made the message and code (which was 04 01 05 by the way) appear.
What I'm saying is, character "encryption" and/or hiding using sprites (as suggested on this thread) never prevents people from doing evil stuff. When you go down to a low enough level, all a computer is is a stupid entity storing numbers in little frames. It's a piece of cake to get to this information and change it.
I then thought maybe there was something in the program checking the amount of rolls (since it shouldn't really be possible to get to 15,000 in 2 rolls). So I changed the amount of spins to a really really high number (10,000+ or so) and this actually made the message and code (which was 04 01 05 by the way) appear.
What I'm saying is, character "encryption" and/or hiding using sprites (as suggested on this thread) never prevents people from doing evil stuff. When you go down to a low enough level, all a computer is is a stupid entity storing numbers in little frames. It's a piece of cake to get to this information and change it.
Exactly, there's a certain amount of reasonable effort that you go to with these things.
Perhaps 30% of people playing the game would be clever enough to load the exe into notepad or a hex editor to read the text, so that's probably worth protecting against.
However, I would guess that about 0.001% of people playing the game would have the skills and know-how to load it up into a debugger and find the right memory address for the data that they were after.
In the end, if someone with the skills is determined to hack software, it's impossible to stop them. Firms spend millions on copy-protecting their software, yet it always gets cracked.
Perhaps 30% of people playing the game would be clever enough to load the exe into notepad or a hex editor to read the text, so that's probably worth protecting against.
However, I would guess that about 0.001% of people playing the game would have the skills and know-how to load it up into a debugger and find the right memory address for the data that they were after.
In the end, if someone with the skills is determined to hack software, it's impossible to stop them. Firms spend millions on copy-protecting their software, yet it always gets cracked.
-
- Honorary AGD
- Posts: 5378
- Joined: Fri Sep 13, 2002 1:19 am
- Location: US of A
- Contact:
-
- Royal Vizier Status
- Posts: 2301
- Joined: Mon Sep 08, 2003 3:37 am
- Location: Central New York
- Contact: