
UnitCreatorPlusPlus
UC++ core: MidnightCow's UnitCreator brought to current TABS. Unit, weapon, projectile and faction editing, projectile behaviours, melee kit, unit movement, test fights, auto balance and sharing. Abilities live in UC++ Addons.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
- Install with a mod manager (Thunderstore / r2modman). BepInExPack_TABS is installed with it.
- Or by hand: copy the
MidnightCow-UnitCreatorfolder intoBepInEx/plugins. - 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++.
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 |
Changes v3.0.2
1. Option lists: each row is tall enough for its description
In the option picker (ability moves and other long lists with descriptions), every row was a fixed 64 px. Longer descriptions spilled out of their box.
- Each row now measures its own text (
GUIStyle.CalcHeightat the row's real width) and grows to fit. The minimum is still 64 px. - Heights are cached per label and cleared when the window width changes, so the list stays cheap to draw.
MC_EditorTools.OptionPicker.cs:DrawRichOptions, newRichLabelandRichRowHeight.
2. The Mahoraga wheel (Adaptation) section leaves the core
Players saw "Adaptation (Mahoraga wheel)" in Unit Powers even without UC++ Addons, and it could not be removed.
- The section is removed from
MC_UnitPowerStore.Sections(). - The adaptation runtime in the core is unchanged and still reads the same
adapt.*keys. - UC++ Addons (next version) registers the section itself, with the same keys and defaults, so saved units keep their settings. It only adds it when the core does not already list it, so it never shows twice on 3.0.1.
- Ship this together with UC++ Addons 3.0.3 or later. With this core and an older addon, units that use the Mahoraga wheel lose it until the addon updates.
3. Options in a "Retired" category are hidden from the picker
- An option whose category is
Retiredis left out of the list, unless it is the one already selected (so old saves still show what they use). - The addon uses this to hide "Sandevistan (Overclocked)", which is now a Model choice of Sandevistan. Saved units that use it keep working.
MC_EditorTools.OptionPicker.cs:OptionMatches(), newRetiredCategoryconst.
4. Units and factions no longer vanish when the mod is updated (player reports)
Players report that after updating UC++ all their units and factions were gone. UC++ saves them in SavedFiles inside its own plugin folder, and mod managers (Thunderstore Mod Manager, r2modman) delete that whole folder when the mod is updated or reinstalled.
- New
MC_SaveGuard.cs: every save, and every start, copies new and changed files fromSavedFilesto<TABS persistent data>/UCPP Unit Backup/<profile>/(%USERPROFILE%/AppData/LocalLow/...), outside the mod manager's reach. The copy never deletes anything, and an empty file never replaces a good one. - On start, before any save loads (
MCInit.LoadSaved): ifSavedFileshas noMC_UNIT_*.mcbut the backup has some, the backup is copied back. MC_SaveLoad.Savewrites to a.tmpfile first and then copies it over the real one, so a crash mid-save cannot leave a cut-off unit.- This only protects players once the guard has run at least once before their next update. UC++ Addons 3.0.3 carries the same guard (same folder), so players with the addon are covered even on core 3.0.1. Units lost before that cannot be brought back by the mod.
5. Team colours went darker after a unit was edited
Every load of an edited unit puts back every saved material slot, changed or not (SetMaterialsByName). For a team-coloured slot, MC_MatHolder.SetMaterial removed the item's own TeamColor and rebuilt it from the editor palette. Item materials such as 1 M_Tabs_Blue are not in that palette, so it fell back to TeamColors[0], a different, darker shade.
MC_MatHolder.SetMaterialnow leaves a slot alone when the new material is the item's own team material (the same object or name as itsTeamColorpair, or what the slot already shows). Colours picked in the editor still apply as before.- Units already saved this way look right again on the next load. The save files do not need changing.
6. Knocked-off props, torn cloth and cut limbs float away from the unit (player report)
A piece knocked off by armor break (Unit Powers), torn cloth and the clean limb cut (Settings > UC++ > IMPACT) were copied with SkinnedMeshRenderer.BakeMesh and placed at the renderer's own transform. On stitched TABS props that copy is offset or wrongly scaled, so piles of props hung in the air away from the unit. The unit body mesh can't be read back, so the limb cut failed on it. Before that check, the limb cut had already thrown the limb's rigid props, so props flew off while the unit stayed whole.
- New
MC_FrozenPiece.cs: the piece is copied as a frozen skeleton in its current pose, drawing the same meshes (the method the Sandevistan afterimages already use). All its parts go under one rigid body that ignores the owner's colliders. A cut limb folds every bone outside the limb into the cut point, so only the limb shows, and it no longer needs a readable mesh. MC_CombatHooks.Body.csBreakPiece,MC_BodyFx.csTearandCutLimbuse it.CutLimbthrows nothing unless the body really has skin on that limb. The oldChunkandCutOutare gone.
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.SanitizeFactionsetsfaction.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] KillCamnow defaults tofalse. 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'sBepInEx/LogOutput.logand the two.mcfiles 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
.ucppfile and copies a share code. IMPORT reads a copied code or the files inShared/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.
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_*.txtandBepInEx/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.