limoka / DSP-Mods

An example how to add a custom model with your mesh and animations
MIT License
32 stars 10 forks source link

[BUG] - Error when loading planet with corrupted belts #92

Open Zaazik opened 6 months ago

Zaazik commented 6 months ago

Describe the bug Error crash when come to planet, first im write in DSP discord in bug section. Some guy, inspect my save and tell me

It seems like conveyor belts' data on that planet is modified. It can be an issue caused by a corrupted blueprint. We can't fix every belt's data, even if we could, it would highly likely cause other errors.

image

To Reproduce dnk, im build manufacture planet, and i warp away on main planed. after 30 min, i come back and has error

Log files System.IndexOutOfRangeException: Index was outside the bounds of the array. at CargoTraffic.AlterPathRenderer (System.Int32 pathId, System.Boolean isFacting) [0x0010a] in <802e807582fc40e69fdab424a816833b>:0 at CargoTraffic.CreateRenderingBatches () [0x00139] in <802e807582fc40e69fdab424a816833b>:0 at PlanetModelingManager.LoadingPlanetFactoryMain (PlanetData planet) [0x0093c] in <802e807582fc40e69fdab424a816833b>:0 at PlanetModelingManager.LoadingPlanetFactoryCoroutine () [0x00053] in <802e807582fc40e69fdab424a816833b>:0

Screenshots If applicable, add screenshots to help explain your problem.

Additional context image image

https://drive.google.com/file/d/1t6T3vpx_6k2zM95QpyOO1fpmWkvNZrgk/view?usp=sharing

Zaazik commented 6 months ago

image

limoka commented 6 months ago

Were you removing belts using drag remove feature? Or other features that use fast remove feature? You might be able to avoid such issues by disabling fast remove algorithm in mod settings.

Zaazik commented 6 months ago

I think about it, i see some belt without this pice of belt. Can it bee save in BP? Or can it bee after undo, redo? i dont remember when its happen.

Ryflamer commented 4 months ago

Experienced this issue myself, which ended up bricking a save. Unfortunately I don't recall the exact instance for why it occurred, but if I could speculate it was because of either when I was attempting to place a blueprint on a coordinate boundary(the yellow lines in build mode that break up which regions you can put down a blue print). Or when I was tweaking the blueprint to be placed by changing the belt from mk1 to mk2 in the blueprint screen.