Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (92,002 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

CharlesVercetti

[VC|ASI] Changeable HUD Colors

Recommended Posts

CharlesVercetti

Don't forget to download the new version with text shadow color changing support!

dzih22bagg203l1zg.jpg?size_id=4

Just a fun mod for GTA: Vice City to add some new colors to the HUD elements.While working with my Rectangular HUD,I thought "Why not create a script and add the colors through it?"Because in the previous release I included a modified EXE for colours.It was ignored afterall,so I just created this script to replace the EXE method.Also,when I searched for color modifications in Google,I got zero results.Hope this will reach to those people who were in need of this.

Special thanks to:

@spaceeinstein ,for providing memory addresses.

@DK22Pac ,for PluginSDK.

Contents:

  • chhudcol.VC.asi
  • ChangeableHUDColors.ini
  • readme.txt
  • SA.ini
  • LCS.ini
  • IV.ini
  • V.ini
  • VCS.ini

Download:


NewColorsHUD.zip(deprecated) | Mediafire | GTAGarage
chhudcol.zip(ASI plugin) | Mediafire | GTAGarage(unavailable)

chhudcolv2.zip(updated) | Mediafire | GTAGarage(unavailable)


Screenshots:
 

 

1.GTA3
laubcfu9fe83mwkzg.jpg
2.GTA SA
kble88fgdc792quzg.jpg

3.GTA LCS
2d82wz6m0d4di9gzg.jpg

4.GTA VCS
nk8bcirld985qfmzg.jpg

5,GTA IV
6dd118kbp64e1oizg.jpg

6.GTA V

jxhct4s72irpnbrzg.jpg

 

6.Shadow Colour Changing Feature

shadowcolorchange



How to install?

  • Download the chhudcol.zip and extract it.
  • Copy the contents in the "Changeable HUD Colors" folder to "scripts" folder or directly in GTA:VC root folder.
  • You can add and use your own color choice(RGB palette) to the ChangeableHUDColors.ini file.
Edited by CharlesVercetti

Share this post


Link to post
Share on other sites
Sandris Gjoka

Nice :)

Share this post


Link to post
Share on other sites
Apu889

decent!

 

btw why not using an .ini file to configure colors easily, rather than recompiling each script?

Share this post


Link to post
Share on other sites
CharlesVercetti

decent!

 

btw why not using an .ini file to configure colors easily, rather than recompiling each script?

Nice idea,but does VC CLEO support INI Configs?

Share this post


Link to post
Share on other sites
CharlesVercetti

 

Nice idea,but does VC CLEO support INI Configs?

Yes but you need new opcodes for III and VC:

http://gtaforums.com/topic/807185-cleo-20/

 

or you can make an asi with the SDK plugin:

https://github.com/DK22Pac/plugin-sdk

 

It supports only 16 local variables to be assigoned.

Meanwhile,how do I define terms in the .ini?The codeline states that it takes two stuff in consideration - Section Name and key.For now I attempted doing a .ini something like this

 

MONEY RED=255 GREEN=255 BLUE=255

HEALTH RED=255 GREEN=255 BLUE=255
HEALTHICON RED=255 GREEN=255 BLUE=255
ARMOR RED=255 GREEN=255 BLUE=255
ARMORICON RED=255 GREEN=255 BLUE=255
AMMOCOUNT RED=255 GREEN=255 BLUE=255
WANTEDACTIVE RED=255 GREEN=255 BLUE=255
WANTEDSUSPENDED RED=255 GREEN=255 BLUE=255
WANTEDINACTIVE RED=255 GREEN=255 BLUE=255
VEHICLE RED=255 GREEN=255 BLUE=255
ZONE RED=255 GREEN=255 BLUE=255
TIME RED=255 GREEN=255 BLUE=255

 

It is a failure.
Edited by CharlesVercetti

Share this post


Link to post
Share on other sites
MKKJ

Meanwhile,how do I define terms in the .ini?The codeline states that it takes two stuff in consideration - Section Name and key.For now I attempted doing a .ini something like this

 

