LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-11-2003, 07:17 AM   #1
usp8riot
LQ Newbie
 
Registered: Apr 2003
Location: Arkansas
Distribution: Mandrake 9.1 & Redhat 9
Posts: 20

Rep: Reputation: 0
Modifying Game Codes?


Does anyone here modify or have modified their Windows games from their Linux partitions or hacking them, so to speak? I have a few games, deer hunter 5 for example, I'd like to find some cheats for because of trouble getting past some levels and I know you can modify some Windows programs from Linux because Linux sees no copyrights, only compiled code, am I right? Or is it probably just the programs Linux uses which actually let you see the code. Why don't we actually see the code to programs when we,well me, use Windows. I've downloaded almost every editing program I can find for Windows and they wouldn't ever let me see the code, just a bunch of hex garble, which is greek to me. And most programs have some files that don't open with any default program. I installed every editing/copiling program Linux came with but I don't know which program opens or can edit what types of files or if they can open/edit it. Could someone help clarify this for me because I'm lost as a goose when it comes to programming. Thanks.
 
Old 05-11-2003, 07:46 AM   #2
zimba
LQ Newbie
 
Registered: Mar 2003
Location: Geneva, CH
Distribution: MDK9.0,SME,IPCop,OpenBSD
Posts: 10

Rep: Reputation: 0
Unfortunately you cannot see the original source-code since it has been compilated.
This means that the souce-code has been transformed from some unified text syntax to binary data that your CPU understands.

So conclusion, you will allways get the hex garbage, and that's why game-hacking is a sport.. else it would be too easy :-P

Now some tips :
- Hex-editing of files can be done in windows, it causes no problem. I use Ultraedit
- You can also use a debugger. This is a low-level programm who can interrupt at all time to get the status of the system (memeory editing). I use Softice.
- http://fly.to/mtc : some tools to make trainers easily

Have FUN
 
Old 05-11-2003, 08:40 AM   #3
usp8riot
LQ Newbie
 
Registered: Apr 2003
Location: Arkansas
Distribution: Mandrake 9.1 & Redhat 9
Posts: 20

Original Poster
Rep: Reputation: 0
Alright. Thanks for the clarification. Never thought debuggers were of much use or exactly what they were but now I see. They're kindof like a program I use, Gamewiz 32 that edits the game in real time, the hex code. I've downloaded Ultraedit and programs like it but could never make use of any of the hex code. So what can I do to make use of hex code? Just do a search for hex code and learn how to translate it in my head or is there more to it? I'd really like to learn. So if I wanted to edit games would I be better off learning C++ language or other assembly language or just hex code? I know I don't sound like the brightest banana in the bunch but I've always played them, just recently I wanted to learn how they get programmed.
 
Old 05-19-2003, 04:16 AM   #4
zimba
LQ Newbie
 
Registered: Mar 2003
Location: Geneva, CH
Distribution: MDK9.0,SME,IPCop,OpenBSD
Posts: 10

Rep: Reputation: 0
You should look at cracking tutorials.

Basically, when you programm in C for example, the compilator translates it in ASM and the in binary.

Binary (hexcode) is the language the machine understands.
ASM (assembler) is the lowest level programmation you can understand ;-P

When you run a programm, he first loads it into the memory.
In a debug you look for something in the memory and the you can change it in the executable (mostly, like if the programm is not compressed)
Try to learn ASM first.

If you're just looking for a value, like lifepoints, in a savegame, for example 16 is 0F, so use UltraEdit to find it in your file and try to modify it, try to understand the file-structure looking for patterns and strings.
On Intel machines the processor stores the numbers inversed.
For example if you're looking for a number bigger than 255 (FF) like.. say 43981 -> ABCD, the number is stored : CD AB in the file.

Good Luck ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
will you play windows game or linux native game pleasehelpme Linux - Newbie 16 04-29-2007 08:58 PM
Are the hex codes for colors in a jpg the same codes as used in html? abefroman Linux - Security 3 07-31-2005 03:21 PM
2D/3D Game EASY Game Development Software tedjordan Linux - Games 1 03-22-2005 06:40 AM
game not receving game list from master server Rnastyracer Linux - Games 2 04-02-2004 10:20 PM
Game Genie Codes in TuxNES Bigun Linux - General 4 05-24-2003 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration