Stormworks Mod Loader / Mods / Network Fixes

Network Fixes

Smoother Stormworks multiplayer for players on high ping, faster mod downloads when joining, and no long freeze for everyone while a big vehicle spawns.

Work in progress: expect issues, and report them on the Discord.

Download Network Fixes All versions and changes
Latest version
1.12.0
Who installs it
The host for most of it. A few parts need it on both ends. Players without it can still join.
Dedicated servers
Runs on servers set up with SWML 4.8.0 or later.
After adding it
On straight away.
Source
github.com/kiVts/network_fixes

What it does

The game sends everything to each player at one fixed speed, through one queue. When a connection can’t keep up, Steam resends packets over and over: on one 200 ms connection Steam put about 4 MB/s on the wire while only 110–190 KB/s arrived. A single ship spawning could also hold every game update behind megabytes of vehicle data.

  • Adaptive send rate: measures what each player actually receives and sends at that speed.
  • Game updates first: vehicles and mod files go out a little at a time, so game updates get through in about 40 ms.
  • Lost packet recovery: one lost packet no longer freezes the game for a round trip.
  • Steady playback: players see ticks at an even pace instead of freezing and fast-forwarding.
  • Fresher vehicles: nearby vehicles are corrected up to every tick instead of every fifth, when the connection can take it.
  • Faster network loop: 1 ms instead of Windows’ usual 15.6 ms.
  • Pushing: other players keep their momentum on the host, so everyone can push crates and small vehicles. Pushing from a joining player’s side needs the Performance Mod on both PCs as well.

Settings

Change these on the mod’s Settings tab in the SWML window; on a dedicated server, in swml\config\network_fixes.ini. The value shown is the default. Most changes apply the next time the game starts.

[net] kick_slow_players_tps=0
Kick the player the whole world is waiting for when it runs below this many ticks per second. Never kicks admins, one player at a time. 0 = off.
[net] kick_slow_players_seconds=30
How long the world has to run that slow because of the same player before the kick.
[net] host_map_budget_ms=32
Time per frame the host may spend on extra ticks while its fullscreen map is open, at most four ticks per frame. 0 = the game’s behaviour.
[net] host_pacing=1
The host paces the world to the slowest player running the mod.
[net] rate_control=1
The adaptive send rate. 0 = a fixed rate.

Install

  1. Install SWML if you haven’t: see Install.
  2. Download the zip from the releases page.
  3. Add it: click Add Mods… in the SWML window and pick the zip.
  4. Start Stormworks from Steam.

Works well with

Performance Mod
Runs physics, vehicle logic, microcontroller Lua, render preparation and water and air forces on more threads at once. Heavy worlds tick several times faster, depending on your world and CPU.
Fast Spawn
Shortens the “Spawning…” screen when you join a multiplayer game or respawn, loads vehicles in parallel, and opens big multi-body vehicles in the workbench in a fraction of the time.