Page MenuHomeFeedback Tracker

3den module didnt trigger "init" state
Closed, ResolvedPublic


If you place a module in 3den it didnt trigger the "init" state.
The mod ZEI ( run before 1.86 without any problem... after the update the switch do with "init" didnt get executed and only "attributesChanged3DEN" get triggert if a module was placed.
We had to also check for "attributesChanged3DEN" instead of "init" to make it work now (


Operating System
Windows 10 x64
Eden Editor
Steps To Reproduce
  1. make a module like (
  2. place it in the 3den editor
  3. look at the debug from this function position (
  4. ausgabe=output -> attributesChanged3DEN but need to be init

Event Timeline

shukari created this task.Dec 5 2018, 12:28 PM

I'm pretty sure it's intentional. For instance, have a look how BIS_fnc_moduleGrenade is implemented, which is the module function for the smoke grenade module. "registeredToWorld3DEN" is the one that should be triggered in Eden, not "init".

Init was called before 1.86 in the wiki stand beside isEden = 1 config entry that it call the init and also it not trigger register...3den... only the attrs...changed... test it for yourself look at tje ZEI like i provide

ookexoo added a comment.EditedDec 7 2018, 12:53 AM

Ok, that's curious, since our effect modules in Achilles, which follow the syntax used in the smoke module, still work fine when placed in Eden and we are using "registeredToWorld3DEN" for Eden and "init" for Zeus/mission start. Gonna have a look if I got time. Unfortunately, got some other issues with spawning modules on the fly with scripts, but that is unrelated to this issue...

Nvm, logging revealed you are completely right. It's "attributesChanged3DEN" that gets triggered, "registeredToWorld3DEN" is for redos in the history instead. You may want to add "registeredToWorld3DEN" to ZEI to handle redos in history, since in that case "attributesChanged3DEN" does not get triggered.

R3vo closed this task as Resolved.Jun 24 2021, 8:30 AM
R3vo claimed this task.