MONEY RED=255 GREEN=255 BLUE=255

HEALTH RED=255 GREEN=255 BLUE=255
HEALTHICON RED=255 GREEN=255 BLUE=255
ARMOR RED=255 GREEN=255 BLUE=255
ARMORICON RED=255 GREEN=255 BLUE=255
AMMOCOUNT RED=255 GREEN=255 BLUE=255
WANTEDACTIVE RED=255 GREEN=255 BLUE=255
WANTEDSUSPENDED RED=255 GREEN=255 BLUE=255
WANTEDINACTIVE RED=255 GREEN=255 BLUE=255
VEHICLE RED=255 GREEN=255 BLUE=255
ZONE RED=255 GREEN=255 BLUE=255
TIME RED=255 GREEN=255 BLUE=255

 

It is a failure.

 

Config format should go like this

 

 

[sectionName]Key = (desired value)

In CLEO

0AF0: [email protected] = get_int_from_ini_file "cleo\config.ini" section "SectionName" key "Key" // [email protected] = (desired value)

Which means in your example, it would be like

[MONEY]RED=255GREEN=255BLUE=255[HEALTH]RED=255GREEN=255BLUE=255;so on...

In CLEO

0AF0: [email protected] = get_int_from_ini_file "cleo\config.ini" section "MONEY" key "RED" // [email protected] = 2550AF0: [email protected] = get_int_from_ini_file "cleo\config.ini" section "MONEY" key "GREEN" // [email protected] = 2550AF0: [email protected] = get_int_from_ini_file "cleo\config.ini" section "MONEY" key "BLUE" // [email protected] = 255// so on...

 

 

Share this post


Link to post
Share on other sites
CharlesVercetti

 

Meanwhile,how do I define terms in the .ini?The codeline states that it takes two stuff in consideration - Section Name and key.For now I attempted doing a .ini something like this

 

MONEY RED=255 GREEN=255 BLUE=255

HEALTH RED=255 GREEN=255 BLUE=255

HEALTHICON RED=255 GREEN=255 BLUE=255

ARMOR RED=255 GREEN=255 BLUE=255

ARMORICON RED=255 GREEN=255 BLUE=255

AMMOCOUNT RED=255 GREEN=255 BLUE=255

WANTEDACTIVE RED=255 GREEN=255 BLUE=255

WANTEDSUSPENDED RED=255 GREEN=255 BLUE=255

WANTEDINACTIVE RED=255 GREEN=255 BLUE=255

VEHICLE RED=255 GREEN=255 BLUE=255

ZONE RED=255 GREEN=255 BLUE=255

TIME RED=255 GREEN=255 BLUE=255

 

 

It is a failure.

 

Config format should go like this

 

 

 

[sectionName]Key = (desired value)
In CLEO

 

0AF0: [email protected] = get_int_from_ini_file "cleo\config.ini" section "SectionName" key "Key" // [email protected] = (desired value)
Which means in your example, it would be like

 

[MONEY]RED=255GREEN=255BLUE=255[HEALTH]RED=255GREEN=255BLUE=255;so on...
In CLEO

 

0AF0: [email protected] = get_int_from_ini_file "cleo\config.ini" section "MONEY" key "RED" // [email protected] = 2550AF0: [email protected] = get_int_from_ini_file "cleo\config.ini" section "MONEY" key "GREEN" // [email protected] = 2550AF0: [email protected] = get_int_from_ini_file "cleo\config.ini" section "MONEY" key "BLUE" // [email protected] = 255// so on...

 

 

Thanks for that.

Another question....Do I have to seperate the script in two parts.'Cause VC CLEO supports max.16 variables..

Edited by CharlesVercetti

Share this post


Link to post
Share on other sites
MKKJ

Thanks for that.

Another question....Do I have to seperate the script in two parts.'Cause VC CLEO supports max.16 variables..

There are several trick to add extra variables in cleo script, though i never tested it in VC.

