Skip to content

VerkCoding/RubleFormatterMod

Repository files navigation

RubleFormatter

A simple EFT/SPT mod that formats large ruble amounts for better readability.

What it does

Before: 5,000,000 ₽
After: 5 Mil ₽

Makes inventory and trader screens much cleaner when dealing with millions of rubles.

Features

  • 🎯 Smart formatting - Only formats amounts ≥1M rubles
  • ⚙️ Configurable - Adjust settings via F12 Configuration Manager
  • 🔧 Lightweight - Minimal performance impact
  • 🌐 FIKA compatible - Works in multiplayer SPT setups
  • UI-only changes - Never modifies actual money values

Installation

  1. Extract the mod folder into ./[SPT]
  2. Verify folder structure: ./[SPT]/BepInEx/plugins/RubleFormatter.dll
  3. Ignite the engine, GLHF!

Configuration

Press F12 in-game to open Configuration Manager:

  • Enabled - Enable/disable the mod (default: true)
  • ShowDecimals - Show decimal places like "1.5 Mil" (default: false)
  • Threshold - Minimum amount to format in millions (default: 1,000,000)

Examples

Original Formatted With Decimals
1,500,000 ₽ 1 Mil ₽ 1.5 Mil ₽
25,300,000 ₽ 25 Mil ₽ 25.3 Mil ₽
999,999 ₽ 999,999 ₽ 999,999 ₽

Compatibility

  • SPT 3.11.x - Tested on 3.11.3 & 3.11.4
  • FIKA - Multiplayer compatible
  • Other UI mods - Should work alongside most mods

Building from Source

Requirements:

  • .NET Framework 4.7.2+
  • Visual Studio 2019+ or Rider
  • EFT game files for references

Setup:

  1. Clone the repository:
git clone https://github.com/VerkCoding/RubleFormatter.git
cd RubleFormatter
  1. Copy RubleFormatter.csproj.user.example to RubleFormatter.csproj.user

  2. Edit RubleFormatter.csproj.user and set your paths:

<SPTPath>C:\Path\To\Your\SPT</SPTPath>
<EFTPath>C:\Path\To\Your\EFT</EFTPath>
  1. Build:
dotnet build --configuration Release

The compiled DLL will be in bin/Release/net472/

If you set SPTPath, the build will automatically copy the DLL to your SPT mods folder.

How it works

Uses Harmony patches to intercept EFT's money display methods:

  • DisplayMoneyPanel.Show() - Main inventory money display
  • DisplayMoneyPanelTMPText.Show() - Text-based money displays

Only patches the display layer - doesn't modify actual money values or game logic.

Troubleshooting

Mod not working?

  1. Check BepInEx logs for errors
  2. Ensure Enabled = true in F12 config
  3. Test with amounts over 1M rubles

Formatting not showing?

  • Default threshold is 1M rubles
  • Lower threshold in F12 config if needed

License

MIT License with Commercial Restriction

Free to use, modify, and distribute for personal/non-commercial purposes.
Commercial use requires revenue sharing - contact for licensing terms.

Contributing

Pull requests welcome! Please:

  • Follow existing code style
  • Test with multiple SPT versions
  • Update README if adding features

Credits

Built with:


Made for the SPT community ❤️

About

Clean, readable ruble formatter for SPTarkov (5000000 ₽ → 5 Mil ₽) || SPT/FIKA

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages