Skip to content

PandorasFox/servermapmarkerfix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Server Map Marker Fix

You can find this mod here.

Server-side fix for map markers — train stations and dismantle/death crates — appearing at the map origin (0,0) for connected players. Install on the (dedicated or listen) server only; clients need nothing (RequiredOnRemote: false).

Long-standing vanilla bug, reported since Update 5 and still present in 1.1/1.2 (known issue): on dedicated servers every player sees train station markers pile up at the center of the map unless they are within ~750 m of the actual station.

What the mod does

  1. Representation class substitution (module startup hook, mirrors the CSS truck station fix): hooks AFGActorRepresentationManager::CreateAndAddNewRepresentation and registers AFGTrainStationIdentifier representations with the vanilla UFGVehicleDockingStationRepresentation class instead of the default. Clients then always use the server-replicated location. Because the substituted class ships with the game, unmodded clients deserialize it fine — this is what makes the fix server-side only. (The existing community mod FixTrainStationMapLocation does the same substitution but with a mod-defined class, which requires every client to install the mod.)

  2. Marker reconciliation sweep (USMMFMarkerReconcilerSubsystem, server only, every 15 s): compares the live actor location of static train-station/crate representations against the location last pushed and calls AFGActorRepresentationManager::UpdateRepresentationOfActor() on drift, which re-polls the interface and re-replicates. The first sweep (10 s after world start) re-captures every tracked marker once, repairing markers that went stale before the mod was installed. Static markers never move, so the sweep is quiescent afterwards.

  3. Buried crate rescue (v1.1.0): crates hit by the vanilla placement bug — spawned at the world origin, under the terrain, unreachable — are detected during the sweep (crate within 5 m of X=0,Y=0 and below the surface trace) and lifted to the traced ground at that spot.

Didn't feel like trying to fix the actual 'dismantle crate spawned at (0,0)' bug since that's a lot more convoluted. Band-aid fix that just makes them accessible for me, please.

About

Satisfactory server-side mod: fixes train station & crate map markers stuck at (0,0) on dedicated servers. No client install needed.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages