Send any data between data and control stages

Place to get help with not working mods / modding interface.
Post Reply
WildBraas
Inserter
Inserter
Posts: 44
Joined: Sat Feb 16, 2019 6:25 am
Contact:

Send any data between data and control stages

Post by WildBraas »

Hi all!
I want to add cross-mod compatibility to one mod as realized in space exploration.
SE provide a custom prototype option called se_allow_in_space which may add to any entity to allow build in space.
But in data-final-fixes in SE this option change collision masks table and all.
After this all prototypes has clear all custom options :(
It is the way to catch any data to next stage?

Pi-C
Smart Inserter
Smart Inserter
Posts: 1648
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: Send any data between data and control stages

Post by Pi-C »

WildBraas wrote:
Tue Apr 06, 2021 2:04 pm
But in data-final-fixes in SE this option change collision masks table and all.
After this all prototypes has clear all custom options :(
It is the way to catch any data to next stage?
Couldn't you just add a dependency on SE to make sure it loads before your mod, and fix SE's changes in your own data-final-fixes?
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!

WildBraas
Inserter
Inserter
Posts: 44
Joined: Sat Feb 16, 2019 6:25 am
Contact:

Re: Send any data between data and control stages

Post by WildBraas »

Question more complicated than current unsolved task.
As variant I could use your method, but if I catch data across stages I may write complicated code once and everyone may use this api without core rewriting.

Pi-C
Smart Inserter
Smart Inserter
Posts: 1648
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: Send any data between data and control stages

Post by Pi-C »

Prototypes are defined in the data stage. You can read prototype data in the control stage, but not change them.
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!

Post Reply

Return to “Modding help”