diff --git a/Aircraft/c172p/Models/c172p.xml b/Aircraft/c172p/Models/c172p.xml index 94eb6af57..2f8f51e54 100644 --- a/Aircraft/c172p/Models/c172p.xml +++ b/Aircraft/c172p/Models/c172p.xml @@ -7,6 +7,15 @@ -3.0 -0.065 + + + + var rplayer = cmdarg(); + rplayer.getNode("sim/model/door-positions/rightDoor/position-norm", 1).alias(rplayer.getNode("sim/multiplay/generic/float[0]")); + rplayer.getNode("sim/model/door-positions/leftDoor/position-norm", 1).alias(rplayer.getNode("sim/multiplay/generic/float[1]")); + rplayer.getNode("sim/model/door-positions/baggageDoor/position-norm", 1).alias(rplayer.getNode("sim/multiplay/generic/float[2]")); + + diff --git a/Aircraft/c172p/c172p-set.xml b/Aircraft/c172p/c172p-set.xml index 8a5eeb9b9..36c7867cd 100644 --- a/Aircraft/c172p/c172p-set.xml +++ b/Aircraft/c172p/c172p-set.xml @@ -100,6 +100,9 @@ Started October 23 2001 by John Check, fgpanels@rockfish.net 1 + + + 0 0 0 diff --git a/gui/dialogs/multiplayer.xml b/gui/dialogs/multiplayer.xml index 713336ada..6ee1c17cd 100644 --- a/gui/dialogs/multiplayer.xml +++ b/gui/dialogs/multiplayer.xml @@ -4,10 +4,23 @@ multiplayer vbox - true + false + if ((getprop("/sim/multiplay/selected-server") == nil) or + (getprop("/sim/multiplay/selected-server") == "" ) ){ + var tx = getprop("/sim/multiplay/txhost"); + var dlg = cmdarg(); + var servers = cmdarg().getChildren("group")[1].getChildren("combo")[0].getChildren("value"); + foreach (var s; servers) { + var server = s.getValue(); + var host = split(" ", server)[0]; + if (host == tx) { + setprop("/sim/multiplay/selected-server", server); + } + } + } @@ -50,6 +63,7 @@ 01 + left /sim/multiplay/callsign @@ -60,23 +74,31 @@ host 11 - 120 - /sim/multiplay/txhost - true - /sim/multiplay/servers + 350 + /sim/multiplay/selected-server + false + mpserver01.flightgear.org (Frankfurt, Germany) + mpserver02.flightgear.org (Kansas, USA) + mpserver03.flightgear.org (Germany) + mpserver04.flightgear.org (United Kingdom) + mpserver05.flightgear.org (Chicago, USA) + mpserver07.flightgear.org (Wisconsin, USA) + mpserver08.flightgear.org (Frankfurt am Main, Germany) + mpserver09.flightgear.org (Koln, Germany) + mpserver10.flightgear.org (Montpellier, France) + mpserver11.flightgear.org (Vilnius, Lithuania) + mpserver12.flightgear.org (Amsterdam, Netherlands) + mpserver13.flightgear.org (Grenoble, France) - - 12 - /sim/multiplay/txport - /sim/multiplay/online - 2 + 3 1 + left @@ -84,9 +106,9 @@ /sim/multiplay/online - 2 + 3 1 - + left Connected to %s /sim/multiplay/txhost @@ -94,23 +116,65 @@ + hbox 10 true + + + + true - \ No newline at end of file +