Jump to content

health bar


yair1221

Recommended Posts

 

0A8D: 1@ = read_memory 0xBAB22C   size 2 virtual_protect 1wait 1000A8C: write_memory 0xBAB22C   size 4 value 285255255255 virtual_protect 1 //clear the buffer

 

 

this is my first memory hack

i wanted to make the health bar green

i dont know the parameters for this memory address

so i tried 255255255255(as if RGBA, white bar)

just to see if it works

it didnt, i got a yellow bar

so i changed the code into this

285255255255

and i got the perfect color

but then, i dont know what happened

maybe i touched something in the code

but the bar became almost transparent

what controls the RGBA's A in this address?

how do i make it less transparent?

Link to comment
https://gtaforums.com/topic/457935-health-bar/
Share on other sites

 

285255255255

 

You must write that in hexadecimal, not decimal wow.gif

Link to comment
https://gtaforums.com/topic/457935-health-bar/#findComment-1060101304
Share on other sites

Convert each value to hex using Windows Calculator.

Link to comment
https://gtaforums.com/topic/457935-health-bar/#findComment-1060101325
Share on other sites

Site can be wrong confused.gif

It is listed in Deji's opcode database == exists and works.

Link to comment
https://gtaforums.com/topic/457935-health-bar/#findComment-1060101504
Share on other sites

in my sascm.ini:

 

04F9: set_interior 1 color_to 0 

 

 

instead of what you said

 

04F9: set_sky_color 1 fade 0

 

 

how can it be?

 

and when i tried 04F9: set_interior 0 color_to 1

and 04F9: set_interior 0 color_to 2

no matter what number

everything went blue

Link to comment
https://gtaforums.com/topic/457935-health-bar/#findComment-1060101511
Share on other sites

Change the first parameter to change sky/interior colors. The second one is only used to fade into the sky/interior. See GTAModding.

 

Also, the opcode in your opcodes.txt is wrong. I suggest updating to Deji's Opcode Database.

 

And try my Weather ID Selector (which includes a sky color changer) to pick out some interior colors (I need to update it by the way since you can't revert back to the normal sky in the current version lol). wink.gif

Edited by Adler
Link to comment
https://gtaforums.com/topic/457935-health-bar/#findComment-1060101754
Share on other sites

it says in the site that it isnt supported

The site you linked did not say it's unsupported.

yes it does

it is in the unsupported opcodes llist

 

 

Change the first parameter to change sky/interior colors. The second one is only used to fade into the sky/interior. See GTAModding.

 

Also, the opcode in your opcodes.txt is wrong. I suggest updating to Deji's Opcode Database.

 

And try my Weather ID Selector (which includes a sky color changer) to pick out some interior colors (I need to update it by the way since you can't revert back to the normal sky in the current version lol). wink.gif

 

This post has been edited by Adler on Aug 28 2010, 04:06

 

thanks ill download it now

and unfortunately

DEJI's opcode database has less opcodes than my sanny builder

i checked

Link to comment
https://gtaforums.com/topic/457935-health-bar/#findComment-1060102299
Share on other sites

lol less opcodes... He might have removed some of the not opcodes (8xxx) or some other ones but all of the regular opcodes should be there and updated.

 

EDIT

 

And no I do not see 04F9 in the unsupported opcodes list.

i dunno last time i checked it was something like 50 opcodes less

Link to comment
https://gtaforums.com/topic/457935-health-bar/#findComment-1060102817
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.