Talk:FlightGear Multiplayer Server
Jump to navigation
Jump to search
Working around fgms limitations until HLA has materialized a little more ...
Work in progress This article or section will be worked on in the upcoming hours or days. See history for the latest developments. |
I had something similar to your JSON/Nasal client working a while ago for ship AIS, but didn't have the time to develop something more substantial.
|
The current MP system probably isn't able to deal with this amount of "traffic" at the client-side - thus, it might make more sense to develop this as a server-side module, that can be run as part of the fgms process.
|
once we have network access in Nasal (i.e. socket support) and possibly a dedicated server-side property tree, it wouldn't be all that complex to come up with a dedicated Nasal interpreter that may run as a "weather server" in a standalone fashion, and push out property updates to all connected clients, similar to the concept employed by Torsten's FGPanel code: viewtopic.php?f=5&t=15132&p=150341&hilit=#p150341
|
Adding socket bindings to the Nasal interface would be quite simple, and it is well documented: Howto:Extend_Nasal One would only need to use PLIB's socket wrappers and expose them via extension functions, or even objects - using Tom's new cppbind framework in simgear/nasal/cppbind. |