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 


Simple script for freezing values?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials
View previous topic :: View next topic  
Author Message
PinPoint
Expert Cheater
Reputation: 10

Joined: 07 Apr 2016
Posts: 223
Location: Scotland

PostPosted: Tue Apr 12, 2016 11:50 am    Post subject: Simple script for freezing values? Reply with quote

Ive only done minor things with the auto assembler such as nopping functions but now i am trying to set one up to change the value of and freeze a certain address. I can get it to work without the freezing but the script i have seems awful long.

Code:
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem:
ePSXe.exe+74FF4C:
db -1

originalcode:
cli
add [eax],al
add dl,bh

exit:
jmp returnhere

ePSXe.exe+74FF4C:
jmp newmem
returnhere:


 
[DISABLE]
dealloc(newmem)
ePSXe.exe+74FF4C:
cli
add [eax],al
add dl,bh


The next step I am wanting to do is have multiple addresses in the same script which will also be frozen.

any help out there? ive looked around a bit and cant find what im looking for. thanks


Last edited by PinPoint on Tue Apr 12, 2016 12:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Tue Apr 12, 2016 12:02 pm    Post subject: Reply with quote

Thats broken. Download a table from someone to figure out how scripts are created/written.
_________________
Back to top
View user's profile Send private message
PinPoint
Expert Cheater
Reputation: 10

Joined: 07 Apr 2016
Posts: 223
Location: Scotland

PostPosted: Tue Apr 12, 2016 12:34 pm    Post subject: Reply with quote

sorry i pasted the wrong code in. ive edited the right on in now.
Back to top
View user's profile Send private message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Tue Apr 12, 2016 2:14 pm    Post subject: This post has 1 review(s) Reply with quote

That's so wrong.Are sure you had undergo the tutorial ?
Here's a script to freeze address using thread:
Code:

[ENABLE]
globalalloc(_freeze,2048)
createthread(_freeze)
label(_end)
registersymbol(_end)

_freeze:
mov [ePSXe.exe+74FF4C],(float)-1

push #500
call sleep
cmp [_end],01
jne _freeze
ret

_end:
dd 0

[DISABLE]
_end:
dd 01
unregistersymbol(_end)

_________________
...


Last edited by Cake-san on Wed Apr 13, 2016 7:52 am; edited 2 times in total
Back to top
View user's profile Send private message
PinPoint
Expert Cheater
Reputation: 10

Joined: 07 Apr 2016
Posts: 223
Location: Scotland

PostPosted: Wed Apr 13, 2016 6:15 am    Post subject: Reply with quote

I used templates and only added:
Code:
ePSXe.exe+74FF4C:
db -1


However, even if its wrong it does actually work for changing the value to -1.
What it is anyway is an instant kill cheat, having the address in the table changed from 2 byte to float and setting it to -1, the game kills the enemies as it sees it is out of range.
there are 6 addresses I have for enemies and want to make a script where on enable it sets all addresses to -1 and freezes them until disabled.
I know i can do this with hotkeys but a script is tidier.
Back to top
View user's profile Send private message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Wed Apr 13, 2016 6:39 am    Post subject: Reply with quote

PinPoint wrote:
I used templates and only added:
Code:
ePSXe.exe+74FF4C:
db -1


However, even if its wrong it does actually work for changing the value to -1.
What it is anyway is an instant kill cheat, having the address in the table changed from 2 byte to float and setting it to -1, the game kills the enemies as it sees it is out of range.
there are 6 addresses I have for enemies and want to make a script where on enable it sets all addresses to -1 and freezes them until disabled.
I know i can do this with hotkeys but a script is tidier.

Yeah, it change the value to -1, same as this:
Code:

[ENABLE]
ePSXe.exe+74FF4C:
db -1
[DISABLE]

It's funny though, that you're using code injection template for that.

Edited
I had edited the thread script to your liking , I think Confused

_________________
...
Back to top
View user's profile Send private message
PinPoint
Expert Cheater
Reputation: 10

Joined: 07 Apr 2016
Posts: 223
Location: Scotland

PostPosted: Wed Apr 13, 2016 7:36 am    Post subject: Reply with quote

Quote:
I had edited the thread script to your liking , I think Confused


It works for freezing but sets the value at 65350.

I was wanting code injection instead of having a hotkey for multiple addresses changing/freezing to the same value. I havent found any relevant tutorials going through what i am wanting it to do.

Ive been using group config to do what i need but would rather just have the one cheat to work with.
Back to top
View user's profile Send private message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Wed Apr 13, 2016 7:53 am    Post subject: Reply with quote

PinPoint wrote:
Quote:
I had edited the thread script to your liking , I think Confused


It works for freezing but sets the value at 65350.

I was wanting code injection instead of having a hotkey for multiple addresses changing/freezing to the same value. I havent found any relevant tutorials going through what i am wanting it to do.

Ive been using group config to do what i need but would rather just have the one cheat to work with.

Edited, meh.
Sorry just change the value in the script to your liking,then.

_________________
...
Back to top
View user's profile Send private message
PinPoint
Expert Cheater
Reputation: 10

Joined: 07 Apr 2016
Posts: 223
Location: Scotland

PostPosted: Wed Apr 13, 2016 7:56 am    Post subject: Reply with quote

ah, i tried that but didn't put (float) before it. thanks

edit.
It works perfectly, I added the rest of the addresses in the same format also and it works great. not sure if this is entirely correct but it works.

Code:
_freeze:
mov [ePSXe.exe+74FF4C],(float)-1
mov [ePSXe.exe+74FFB4],(float)-1
mov [ePSXe.exe+75001C],(float)-1
mov [ePSXe.exe+750084],(float)-1
mov [ePSXe.exe+7500ec],(float)-1
mov [ePSXe.exe+750154],(float)-1


THANKS CAKE-SAN Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials 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