• 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.

Simconnect.xml and AIObject sample

Messages
8
Country
us-florida
Hello,

I created a SimConnect.xml file and placed it as the mannual instructs. But the simple OpenClose example does not work. The odd thing is that the OpenClose example connects to the server fine once I remove the xml file. Below is the xml file and please let me know if you have any idea

<SimBase.Document Type="SimConnect" version="1,0">
<Descr> SimConnect</Descr>
<Filename> SimConnect.xml</Filename>
<Disabled> False</Disabled>
<SimConnect.Comm>
<Disabled> False</Disabled>
<Protocol> Auto</Protocol>
<Scope> local</Scope>
<Address> 172.28.86.222 </Address>
<Port> 222 </Port>
<MaxClients>3</MaxClients>
<MaxRecvSize>8196</MaxRecvSize>
<DisableNagle> True </DisableNagle>
</SimConnect.Comm>
</SimBase.Document>

Another question is that how to view the result of the AIObject example, I can not see anything.

I really appreciate it, if you could help!

Daniel
 
At first sight I don't see anything incorrect in your simconnect.xml, but It looks highly customized, so some setting may cause problem.

Using port numbers below 1024 is generally not advised since they are reserved for standard services. If you were working under Unix, it would not work without administrator privileges. I don't know much about Windows security, but check about it. Also check that you used exactly the same address/port in the simconnect.cfg used with the client application

MaxClients is probably too low, check that you are not running other simconnect add-ons (FSUIPC, Recorder modules, etc) that would eat all available connections.
Also I don't think you need to disable Nagle or change the receive buffer size.
 
There are blanks before and after some of the parameter values in the stuff you posted. Perhaps thats what bothers SimConnect.
 
Hi,

For use the AI object sample, i use these settings in my SimConnect.xml file:

<?xml version="1.0" encoding="Windows-1252" ?>
- <SimBase.Document Type="SimConnect" version="1,0">
<Descr>SimConnect</Descr>
<Filename>SimConnect.xml</Filename>
<Disabled>False</Disabled>
- <SimConnect.Comm>
<Disabled>False</Disabled>
<Protocol>Auto</Protocol>
<Scope>local</Scope>
<Address />
<MaxClients>64</MaxClients>
<Port />
<MaxRecvSize>4096</MaxRecvSize>
<DisableNagle>False</DisableNagle>
</SimConnect.Comm>
</SimBase.Document>

Also, i run the AIObject sample in the same machine where i run FSX. So you run FSX, then select the Seattle Tacoma Intl airport, in the default runway, then run the AIObject sample, then you should see a console window, (another way to run the AIObject sample is by a DOS command prompt), then when you has the AIObject running, then you need to open any FSX window, example, i use to select the DISPLAY SETTINGS window, then press CANCEL, this returns a SIMSTART event to the AIObject sample, then you can press the Z key in your keyboard, then the X key in your keyboard so then the objects beginning moving....I use to do this...and it works..hehehe...i think the DISPLAY SETTINGS thing, shouldnt be necessary, so if you dont want to do that then you may change the sample code, so then it doesnt activates or creates the objects after u get a SIMSTART event. Another way is to run the AIObject during the FSX's startup, by adding it to the EXE.xml, i think this is the best way, as when you load your plane in Seattle Tacoma, you dont need to display any FSDialog, to then get a SIMSTART event...you can just directly press Z key and X key in your keyboard...

Best Regards,

Manuel Ambulo
 
Back
Top