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 


GTA 5 Script Error not loading?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
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

PostPosted: Sun Apr 17, 2016 5:19 pm    Post subject: GTA 5 Script Error not loading? Reply with quote

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.


help.png
 Description:
 Filesize:  10.41 KB
 Viewed:  18207 Time(s)

help.png


Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Apr 17, 2016 6:43 pm    Post subject: Re: GTA 5 Script Error not loading? Reply with quote

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
View user's profile Send private message
Colin
How do I cheat?
Reputation: 0

Joined: 17 Apr 2016
Posts: 4
Location: ???? im sorry im new

PostPosted: Sun Apr 17, 2016 8:41 pm    Post subject: Reply with quote

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

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Apr 17, 2016 9:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Colin
How do I cheat?
Reputation: 0

Joined: 17 Apr 2016
Posts: 4
Location: ???? im sorry im new

PostPosted: Mon Apr 18, 2016 2:42 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Apr 18, 2016 3:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Colin
How do I cheat?
Reputation: 0

Joined: 17 Apr 2016
Posts: 4
Location: ???? im sorry im new

PostPosted: Mon Apr 18, 2016 3:52 pm    Post subject: Reply with quote

That didn't seem to work but i appreciate all the help. thank you Very Happy
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Apr 18, 2016 4:26 pm    Post subject: Reply with quote

What didn't work? Can you be more specific?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Apr 18, 2016 6:10 pm    Post subject: Reply with quote

Think I was only the inspiration for this script. Smile 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
View user's profile Send private message
Colin
How do I cheat?
Reputation: 0

Joined: 17 Apr 2016
Posts: 4
Location: ???? im sorry im new

PostPosted: Mon Apr 18, 2016 6:18 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Apr 18, 2016 6:23 pm    Post subject: Reply with quote

Suppose you could also add the following to the top of the script.
Code:
{$lua}
if syntaxcheck then return end
{$asm}
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Apr 18, 2016 6:31 pm    Post subject: Reply with quote

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. Very Happy
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