RaiRaiTheRaichu added a new file:
QuoteDisplay MoreColor 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.
- Simply extract the zip file contents into your root SPT-AKI folder (where EscapeFromTarkov.exe is).
- Your
BepInEx/plugins
folder should now contain aRaiRai.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.
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:
CodeDisplay Moreprivate 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",
- July 10th, 2024:
- Refactor to module changes for SPT 3.9.0+.
- Added support for alpha values for hex codes.