Quantcast

Jump to content

» «
Photo

SA menu background color ...

4 replies to this topic
Manfred Von Karma
  • Manfred Von Karma

    Trick ( ͡ ͜ʖ ͡)

  • Members
  • Joined: 16 Jun 2009
  • None

#1

Posted 30 November 2013 - 05:12 PM

Hi ,

Can anyone give me the memory address that stores the xy coords of the menu items (New Game Option ...) ? and if possible the one that stores the menu background color ?

 

 

Thanks in advance


_DK
  • _DK

    gta3 cleo

  • Feroci Racing
  • Joined: 12 Apr 2009
  • None

#2

Posted 30 November 2013 - 07:09 PM

Menu color (the code from 2011 ;) ):
{$CLEO} 

0AC6: 31@ = label @__asm offset 
30@ = label @__jmp offset 
0AB1: call_scm_func @define_jump_to_asm_inj 4 asm_inj 31@ jump_from 0x57B991 then_jump 0x57B998 offset_jump_in_asm 30@ 
0A93: 

:__asm  
hex 
     DB 44 24 18      // fild  [esp+44h+var_2C] 
     68 00 00 00 00   // push  0     ; Blue 
     68 00 00 00 00   // push  0     ; Green 
     68 FF 00 00 00   // push  0xFF  ; Red 
end  

:__jmp  
hex  
     E9 00 00 00 00 // jmp 0  
end

:define_jump_to_asm_inj  
0A8C: write_memory 1@ size 1 value 0xE9 virtual_protect 1  
0085: 4@ = 1@  
4@ += 5  
0062: 0@ -= 4@  
1@ += 1  
0A8C: write_memory 1@ size 4 value 0@ virtual_protect 1  
0085: 4@ = 3@  
4@ += 5  
0062: 2@ -= 4@  
3@ += 1  
0A8C: write_memory 3@ size 4 value 2@ virtual_protect 1  
0AB2: ret 0

Manfred Von Karma
  • Manfred Von Karma

    Trick ( ͡ ͜ʖ ͡)

  • Members
  • Joined: 16 Jun 2009
  • None

#3

Posted 30 November 2013 - 08:56 PM

Menu color (the code from 2011 ;) ):

{$CLEO} 

0AC6: 31@ = label @__asm offset 
30@ = label @__jmp offset 
0AB1: call_scm_func @define_jump_to_asm_inj 4 asm_inj 31@ jump_from 0x57B991 then_jump 0x57B998 offset_jump_in_asm 30@ 
0A93: 

:__asm  
hex 
     DB 44 24 18      // fild  [esp+44h+var_2C] 
     68 00 00 00 00   // push  0     ; Blue 
     68 00 00 00 00   // push  0     ; Green 
     68 FF 00 00 00   // push  0xFF  ; Red 
end  

:__jmp  
hex  
     E9 00 00 00 00 // jmp 0  
end

:define_jump_to_asm_inj  
0A8C: write_memory 1@ size 1 value 0xE9 virtual_protect 1  
0085: 4@ = 1@  
4@ += 5  
0062: 0@ -= 4@  
1@ += 1  
0A8C: write_memory 1@ size 4 value 0@ virtual_protect 1  
0085: 4@ = 3@  
4@ += 5  
0062: 2@ -= 4@  
3@ += 1  
0A8C: write_memory 3@ size 4 value 2@ virtual_protect 1  
0AB2: ret 0

 

 

Thank you so much ! Works perfectly in scm , but when i tried to edit the exe file to set the color permently , the game crashed , i opened gta_sa.exe and  replaced the fild opcode with jmp 00A4C1AD using cheat engine , here is a screenshot

 

 

 

06770ea3_o.jpeg


_DK
  • _DK

    gta3 cleo

  • Feroci Racing
  • Joined: 12 Apr 2009
  • None

#4

Posted 30 November 2013 - 10:38 PM Edited by _DK, 30 November 2013 - 11:14 PM.

You can't edit it so simply in this case.
{$CLEO} 
0A8C: write_memory 0x57B982 size 4 value 0x5489FF6A virtual_protect 1
0A8C: write_memory 0x57B986 size 4 value 0x5CD91824 virtual_protect 1
0A8C: write_memory 0x57B98A size 4 value 0x44DB3C24 virtual_protect 1
0A8C: write_memory 0x57B98E size 4 value 0xFF6A1824 virtual_protect 1
0A8C: write_memory 0x57B992 size 4 value 0xFF6AFF6A virtual_protect 1
0A8C: write_memory 0x57B996 size 2 value 0x9090 virtual_protect 1
// blue
0A8C: write_memory 0x57B991 size 1 value 0x00 virtual_protect 1
// green
0A8C: write_memory 0x57B993 size 1 value 0x00 virtual_protect 1
// red
0A8C: write_memory 0x57B995 size 1 value 0xFF virtual_protect 1

0A93:

Manfred Von Karma
  • Manfred Von Karma

    Trick ( ͡ ͜ʖ ͡)

  • Members
  • Joined: 16 Jun 2009
  • None

#5

Posted 01 December 2013 - 10:44 AM

You can't edit it so simply in this case.

{$CLEO} 
0A8C: write_memory 0x57B982 size 4 value 0x5489FF6A virtual_protect 1
0A8C: write_memory 0x57B986 size 4 value 0x5CD91824 virtual_protect 1
0A8C: write_memory 0x57B98A size 4 value 0x44DB3C24 virtual_protect 1
0A8C: write_memory 0x57B98E size 4 value 0xFF6A1824 virtual_protect 1
0A8C: write_memory 0x57B992 size 4 value 0xFF6AFF6A virtual_protect 1
0A8C: write_memory 0x57B996 size 2 value 0x9090 virtual_protect 1
// blue
0A8C: write_memory 0x57B991 size 1 value 0x00 virtual_protect 1
// green
0A8C: write_memory 0x57B993 size 1 value 0x00 virtual_protect 1
// red
0A8C: write_memory 0x57B995 size 1 value 0xFF virtual_protect 1

0A93:

 

 

Thanks again for the code ! now i can edit the exe file  thanks to you !





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users