View previous topic :: View next topic |
Author |
Message |
Colin How do I cheat?
Reputation: 0
Joined: 17 Apr 2016 Posts: 4 Location: ???? im sorry im new
|
Posted: Sun Apr 17, 2016 5:19 pm Post subject: GTA 5 Script Error not loading? |
|
|
Hi. i did all the directions said in the help guide for fixing a script not opening when you click on it. I followed the steps but when i pasted and executed, it says Failure determining what LightsPTR means. please im begging for help on this i've been going crazy trying to fix it. thank you.
Description: |
|
Filesize: |
10.41 KB |
Viewed: |
18207 Time(s) |

|
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Apr 17, 2016 6:43 pm Post subject: Re: GTA 5 Script Error not loading? |
|
|
Colin wrote: | i did all the directions said in the help guide | -What directions? What guide?
Colin wrote: | I followed the steps but when i pasted and executed, it says Failure determining what LightsPTR means. | -Please paste your script in its entirety.
|
|
Back to top |
|
 |
Colin How do I cheat?
Reputation: 0
Joined: 17 Apr 2016 Posts: 4 Location: ???? im sorry im new
|
Posted: Sun Apr 17, 2016 8:41 pm Post subject: |
|
|
My apologies, the directions were said at
[DiY]Dealing with Recifense's Tables and Scripts
Under the question
How do I know why a script is not loading?
I followed those and it did not work.
The full copied script is
(I do not know how to show scripts please correct me if im wrong in copying and pasting this script)
[ENABLE]
aobscanmodule(get_ptr,GTA5.exe,48 8B 81 E0 03 00 00 48 8B) //Thanks Zanzer
alloc(newmem,$1000,get_ptr)
alloc(some_ptr,
label(code)
label(return)
newmem:
code:
mov qword ptr [some_ptr],rcx
mov rax,[rcx+000003E0]
jmp return
get_ptr:
jmp code
nop
nop
return:
registersymbol(get_ptr)
registersymbol(some_ptr)
{$lua}
autoAssemble([[
aobscanmodule(LightsPTR,GTA5.exe,4C 89 0D xx xx xx xx 44 xx xx xx xx xx xx 8B 00 2B C1 48 8D)
registersymbol(LightsPTR)
]])
local addr = getAddress("LightsPTR")
addr = addr + readInteger(addr + 3) + 7
unregisterSymbol("LightsPTR")
registerSymbol("LightsPTR", addr, true)
autoAssemble([[
aobscanmodule(GetPointerAddressA,GTA5.exe,48 8B 8C C2 xx xx xx xx 48 85 C9 74 19)
registersymbol(GetPointerAddressA)
]])
local addr = getAddress("GetPointerAddressA")
addr = addr + 4
addr = readInteger(addr)
addr = addr + getAddress("GTA5.exe")
unregisterSymbol("GetPointerAddressA")
registerSymbol("GetPointerAddressA", addr, true)
autoAssemble([[
aobscanmodule(WorldPTR,GTA5.exe,48 8B 05 ? ? ? ? 45 ? ? ? ? 48 8B 48 08 48 85 C9 74 07)
registersymbol(WorldPTR)
]])
local addr = getAddress("WorldPTR")
addr = addr + readInteger(addr + 3) + 7
unregisterSymbol("WorldPTR")
registerSymbol("WorldPTR", addr, true)
autoAssemble([[
aobscanmodule(playersPTR,GTA5.exe,48 8B 0D ? ? ? ? E8 ? ? ? ? 48 8B C8 E8 ? ? ? ? 48 8B CF)
registersymbol(playersPTR)
]])
local addr = getAddress("playersPTR")
addr = addr + readInteger(addr + 3) + 7
unregisterSymbol("playersPTR")
registerSymbol("playersPTR", addr, true)
[DISABLE]
{$asm}
get_ptr:
db 48 8B 81 E0 03 00 00
unregisterSymbol(playersPTR)
unregisterSymbol(WorldPTR)
unregisterSymbol(LightsPTR)
unregisterSymbol(GetPointerAddressA)
unregistersymbol(get_ptr)
unregistersymbol(some_ptr)
dealloc(newmem)
dealloc(some_ptr)
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Apr 17, 2016 9:24 pm Post subject: |
|
|
Save the script to your table instead of clicking on execute. Once it's in your table, try to activate it. If it doesn't activate, then your AOB signature probably needs to be fixed. I don't know LUA, but that would be my guess.
I'm assuming Zanzer wrote the script so maybe he can chime in.
|
|
Back to top |
|
 |
Colin How do I cheat?
Reputation: 0
Joined: 17 Apr 2016 Posts: 4 Location: ???? im sorry im new
|
Posted: Mon Apr 18, 2016 2:42 pm Post subject: |
|
|
Sorry im new to scripts and aob. im a little confused how to save the script to my table and activating it. can you clarify?
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Apr 18, 2016 3:05 pm Post subject: |
|
|
The script that you're using...you're pasting it inside the auto assemble window...from that window, instead of clicking on 'execute', click on 'file' from the drop-down menu, and select 'assign to current cheat table'. Once the script is in your main cheat table, you can try clicking on the box to activate it.
|
|
Back to top |
|
 |
Colin How do I cheat?
Reputation: 0
Joined: 17 Apr 2016 Posts: 4 Location: ???? im sorry im new
|
Posted: Mon Apr 18, 2016 3:52 pm Post subject: |
|
|
That didn't seem to work but i appreciate all the help. thank you
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Apr 18, 2016 4:26 pm Post subject: |
|
|
What didn't work? Can you be more specific?
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Mon Apr 18, 2016 6:10 pm Post subject: |
|
|
Think I was only the inspiration for this script. Probably belongs to Phokz.
Your problem may simply be that you need to attach Cheat Engine to the game before adding this script to the table.
|
|
Back to top |
|
 |
Colin How do I cheat?
Reputation: 0
Joined: 17 Apr 2016 Posts: 4 Location: ???? im sorry im new
|
Posted: Mon Apr 18, 2016 6:18 pm Post subject: |
|
|
well after trying your method methos, i tried opening the table and it did not work. i will try zanzer's solution and see if it works.
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Mon Apr 18, 2016 6:23 pm Post subject: |
|
|
Suppose you could also add the following to the top of the script.
Code: | {$lua}
if syntaxcheck then return end
{$asm} |
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Apr 18, 2016 6:31 pm Post subject: |
|
|
Zanzer wrote: | Your problem may simply be that you need to attach Cheat Engine to the game before adding this script to the table. | -Yikes. Yeah, that might be good.
|
|
Back to top |
|
 |
|