#Game crashes without a log window when trying to add a part from a mod

11 messages · Page 1 of 1 (latest)

fallow grail
#

This is the first time I've encountered such an incomprehensible error. Experimentally determined that the game crashes when there is such a code:

FoodStorage1: &~/Part/FoodStorage { ResourceType=Cabbage; DeliveryLocation=[1.64, 0.50] }
FoodConsumer1: &~/Part/FoodConsumer { ResourceType=&../FoodStorage1/ResourceType; Storage=FoodStorage1; OperationalToggle=IsOperational }

A similar design, in the same mod but for a different resource, works without errors:

WaterTank: &~/Part/FoodStorage { ResourceType=WaterBarrel; MaxResources=3; DeliveryLocation=[3.25, 0.50] }
WaterConsumer: &~/Part/FoodConsumer { ResourceType=&../WaterTank/ResourceType; Storage=WaterTank; OperationalToggle=IsOperational }

The error occurs when a part overlaps any part of the ship when installing or dragging, and the annoying thing is that there are no errors in the logbook
I have also established that if there is no supplier of the required resource on the ship at the time of dragging or installing a part, the crash does not occur.

fallow grail
#

Although I did manage to find something in the log:
03/03/2025 17:22:14 | Game froze for longer than 10 seconds! Freezelog follows...
03/03/2025 17:22:14 | Memory usage at time of freeze detection: 11 775 123 456
There seems to be some kind of infinite loop or recursion, but I don't see what causes it in the code yet.

fallow grail
#

I'm beginning to suspect that there is a limit to the number of Consumers a part can have. It seems that in my case there are too many resource delivery options, and when moving a part over a ship the game tries to calculate them all and crashes on timeout at that point.

regal charm
#

Please upload the actual freezelog.

fallow grail
regal charm
#

Oh I see it just ends after the freeze detection. That's very weird.

#

If you upload the mod I can try to look into it when I have time, but not sure when that'll be.

fallow grail
fallow grail
#

It's a mystery. The greenhouse and the factory work in any combination and in any quantity and they have no problems with the supplier and consumer, but it costs me to put a test part on the ship, the game crashes and what is quite incomprehensible, if I carefully, in design mode, still dock the test part to the ship, everything works without errors and supply and production of resources between the three parts do not cause failures.

#

Today after another crash, suddenly the log was created much more detailed than usual. Perhaps this will explain what's going on.