yair1221 Posted August 27, 2010 Share Posted August 27, 2010 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 More sharing options...
Silent Posted August 27, 2010 Share Posted August 27, 2010 285255255255 You must write that in hexadecimal, not decimal Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060101304 Share on other sites More sharing options...
yair1221 Posted August 27, 2010 Author Share Posted August 27, 2010 i solved the problem 0A8C: write_memory 0xBAB22C size 2 value 255255 virtual_protect 1 //clear the buffer thanks anyway how do i write it in hexadecimal? Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060101316 Share on other sites More sharing options...
Silent Posted August 27, 2010 Share Posted August 27, 2010 Convert each value to hex using Windows Calculator. Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060101325 Share on other sites More sharing options...
yair1221 Posted August 27, 2010 Author Share Posted August 27, 2010 oh i see BTW: is there a memory hack to change the sky color? or simply an interior that turns the sky completely black? Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060101330 Share on other sites More sharing options...
spaceeinstein Posted August 27, 2010 Share Posted August 27, 2010 04F9: set_sky_color ## fade 0 find your value Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060101429 Share on other sites More sharing options...
yair1221 Posted August 27, 2010 Author Share Posted August 27, 2010 (edited) i dont have that opcode in my opcode search and the game will crash with that opcode http://www.gtamodding.com/index.php?title=...pported_opcodes Edited August 27, 2010 by yair1221 Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060101475 Share on other sites More sharing options...
spaceeinstein Posted August 27, 2010 Share Posted August 27, 2010 Huh? It's used in the original script. Search there for one. Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060101496 Share on other sites More sharing options...
yair1221 Posted August 27, 2010 Author Share Posted August 27, 2010 i dunno it says in the site that it isnt supported Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060101500 Share on other sites More sharing options...
Silent Posted August 27, 2010 Share Posted August 27, 2010 Site can be wrong 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 More sharing options...
yair1221 Posted August 27, 2010 Author Share Posted August 27, 2010 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 More sharing options...
Adler Posted August 28, 2010 Share Posted August 28, 2010 (edited) 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). Edited August 28, 2010 by Adler Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060101754 Share on other sites More sharing options...
spaceeinstein Posted August 28, 2010 Share Posted August 28, 2010 it says in the site that it isnt supported The site you linked did not say it's unsupported. Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060101853 Share on other sites More sharing options...
yair1221 Posted August 28, 2010 Author Share Posted August 28, 2010 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 More sharing options...
BnB Posted August 28, 2010 Share Posted August 28, 2010 Deji's opcode database has updated opcodes ! Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060102311 Share on other sites More sharing options...
Adler Posted August 28, 2010 Share Posted August 28, 2010 (edited) 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. Edited August 28, 2010 by Adler Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060102737 Share on other sites More sharing options...
yair1221 Posted August 28, 2010 Author Share Posted August 28, 2010 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 More sharing options...
Adler Posted August 29, 2010 Share Posted August 29, 2010 Meh don't worry about it. Deji knows what to remove and what not to. Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060103376 Share on other sites More sharing options...
yair1221 Posted August 29, 2010 Author Share Posted August 29, 2010 ill download the ini and txt Link to comment https://gtaforums.com/topic/457935-health-bar/#findComment-1060103469 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now