Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VBA tips, script made.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
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

PostPosted: Mon Feb 09, 2009 12:44 pm    Post subject: VBA tips, script made. Reply with quote

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
View user's profile Send private message
Splizes
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Jun 2006
Posts: 1944
Location: Florida

PostPosted: Mon Feb 09, 2009 4:47 pm    Post subject: Reply with quote

Where is the code jumping to GodMode?
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Mon Feb 09, 2009 5:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
A418128
How do I cheat?
Reputation: 0

Joined: 25 Jan 2009
Posts: 9
Location: Fort Worth, Texas

PostPosted: Tue Feb 10, 2009 10:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Tue Feb 10, 2009 11:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites