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 


Need some help fixing table.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
HiSaZuL
Expert Cheater
Reputation: 6

Joined: 09 Aug 2011
Posts: 245

PostPosted: Thu Sep 27, 2012 8:31 pm    Post subject: Need some help fixing table. Reply with quote

Trying to patch up Darksiders table. Maximum health is higher then what table is using so its somewhat irritating.
Code:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
label(enerlabel)
registersymbol(enerlabel)
aobscan(eneraob,F3 0F 11 8B 00 01 00 00 eb 15)

eneraob:
enerlabel: //00813E29:
jmp newmem
nop
nop
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [ebx+00000100],447A0000

originalcode:
//movss [ebx+00000100],xmm1

exit:
jmp returnhere

 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
enerlabel:
movss [ebx+00000100],xmm1
//Alt: db F3 0F 11 8B 00 01 00 00
unregistersymbol(enerlabel)

Basically as I said my current hp is higher then what the script is replacing it with. How the value is store in the bizzare darksiders way I'm not even sure the whole system makes no sense to me... its like playing with lifes -_-.
mov [ebx+00000100],447A0000
Is the culprit I would imagine. 447a0000 would be the value? I'm horrible at scripting. My guess its 4 byte integer considering how health decreses and increases its probably actually a float number but thats a guess so non hex value as integer would be a messy big number and I would never get the right value even if i started guessing.
I attempted to the best of my knowledge getting the... how to call it... pointer out of the script?
added
globalalloc(pEnergy,4)

pEnergy:
dd 0

tried to add my pointer save to newmem section
mov [pEnergy], eax
and well dealloc at the end but game keeps crashing so I left that idea at the door.

Anyone got any ideas how to either translate 447A0000 into float and/or what ever else.
I suppose I could use blind guessing method and change
mov [ebx+00000100],447A0000
to something like
mov [ebx+00000100],float 9000
or just guess around untill i stumble upon something but from personal experience with darksiders 2... A LOT of values are very twichy when they get out of some range
for instance in darksiders 2 defense past ~2000 would crash the game on trying to save. wrath past about 7000? or maybe it was health past 20k would also crash saving. and so on. By the looks of it both games use same engine so id rather not deal with constantly crashing the whole thing.
edit: nvm now that i thought about it... im not exactly sure how hex values are even handled... now im just confused beyond all hope.
on side note using old 447a0000 and searching for it did find address for it... so for now max is 44898000. now i just need to wait and see if hp can go even higher. fixed it wrath too tho.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Thu Sep 27, 2012 10:27 pm    Post subject: Re: Need some help fixing table. Reply with quote

HiSaZuL wrote:

Anyone got any ideas how to either translate 447A0000 into float and/or what ever else.

http://gregstoll.dyndns.org/~gregstoll/floattohex/
(first google result for "float to hex", ya'know...)
Back to top
View user's profile Send private message
HiSaZuL
Expert Cheater
Reputation: 6

Joined: 09 Aug 2011
Posts: 245

PostPosted: Thu Sep 27, 2012 10:44 pm    Post subject: Reply with quote

odd when i googled all i found is bunch of crap in doing sransition in c...java and so on and so forth not a single general converter >_<
and ty Razz
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