Page 1 of 1
Cargo-bay prototype definable without space age
Posted: Wed Aug 06, 2025 9:12 pm
by CaitSith2
I checked the API docs on cargo-bay, and noticed that it is declared that space age is required to use this, but in attempting to figure out exactly what feature flag needs to be defined to make a standalone cargo-bay mod, I noticed that Factorio with no mods whatsoever enabled, just fired right up, blissfully loading the cargo-bay mod I had created, without complaining about a missing feature flag.
What I had expected was to be told that I needed the Space travel feature flag to use this prototype, since the cargo-bay is related to space travel.
Re: Cargo-bay prototype definable without space age
Posted: Wed Aug 06, 2025 9:15 pm
by Rseding91
Can you please post a mod showing this? Because when I test - it gives an error as expected.
Re: Cargo-bay prototype definable without space age
Posted: Thu Aug 07, 2025 12:13 am
by CaitSith2
Tested on Factorio 2.0.63, and confirmed that the prototype for cargo-bay specifically was declared.
Also tested the mod against an explicit build that does NOT allow space age features, and I can still load the cargo-bay mod.
(Most of this is just the cargo-bay and all related calls taken from the space-age mod.)
(Also, this is not the first time something that was supposed to require space age for some reason does not.)
Re: Cargo-bay prototype definable without space age
Posted: Thu Aug 07, 2025 1:33 am
by Rseding91
Fascinating. In debug, release, and final-release locally it gives the correct error. In the steam version and the zip off the website it does not.
Re: Cargo-bay prototype definable without space age
Posted: Thu Aug 07, 2025 12:05 pm
by Rseding91
It looks like this is caused by a bug with the compiler version we're using for releases. I implemented a work-around until we can update the compiler and verify it's working correctly with the newer version.