One of them using read_memory and write_memory. Crspy put it nicely here.

Edited by MKKJ

Share this post


Link to post
Share on other sites
DK22Pac

If you code consists mainly of read_memory and write_memory commands, I'd recommend you to not use CLEO (SCM scripting) at all.

If there's already a great solution, why not using it?

 

Here's how everything can be done with C++ and plugin-sdk:

 

 

#include "plugin.h"using namespace plugin;class ChangeableHudColors {public:    ChangeableHudColors() {        config_file conf(PLUGIN_PATH("ChangeableHudColors.ini"));        std::string preset = conf["USE_PRESET"].asString("III");        auto WriteColor = [](unsigned int addrR, unsigned int addrG, unsigned int addrB, CRGBA const &clr) {            patch::SetUChar(addrR, clr.red); patch::SetUChar(addrG, clr.green); patch::SetUChar(addrB, clr.blue);        };        WriteColor(5604015, 5604010, 5604005, conf[preset + ".MoneyColor"          ].asRGBA());        WriteColor(5606313, 5606308, 5606303, conf[preset + ".HealthColor"         ].asRGBA());        WriteColor(5606542, 5606502, 5606497, conf[preset + ".HealthIconColor"     ].asRGBA());        WriteColor(5606950, 5606945, 5606940, conf[preset + ".ArmorColor"          ].asRGBA());        WriteColor(5607166, 5607126, 5607121, conf[preset + ".ArmorIconColor"      ].asRGBA());        WriteColor(5605570, 5605565, 5605560, conf[preset + ".AmmoColor"           ].asRGBA());        WriteColor(5607626, 5607621, 5607616, conf[preset + ".WantedActiveColor"   ].asRGBA());        WriteColor(5607720, 5607715, 5607710, conf[preset + ".WantedSuspendedColor"].asRGBA());        WriteColor(5607792, 5607790, 5607785, conf[preset + ".WantedInactiveColor" ].asRGBA());        WriteColor(5609812, 5609807, 5609805, conf[preset + ".ZoneColor"           ].asRGBA());        WriteColor(5610979, 5610974, 5610969, conf[preset + ".VehicleColor"        ].asRGBA());        WriteColor(5611409, 5611404, 5611399, conf[preset + ".TimeColor"           ].asRGBA());    }} changeableHudColors;
And your settings file will look like this:

 

 

 

