Problem with nitro ratio script with asphalt 8 4.8.0h version

Memory scanning, code injection, debugger internals and other gamemodding related discussion
Post Reply
MartaLabieniec
Expert Cheater
Expert Cheater
Posts: 312
Joined: Sat Oct 06, 2018 3:19 pm
Reputation: 137

Problem with nitro ratio script with asphalt 8 4.8.0h version

Post by MartaLabieniec »

Hello,
I have a problem with the script for nitro ratio for asphalt 8 4.8.0h version (pc version, microsoft store)

When I enable this script, it is working perfectly with cars but when you want to use it with motorbikes, it is crashing a game - and i dont know why it is crashing the game.. can anyone look on this script and maybe try to fix it for using with motorbikes?

Script:

Code: Select all

define(address,"Asphalt8.exe"+4914D4)
define(bytes,0F 28 CC F3 0F 11 65 F4 F3 0F 59 4D EC)

define(address1,"Asphalt8.exe"+491730)
define(bytes1,0F 28 CC F3 0F 11 65 E4 F3 0F 59 4D EC)
[ENABLE]

assert(address,bytes)
assert(address1,bytes1)
alloc(newmem,$1000)
globalalloc(nitro,4)
label(code)
label(code1)
label(return)
label(return1)
label(nitro)
registersymbol(nitro)

newmem:
code:
  push eax
  mov eax,[nitro]
  movd xmm4,eax
  mov eax, (float)3
  movd xmm7,eax
  divss xmm1,xmm7
  movaps xmm1,xmm4
  movss [ebp-0C],xmm4
  mulss xmm1,[ebp-14]
  pop eax
  ret

code1:
  push eax
  mov eax,[nitro]
  movd xmm4,eax
  mov eax, (float)3
  movd xmm7,eax
  divss xmm1,xmm7
  movaps xmm1,xmm4
  movss [ebp-1C],xmm4
  mulss xmm1,[ebp-14]
  pop eax
  ret

nitro:
dd (float)8

address:
  push ebx
  mov ebx,code
  db 85 DB FF D3 5B 90 90 90
return:

address1:
  push ebx
  mov ebx,code1
  db 85 DB FF D3 5B 90 90 90
return1:

[DISABLE]

address:
  db bytes

address1:
  db bytes1

dealloc(newmem)
dealloc(nitro)
unregistersymbol(nitro)
The game is Asphalt 8 4.8.0h version microsfot store : [Link]

Post Reply

Who is online

Users browsing this forum: No registered users