Cargo Crates


Pack large quantities of goods into single-use cargo crates for easier bulk logistics.

Content
a month ago
2.0
18.7K
Transportation Logistics Logistic network Manufacturing Storage

b cargo_crates (0.11.3) hard-locks during data-final-fixes due to missing item references in heavily modded profiles (Bob/Angel/Omni)Crash Log

14 days ago

Title: cargo_crates (0.11.3) hard-locks during data-final-fixes due to missing item references in heavily modded profiles (Bob/Angel/Omni)Crash Log:textError while loading modification: cargo_crates/weight.lua:191: attempt to index field '?' (a nil value)
stack traceback:
cargo_crates/weight.lua:191: in function 'calc'
cargo_crates/weight.lua:data-final-fixes.lua:3: in main chunk Description:The mod hard-locks the game initialization during the data-final-fixes phase. In line 191 of weight.lua, inside the calc function, the script loops through game items to index their properties and calculate crate weights. However, in heavily overhauled setups (specifically involving the Omnimatter suite combined with Angel's 2.0.3+ updates), many base prototypes and intermediate items are dynamically replaced, renamed, or deleted from the main database.Because the script blindly attempts to index these properties without safely checking if the item reference actually exists, it hits a empty memory pointer (nil value) and crashes to desktop. Please add a conditional safety check (if item then...) before attempting to index fields in the calc loop to prevent this crash.

New response