Howto:Reset/re-init Troubleshooting: Difference between revisions

Jump to navigation Jump to search
(→‎Nasal dialog: Placed the reinit.nas Nasal script into a {{collapsible script}} box for better code management. The code starts in a collapsed state, simplifying the article layout.)
Line 124: Line 124:


== Background ==
== Background ==
James has added initial code to work on dynamic subsystem creation, so that subsystems can be added or removed. Only some subsystems are supported so far, since many have non-default constructors or other complexities (see [[FlightGear Run Levels]] for further details). With this change, it's now possible to dynamically add and remove the traffic-manager at runtime using fgcommands, for example (pasted into the [[Nasal Console]]):
James has added initial code to work on dynamic subsystem creation, so that subsystems can be added or removed at runtime.  
 
Only some subsystems are supported so far, since many have non-default C++ constructors or other complexities (see [[FlightGear Run Levels]] for further details).  
 
With this change, it's now possible to dynamically add and remove the traffic-manager at runtime using fgcommands, for example (pasted into the [[Nasal Console]]):
<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
fgcommand("add-subsystem", props.Node.new({
fgcommand("add-subsystem", props.Node.new({

Navigation menu