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 


[AA Script]Game crash

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 510

PostPosted: Sun Nov 07, 2021 4:05 am    Post subject: [AA Script]Game crash Reply with quote

I'm using labels but the label is just nop in disassembly,i wanted to make a cheat but it crashing even tho i'm not created one label
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Sun Nov 07, 2021 4:26 am    Post subject: Reply with quote

It would be better to show what you have.
Back to top
View user's profile Send private message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 510

PostPosted: Sun Nov 07, 2021 4:38 am    Post subject: Reply with quote

Here's script:
Code:

[ENABLE]
globalalloc(10XBountyFix,512)
globalalloc(10XBountyFix2,512)
0042A50B:
db 90 90 90 90 90 90
0042A50B:
jmp 10XBountyFix
nop
0042A5D8:
db 90 90 90 90 90 90
0042A5D8:
jmp 10XBountyFix2
nop

10XBountyFix:
mov edi,[esi+0x00F4]
cmp edi,0x0A
jl originalCode
mov edi,0x09
originalCode:
jmp 0042A511

10XBountyFix2:
cmp ecx,0x42F00000
jl originalCode2
mov ecx,0x41200000
originalCode2:
mov dword ptr ds:[esi+0x148],ecx

jmp 0042A5DE
[DISABLE]
0042A5D8:
db 89 8E 48 01 00 00
0042A50B:
db 8B BE F4 00 00 00

and screenshot



Снимок экрана (72).png
 Description:
 Filesize:  119.6 KB
 Viewed:  1486 Time(s)

Снимок экрана (72).png


Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Sun Nov 07, 2021 5:56 am    Post subject: Reply with quote

Code:

[ENABLE]
globalalloc(10XBountyFix,100)   // 512 bytes of allocated memory is unnecessary
globalalloc(10XBountyFix2,100)

label(10XBountyFix)
label(10XBountyFix2)
label(originalCode)
label(originalCode2)


0042A50B:  // This is an arbitrary address, is it definitely static?
  db 90 90 90 90 90 90

0042A50B:
  jmp 10XBountyFix
  nop

0042A5D8:
  db 90 90 90 90 90 90

0042A5D8:
  jmp 10XBountyFix2
  nop

10XBountyFix:
  mov edi,[esi+0x00F4]
  cmp edi,0x0A
  jl originalCode
    mov edi,0x09

originalCode:
  jmp 0042A511

10XBountyFix2:
  cmp ecx,0x42F00000
  jl originalCode2
    mov ecx,0x41200000

originalCode2:
  mov dword ptr ds:[esi+0x148],ecx
  jmp 0042A5DE

[DISABLE]

0042A5D8:
  db 89 8E 48 01 00 00

0042A50B:
  db 8B BE F4 00 00 00


I can't say for certain whether this will resolve your issue but you have to pay mind to the distance at which you're asking the code to jump to.
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