Order of Run Start Broadcasts: Difference between revisions

From Planimate Knowledge Base
Jump to navigation Jump to search
m (1 revision(s))
No edit summary
Line 21: Line 21:
</font>
</font>
----
----
<font size="2">idkbase note 205</font>
[[Category:Broadcast/System]]
[[Category:Broadcast/System]]
[[Category:Runtime Engine]]
[[Category:Runtime Engine]]
[[Category:Question]]
[[Category:FAQ]]
<font size="2">idkbase note 205</font>

Revision as of 11:07, 11 January 2008


Currently the following happens and PL sends the following BC sequence
when a run is started:


START RUN ENGINE:

  • The model is initialised for run (phase 1)
    BC _Preinit Start
    BC _Model loaded (if its an initial run)
    BC _PreInit End
  • The model is initialised for run (phase 2)
    GC _Run Start
  • model pauses or continues depending on options


The 2 stage init process was from an era when certain objects could not
be changed once the run was going but the modeller needed an ability to
initially set them up. (the conveyor is still like this). Also item "preloading" happens in the
second phase of the initialisation of the run.


Two changes I'd like to make:

  • move the _Model Loaded BC to occur just before _Run Start. This will allow it to trigger messages, etc. which it cant at the current time it
    is sent
  • reduce use and eventually eliminate dependence on the 2 _PreInit
    broadcasts by modellers.


(followup: these BCs wont be removed as they are useful for modeller's setup use)




idkbase note 205