Howto:Transmit properties over MP: Difference between revisions

Jump to navigation Jump to search
m
Robot: Cosmetic changes
(Added an example of aliases created by the 3d model XML file.)
m (Robot: Cosmetic changes)
Line 5: Line 5:
This wiki article will teach you '''how to transmit properties over a network'''.
This wiki article will teach you '''how to transmit properties over a network'''.


==-set.xml==
== -set.xml ==


  <multiplay>
  <multiplay>
Line 24: Line 24:
The value behind alias= is the (local) path to the property that has to be transmitted. Make sure that the local property has the same type as the generic MP enabled one.
The value behind alias= is the (local) path to the property that has to be transmitted. Make sure that the local property has the same type as the generic MP enabled one.


==In the 3d model XML file==
== In the 3d model XML file ==


If the MP enabled properties are to be used in animations it is preferable to create aliases for them on the remote systems so that the animations can be written using the logical properties rather than the "sim/multiplay/generic/..." ones. The example below creates the "fdm/jsbsim/propulsion/engine[x]/pitch-angle-rad" properties in the AI/MP aircrafts property subtree as aliases for the MP properties. In that way the relevant animations can use the more meaningful property name "fdm/jsbsim/propulsion/engine[x]/pitch-angle-rad" instead of "sim/multiplay/generic/float[x]".
If the MP enabled properties are to be used in animations it is preferable to create aliases for them on the remote systems so that the animations can be written using the logical properties rather than the "sim/multiplay/generic/..." ones. The example below creates the "fdm/jsbsim/propulsion/engine[x]/pitch-angle-rad" properties in the AI/MP aircrafts property subtree as aliases for the MP properties. In that way the relevant animations can use the more meaningful property name "fdm/jsbsim/propulsion/engine[x]/pitch-angle-rad" instead of "sim/multiplay/generic/float[x]".
Line 45: Line 45:
   </load>
   </load>
  </nasal>
  </nasal>


[[Category:Aircraft enhancement|Transmit properties over MP]]
[[Category:Aircraft enhancement|Transmit properties over MP]]
[[Category:Nasal|Transmit properties over MP]]
[[Category:Nasal|Transmit properties over MP]]

Navigation menu