Skip to content

Modding Taxation Evasion

The game's content is data: cars, cards, weapons, parts, paints, maps, difficulties, run modifiers, enemies, counters and announcer lines are rows in game/data/content/base/. A mod is a folder of the same files. It can change any row, add new ones, add art and sound, and translate the game.

Page What it covers
How mods work Data and code mods, ids, load order, validation
Built-in mods The MODS menu, and the three mods that come with the game
Balance and modifiers Difficulties, tuning numbers, run modifiers
Weapons Gear cards, patterns, upgrades, traits
Enemies and bosses Enemy families, spawns, boss fights
Contracts Counters and the unlocks they earn
Announcer Lines, faces, voices
Maps New maps, islands, map code
Art, sound and music New and replacement sprites, sounds, tracks
Translations Languages and text keys
Code mods Lua scripts, drawing, mod settings
Steam Workshop Packaging and uploading
Limits API stability and what is still game code
API reference Every game function, event and field, generated from the code
Examples Thirteen working mods, loaded by a test on every change, plus the built-in three

Install a mod

Put the mod's folder in mods/ in the save folder (created on first launch):

OS Folder
Windows %APPDATA%\com.taxsurvivor.love-native\mods\
Linux ~/.local/share/com.taxsurvivor.love-native/mods/
  • Steam: subscribe on the Workshop page. Subscriptions load at startup, after mods/. A mods/ folder with the same mod id wins, so authors can work on a published mod.
  • Turn mods on or off: MODS on the home menu (or Settings > MODS) has a switch per mod. RELOAD MODS on the same page applies the switches and loads new folders in mods/ without quitting the game.
  • Check what loaded: the same page lists skipped mods with the reason.
  • Start without mods: set TAX_LOVE_MODS=0.

Mods that come with the game

Three mods ship with the game, off until you turn them on under MODS: Bounty Board (code: bounties on police units, with a HUD panel), Loopholes (data: a weapon and run modifiers) and Sky Laser (code: an orbital laser weapon of its own). See Built-in mods.

Your first mod: a difficulty

  1. Create mods/nightmare/mod.json:

    {
      "id": "nightmare",
      "title": "Nightmare difficulty",
      "api": 1
    }
    
  2. Add mods/nightmare/difficulties.json:

    [
      {
        "id": "nightmare.nightmare",
        "numeral": "V",
        "name": "NIGHTMARE",
        "short": "NIGHTMARE",
        "rule": "TWICE THE POLICE, ARMY TWO STARS SOONER",
        "payout": 3.5,
        "crowd": 2,
        "fewer_repairs": true,
        "army_shift": 2,
        "cop_speed": 1.3,
        "specials": 3,
        "orbitals": 4
      }
    ]
    

    specials sends helicopters, jets, UFOs, troop drops, gunships and tanks that many times as often (and lets that many more hunt at once); orbitals is how many orbital beams chase the car at wanted V (up to 4).

  3. Start the game. NIGHTMARE tops the difficulty ladder and unlocks by escaping on DEATH AND TAXES!.

Next: How mods work.