Page 1 of 1

Send any data between data and control stages

Posted: Tue Apr 06, 2021 2:04 pm
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?

Re: Send any data between data and control stages

Posted: Tue Apr 06, 2021 7:08 pm
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?

Re: Send any data between data and control stages

Posted: Tue Apr 06, 2021 7:23 pm
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.

Re: Send any data between data and control stages

Posted: Tue Apr 06, 2021 7:35 pm
by Pi-C
Prototypes are defined in the data stage. You can read prototype data in the control stage, but not change them.