Totally Accurate Battle Simulator
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
Downloads
2K
Size
14MB

UC++ (UnitCreator for current TABS)

[UPDATED] Final-Blow Kill Cam no longer enabled by default - sorry about that!

UC++ is an in-game editor for making your own units, weapons, projectiles and factions in Totally Accurate Battle Simulator.

It is an update of MidnightCow's UnitCreator 2.0.4 (the original is by MidnightCow; all credit for UnitCreator goes to them). The update makes it work on the current version of TABS and adds a lot on top.

Install

  1. Install with a mod manager (Thunderstore / r2modman). BepInExPack_TABS is installed with it.
  2. Or by hand: copy the MidnightCow-UnitCreator folder into BepInEx/plugins.
  3. Start TABS and press the UC++ button on the main menu. A short guide opens the first time; the GUIDE button opens it again.

Your creations are saved in BepInEx/plugins/MidnightCow-UnitCreator/SavedFiles. Back that folder up before reinstalling.

What's in it

  • Works on current TABS: loading, the unit database, projectile editing and mod.io refreshes are fixed.
  • Editor: readable names, a searchable picker, undo/redo, "find a setting", a colour picker, an orbit preview camera and a stats panel.
  • Test fights in the preview: 1v1 up to 10v10, mirror or any opponent, slow motion, dummies.
  • Weapons: swing trails, muzzle flashes, magazines and the Melee Kit.
  • Projectiles: 78 flight behaviours, 93 impact behaviours and 30 presets.
  • Unit Powers: aura, death effect, berserker, AI, movement, boss phases and 6 ability slots. Each slot has a trigger, conditions, an action, a target, combos and modifiers, with about 250 actions (base abilities plus anime-inspired ones: domains, stands, beam struggles, forms...).
  • Premade characters in the "UC++ Legends" faction, plus five simple example units to learn from.
  • Battle extras in every battle: damage numbers, a battle log (F8) and a kill cam. They can be set in Settings > UC++.

Changes v3.0.1

1. Arrow to collapse the editor tools (asked for on Discord)

In the unit editor, a small > button now sits just left of the UC++ toolbar. Clicking it hides:

  • the toolbar (EDIT / TEST FIGHT / ARENA / PREVIEW)
  • the filter tabs
  • the field search
  • the UNIT STATS / arena panel
  • the gizmo bar

This leaves the unit in view. When the tools are hidden, a < UC++ button in the bottom-right corner brings them back. The setting is remembered between sessions (PlayerPrefs UCPP_ToolsCollapsed). Windows the player opens themselves, such as abilities or history, still open as before.

Plain < and > are used because the game's font may not have arrow symbols.

2. UC++ factions showed up twice (main grid and Custom Factions)

The game's faction picker puts every faction that isn't flagged IsCustom in the main grid, and everything in the user database under Custom Factions. UC++ adds its factions to the user database but never set IsCustom, so each one appeared in both places. The game's own faction creator sets that flag on every user faction.

  • Fix: MC_Compat.SanitizeFaction sets faction.IsCustom = true.
  • Result: UC++ factions now behave exactly like the game's own custom factions:
    • They show once, under Custom Factions.
    • Their names are not run through the translation lookup.
    • Like any custom faction, they are hidden in online multiplayer.
    • They are bundled when a custom level that uses them is uploaded.

3. Camera shake after the battle is won (photosensitivity report)

The report: a video from a helicopter battle shows the camera jumping hard during the last part of the fight and through the BLUE VICTORY screen.

Likely cause (not confirmed in game): after the victory banner the winning units keep shooting, and MC_CamShake shakes on every hit regardless of whether the match is over. The shake also picks a new random offset every frame, which reads as flicker at high frame rates.

Fix in MC_CamShake.OnPreCull. It covers every caller in the core and the addon:

  • No shake, punch or zoom once the match is won (BaseGameMode.MatchOver) or the battle has ended. TRY previews and the shooting and melee ranges still shake.
  • The shake uses smooth noise (about 18 Hz) instead of a new random offset every frame.
  • After 1.5 s of non-stop shaking, the strength fades down to 35%. It comes back after half a second of quiet.
  • New helper: MC_Battle.MatchOver().

The smooth noise and the fade change how shake feels in every fight. They are separate lines in OnPreCull, so they are easy to drop if they are unwanted.

Other mods: if the shaking turns out to come from another mod's camera (for example TABS Cinematic Overhaul), this part won't help.

4. Final Blow kill-cam is off by default

The kill-cam is the slow motion, zoom and FINAL BLOW banner on the last kill.

  • Fix: [Battle] KillCam now defaults to false. It can still be turned on in Settings.
  • Note: BepInEx keeps values that are already in a player's cfg, so existing players who had it on keep it on. If it should be off for everyone, rename the key (for example FinalBlowCam).

Still open (not in this patch)

  • Saves fail to load with a NullReferenceException (MC_UNIT_Private Force Helicopter Baroness UC++.mc, MC_UNIT_Total Corp AV.mc). This needs the player's BepInEx/LogOutput.log and the two .mc files to find the cause.
  • "Combo thing" that only happens with preset UC++ weapons. Not enough detail yet.
  • Test fight against dummies may not work. Not checked yet.
  • Settings list addon-only options while the addon isn't released.

New in 3.0.0

  • SHARE / IMPORT: SHARE saves a unit, with every custom weapon, projectile and unit it needs, as one .ucpp file and copies a share code. IMPORT reads a copied code or the files in Shared/Inbox. Imported units go into the "UC++ Imported" faction.
  • AUTO BALANCE finds a fair gold cost with seven even-gold test fights against the game's own units.
  • SUMMARY: one card showing what a unit does in battle (abilities, what sets them off, what it reacts to, rough damage).
  • First-run guide and five example units ("Example 1 - Healer" to "Example 5 - Storm Mage").
  • Safer saves: ability slots are saved by name instead of list position (older saves are converted the next time they are saved). Premade characters you changed are kept when UC++ updates the premades, and a backup is always made (SavedFiles/BackupFiles/Premades).
  • Crash hunting: an input trace (BepInEx/UCpp_Reports/input_trace.txt) records window focus, keyboard layout / IME and resolution changes as they happen. A crashed session's trace is kept.
  • Smoke test (Ctrl+Shift+F10 with a unit open): fires every ability and runs every premade, then writes a report of errors, hangs and frame-rate drops.

The full list is in CHANGELOG.md in the source package.

Keys

Key What it does
F8 Battle log
F9 Damage numbers on/off
F10 Team ability bars
F11 Debug window (errors, recent events, state, cameras)
Ctrl+F11 Save a debug report
Ctrl+F12 Reset the view (black screen fix)
Ctrl+Shift+F10 Smoke test
Ctrl+Z / Ctrl+Y Undo / redo in the editor

Known issues

  • A rare native crash inside Unity's window handling (also seen without UC++). If it happens to you, please send BepInEx/UCpp_Reports/input_trace_crash_*.txt and BepInEx/LogOutput.log.
  • Shared units bring custom weapons, projectiles and units, but not custom icons.

Credits

  • UnitCreator: MidnightCow (original mod, assets and design).
  • UC++ update: rebuilt from a decompile of 2.0.4. The new code was written with AI assistance (Claude).
  • Character names in the premades belong to their owners; they are fan tributes made from TABS's own clothing.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.