Cargo-bay prototype definable without space age

Bugs which we just recently fixed in our development version and will reach you in the next release.
User avatar
CaitSith2
Inserter
Inserter
Posts: 26
Joined: Wed Nov 10, 2021 8:09 pm
Contact:

Cargo-bay prototype definable without space age

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15963
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Cargo-bay prototype definable without space age

Post by Rseding91 »

Can you please post a mod showing this? Because when I test - it gives an error as expected.
If you want to get ahold of me I'm almost always on Discord.
User avatar
CaitSith2
Inserter
Inserter
Posts: 26
Joined: Wed Nov 10, 2021 8:09 pm
Contact:

Re: Cargo-bay prototype definable without space age

Post 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.)
Attachments
factorio-current_no_space_age.log
Factorio 2.0.60 base game build
(7.06 KiB) Downloaded 5 times
factorio-current.log
Factorio 2.0.63 space age build
(6.7 KiB) Downloaded 12 times
cargo-bay_2.0.28.zip
(6.35 MiB) Downloaded 13 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15963
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Cargo-bay prototype definable without space age

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15963
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Cargo-bay prototype definable without space age

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved for the next release”