Coding

 Reply to this postStart new topic

[Memory] GTA SA HUD Addresses

Sidewalk Surfer
post Oct 22 2012, 03:54 AM
Post #41


Newbie In Training

Posts: 16
From: NYC USA
Joined: 29-December 09



QUOTE (Michael.Knight1 @ Oct 19 2012, 01:49 PM) *
I am not able to find the address of a color thumbsup.gif

well, what HUD item are you trying to change the color of and what color is it by default? it is almost definitely in that table on page one of this thread since no numbers are skipped.

This post has been edited by Sidewalk Surfer: Oct 22 2012, 10:04 PM


--------------------
Whoa dude! Mr. Turtle is my father.
Go to the top of the page
 
+Quote Post
uokka
post Jan 9 2014, 01:55 PM
Post #42


Actually living entity

Posts: 143
From: Earth
Joined: 15-January 11



Any more stuff?
I'd like to know 'Money font border'

BTW, percentage text for health bar:
CODE
0x589355 [byte]
wasn't posted I think.


--------------------
My english is just perfekt. I am only not sure, whether I it rightly utilize..
. . .
Go to the top of the page
 
+Quote Post
Deji
post Jan 9 2014, 02:16 PM
Post #43


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



QUOTE (uokka @ Jan 9 2014, 01:55 PM) *
Any more stuff?
I'd like to know 'Money font border'

BTW, percentage text for health bar:
CODE
0x589355 [byte]
wasn't posted I think.


The func @0x58EAF0 draws most of the HUD. Here's the particular part that you're interested in:
CODE
.text:0058F58C                 push    2              ; a1
.text:0058F58E                 call    CFont::SetEdge(signed char)
.text:0058F593                 add     esp, 1Ch
.text:0058F596                 push    ebx            ; a
.text:0058F597                 push    0              ; b
.text:0058F599                 push    0              ; g
.text:0058F59B                 push    0              ; r
.text:0058F59D                 lea     ecx, [esp+1C0h+color]; CRGBA *
.text:0058F5A1                 call    CRGBA::CRGBA(uchar,uchar,uchar,uchar)
.text:0058F5A6                 mov     edx, [eax]
.text:0058F5A8                 push    edx            ; a1
.text:0058F5A9                 call    CFont::SetDropColor(CRGBA)


--------------------
Go to the top of the page
 
+Quote Post
uokka
post Jan 9 2014, 05:55 PM
Post #44


Actually living entity

Posts: 143
From: Earth
Joined: 15-January 11



Thanks!

Money Font Border
CODE
0x58F58D [byte]


--------------------
My english is just perfekt. I am only not sure, whether I it rightly utilize..
. . .
Go to the top of the page
 
+Quote Post
uokka
post Jan 10 2014, 12:49 AM
Post #45


Actually living entity

Posts: 143
From: Earth
Joined: 15-January 11



I'm slightly too stupid to use this it seems.

CODE
0007: 29@ = 9.0    // default
0AC7: 30@ = var 29@ offset
0A8C: write_memory 0x589140 size 4 value 30@ virtual_protect 1

Crash.

Can anyone enlighten me?

I'd like to move HUD stuff around with only CLEO.

--

EDIT:

*deleted*

So.. after doing several things wrong, I found out that I wasn't too wrong actually.
As DK said on the previous page, the addresses for health bar positions needed two more bytes.


Correction:


Health Bar Right Margin/X Pos (Pointer)

CODE
0x58EE87 [float]



Health Bar Y Pos (Pointer)

CODE
0x58EE68 [float]



--


Not yet posted:


Health Bar - Enable Blue Thing

CODE
0x58935D [byte]



