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 


I cant disable my script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
dark1337
How do I cheat?
Reputation: 0

Joined: 18 Jul 2018
Posts: 8
Location: 1337

PostPosted: Wed Jul 18, 2018 1:28 am    Post subject: I cant disable my script Reply with quote

Code:
function CECheckbox2Change(sender)
if UDF1.CECheckbox2.Checked == true then
autoAssemble([[

label(airp)
registersymbol(airp)
aobscan(Airp,0F 84 ?? ?? ?? ?? 83 7F 14 07)
airp:
Airp:
db 0F 85

label(dcm11)
registersymbol(dcm11)
aobscan(Dcm11,F3 0F 11 11 0F 28 D7 F3 0F 11 41 04)
dcm11:
Dcm11:
db 90 90 90 90

label(dcm22)
registersymbol(dcm22)
aobscan(Dcm22,F3 0F 11 53 20 F3 0F 11 43 24 38 ?? 31 01 00 00)
dcm22:
Dcm22:
db 90 90 90 90 90
]])

else
autoAssemble([[

db 0F 84
unregistersymbol(airp)

db F3 0F 11 11
unregistersymbol(dcm11)

db F3 0F 11 53 20
unregistersymbol(dcm22)

]])

end
end



why i disable the script my game will crash

how i fix this

_________________
a new new newbie ce user


Last edited by dark1337 on Wed Jul 18, 2018 3:14 am; edited 1 time in total
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Jul 18, 2018 1:38 am    Post subject: Reply with quote

it's weird the game crashes on disable as you're writing to 00000000: which is usually unallocated memory so it shouldn't do anything
_________________
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
dark1337
How do I cheat?
Reputation: 0

Joined: 18 Jul 2018
Posts: 8
Location: 1337

PostPosted: Wed Jul 18, 2018 1:44 am    Post subject: Reply with quote

Dark Byte wrote:
it's weird the game crashes on disable as you're writing to 00000000: which is usually unallocated memory so it shouldn't do anything


so how i fix that?

_________________
a new new newbie ce user
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
panraven
Grandmaster Cheater
Reputation: 55

Joined: 01 Oct 2008
Posts: 942

PostPosted: Wed Jul 18, 2018 4:59 am    Post subject: Reply with quote

No sure the real crash reason, but some seemly error ...

1. no address before db line in disable script,
2. airp and Airp (and etc) seems treat as same symbol in AA (AA symbol is case-insensitive?)
3. given airp and Airp are different symbol, (rename airp to _airp),
this
Code:

label(_airp)
registersymbol(_airp)
aobscan(Airp,0F 84 ?? ?? ?? ?? 83 7F 14 07)
_airp:
Airp:
db 0F 85

probably won't run , since it is define Airp (already has a value from AOBSCAN) by an undefined label _airp. Might try reverse order
Code:

Airp:
_airp:
db 0F 85

_________________
- Retarded.
Back to top
View user's profile Send private message
dark1337
How do I cheat?
Reputation: 0

Joined: 18 Jul 2018
Posts: 8
Location: 1337

PostPosted: Wed Jul 18, 2018 5:26 am    Post subject: Reply with quote

panraven wrote:
No sure the real crash reason, but some seemly error ...

1. no address before db line in disable script,
2. airp and Airp (and etc) seems treat as same symbol in AA (AA symbol is case-insensitive?)
3. given airp and Airp are different symbol, (rename airp to _airp),
this
Code:

label(_airp)
registersymbol(_airp)
aobscan(Airp,0F 84 ?? ?? ?? ?? 83 7F 14 07)
_airp:
Airp:
db 0F 85

probably won't run , since it is define Airp (already has a value from AOBSCAN) by an undefined label _airp. Might try reverse order
Code:

Airp:
_airp:
db 0F 85


if i enable and disable like this is work fine but if i mix all in lua script and i disable will crash



133.PNG
 Description:
 Filesize:  1.71 KB
 Viewed:  1860 Time(s)

133.PNG



_________________
a new new newbie ce user
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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