View Full Version : Simconnect.xml and AIObject sample
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">
<Address> 172.28.86.222 </Address>
<Port> 222 </Port>
<DisableNagle> True </DisableNagle>
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!
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.
19 Jan 2007, 05:13
There are blanks before and after some of the parameter values in the stuff you posted. Perhaps thats what bothers SimConnect.
21 Jan 2007, 14:06
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">
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...
It is working now. I think the main reason is that no space is not allowed.
vBulletin® v3.8.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.