Simple Compress

by Zaflis

Adds recipes to compress and decompress ores and plates

Content
22 days ago
0.17 - 2.0
6.62K
Logistics Storage

b Crash

2 years ago

When I tried to start a new game/scenario of the Editor Extensions/Testing, the game crashes!


.........
114.931 Applying migration: Simple Compress: OreCompress_0.15.5.lua
115.047 Error AppManager.cpp:687: Error while applying migration: Simple Compress: OreCompress_0.15.5.lua

SimpleCompress/migrations/OreCompress_0.15.5.lua:5: attempt to index field 'smelt-compressed-iron-ore' (a nil value)
stack traceback:
SimpleCompress/migrations/OreCompress_0.15.5.lua:5: in main chunk
139.687 Quitting: user-quit.
139.939 DSound: Stopping voice
139.939 DSound: Joining thread
139.943 DSound: Exit _dsound_update; tid=46036
139.943 DSound: Waiting for voice to stop ... signaled
139.944 DSound: Joined thread
139.944 DSound: Destroying thread
139.944 DSound: Thread destroyed
139.944 DSound: Releasing buffer
139.944 DSound: Voice stopped
139.944 DSound: Deallocating voice
139.944 DSound: Deallocated voice
140.031 Steam API shutdown.
140.038 Goodbye


2 years ago

This bug occurs because I disable, in the mod settings, the options:
- Enable plate compression technology
- Enable compressed smelting recipes

I leave 'Enable ore compression technology' enabled!

Thanks.

2 years ago

This bug occurs because I disable, in the mod settings, the options:
- Enable plate compression technology
- Enable compressed smelting recipes

  • I leave 'Enable ore compression technology' enabled!

Thanks.

2 years ago

If I enabled 'Enable plate compression technology' and disabled 'Enable ore compression technology' and 'Enable compressed smelting recipes', then this error occurs:


77.811 Error AppManager.cpp:687: Error while applying migration: Simple Compress: PlateCompress_0.15.5.lua

SimpleCompress/migrations/PlateCompress_0.15.5.lua:5: attempt to index field 'smelt-compressed-iron' (a nil value)
stack traceback:
SimpleCompress/migrations/PlateCompress_0.15.5.lua:5: in main chunk


2 years ago

Sounds like i need a settings check in the migration code, will see...

2 years ago

It appears that this migrations only work if I enable the "Compressed Smelting Recipes" on the mod settings!
Or if I leave the 3 checkboxes disabled it works!

2 years ago
(updated 2 years ago)

I can't reproduce this normally, is this an old save with this mod being loaded in newer version of the game?

I loaded my testing save with ore and plate compress enabled but smelting disabled and it didn't crash.

2 years ago

The crash occurs when I tried to create a new game, with the scenario provided by the mod 'Editor Extensions'! Both mods and the game is updated!
I have a bunch of other mods installed, but I tested that if I disable the 3 settings of this mod, or if I enable the "Compressed Smelting Recipes", or if I deleted this mod, than I was able to load the scenario!

Thanks

2 years ago
(updated 2 years ago)

Actually it shouldn't even be about savefile at all, i assume you mean crash when game itself is loading (before main menu, right?).

Edit: No.. migrations should happen per save.

So if you can upload it for me somewhere it would help.

2 years ago

No. I opened the menu, clicked On 'Single player', 'New game', try to load the scenario provided by "Editor Extensions", then my game show a popup with the error. The game is still working, but I was unable to load the scenario.
I can send a print screen or the complete log file if this helps...

Thanks.

2 years ago

I see it now, will try and see a fix.

2 years ago

Appears to be working now.

2 years ago

It's working now!

Thanks.

New response