• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

WebSimConnect 2.1 released

WebSimConnect

Resource contributor
Messages
154
I am pleased to announce the release of WebSimConnect 2.1 software framework for FSX/P3D add-ons. Major changes compared to 2.0 version are the following:

 added Prepar3D V4 x64 support
 Installation program that setup the engine and installs the examples.
 WebSimXML, a new component that allows to render HTML5 content as an CustomDraw Element in the XML gauge allowing to build XML gauges with some HTML5 content. It also enables the developers both to write in XML some JavaScript code executed on the HTML5 element, and write XML statements in JavaScript. The HTML5 element can also be interactive and responsive to mouse events.
 WebSimSocket, a new component that enables bi-directional communication between FSX/P3D and a web page opened on external browser. You can manipulate HTML5 content using either XML or C++ and from JavaScript you can execute XML code or call your C++ functions. All communication is done using websocket protocol. No more http. Web page is listening to events coming from the sim rather than querying it like in http.
 updated WebSimData component allowing to use the framework with no C++ coding.

The new architecture is depicted below:

Architecture.png


and detailed overview is in the attached PDF file or can be downloaded from here:

https://www.dropbox.com/s/l44x8ta23kx33k0/WebSimConnect Overview v2.1.pdf?dl=0

DOWNLOAD SECTION:

WebSimBrowser setup - the engine of the framework:

https://www.dropbox.com/s/9yvq0xf9axtr8r7/WebSimBrowser_Setup.zip?dl=0

WebSimConnect examples setup:

https://www.dropbox.com/s/fzywklytxa6qe4j/WebSimConnect_Example_Setup.zip?dl=0

SDK (binaries, documentation, examples, source code of examples, config files)

https://www.dropbox.com/s/3vjc3i1kq5410cl/WebSimConnect 2.1.6.zip?dl=0

The software requires simconnect RTM version. It is included in FSX and for P3D it can be installed in P3D from .\redist\Interface\FSX-RTM\retail\lib

The examples include:

 Opaque 2D gauge window with HTML5 content
 Transparent 2D gauge window
 3D embedded gauge in VC
 HTML5 content as an element in the XML gauge
 Manipulating HTML5 content through C++ code
 Manipulating HTML5 content through XML code
 Using WebSimData configuration to send data from the Sim to HTML5
 Using WebSimData to send data from the Sim to externally browsed HTML5 content
 Using WebSimSocket channel and executing XML command from the JavaScript code.
 Using WebSimTexture to render dynamic textures with HTML5 content.

The details how to run the examples are in the attached overview document. With the installation programs it is now easy to see the demo in action. Just run it and select Beech Baron 58 (WebSimConnect) aircraft. All examples runs well on FSX, P3D V2, V3, V4, with exception that WebSimTexture is not supported on FSX (it uses P3D PDK and DX11)

The framework is free for non-commercial use.

Enjoy, Marcin
 

Attachments

Last edited:
Thank you Marcin. This software looks amazing. I'm sure once everyone figures out it's benefits it will become a much used package.

Cheers,
 
Version 2.1 was updated and includes X-Plane 10, 11 support for Win & Mac.

http://websimconnect.webs.com/download

Setup program was added for Windows. Mac has no installer but only copy paste is needed.

The API was enriched with DataRefs API, i.e. you can call JavaScript functions of your gauge by setting custom DataRefs, which allows to build the systems using for example lua scripting or anything else that can manipulate DataRefs. Additionally there is native JavaScript function that sets the DataRefs, so you have duplex communication between custom plugin (lua, c++) and JavaScript code.

The next version 2.2 shall be released soon. It will target P3D and X-Plane for Windows and will include accelerated rendering. The details were posted on FB fun page:


Cheers

Marcin
 
Hi Marcin,

Long time ago, we've been discussing on integrating WSC on my Fokker T.5 for FSX/P3D.
The thing is (finally) close to release.
What I want to know, is it possible to render an FSX view (for example, rearview) on a WSC gauge polygon? For example for creating mirrors.

Like to hear from you!

Daan
 
Back
Top