Oct 22 2012, 03:54 AM Post #41 | |
Newbie In Training Posts: 16 From: NYC USA Joined: 29-December 09 | I am not able to find the address of a color 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. |
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.-------------------- |
Jan 9 2014, 02:16 PM Post #43 | |
Coding like a Rockstar! Posts: 1,468 From: ??? Joined: 28-May 09 | 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) -------------------- | CLEO 4.3.22 | A?i?a?o?3D | UI SDK | Black Market Mod 1.0.1 | GInput 0.3 | Cheat Keyboard | Tactile Cheat Activation | Stream Ini Extender 0.7 | SuperVars | ScrDebug | Vigilante Justice: San Andreas | |
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] -------------------- |
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 -------------------- |
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. -------------------- |
Jan 19 2014, 06:21 PM Post #47 | |
Coding like a Rockstar! Posts: 1,468 From: ??? Joined: 28-May 09 | 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 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? -------------------- | CLEO 4.3.22 | A?i?a?o?3D | UI SDK | Black Market Mod 1.0.1 | GInput 0.3 | Cheat Keyboard | Tactile Cheat Activation | Stream Ini Extender 0.7 | SuperVars | ScrDebug | Vigilante Justice: San Andreas | |
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. -------------------- |
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 -------------------- |
Jan 23 2014, 04:45 PM Post #50 | |
Coding like a Rockstar! Posts: 1,468 From: ??? Joined: 28-May 09 | 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 Seemann invented those exact lines of code ages ago, I believe They've been posted on only three sites since. I knew it looked familiar. Thanks for sharing, anyway. -------------------- | CLEO 4.3.22 | A?i?a?o?3D | UI SDK | Black Market Mod 1.0.1 | GInput 0.3 | Cheat Keyboard | Tactile Cheat Activation | Stream Ini Extender 0.7 | SuperVars | ScrDebug | Vigilante Justice: San Andreas | |
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? -------------------- |
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 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 @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. This post has been edited by Arijit Sen: Jan 25 2014, 06:49 AM -------------------- |
Apr 14 2014, 06:36 AM Post #53 | |
Newbie In Training Posts: 12 Joined: 14-April 14 | how to move the health bar |
Jan 15 2015, 05:13 PM Post #54 | |
Ameteur Member Posts: 42 Joined: 3-November 14 | 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) |