WorkGames & Simulation

Rustline

A first-person survival game on rails in Unreal Engine 5: build a cart, push it up an abandoned mountain line.

In build · Oct 2026 – Present · Solo: designed the game and its rail physics, directed Claude Code through the C++ and the art pipeline

Rustline: a home-built rail cart on a straight track through pine forest in morning light.
automation tests, 0 failures
107
lines of C++
93,268
maps built
9

TL;DR

  • A road-trip survival game on rails: you build a small cart in your grandfather’s garage and push it, trip after trip, up an abandoned mountain railroad, clearing fallen trees, judging old trestles and fixing what breaks.
  • An Unreal Engine 5.8 C++ project with a rail-physics model, a scripted Blender-to-Unreal art pipeline and 107 automation tests that pass.
  • In build: the greybox line is playable; the game around it is not finished.

The problem

Most survival games are about a place. I wanted one about a route: a single line of track where every trip teaches you something about the next one, and where the risk comes from physics you can reason about, like grade, speed on worn rail and the load a trestle can take.

What I built

  • Rail physics. The cart’s motion accounts for grade, battery and braking. Each stretch of track has a safe speed that drops on worn rail, in the wet and with poor wheels, and the chance of derailing rises as you exceed it and as the load grows. Trestles have their own load model. A Python balance simulator mirrors the same model so tuning can be checked outside the engine.
  • A cart-building sheet. Parts fitted in the garage change weight, load limit, top speed and grade pull, and the sheet says plainly why the cart won’t roll yet.
  • An art pipeline with no manual editor steps. Blender kits are generated by script, exported, imported headless into Unreal and assembled into levels by PowerShell and Python, so a map can be rebuilt from scratch with one command.
  • A greybox line of about 3 km: fallen trees at set distances, a 2% hill, a stretch of worn rail with a 6 mph safe speed, a 250 m curve and a trestle over a 25 m ravine.

Key decisions

  • Decision: model the physics as plain functions with a twin simulator outside the engine. Why: balance problems are cheaper to find in a script than in a play session. Trade-off: two implementations that must stay in step.
  • Decision: script the whole art pipeline. Why: levels get rebuilt constantly while the design moves, and hand edits would be lost each time. Trade-off: the first run compiles shaders and fills caches, which is slow.

The hard part

Making a cart on worn rail feel dangerous without feeling random. The derail model ties risk to things a player can see and control: speed against the track’s safe speed, the wheels fitted in the garage, the weather, and the load, with the worn section placed on a descent so you have to brake early. The same model drives the balance simulator, so “how often does a careful player derail here” is a number, not a guess.

Results

  • The C++ module compiles, and a full automation run passed 107 tests with 0 failures.
  • 9 maps exist, from the greybox line to the lowlands, canyon and summit environments.
  • Built over a few days in October 2026 by directing AI coding agents; the code lives in a local repository with no public remote yet.

What I’d do next

  • Close the loop from greybox to the first full trip: a run that starts in the garage and ends at the first town.
  • Playtest the derail model with people who have never seen the balance numbers.

Screens

Captures of the running software, not mock-ups.

Rustline: a timber trestle crossing a canyon above a turquoise river.
A trestle over the canyon. Every trestle has a load model.
Rustline: a snowy summit siding with a small cabin beside the track.
The summit siding.
Rustline’s build sheet in the garage: parts fitted to the cart, wheels and battery missing, and a note that it won’t roll yet.
The build sheet. Parts change weight, load limit, top speed and grade pull.

Every number, with its source

The file, run or record each figure comes from.

MetricValueSource
Automation tests passing, 0 failures (run of 2026-10-06)107local: Rustline/Rustline/Saved/Logs/GC_tests.log
Non-blank lines of C++ across 312 source files93,268local: Rustline/Rustline/Source/Rustline
Maps built9local: Rustline/Rustline/Content/Maps

Questions about Rustline? Ask the assistant

Mitansh Mittal
Home
Work
Research
Lab
About
Ask
Experience
Now
Résumé
Uses
Colophon
Contact
AccountWardin-build
Redlbuilt
The Councilresearch
BEMAresearch
EXIT LIQUIDITYin-build
NEXUSarchived
Rustlinein-build
OpenNowbuilt
Stretchbuilt
BedBoardbuilt
Warrant + Forgebuilt
Concordarchived
BlueCollarPalin-build
Chispenbuilt
Warrant Portalbuilt
JobAppin-build
Night/Dayexplored
BLACKSITE: NULLin-build
SlugBitesbuilt
Riptidebuilt
AeroBitesarchived
CAD & 3D printingexplored
ForgeCouncilexplored
ADDE: adversarial due-diligence engineexplored
Model routing in practiceexplored
AI due-diligence market mapexplored
Quorumarchived
Colossus Wakeexplored
FitFindrbuilt
Project Omniexplored
Oblivionexplored
MeetWisebuilt
EyeOSexplored
LinkLeap AIexplored
Offline speech-to-notes (Java)explored
AI-assisted game production pipelineexplored
COLLAPSEarchived
THE TRIALSarchived
EcoNodearchived
ESP32-S3 / LoRa benchexplored
All work40 entries
Can’t Hallucinate, Can Still Be Wrong: Calibration of a Typed-Decision Model Under Input Noisepaper
Disagreement as Signal: A Hybrid Multi-Agent and Council Architecture for Error Detection in LLM Systemspaper
Killing Good Ideasessay
Uncorrelated Failure Modesessay
ADDE: adversarial due-diligence engineexplored
AI due-diligence market mapexplored
AI-assisted game production pipelineexplored
Aura Chatexplored
Colossus Wakeexplored
EcoNodearchived
Emulator forksexplored
ESP32-S3 / LoRa benchexplored
EyeOSexplored
FitFindrbuilt
ForgeCouncilexplored
LinkLeap AIexplored
MeetWisebuilt
Model routing in practiceexplored
Offline speech-to-notes (Java)explored
Oblivionexplored
Print benchexplored
Project Omniexplored
Provably-fair outcome enginebuilt
Quorumarchived
Copy hello@mitanshm.com
Ask the assistantabout my work
Switch theme
Play motion
RésuméPDF
Open GitHub ↗mit37
Open LinkedIn ↗
Toggle layout gridh
Toggle single-key shortcuts/ h