IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Pointers !

 How to Find Them ?
 
Ashwin the new boy  
Posted: Monday, Apr 9 2012, 11:32
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



hi guys,
Memory addresses can be Written in Many Ways

(1)0x4406EC

(2) 0x7E49C0+244

(3) Cleo.asi+3D748

but only 1 & 2 can be used While Scripting,
so, can anyone tell me How can i find Pointer(2)
for some mem add like 3 ?

i want to read this one i my script
cleo.asi+41094 // no of cleo script Attached to the Game

I am using CE
Users WebsitePM
  Top
 

 
fastman92  
Posted: Monday, Apr 9 2012, 12:24
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



CODE
{$CLEO}
0000: NOP

if
0AA2: 0@ = load_library "Kernel32.dll" // IF and SET
else_jump @Error
0AA4: 1@ = get_proc_address "GetModuleHandleA" library 0@ // IF and SET

0A9F: 2@ = current_thread_pointer
2@ += 0x10
0A8D: 2@ = read_memory 2@ size 4 virtual_protect FALSE
2@ -= @DLL_Name

0AA7: call_function 1@ num_params 1 pop 0 lpModuleName 2@ HMODULE_result 2@
// 2@ - address of CLEO.asi

// You can do: 2@ += 0x3D748

0AA3: free_library 0@       // if you don't want to use it anymore

   while true
   wait 0
   0AD1: show_formatted_text_highpriority "DLL base address: %X" time 2000 2@
   end
   
:Error
wait 0
// error comunique
0AD1: show_formatted_text_highpriority "Error" time 2000
jump @Error    

:DLL_Name
hex
"cleo.asi" 00
end



Use GetModuleHandle function

Remember 0AD1 is used only to show in example and it's CLEO4 opcode.

This post has been edited by fastman92 on Thursday, Nov 15 2012, 19:45
Users WebsitePMMSN
  Top
 

 
SilentPL  
Posted: Monday, Apr 9 2012, 13:17
Quote Post


Senior File Manager
Group Icon
Group: Members
Joined: Feb 1, 2010

pl.gif

Member Award




If you use SA, it can be done faster:

CODE
{$CLEO}
0A9F: 0@ = current_thread_pointer
0@ += 0x10
0A8D: 0@ = read_memory 0@ size 4 virtual_protect 0
0@ -= @DLL_Name

0AA7: call_function 0x81E406 num_params 1 pop 0 lpModuleName 0@ HMODULE_result 2@
// 1@ - address of CLEO.asi

// You can do: 1@ += 0x3D748


while true
  wait 0
  0AD1: show_formatted_text_highpriority "DLL base address: %X" time 2000 2@
end

:DLL_Name
hex
"cleo.asi" 00
end


CLEO4 makes stuff EVEN easier:

CODE
{$CLEO}
0AA7: call_function 0x81E406 num_params 1 pop 0 lpModuleName "cleo.asi" HMODULE_result 2@
// 1@ - address of CLEO.asi

// You can do: 1@ += 0x3D748


while true
  wait 0
  0AD1: show_formatted_text_highpriority "DLL base address: %X" time 2000 2@
end


Edit:
As you seem to mod VC more, address of this function in VC is 0x663550, so you can try the 2nd method using this address instead (and, of course, VC opcode IDs).
Users WebsitePMMSNXbox Live
  Top
 

 
Ashwin the new boy  
Posted: Monday, Apr 9 2012, 13:47
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



Sorry Guys i forget to tell you that i need it for VC,

Did i created any Topic for SA yet ?
Users WebsitePM
  Top
 

 
SilentPL  
Posted: Monday, Apr 9 2012, 13:53
Quote Post


Senior File Manager
Group Icon
Group: Members
Joined: Feb 1, 2010

pl.gif

Member Award




Then read my EDIT, I've added it before you've even posted.
Users WebsitePMMSNXbox Live
  Top
 

 
Ashwin the new boy  
Posted: Monday, Apr 9 2012, 14:37
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



A Little Confusion >>>

SA
0AA7: call_function 0x81E406 num_params 1 pop 0 lpModuleName "cleo.asi" HMODULE_result 2@

VC
05E2: call_function 0x4BC1E0 num_params 0 pop 0 0@
05E4: call_function_method 0x5BAA80 struct 0@ num_params 0 pop 0 1@

none of them is Similar to that of SA
Users WebsitePM
  Top
 

 
SilentPL  
Posted: Monday, Apr 9 2012, 14:39
Quote Post


Senior File Manager
Group Icon
Group: Members
Joined: Feb 1, 2010

pl.gif

Member Award




05E2 is.
Users WebsitePMMSNXbox Live
  Top
 

 
Link2012  
Posted: Monday, Apr 9 2012, 15:03
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



CODE
lpModuleName "cleo.asi" HMODULE_result 2@

This is just extra params.
PMMSN
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG