1
0
Fork 0
fgdata/Nasal
Richard Harrison 405eb73bb6 Emesary multiplayer bridge rework.
The primary goal of this work is to provide a alternative to multiplayer property transmission, one that is more efficient and event driven. By using notifications in the model bindings these control messages can be bridged and do not require extra code to implement dual controls.

Using this alternative permits the modeller much greater control of which properties are transmitted, how these are encoded, and how often the updates are needed.

Please remember that this is a use case for Emesary, it is not all that Emesary can provide and there are still many other uses for the event driven object oriented system that Emesary provides.

Briefly the changes are:

- New PropertySyncNotificationBase to permit property transfer between ownship and MP versions using notifications instead of the pre-defined MP messages. This gives a much more flexible way to seutp multiplayer property transfer - and can probably support more properties because of the more efficient packing. There is a corresponding parameter (/sim/multiplay/transmit-only-generics) that will only transmit the bare minimum of parameters; making more space for notifications.

- new AircraftControlNotification to allow for animation bindings in the model, these notifications can be easily bridged over MP thus adding a simple method to implement dual controls.

- more efficient packing of encoded notifications over MP saving roughly 30% (by using a much larger encoding space and also changing to use fixed length encoding). This breaks compatibility with previous MP bridges, however at this time I don't think anything is using the current code.

There can be different types of PropertySyncNotification (with unique ID's) sent at a different schedule (so you could have a 10 second update of very slow moving items). However bear in mind that the messages have a lifetime of 10 seconds to ensure receipt - so to optimise space would require > 15 seconds to make much difference, and that is very slow moving.
2017-07-23 16:05:43 +02:00
..
canvas Fix for sticking message tooltip. 2017-05-30 00:20:14 +01:00
console Nasal REPL: integrate with Canvas keyboard 2014-11-28 09:29:28 -06:00
FailureMgr Bugfixes and improvements to the Failure Manager 2014-12-21 12:39:52 +01:00
jetways Fix elevation bug for jetways 2015-10-11 22:32:25 +02:00
jetways_edit Fix elevation bug for jetways 2015-10-11 22:32:25 +02:00
local_weather Some preparation for Rio Visuals 2016-08-08 09:20:04 +03:00
performance_monitor Close dialogs with Esc-key 2013-12-02 21:32:05 +01:00
std Nasal: std.Vector: add 'contains' method (by onox). 2014-12-23 14:40:29 +01:00
towing Hitch/aertow updates fro D-NXKT 2015-01-04 08:58:20 +00:00
tutorial Add support for sprintf() formatting to tutorial 2017-03-28 21:38:34 +01:00
addons.nas Introduce handler for --addon commandline switch 2017-07-18 12:14:50 +02:00
aircraft.nas Speed-up fix; now included in /sim/time/delta-sec 2016-01-05 23:25:55 -06:00
aurora.nas reset executable bit for nasal script 2017-07-18 10:57:13 +02:00
bits.nas string(): make zero padding work if arg is 0 2008-12-22 01:50:48 +00:00
checklist.nas Support <marker> and <page> tags in the conversion of checklists to tutorials. 2013-02-27 22:46:37 +00:00
contrail.nas Nasal/*.nas: named arguments 2013-10-20 13:07:09 -05:00
controls.nas Add Joystick Config dialog for individual engines 2017-04-20 21:06:42 +01:00
debug.nas Nasal: respect color argument for debug._dump_prop 2014-06-21 12:09:34 +02:00
dynamic_view.nas revert init signal change -- better fix the real problem 2008-12-19 20:52:22 +00:00
earthview.nas Earthview 2.1 - parallax mapping for cloud layer, lightning at night, Rayleigh scattering in atmosphere and minor bugfixes 2017-04-05 16:50:31 +03:00
emesary.nas Emesary multiplayer bridge rework. 2017-07-23 16:05:43 +02:00
emesary_mp_bridge.nas Emesary multiplayer bridge rework. 2017-07-23 16:05:43 +02:00
environment.nas Change some Nasal logging to use logprint() 2015-06-08 10:33:31 +01:00
events.nas Bugfixes and improvements to the Failure Manager 2014-12-21 12:39:52 +01:00
fuel.nas #705: add sanity checks to fuel tank update 2012-04-22 15:19:20 +02:00
geo.nas Many MapStructure/NavDisplay updates 2014-04-28 21:39:00 -05:00
glide_slope_tunnel.nas FG crashes from glideslope tunnel if runway id is empty string. This change defends against bad data. 2017-01-04 09:11:27 -05:00
globals.nas Adds assert() for Nasal and fixes io.include internal marking 2014-06-06 21:41:10 -05:00
gui.nas Add yasim c.g. display to weight-and-fuel dialog. 2017-01-23 17:57:18 +01:00
io.nas Nasal: remove obsolete io.nas security 2015-11-22 11:22:22 +00:00
joystick.nas Add Joystick Config dialog for individual engines 2017-04-20 21:06:42 +01:00
lag_adjust.nas minor correction in lag_adjust.nas (mp patch) 2015-06-15 01:11:59 +02:00
material.nas Fix #1310 - typo in material.nas 2014-01-19 15:52:38 -06:00
math.nas Add a math.clamp function. 2016-08-20 18:33:12 -05:00
mp_broadcast.nas Nasal/mp_broadcast.nas: Handle joining/leaving the MP network at run time. 2013-02-03 19:27:35 +01:00
multikey.nas - let F12 pop up radio settings dialog (used to be Ctrl-r) 2008-10-08 21:59:31 +00:00
multiplayer.nas Hint to the user when we adjust on-runway start. 2016-07-17 21:54:33 +01:00
notifications.nas Emesary multiplayer bridge rework. 2017-07-23 16:05:43 +02:00
orbital_target.nas Change coordinates for orbiting AI object to JSBSim inertial definition for consistency 2016-06-02 11:36:17 +03:00
prop_key_handler.nas Initial Nasal REPL work (canvas-based) 2014-04-18 16:49:11 -05:00
props.nas Add props.compileCondition to actually use exposed SGCondition. 2014-06-23 21:12:57 +02:00
redout.nas Tentative fix for accelerometers using YaSim properties in JSBSim or optionally generated properties 2016-11-23 15:34:04 +02:00
route_manager.nas Procedures: be defensive about STAR/approach choice. 2015-01-10 19:38:29 +00:00
scenery.nas Nasal/scenery.nas: Handle joining/leaving the MP network at run time. 2013-02-03 19:27:47 +01:00
screen.nas Add ability to clear screen.window, and use it. 2014-01-12 19:52:30 +00:00
seaport.nas don't use printlog before nasal-dir-initialized 2010-10-13 20:46:31 +02:00
string.nas Nasal: remove obsolete io.nas security 2015-11-22 11:22:22 +00:00
tanker.nas Normalize angles for bearings on tanker. 2013-04-12 20:52:04 +01:00
track_target.nas Tomaskom writes: 2015-05-28 10:29:38 -05:00
video.nas remove the infamous "A" console message 2016-04-24 11:12:18 +02:00
view.nas Fix screen width compensation 2014-11-27 22:17:22 -06:00
weather_scenario.nas Correct use of getprop() so that --enable-real-weather-fetch works. 2012-06-12 11:09:50 +01:00
wildfire.nas GUI Cleanup from Michael HABARTA. Part 3/3 2015-05-03 17:13:50 +01:00
windsock.nas Prepare for windsock turbulence animation 2017-04-11 13:39:25 +02:00