The Forge is currently under construction. Data is synchronized with the hub every 30 minutes. Help report issues!

Mod Details

Color Converter API

Color Converter API 1.1.1

Created by RaiRaiTheRaichu

36.0K Downloads

SPT 3.11.4 Compatible

Client-side mod to allow using hexcode colors for your items! Custom background colors for your items, or any color tracer you want!

Latest Version 1.1.1
SPT 3.11.4

Updated Aug 13th, 7:31 PM

Version Notes

Changelog:

Fixed case-sensitive string parsing for color enum.

(Error “Failed to read JSON value for TaxonomyColor” for certain mods.)

Hey! Thanks for downloading, if you’d like to support my work, you’re more than welcome to support me at the link below or follow along at my Ko-Fi page here:

https://ko-fi.com/rairaitheraichu

This download is externally hosted.
Always scan for viruses.
Mod Info

Color Converter API

Find out more about what EFT mods I’m working on here!

https://trello.com/b/CONaHPTn/…i-mods-by-rairaitheraichu

An SPT module mod that extends the functionality of the client, allowing the server to use raw hexcode color values for fields that ordinarily can only support BSG-created color enums.

This mod should be forward-compatible with all new client releases for EFT (unless something very, very significant changes) and does NOT need to be updated.

Please note that on its own, this mod does nothing! It allows OTHER mods to use the full color spectrum where BSG uses the predefined color enums.

How to install

  1. Simply extract the zip file contents into your root SPT-AKI folder (where EscapeFromTarkov.exe is).
  2. Your BepInEx/plugins folder should now contain a RaiRai.ColorConverterAPI.dll file inside.

License

Do not reupload or redistribute anywhere without explicit permission - please instead link to this mod page as part of your dependencies.

Usage (for modders)

You can check to see if the plugin exists in your server mod’s source code any way you’d like, but an easy copy-paste check is here:

private static IsPluginLoaded(): boolean { const fs = require(‘fs’); const pluginName = “rairai.colorconverterapi.dll”; // Fails if there’s no ./BepInEx/plugins/ folder try { const pluginList = fs.readdirSync(“./BepInEx/plugins“).map(plugin => plugin.toLowerCase()); return pluginList.includes(pluginName); } catch { return false; } } You can handle the result of this function however you’d like. Once you have validated that the plugin exists, you can proceed to fill in the fields for color in your item database with hexcodes in lieu of a color enum.

For example:

“TracerColor”: “#FF00FF”,

“BackgroundColor”: “#2A2AFF”,

Short 3-byte hexcode colors are also supported like so:

“BackgroundColor”: “#F90”,

Which will be interpreted as:

“BackgroundColor”: “#FF9900”,

As of version 1.1.0, you can optionally pass a fourth hex value for an Alpha (otherwise, it is treated as FF/255).

“BackgroundColor”: “#FF2AFF99”,

Changelog
  • July 10th, 2024:
    • Refactor to module changes for SPT 3.9.0+.
    • Added support for alpha values for hex codes.
Version 1.1.1
Download Mod Version
SPT 3.11.4
Latest Compatible SPT Version

20.9K Downloads

Created Aug 13th, 7:31 PM

Updated Aug 13th, 7:31 PM

Virus Total Results

Changelog:

Fixed case-sensitive string parsing for color enum.

(Error “Failed to read JSON value for TaxonomyColor” for certain mods.)

Hey! Thanks for downloading, if you’d like to support my work, you’re more than welcome to support me at the link below or follow along at my Ko-Fi page here:

https://ko-fi.com/rairaitheraichu

Version 1.1.0
Download Mod Version
SPT 3.9.0
Latest Compatible SPT Version

2.7K Downloads

Created Jul 10th, 4:44 PM

Updated Jul 10th, 4:44 PM

Virus Total Results

Changelog:

Refactor to module changes for SPT 3.9.0+.

Added support for alpha values for hex codes.

Hey! Thanks for downloading, if you’d like to support my work, you’re more than welcome to support me at the link below or follow along at my Ko-Fi page here:

https://ko-fi.com/rairaitheraichu

Version 1.0.0
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

12.3K Downloads

Created Oct 8th, 2023

Updated Oct 8th, 2023

Virus Total Results

(Reupload due to broken permissions.)

Link not working? Try downloading from here:

https://github.com/RaiRaiTheRaichu/ColorConverterAPI/releases

https://dev.sp-tarkov.com/RaiRaiTheRaichu/ColorConverterAPI/releases

RaiRaiTheRaichu Pinned

Updated the mod page, I have tested this and it still functions perfectly fine on 3.10.x.

Edit: Also works on 3.11.x

0 Likes
Dante406

Do i put this mod in the client or server install if i want to use headless

0 Likes
FiveF

For 3.11 seems work fine.

1 Like
TimmyGG

EDIT: I stand corrected - It does, in fact work on 3.10.x

-----------------------------------------------------------------------------------------

Unfortunately, doesn’t work with 3.10 - which was expected. I attempted to look over the code but, no knowledge of C#. lol - Thank you for your work RaiRai!

1 Like
S.Michailow

i get this with 3.9.2

Screenshot-2024-07-17-080539.png

0 Likes
Refringe

Fantastic work! ♥

1 Like
Demigods

Soo this might be the dumbest question ever but how does the mod work? I hit F12 and couldn’t find it in the list to recolor items. :/

0 Likes
SezaRoski
0 Likes
Houragorn

This might be foolish of me but, would there be a way to use this to add more colours to the “Tag” feature for containers? Is that even possible?

0 Likes
Elite911

I am using Item Info

I assume this mod would be incompatible as they both use colors.

0 Likes

Details