From b426b4dbed805964f178bc00796ca89822336ba6 Mon Sep 17 00:00:00 2001 From: Gijs de Rooy Date: Tue, 3 Jan 2012 21:35:26 +0100 Subject: [PATCH 1/3] Transmit door-positions over MP. --- Aircraft/c172p/Models/c172p.xml | 9 +++++++++ Aircraft/c172p/c172p-set.xml | 3 +++ 2 files changed, 12 insertions(+) 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 From 66e7d103f1a596b8907b0b2215a7c4278b3e2399 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Tue, 3 Jan 2012 23:33:26 +0000 Subject: [PATCH 2/3] Update multiplayer settings dialog: - Add list of current (as of 3 Jan 2012) MP servers - Add Connect/Disconnect buttons --- gui/dialogs/multiplayer.xml | 96 ++++++++++++++++++++++++++++++------- 1 file changed, 80 insertions(+), 16 deletions(-) diff --git a/gui/dialogs/multiplayer.xml b/gui/dialogs/multiplayer.xml index 713336ada..24b8d18a4 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 + 300 + /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 (Germany) + mpserver09.flightgear.org (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 + From 316cf855576831cc1f847f06e5fa0011a23f6998 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Tue, 3 Jan 2012 23:38:26 +0000 Subject: [PATCH 3/3] Update MP Server descriptions --- gui/dialogs/multiplayer.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gui/dialogs/multiplayer.xml b/gui/dialogs/multiplayer.xml index 24b8d18a4..6ee1c17cd 100644 --- a/gui/dialogs/multiplayer.xml +++ b/gui/dialogs/multiplayer.xml @@ -74,17 +74,17 @@ host 11 - 300 + 350 /sim/multiplay/selected-server false - mpserver01.flightgear.org (Frankfurt/Germany) - mpserver02.flightgear.org (Kansas/USA) + mpserver01.flightgear.org (Frankfurt, Germany) + mpserver02.flightgear.org (Kansas, USA) mpserver03.flightgear.org (Germany) mpserver04.flightgear.org (United Kingdom) - mpserver05.flightgear.org (Chicago/USA) + mpserver05.flightgear.org (Chicago, USA) mpserver07.flightgear.org (Wisconsin, USA) - mpserver08.flightgear.org (Germany) - mpserver09.flightgear.org (Germany) + 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)