salma abtin wrote in Sat Aug 24, 2013 8:22 am:Hi all...
I want to change some parameters like weather in fg without resetting this software.
there are something in view/rendering options that without resetting fg reply to changes that we want...like random buildings and...
I'v studied rendering xml file.I didn't understood what is property in this file.
In general, this is possible and worthwhile, there's an increasing trend to make more and more subsystems fully runtime-configurable - however, in practice it is usually pretty tricky, and requires familiarity with the C++ code and being able to build from source. You'll basically want to use property listeners to partially (or fully) reset subsystems - the majority of subsystems were however never developed with proper runtime reset/reinit support.
Thus, it is usually easier to fix just scripted subsystems for the time being.
So the problem is NOT just about editing some XML files, the underlying C++ code needs to be taught how to re-initialize - which is an active effort, see:
http://wiki.flightgear.org/Reset_%26_re-inithttp://wiki.flightgear.org/FlightGear_Run_Levelshttp://wiki.flightgear.org/FlightGear_SessionsThe first link is the most relevant once, but it is only of interest if you know C++ and know how to build FG from source, the 2nd link explains a slightly different approach - while the last link doesn't go into technical details at all, it's just a summary of why we ended up with certain shortcomings in FG, it's still valid in general, but pretty outdated.
To learn more about the C++ side of things, i.e. "SGSubsystems" and listeners, see:
http://wiki.flightgear.org/Howto:Create_new_subsystemsIn general, tied properties shall no longer be used, see:
http://wiki.flightgear.org/Howto:Use_Pr ... ee_ObjectsTo get started modifying the C++ code, see:
http://wiki.flightgear.org/Howto:Start_core_developmentThe wiki also has its own dedicated developers section:
http://wiki.flightgear.org/Portal:Developer