2026-02-13 12:02:46 -05:00
2026-02-13 12:02:46 -05:00
2026-02-06 20:41:32 -05:00
2026-02-06 20:41:32 -05:00
2026-02-12 18:07:39 -05:00
2026-02-12 18:07:39 -05:00
2026-02-06 16:04:34 -05:00
2026-02-06 20:41:32 -05:00
2026-02-12 09:02:55 -05:00

Landtrain

Landtrain extends Towbars to support chained towing.

Important

Project Zomboid base BaseVehicle.addPointConstraint() force-breaks existing constraints and chain state in MP. To keep 1 -> 2 while attaching 2 -> 3 (and preserve movement replication), Landtrain includes a Java class override:

  • client install: zombie/vehicles/BaseVehicle.class
  • dedicated install: java/zombie/vehicles/BaseVehicle.class
  • helper class (both): LandtrainConstraintAuthHelper.class in the same zombie/vehicles folder

This is the same override pattern used by mods like Realistic Car Physics (manual zombie folder copy).

Apply patch to game

  1. Patch your local client install:
.\tools\patch-game-basevehicle.ps1
  1. Patch the dedicated server install:
.\tools\patch-game-basevehicle.ps1 -GameRoot "D:\SteamLibrary\steamapps\common\Project Zomboid Dedicated Server"
  1. Ensure both mods are enabled:
    • \hrsys_towbars
    • \hrsys_landtrain

MP requirement

For multiplayer, every connecting client and the dedicated server must run the patched class. If only one side is patched, towing links can desync with no explicit Lua error.

Restore vanilla class

.\tools\restore-game-basevehicle.ps1

To restore dedicated server too:

.\tools\restore-game-basevehicle.ps1 -GameRoot "D:\SteamLibrary\steamapps\common\Project Zomboid Dedicated Server"
Description
Yargh I be a land pirate, or g'day chap wanna vb with that land train
Readme 4.5 MiB
Languages
Lua 64.3%
Java 27.2%
PowerShell 8.5%