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 


Please tell me the script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
FIRELESS_BOUNTY
Expert Cheater
Reputation: 0

Joined: 07 May 2020
Posts: 128
Location: On The Moon

PostPosted: Wed Jan 13, 2021 1:18 am    Post subject: Reply with quote

I am very bad at assembly but i think you should write whats the problem at least
_________________
I can see you Hitler
Especially When I am On the Moon!!
You are Right now in cheat engine forum Wink
Back to top
View user's profile Send private message
hanjinyoung1234
How do I cheat?
Reputation: 0

Joined: 12 Jan 2021
Posts: 3

PostPosted: Wed Jan 13, 2021 2:08 am    Post subject: thank you Reply with quote

FIRELESS_BOUNTY wrote:
I am very bad at assembly but i think you should write whats the problem at least




When using skills
I want to get out 10 times at a time.
The script I made is non-responsive.
Please let me know what's wrong
Back to top
View user's profile Send private message
jgoemat
Expert Cheater
Reputation: 22

Joined: 25 Sep 2011
Posts: 243

PostPosted: Wed Jan 13, 2021 1:06 pm    Post subject: Reply with quote

A few things:

1. 'I want to get out 10 times at a time.' - I'm not sure what this means...
2. 'The script I made is non-responsive.' - Assuming this is part of your cheat table and when you try to enable it, nothing happens and you get no error. Let us know if that is the case or if it is something else like 'I can activate it, but nothing is changed in the game' or 'the game hangs'
3. This isn't the entire script, the missing parts may be important. Having it as text instead of an image would help too
4. This isn't 'lua' and probably belongs in the 'general game hacking' forum

Given that...

It looks like the exe is standard and not JIT code, loads at 400000 every time, and 'address' should be valid for now. It looks like the bytes are ok and should pass the assert also.

Best bet is to start with a fresh script with relocated code and nothing else and make sure that works. Then try adding in pieces and seeing when it breaks.

I assume the value at [00400C24] is integer 10 and you're using it for some reason instead of a constant.

Have you looked at the function you're calling? It looks to me like the callee might be cleaning up the stack and pushing 00 and 01 are arguments to the function you're calling. In that case you shouldn't be cleaning up the stack yourself and your 'pop eax' times 2 are corrupting the stack. If you examine the function you're calling and the return is something like 'ret 8', that would be the case.
Back to top
View user's profile Send private message
hanjinyoung1234
How do I cheat?
Reputation: 0

Joined: 12 Jan 2021
Posts: 3

PostPosted: Wed Jan 13, 2021 10:34 pm    Post subject: Reply with quote

1. The purpose of creating a script means that once you use the skill, you go out once and go out 10 times.

2. When the script is active, nothing happens and no errors occur.
Can be activated, but nothing changes in the game
The game does not stop. There is literally no change.

[00400C24] << This part allows you to specify how many times the skill will go out.


define(address,0050F352)
define(bytes,6A 00 6A 01 8D 8D B4 EF FF FF)

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat



assert(address,bytes)
alloc(newmem,$1000)
alloc(test1,4)
alloc(test2,4)
label(loop)
label(oricode)
label(return)

test1:
db 00 00 00 00

test2:
db CE 40 C3 00

newmem:
add dword ptr[test1],01
push 00
push 01
lea ecx,[ebp-00013224]
call main.exe+903628
push edx
mov edx,[00400C24]
cmp [test1],edx
jl loop

oricode:
mov [test1],00000000
pop edx
push 00
push 01
lea ecx,[ebp-00013224]
jmp return

loop:
pop edx
jmp newmem

address:
jmp newmem
nop
nop
nop
nop
nop
return:

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
address:
db bytes
// push 00
// push 01
// lea ecx,[ebp-0000102C]

dealloc(newmem)
dealloc(test1)
dealloc(test2)



&#52897;&#52376;.PNG
 Description:
 Filesize:  18.28 KB
 Viewed:  169 Time(s)

&#52897;&#52376;.PNG


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 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