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 


Maybe i am doing something wrong?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Wed Mar 02, 2016 3:47 pm    Post subject: Maybe i am doing something wrong? Reply with quote

So I made this script for a "Knockdown Race Mode" in Asphalt 8: Airborne

Code:
[ENABLE]

aobscanmodule(Asphalt8_w8.IGPLib::InitParams::operator=+______,Asphalt8_w8.exe,89 __ __ __ __ __ __ __ __ __ 4C 24 14)
alloc(newmem,$1000)

label(code1)
label(code)
label(return)

newmem:

code1:
  cmp [eax+ecx+10],1
  jne stuff
  inc [eax+ecx+10]
  jmp return

code:
  mov [eax+ecx+10],edx
  add ecx,14
  jmp return

Asphalt8_w8.IGPLib::InitParams::operator=+______:
  jmp code
  nop
  nop
return:
registersymbol(Asphalt8_w8.IGPLib::InitParams::operator=+______)

[DISABLE]

Asphalt8_w8.IGPLib::InitParams::operator=+______:
  db 89 __ __ __ __ __ __

unregistersymbol(Asphalt8_w8.IGPLib::InitParams::operator=+______)
dealloc(newmem)


Don't mind me putting some of the bytes as "__" its just for safety xD

Anyway... so whats meant to happen is after I get 1 knockdown the score should increase rapidly (by 1) but for some reason the score flashes and nothing happens. same thing happens if the enemy gets 1 knockdown. If I were to make this

Code:
[ENABLE]

aobscanmodule(Asphalt8_w8.IGPLib::InitParams::operator=+______,Asphalt8_w8.exe,89 __ __ __ __ __ __ __ __ __ 4C 24 14)
alloc(newmem,$1000)

label(code)
label(return)

newmem:

code:
  inc [eax+ecx+10]
  add ecx,14
  jmp return

Asphalt8_w8.IGPLib::InitParams::operator=+______:
  jmp code
  nop
  nop
return:
registersymbol(Asphalt8_w8.IGPLib::InitParams::operator=+______)

[DISABLE]

Asphalt8_w8.IGPLib::InitParams::operator=+______:
  db 89 __ __ __ __ __ __

unregistersymbol(Asphalt8_w8.IGPLib::InitParams::operator=+______)
dealloc(newmem)


Then sure it would work but if I enable the above before the race starts it will go over the goal of for example 15 and will already be something like 137 and no one wins sins the game thinks non of us reached 15. Please tell me what I have to do to the 1st script to make it work because I don't see any issues.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Wed Mar 02, 2016 7:04 pm    Post subject: Reply with quote

"safety"? If you're trying to protect your own AoB scan, you're doing a pretty bad job at it considering you just gave everyone the instructions at your injection point.
Code:
code1:
  cmp [eax+ecx+10],1
  jne stuff
  inc [eax+ecx+10]
  jmp return

code:
  mov [eax+ecx+10],edx
  add ecx,14
  jmp return
I'm assuming "stuff" is meant to be "code"?
When the cmp sets the ZF, it doesn't add 14 to ecx like the game originally did.

If that doesn't work, then please post the ASM around the injection point.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Thu Mar 03, 2016 3:12 am    Post subject: Reply with quote

And please don't protect the code, it just makes it more annoying to read ...
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Thu Mar 03, 2016 10:23 am    Post subject: Reply with quote

Isn't this an online game, anyway?
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Fri Mar 04, 2016 8:28 am    Post subject: Reply with quote

I found the issue myself and fixed it... cant believe I didn't think of this xD

Code:
code:
  cmp [eax+ecx+10],1
  jne originalcode
  jmp 2ndcode

originalcode:
  mov [eax+ecx+10],edx
  add ecx,14
  jmp return

2ndcode:
  inc [eax+ecx+10]
  jmp 3rdcode

3rdcode:
  add ecx,14
  jmp return


Also ++METHOS if you do see this Asphalt 8 has a multiplayer feature but also a single player campaign so... I dunno... I guess its online but I am only making hacks for single player.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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