1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Simconnect.xml and AIObject sample

Discussion in 'SimConnect' started by guodah, 16/1/07.

  1. guodah

    guodah

    Joined:
    9/10/06
    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
  2. lc0277

    lc0277

    Joined:
    25/9/06
    Messages:
    156
    Country:
    france
    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.
  3. DocMoriarty

    DocMoriarty

    Joined:
    20/12/06
    Messages:
    64
    Country:
    germany
    There are blanks before and after some of the parameter values in the stuff you posted. Perhaps thats what bothers SimConnect.
  4. Manuel Ambulo

    Manuel Ambulo

    Joined:
    29/9/06
    Messages:
    162
    Country:
    panama
    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
  5. guodah

    guodah

    Joined:
    9/10/06
    Messages:
    8
    Country:
    us-florida
    Thanks a lot

    It is working now. I think the main reason is that no space is not allowed.

Share This Page