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 


How can this be done?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Roman012
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 25 Dec 2022
Posts: 26

PostPosted: Sat Apr 27, 2024 11:32 am    Post subject: How can this be done? Reply with quote

If I turn it off the value will remain
How can I make it so that when I turn off it is 1

[ENABLE]
//8B 87 34 03 00 00 39 87)
aobscanmodule(Jumping,xxx.exe,8bxxxxxxxxxx39xxxxxxxxxx0f9cxx48xxxxxxxx48)
alloc(newmem,$1000,Jumping)
label(code)
label(return)

newmem:
mov [rdi+00000334],#999999
code:
mov eax,[rdi+00000334]
jmp return

Jumping:
jmp newmem
nop
return:
registersymbol(Jumping)

[DISABLE]

Jumping:
db 8B 87 34 03 00 00

unregistersymbol(Jumping)
dealloc(newmem)



000750.jpg
 Description:
 Filesize:  11.59 KB
 Viewed:  946 Time(s)

000750.jpg


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 460

Joined: 09 May 2003
Posts: 25363
Location: The netherlands

PostPosted: Sun Apr 28, 2024 12:22 am    Post subject: Reply with quote

Roman012 wrote:
If I turn it off the value will remain
How can I make it so that when I turn off it is 1

[ENABLE]
//8B 87 34 03 00 00 39 87)
aobscanmodule(Jumping,xxx.exe,8bxxxxxxxxxx39xxxxxxxxxx0f9cxx48xxxxxxxx48)
alloc(newmem,$1000,Jumping)
label(code)
label(return)

newmem:
mov [rdi+00000334],#999999
code:
mov eax,[rdi+00000334]
jmp return

Jumping:
jmp newmem
nop
return:
registersymbol(Jumping)

[DISABLE]

Jumping:
db 8B 87 34 03 00 00

unregistersymbol(Jumping)
dealloc(newmem)



Code:

alloc(lastbase,8)
...

mov [lastbase],rdi
...

[disable]
...
[lastbase]+334:
dd 1
...

dealloc(lastbase)


_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Roman012
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 25 Dec 2022
Posts: 26

PostPosted: Sun Apr 28, 2024 1:47 am    Post subject: Reply with quote

Code:

alloc(lastbase,8)
...

mov [lastbase],rdi
...

[disable]
...
[lastbase]+334:
dd 1
...

dealloc(lastbase)



I'm doing something wrong, it gives me an error



144042.jpg
 Description:
 Filesize:  32.05 KB
 Viewed:  859 Time(s)

144042.jpg


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 460

Joined: 09 May 2003
Posts: 25363
Location: The netherlands

PostPosted: Sun Apr 28, 2024 8:04 am    Post subject: Reply with quote

you're on 7.5 ?

anyhow, add a registerSymbol(lastbase) to the enable part

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
ParkourPenguin
I post too much
Reputation: 143

Joined: 06 Jul 2014
Posts: 4382

PostPosted: Sun Apr 28, 2024 11:45 am    Post subject: Reply with quote

This works:
Code:
[ENABLE]
alloc(foo,8)

[DISABLE]
[foo]:

dealloc(foo)

This doesn't work (syntax check):
Code:
[ENABLE]
alloc(foo,8)

[DISABLE]
[foo]+8:

dealloc(foo)
"Error in line 5 ([foo]+8:) :This address specifier is not valid"
CE 7.5

Same issue as here maybe:
https://forum.cheatengine.org/viewtopic.php?p=5789144#5789144

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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