USE_PRESET = LCS# Parameter                #R  #G  #BIII.MoneyColor           = 85  108 144III.HealthColor          = 178  95  48III.HealthIconColor      = 178  95  48III.ArmorColor           = 119 132  86III.ArmorIconColor       = 119 132  86III.AmmoColor            =   0   0   0III.WantedActiveColor    = 206 170 136III.WantedSuspendedColor =  21 106  23III.WantedInactiveColor  =   0   0   0III.ZoneColor            = 148 150  80III.VehicleColor         = 188 160 117III.TimeColor            = 186 185 115SA.MoneyColor            =  54 104  44SA.HealthColor           = 180  25  29SA.HealthIconColor       = 150  25  29SA.ArmorColor            = 225 225 225SA.ArmorIconColor        = 225 225 225SA.AmmoColor             = 172 203 241SA.WantedActiveColor     = 144  98  16SA.WantedSuspendedColor  =  82  56   9SA.WantedInactiveColor   =   0   0   0SA.ZoneColor             = 172 203 241SA.VehicleColor          =  54 104  44SA.TimeColor             = 225 225 225LCS.MoneyColor           =  60 149  46LCS.HealthColor          = 202  11  10LCS.HealthIconColor      = 202  11  10LCS.ArmorColor           =  69 160 231LCS.ArmorIconColor       =  69 160 231LCS.AmmoColor            = 255 255 255LCS.WantedActiveColor    = 255 203  51LCS.WantedSuspendedColor =  82  56   9LCS.WantedInactiveColor  =   0   0   0LCS.ZoneColor            = 255 255 255LCS.VehicleColor         = 255 255 255LCS.TimeColor            = 255 203  51VCS.MoneyColor           =  40 102  35VCS.HealthColor          = 208  86 133VCS.HealthIconColor      = 209  86 133VCS.ArmorColor           =  15 224 219VCS.ArmorIconColor       =  15 224 219VCS.AmmoColor            = 255 255 255VCS.WantedActiveColor    = 255 203  51VCS.WantedSuspendedColor =  82  56   9VCS.WantedInactiveColor  =   0   0   0VCS.ZoneColor            = 255 255 255VCS.VehicleColor         = 255 255 255VCS.TimeColor            = 192 135  45IV.MoneyColor            = 255 255 255IV.HealthColor           =  87 124  88IV.HealthIconColor       =  87 124  88IV.ArmorColor            =  74 148 160IV.ArmorIconColor        =  74 148 160IV.AmmoColor             = 255 255 255IV.WantedActiveColor     = 255 255 255IV.WantedSuspendedColor  = 125 125 125IV.WantedInactiveColor   =   0   0   0IV.ZoneColor             = 255 255 255IV.VehicleColor          = 255 255 255IV.TimeColor             = 255 255 255V.MoneyColor             = 180 180 180V.HealthColor            =  65 164  70V.HealthIconColor        =  65 164  70V.ArmorColor             =  32  87 117V.ArmorIconColor         =  32  87 117V.AmmoColor              = 255 255 255V.WantedActiveColor      = 255 255 255V.WantedSuspendedColor   = 125 125 125V.WantedInactiveColor    =   0   0   0V.ZoneColor              = 255 255 255V.VehicleColor           = 255 255 255V.TimeColor              = 255 255 255

 

Share this post


Link to post
Share on other sites
deltaCJ

If you code consists mainly of read_memory and write_memory commands, I'd recommend you to not use CLEO (SCM scripting) at all.

If there's already a great solution, why not using it?

 

Here's how everything can be done with C++ and plugin-sdk:

 

#include "plugin.h"using namespace plugin;class ChangeableHudColors {public:    ChangeableHudColors() {        config_file conf(PLUGIN_PATH("ChangeableHudColors.ini"));        std::string preset = conf["USE_PRESET"].asString("III");        auto WriteColor = [](unsigned int addrR, unsigned int addrG, unsigned int addrB, CRGBA const &clr) {            patch::SetUChar(addrR, clr.red); patch::SetUChar(addrG, clr.green); patch::SetUChar(addrB, clr.blue);        };        WriteColor(5604015, 5604010, 5604005, conf[preset + ".MoneyColor"          ].asRGBA());        WriteColor(5606313, 5606308, 5606303, conf[preset + ".HealthColor"         ].asRGBA());        WriteColor(5606542, 5606502, 5606497, conf[preset + ".HealthIconColor"     ].asRGBA());        WriteColor(5606950, 5606945, 5606940, conf[preset + ".ArmorColor"          ].asRGBA());        WriteColor(5607166, 5607126, 5607121, conf[preset + ".ArmorIconColor"      ].asRGBA());        WriteColor(5605570, 5605565, 5605560, conf[preset + ".AmmoColor"           ].asRGBA());        WriteColor(5607626, 5607621, 5607616, conf[preset + ".WantedActiveColor"   ].asRGBA());        WriteColor(5607720, 5607715, 5607710, conf[preset + ".WantedSuspendedColor"].asRGBA());        WriteColor(5607792, 5607790, 5607785, conf[preset + ".WantedInactiveColor" ].asRGBA());        WriteColor(5609812, 5609807, 5609805, conf[preset + ".ZoneColor"           ].asRGBA());        WriteColor(5610979, 5610974, 5610969, conf[preset + ".VehicleColor"        ].asRGBA());        WriteColor(5611409, 5611404, 5611399, conf[preset + ".TimeColor"           ].asRGBA());    }} changeableHudColors;
And your settings file will look like this:

 

 

 

