tModLoader

tModLoader

Colored Damage Types
Kanaris 24 Jul, 2022 @ 11:14pm
Guide for adding semi-transparent damage numbers | Reduce visual clutter!
Note
- This mod currently (v1.7.2) doesn't let you change the colour of "classless" damage like debuff DoT ticks, slime mount bouncing on enemy damage, shield of cthulhu dash damage, etc. Those will remain like in vanilla unless you hide them by hiding ALL damage numbers.
- If you want the damage numbers to look like the vanilla brown/orange ones for ALL classes, but still want transparency, try setting all classes to the values I have for throwing damage. Those values produce a brown/orange sort of colour.
- In game it's slightly more visible than in these recordings, and also a lot less fuzzy, due to video compression.
- Resource pack in recordings is Polaris Texture Pack by Orion.

Instructions
  1. Subscribe to this mod and open TML. Go to workshop>manage mods>enable this mod, then back out to main menu to get the mod to load.
  2. In this mod's settings, enable these toggles: Show damage numbers, Change Damage Color. The other two toggles are optional if you want them.
  3. Click Save Config at the bottom, then click the arrow to the right of Notifications, to access the "Damage Config".
  4. Move any of the sliders here and click Save Config. It doesn't matter which slider, just change any value so that the mod creates the config file.
  5. In File Explorer, navigate to
    C:\Users\<YOURUSERNAME>\Documents\My Games\Terraria\tModLoader\ModConfigs
    Note that TML has a new way of doing large version changes. To ensure mods aren't suddenly broken when a new version releases, you now have beta branches. If you opted into a beta branch to stay on a stable version of TML so your mods work, TML will have made a separate folder for all of that version's junk. Just make sure you check which folder is being used by your TML currently.
    For example, if I stay on the TML that works with Terraria 1.4.3 instead of moving onto 1.4.4 when it launches, my path for this mod's configs might instead be
    C:\Users\<YOURUSERNAME>\Documents\My Games\Terraria\tModLoader-1.4.3\ModConfigs

  6. Using a text editor like Notepad or Notepad++, open the file called
    ColoredDamageTypes_DamageConfig.json
  7. Ctrl+A all the text and delete it. Ctrl+C all the text from the section titled "Code block" below this one and Ctrl+V it into notepad. Ctrl+S to save.
  8. You're done! Hop into game and hit a dummy to try it out. You can edit the sliders for any of the colours in the Damage Config, and the transparency value will persist regardless of RGB. Note that if you turn up the RGB values, it won't really seem transparent anymore.

Code block
{ "VanillaDmg": { "MeleeDmg": { "MeleeDamage": "15, 0, 0, 0", "MeleeDamageCrit": "21, 0, 0, 0" }, "RangedDmg": { "RangedDamage": "0, 11, 0, 0", "RangedDamageCrit": "2, 14, 5, 0" }, "MagicDmg": { "MagicDamage": "0, 6, 27, 0", "MagicDamageCrit": "0, 14, 18, 0" }, "ThrowingDmg": { "ThrowingDamage": "20, 12, 5, 0", "ThrowingDamageCrit": "21, 15, 0, 0" }, "SummonDmg": { "SummonDamage": "15, 3, 15, 0", "SummonDamageCrit": "27, 14, 27, 0" }, "SentryDmg": { "SentryDamage": "11, 5, 21, 0", "SentryDamageCrit": "17, 0, 35, 0" } } }

Examples
Melee (Light Disc)
Night[streamable.com]
Day[streamable.com]

Ranged (Clockwork Assault Rifle)
Night[streamable.com]
Day[streamable.com]

Magic (Astral Staff - Calamity)
Night[streamable.com]
Day[streamable.com]

Throwing / Rogue (Scourge of the Desert - Calamity)
Night[streamable.com]
Day[streamable.com]

Summoner (Morning Star + Terraprisma)
Night[streamable.com]
Day[streamable.com]

Generic, impossible to change in current version (Slimy Saddle + Leviathan Ambergris - Calamity + Asgard's Valor dash - Calamity)
Night[streamable.com]
Day[streamable.com]
Last edited by Kanaris; 19 Jul, 2023 @ 2:21am
< >
Showing 1-1 of 1 comments
Kanaris 7 Jul, 2023 @ 5:45am 
The examples uploaded on streamable will soon be deleted, so I've re-recorded them all together into one video for posterity. Reminder that video compression kills the quality and colours are especially harshly affected. In-game it looks much clearer.

https://www.youtube.com/watch?v=AVdFOJkPE3c

Note that I have not updated any part of the guide, so things might be different for modern versions of the mod. I have no idea!

Also ty for the award, anon.
Last edited by Kanaris; 7 Jul, 2023 @ 5:46am
< >
Showing 1-1 of 1 comments
Per page: 1530 50