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 


[HELP] Script that only executes on its own enabling

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
LalzDS
Newbie cheater
Reputation: 0

Joined: 17 Sep 2013
Posts: 11

PostPosted: Tue Sep 17, 2013 12:38 pm    Post subject: [HELP] Script that only executes on its own enabling Reply with quote

Hello. I've been trying a few things to get a script to change some static variable values. The problem is it doesn't execute. The only solution I found is to append the code to another piece of code that does execute but then it executes more times than needed.

What I try to achieve is some kind of "unlocker". I've got a few static variables and I want to set their values to the specific value which unlocks the features inside the application. This only needs to be executed once so I found it a waste to do it otherwise.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Tue Sep 17, 2013 5:36 pm    Post subject: Reply with quote

Post the 2 scripts (the one that works and the one that doesn't). Normally a simple unlocker with static variables should look like:
Code:
[enable]

Game.exe+12:
db 11 22 33 //...

Game.exe+34:
db 11 22 33 //...

//...

[disable]
//nothing or values that lock back stuff ingame

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
LalzDS
Newbie cheater
Reputation: 0

Joined: 17 Sep 2013
Posts: 11

PostPosted: Wed Sep 18, 2013 7:25 pm    Post subject: Reply with quote

I already got it to work. Kind of. It works perfectly fine with one of the arrays but it does weird things with the other. For example:

Code:
[enable]
Game.exe+A27B9C:
db 32 0 46 8

[disable]


Turns the array
0 0 0 0 0 0 0 0
into:
32 0 46 8 32 45 63 24

It doesn't matter the length of bytes I modify. It always changes the four next to the last one. I wasn't able to understand why It happens nor how to solve it Sad

EDIT: I'll try to test it a little bit more and to gather more info. It'll have to be tomorrow though. It's 2:30AM here already Razz

EDIT 2: Now both them work fine. I dunno why one did not yesterday. I must did something wrong. Well doesn't matter anymore.
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 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