USE_PRESET = LCS# Parameter                #R  #G  #BIII.MoneyColor           = 85  108 144III.HealthColor          = 178  95  48III.HealthIconColor      = 178  95  48III.ArmorColor           = 119 132  86III.ArmorIconColor       = 119 132  86III.AmmoColor            =   0   0   0III.WantedActiveColor    = 206 170 136III.WantedSuspendedColor =  21 106  23III.WantedInactiveColor  =   0   0   0III.ZoneColor            = 148 150  80III.VehicleColor         = 188 160 117III.TimeColor            = 186 185 115SA.MoneyColor            =  54 104  44SA.HealthColor           = 180  25  29SA.HealthIconColor       = 150  25  29SA.ArmorColor            = 225 225 225SA.ArmorIconColor        = 225 225 225SA.AmmoColor             = 172 203 241SA.WantedActiveColor     = 144  98  16SA.WantedSuspendedColor  =  82  56   9SA.WantedInactiveColor   =   0   0   0SA.ZoneColor             = 172 203 241SA.VehicleColor          =  54 104  44SA.TimeColor             = 225 225 225LCS.MoneyColor           =  60 149  46LCS.HealthColor          = 202  11  10LCS.HealthIconColor      = 202  11  10LCS.ArmorColor           =  69 160 231LCS.ArmorIconColor       =  69 160 231LCS.AmmoColor            = 255 255 255LCS.WantedActiveColor    = 255 203  51LCS.WantedSuspendedColor =  82  56   9LCS.WantedInactiveColor  =   0   0   0LCS.ZoneColor            = 255 255 255LCS.VehicleColor         = 255 255 255LCS.TimeColor            = 255 203  51VCS.MoneyColor           =  40 102  35VCS.HealthColor          = 208  86 133VCS.HealthIconColor      = 209  86 133VCS.ArmorColor           =  15 224 219VCS.ArmorIconColor       =  15 224 219VCS.AmmoColor            = 255 255 255VCS.WantedActiveColor    = 255 203  51VCS.WantedSuspendedColor =  82  56   9VCS.WantedInactiveColor  =   0   0   0VCS.ZoneColor            = 255 255 255VCS.VehicleColor         = 255 255 255VCS.TimeColor            = 192 135  45IV.MoneyColor            = 255 255 255IV.HealthColor           =  87 124  88IV.HealthIconColor       =  87 124  88IV.ArmorColor            =  74 148 160IV.ArmorIconColor        =  74 148 160IV.AmmoColor             = 255 255 255IV.WantedActiveColor     = 255 255 255IV.WantedSuspendedColor  = 125 125 125IV.WantedInactiveColor   =   0   0   0IV.ZoneColor             = 255 255 255IV.VehicleColor          = 255 255 255IV.TimeColor             = 255 255 255V.MoneyColor             = 180 180 180V.HealthColor            =  65 164  70V.HealthIconColor        =  65 164  70V.ArmorColor             =  32  87 117V.ArmorIconColor         =  32  87 117V.AmmoColor              = 255 255 255V.WantedActiveColor      = 255 255 255V.WantedSuspendedColor   = 125 125 125V.WantedInactiveColor    =   0   0   0V.ZoneColor              = 255 255 255V.VehicleColor           = 255 255 255V.TimeColor              = 255 255 255

 

 

 

Could I possibly do this with out the settings file? and if so how?

Share this post


Link to post
Share on other sites
CharlesVercetti

After nearly a year, I have updated the mod based on @DK22Pac PluginSDK.You can download it from first post.😊

Share this post


Link to post
Share on other sites
CharlesVercetti

Sorry for bumping up...

I have updated the mod to v2...

It now has shadow color changing option too...right in the .ini files use RGB palette to change the colors!

Below is an example...where white color is used(RGB 255 255 255)

sg1uzc75n9yvq78zg.jpg?size_id=5

 

Downloads available in first post!

Share this post


Link to post
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

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×

Important Information

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