Transport preview not rendering

Fixed
Captain Zuff Captain Zuff · 3 years ago

Issue description

If I select one of the transport types to build, the cursor icon changes, but there is no ghost of the selected belt/pipe/conveyor that I can actually click and place. Balancers work fine, its just the belts/conveyors/pipes. Restarting the game makes it work for a few minutes, but then it happens again. No error messages or anything. Is there a limit to the number of ghosts or construction orders that can be placed? I have something I've been building in planning mode that has a decent transport belt run (maybe 1000-2000 'blocks') I had recently unpaused.

and

I have the same issue, started today. In planning mode, after a few minutes belt/pipe white ghost no longer appears at the cursor when pressing C on existing belts/pipes or clicking belt/pipe on the toolbar. Can't place any belts/pipes. Exiting to the main menu fixes it for some time until it randomly happens again. I can't reproduce it reliably. I don't think that I have too many ghost buildings active on the map.
no_cursor_ghost
all_ghost_buildings

Reproduction steps

None yet

Game version and build number

v0.5.4e

Operating system

Windows

timewalk950 [github] · 3 years ago

23-08-24_02-56-22_0596.log
23-08-24_17-08-03_2223.log
23-08-24_18-00-41_5852.log
dre1.save
23-08-24_19-31-05_6943.log
23-08-25_02-20-53_4449.log

Files not imported: dre1.save

4 attachments only for registered users
Captain Zuff Captain Zuff · 3 years ago

Seems like something broke in your reply @timewalk950 [github]

Also could you upload a savefile that you experienced this on? Thank you so much for helping out!

timewalk950 [github] · 3 years ago

dre1.save
Save File

23-08-24_02-56-22_0596.log
23-08-24_17-08-03_2223.log
23-08-24_18-00-41_5852.log
23-08-24_19-31-05_6943.log
23-08-25_02-20-53_4449.log
Last 5 Log Files

Files not imported: dre1.save

5 attachments only for registered users
timewalk950 [github] · 3 years ago

Hi there. Here is a logfile immediately after the issue re-occurring just a few minutes ago. I immediately saved the game, and quit. Its the same save as above, but with todays advancement. This time, I had very few ghosts placed, and no outstanding construction occuring, was just placing a pipeline.
23-08-26_03-08-54_9078.log

save_23-08-26_03-55-52.save

Files not imported: save_23-08-26_03-55-52.save

1 attachment only for registered users
Decavoid [github] · 3 years ago

My Discord nickname: decavoid.

This autosave was created after I had to restart 5 times because the belt preview stopped appearing: 23-08-25_15-37-autosave-paused.save

Logs:
23-08-25_12-51-59_9670.log

Exceptions in logs:

