Warning "No collider found" when placing a reversed track buffer (RailBlock)

Trains
H4uklotz · 1 hour ago

Issue description

Log message:

W ~Mai: No collider found for layout entity 'TrackBufferReversedStraight0_R0_G0' (prefab: 'Assets/Base/Trains/RailBlock.prefab').
  at Mafi.Unity.Entities.Static.LayoutEntityModelFactory.Create (ILayoutEntityProto proto)
  at Mafi.Unity.Trains.TrainTrackEntityModelFactory.create (IEntityWithTrainTrackBaseProto proto, Boolean isPreview, Boolean skipCollider, Single maxDistanceUnity)
  at Mafi.Unity.Trains.TrainTrackEntityModelFactory.Create (IEntityWithTrainTrackBaseProto proto)
  at Mafi.Unity.Entities.ProtoModelFactory.CreateModelFor[TProto] (TProto proto)

Impact: No crash. The buffer only gets the generic box collider, so picking/hover may not match the model exactly. It also adds a warning to every log.

Reproduction steps

  1. Start or load a save without mods.
  2. Build a straight train track.
  3. Place a track buffer (bumper) on the track.
  4. The warning appears in the log.

Game version and build number

v0.8.8 b627

Which branch of the game are you on?

Stable

Operating system

Windows

1 attachment only for registered users
5 Showing 1–1 of 1