| View previous topic :: View next topic |
| Author |
Message |
A418128 How do I cheat?
Reputation: 0
Joined: 25 Jan 2009 Posts: 9 Location: Fort Worth, Texas
|
Posted: Mon Feb 09, 2009 12:44 pm Post subject: VBA tips, script made. |
|
|
Did I do something wrong? It will not change values by itself...
[ENABLE]
/* Notes Made for Godmode
01 VisualBoyAdvance.exe+30A134 Offset 0016
02 VisualBoyAdvance.exe+30A134 Offset 016D
03 VisualBoyAdvance.exe+30A134 Offset 018E
04 VisualBoyAdvance.exe+30A134 Offset 0024
*/
alloc(Godmode,1024)
alloc(GM,1024)
label(Gomen)
Godmode:
push eax
mov eax,15 // making eax = 15
cmp eax,[08f613dc] // eax 15 does not equal value 35
jne Gomen // yay goto Sorry
je GM
Gomen:
inc [eax] // is this right? inc eax would increase value so I did opposet... sadly either way doesnt seem to work...
cmp eax,[08f613dc] // eax is 16? still not 35 so it starts over...
jne Gomen // start over until value above is equaled
je GM // all done ^_^
GM:
mov [08f613ce],eax // eax is 35 current max hp til next lv up
pop eax // getting rid of it?
[DISABLE]
dealloc(Godmode)
dealloc(GM)
_________________
With blood and tears I shall fly onto the heavens for I crave to fill that empty void that was my soul. |
|
| Back to top |
|
 |
Splizes Grandmaster Cheater Supreme
Reputation: 0
Joined: 21 Jun 2006 Posts: 1944 Location: Florida
|
Posted: Mon Feb 09, 2009 4:47 pm Post subject: |
|
|
| Where is the code jumping to GodMode?
|
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Mon Feb 09, 2009 5:40 pm Post subject: |
|
|
You're not replacing anything in memory, so none of your code is getting executed. it looks like what you're trying to do is set the hp value to 35, which can just be done with mov eax, 08f613ce; mov [eax], 35. But it doens't really matter because hacking an emulator is different from another program. you're attaching to the emulator which translates and executes the real game code, so you're not really attaching to the real game code. The easiest thing to do would be to just freeze the value in CE, or you could search for the variable through VBA's Search For Cheats menu.
_________________
|
|
| Back to top |
|
 |
A418128 How do I cheat?
Reputation: 0
Joined: 25 Jan 2009 Posts: 9 Location: Fort Worth, Texas
|
Posted: Tue Feb 10, 2009 10:24 pm Post subject: |
|
|
| HalfPrime wrote: | | You're not replacing anything in memory, so none of your code is getting executed. it looks like what you're trying to do is set the hp value to 35, which can just be done with mov eax, 08f613ce; mov [eax], 35. But it doens't really matter because hacking an emulator is different from another program. you're attaching to the emulator which translates and executes the real game code, so you're not really attaching to the real game code. The easiest thing to do would be to just freeze the value in CE, or you could search for the variable through VBA's Search For Cheats menu. |
So because i'm not writing to the game but to the translator it is not understanding what I am trying to do?
Oh! and so you get a better idea I am trying to make one pointer value equal the value of another pointer value. I tried just pushing and pop such as
VisualBoyAdvance.exe+30A134 Offset 0024 > This is at I wanted to copy the value from.
and I anted to place the value here... VisualBoyAdvance.exe+30A134 Offset 0016.
| SnowFox wrote: | | Where is the code jumping to GodMode? |
Your right Fox btw I forgot to make a jmp to Godmode... sighs still learning and no I'm playing with the jump feature... any recomendations as to how to add that in?
keeping original codes of everything at the moment.
Thank you both for constructive comments!
_________________
With blood and tears I shall fly onto the heavens for I crave to fill that empty void that was my soul. |
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Tue Feb 10, 2009 11:31 pm Post subject: |
|
|
Use VBA's Search For Cheats tool the same way you used CE. This will find the variable in the game's memory rather than the emulator's memory. Then you can add it to VBA's cheat list and set or freeze it.
_________________
|
|
| Back to top |
|
 |
|