Wanted Starts - Size X (yeah was posted but not that it's "X" q:)

CODE
0x866C60 [float]



Wanted Starts - Size Y

CODE
0x866C64 [float]


This post has been edited by uokka: Jan 16 2014, 04:33 PM


--------------------
My english is just perfekt. I am only not sure, whether I it rightly utilize..
. . .
Go to the top of the page
 
+Quote Post
uokka
post Jan 19 2014, 06:15 PM
Post #46


Actually living entity

Posts: 143
From: Earth
Joined: 15-January 11



Please post more adresses if you know some.
Would be greatly appreciated.

I'm making a CLEO script to edit the HUD because those ASI plugins which are available can produce different incompatibilities and/or unwanted features. I have only very few addresses though.


--------------------
My english is just perfekt. I am only not sure, whether I it rightly utilize..
. . .
Go to the top of the page
 
+Quote Post
Deji
post Jan 19 2014, 06:21 PM
Post #47


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



QUOTE (uokka @ Jan 19 2014, 06:15 PM) *
Please post more adresses if you know some.
Would be greatly appreciated.

I'm making a CLEO script to edit the HUD because those ASI plugins which are available can produce different incompatibilities and/or unwanted features. I have only very few addresses though.


You should use IDA to get the addresses. There's not an address for every option... and then again, there is. If you wanted me to post every address that could be used to edit the HUD, it'd be a huge post of functions pasted directly from the .idb tongue.gif There are a lot of possibilities, so to get the address for something useful, you have to know specifically what you want. Also how would the CLEO script resolve incompatibilities? ohmy.gif


--------------------
Go to the top of the page
 
+Quote Post
uokka
post Jan 19 2014, 07:15 PM
Post #48


Actually living entity

Posts: 143
From: Earth
Joined: 15-January 11



Uh.. IDA is so complicated. Or rather understanding what part of the memory I'm looking at. I have zero Assembler skills. Even Cheat Engine isn't really telling me anything I can use. It seems totally random to me (also sometimes not exact; see 'Health Bar Right Margin/X Pos'). So, even if I know what I want, I don't know how to get there.

Incompatibilities.. well, "GTA IV HUD" doesn't work for me currently. Maybe caused by another plugin or script. I dunno. It's not my taste anyway. "Interface Editor" doesn't take care of the fact that the Health Bar, Money Text and Wanted Stars will move down a certain amount when the Maximum Health has increased. Could be taken care of via CLEO script pretty easily I guess.


--------------------
My english is just perfekt. I am only not sure, whether I it rightly utilize..
. . .
Go to the top of the page
 
+Quote Post
Arijit Sen
post Jan 23 2014, 04:12 PM
Post #49


Trained Member

Posts: 85
Joined: 21-September 12



That's really great idea uokka :^:
Anyways got a little something something for you great guys:

The spheres for the missions:
CODE
//Sphere = Blue    
0A8C: write_memory 0x00725BD0 size 4 value 0xFF{}BA66 virtual_protect 1 // R
0A8C: write_memory 0x00725BCC size 4 value 0x26{}B966 virtual_protect 1 // G
0A8C: write_memory 0x00725BD5 size 4 value 0x00{}B866 virtual_protect 1 // B


CODE
//MISSION TEXTS

0A8C: write_memory 0xBAB244 size 4 value 0xFFFF6321 virtual_protect 0   //mission text color
0A8C: write_memory 0x58D2B6 size 1 value 0x00 virtual_protect 0   //mission text font            

0A8C: write_memory 0x58D3F4 size 1 value 0x00 virtual_protect 1 //b mission text outline
0A8C: write_memory 0x58D3F6 size 1 value 0x00 virtual_protect 1 //g  mission text outline
0A8C: write_memory 0x58D3F8 size 1 value 0x00 virtual_protect 1 //r  mission text outline


Not really related to HUD but I thought it's better to have it here IMO.It's really nothing as compared to you great guys work smile.gif


--------------------
Go to the top of the page
 
+Quote Post
Deji
post Jan 23 2014, 04:45 PM
Post #50


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



QUOTE (Arijit Sen @ Jan 23 2014, 04:12 PM) *
Not really related to HUD but I thought it's better to have it here IMO.It's really nothing as compared to you great guys work smile.gif


Seemann invented those exact lines of code ages ago, I believe tongue.gif

They've been posted on only three sites since. I knew it looked familiar. Thanks for sharing, anyway.


--------------------
Go to the top of the page
 
+Quote Post
uokka
post Jan 23 2014, 05:10 PM
Post #51


Actually living entity

Posts: 143
From: Earth
Joined: 15-January 11



Well, MISSION TEXTS is HUD related. So thanks from me, too.

---

That comment block "{}", is it just a comment block or will it get treatet by Sanny in a special way?


--------------------
My english is just perfekt. I am only not sure, whether I it rightly utilize..
. . .
Go to the top of the page
 
+Quote Post
Arijit Sen
post Jan 25 2014, 06:32 AM
Post #52


Trained Member

Posts: 85
Joined: 21-September 12



That's just a comment block so it won't be treated & one of the three sites is mine so you should expect it posted there.I am glad you guys liked my contribution tongue.gif
So here are some more from me:

BREADTH BAR ADDRESSES
CODE
//Armour
0A8C: write_memory 0x589127 size 1 value 0x01 virtual_protect 0  // Armour line

//Health
0A8C: write_memory 0x58935D size 1 value 0x01 virtual_protect 0  // Health line

//Breadth
0A8C: write_memory 0x58920B size 1 value 0x01 virtual_protect 0    //Breadth line


The lines really enhance the HUD IMO.Just let your health,armour & breadth go down.

Draw border around the breadth bar (Boolean)
CODE
0x589207


Show breadth meter percentage

CODE
0x589209


Breadth meter color:(RGBA Backwards)

CODE
0x5891E4

More coming soon..
I got all these while designing my HUD for my new mod smile.gif

@uokka: I can help you a bit with your mod providing the addresses & such as I was also working on a mod similar to that but never completed it due to lack of time. tongue.gif

This post has been edited by Arijit Sen: Jan 25 2014, 06:49 AM


--------------------
Go to the top of the page
 
+Quote Post
Haf
post Apr 14 2014, 06:36 AM
Post #53


Newbie In Training

Posts: 12
Joined: 14-April 14



how to move the health bar
Go to the top of the page
 
+Quote Post
Mora Hannover
post Jan 15 2015, 05:13 PM
Post #54


Ameteur Member

Posts: 42
Joined: 3-November 14



Sorry if i am bumping.

How do i use Disable Border and Enable Percentage ?


Nevermind, Sorry for disturbing.

This post has been edited by Mora Hannover: Jan 15 2015, 08:28 PM


--------------------
Rest in Peace Yeardley Diamond (Dec. 21, 1985 - Aug. 20, 2014)
Rest in Peace Kitty0706 (1994 - Jan. 25, 2015)
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

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