I 08:52:57,955 S3331965 ~Mai: Game was initialized in 97 steps and took 53,1 seconds to complete.
A 08:57:11,278 S3331965 ~Sim: Bool value is 'false' but value 'true' was expected.
  at Mafi.Core.Factory.Transports.TransportPathFinder.extendPath (System.Int32 nodeIndex, System.Int32 parentNodeIndex, Mafi.Core.Factory.Transports.TransportPathFinder+NodeMutable parentNode, System.Boolean ramp) [0x00000]  
  at Mafi.Core.Factory.Transports.TransportPathFinder.<expandNeighborsTowards>g__tryExtendTo|119_0 (Mafi.RelTile3i newRelPosition, System.Boolean ramp, Mafi.Core.Factory.Transports.TransportPathFinder+<>c__DisplayClass119_0& ) [0x00000]  
  at Mafi.Core.Factory.Transports.TransportPathFinder.expandNeighborsTowards (System.Int32 nodeIndex, Mafi.Core.Factory.Transports.TransportPathFinder+NodeMutable node, Mafi.Direction903d direction) [0x00000]  
  at Mafi.Core.Factory.Transports.TransportPathFinder.continuePathFinding (System.Int32& iterations) [0x00000]  
  at Mafi.Core.Factory.Transports.TransportPathFinder.ContinuePathFinding (System.Int32& iterations, Mafi.Collections.ImmutableCollections.ImmutableArray`1[Mafi.Tile3i]& outPivots) [0x00000]  
  at Mafi.Unity.InputControl.Factory.PathFindingTransportPreview.simUpdate () [0x00000]  
  at Mafi.EventNonSaveable.Invoke () [0x00000]  
  at Mafi.EventNonSaveable.InvokeTraced (System.String traceCategory) [0x00000]  
  at Mafi.Core.Simulation.SimLoopEvents.InvokeGameStep (Mafi.Core.Input.IInputCommandsProcessor inputCommandsProcessor) [0x00000]  
  at Mafi.Core.Simulation.SimulationBackgroundTask.PerformWork () [0x00000]  
X 08:57:11,279 S3331965 ~Sim: Exception thrown in event callback.
 ---> IndexOutOfRangeException: index
  at Mafi.Collections.Lyst`1[T].get_Item (System.Int32 index) [0x00009]  
  at Mafi.Core.Factory.Transports.TransportPathFinder.computeCollisionsReturnConnCollided (System.Int32 nodeIndex, System.Int32 parentIndex, System.Int16& occupiedArrIndex) [0x000b3]  
  at Mafi.Core.Factory.Transports.TransportPathFinder.extendPath (System.Int32 nodeIndex, System.Int32 parentNodeIndex, Mafi.Core.Factory.Transports.TransportPathFinder+NodeMutable parentNode, System.Boolean ramp) [0x00130]  
  at Mafi.Core.Factory.Transports.TransportPathFinder.<expandNeighborsTowards>g__tryExtendTo|119_0 (Mafi.RelTile3i newRelPosition, System.Boolean ramp, Mafi.Core.Factory.Transports.TransportPathFinder+<>c__DisplayClass119_0& ) [0x000c8]  
  at Mafi.Core.Factory.Transports.TransportPathFinder.expandNeighborsTowards (System.Int32 nodeIndex, Mafi.Core.Factory.Transports.TransportPathFinder+NodeMutable node, Mafi.Direction903d direction) [0x000f2]  
  at Mafi.Core.Factory.Transports.TransportPathFinder.continuePathFinding (System.Int32& iterations) [0x00105]  
  at Mafi.Core.Factory.Transports.TransportPathFinder.ContinuePathFinding (System.Int32& iterations, Mafi.Collections.ImmutableCollections.ImmutableArray`1[Mafi.Tile3i]& outPivots) [0x00000]  
  at Mafi.Unity.InputControl.Factory.PathFindingTransportPreview.simUpdate () [0x00048]  
  at Mafi.EventNonSaveable.Invoke () [0x00015]  
E 08:57:21,360 S3331965 ~Sim: Too many exceptions by non-savable Action on 'Mafi.Unity.InputControl.Factory.PathFindingTransportPreview'.
  at Mafi.EventNonSaveableBase`1[TAction].RecordExceptionForCallbackAt (Mafi.EventNonSaveableBase`1+RegisteredCallback[TAction] callback) [0x00000]  
  at Mafi.EventNonSaveable.Invoke () [0x00000]  
  at Mafi.EventNonSaveable.InvokeTraced (System.String traceCategory) [0x00000]  
  at Mafi.Core.Simulation.SimLoopEvents.InvokeGameStep (Mafi.Core.Input.IInputCommandsProcessor inputCommandsProcessor) [0x00000]  
  at Mafi.Core.Simulation.SimulationBackgroundTask.PerformWork () [0x00000]  
  at Mafi.Core.GameLoop.BackgroundTaskRunner.threadMain () [0x00000]  
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00000]  
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000]  
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000]  
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000]  
I 08:58:01,870 S3331965 ~Mai: GameSaver: Saving took: 1310 ms

At that time glass factory ghost plan was on scene. Also I was working on a blueprint of 14 belts going under the bridge.
Save preview

Bridge blueprint:

B848:H4sIAAAAAAAACm2Tb2vUQBDG59bpk73tOg3bazwD6hLwOM5j8e8XUBQExSLq+0Ojnlx7JT2EvvTr+A1952xipYLwg0Ayz7PPzGxGI9xPT9Ljzz9GpnjarT99aR9eowOiEY+Pu+1uu7s4a/fkxWa1e7Y9/d5ebLt3D8nAvetW39qPu213cdNoNRFSzfOaY01SE2qmmovieL3ZrLrz4lqq5zXV2db+a/ZAze4MDjbVSFMsp4hTkimZKUipUWQ9Tf/oVXBPq1XjqWKaME/YT0iUQFGZUDOhxYSTUnFxHVo2KUMMaZKqS4s7g4WlwDaQV0pqlECzQClwsb9HAUHKWKZwKbo5iNQQpoJUFCtaVkhVjkiVqQb/8dGr7fa8fb3atd16tbns9apBAAIkmBjMPCAF/Dmvj9mf527816Sf/uEwME7CMyErRJL7TLKQKCIsJNliH8frs7ZX/B2x4+Q5ZoxkmBSX200u+ejFk8taP2jzeu4OoR05sCKQjIkZLBSH5FAcjskZx441QdQkC5d6p7FaPBgshMBGcaxl3pEonqLiqHG0cLxUwAlcHDmCQTYUjbVwS7dEQh/taibDOgdRWKGY4aiTUUy/RCPmtr5J5lL6d/MGPkMe1ChGQTJ9I8YbD8FtRDRozCAeXxULqARKSGliaeYlkiLIt01Q9temTDK6Xr7p1l/Wp6vN89Pdenfx8tPPX169xH9ov64/btq3q5OzRzQ6GOsPdXr+edud7E1LvSD5QA2P98Pi6gTMFYuZRWM5KuAGPIOZK9bMrGkseUvWGigwFtqErovFsrdsLaAABBS3JGGpdrm/ufX6Pvebn0a//wZZ7I2eFgQAAA==

I suspect that this bug is caused by * Improved responsiveness of transport path-finding. in 0.5.4f

Files not imported: 23-08-25_15-37-autosave-paused.save

1 attachment only for registered users
Decavoid [github] · 3 years ago

Game version and build number

v0.5.4e

Game version in the description is incorrect, should be v0.5.4f

Captain Filip Captain Filip · 3 years ago

Thanks for the reports, we have pushed a silent patch (build 244) that should address this. Please update the game and let us know if this is still an issue or not.

timewalk950 [github] · 3 years ago

So far so good. I've played a couple hours today and have not run into the issue. Thank you for the quick fix, especially over a weekend!

Closed as ✅ Fixed

5 Showing 1–9 of 9