Sign in to follow this  
Terry O'Brien

SimConnect.ini is not producing any output

Recommended Posts

In the CONTINUING SAGA of trying to get SimConnect working I am going back to basics. Using ONE pc only. My Simconnect.XML is located here:

C:\Users\Terry\AppData\Roaming\Lockheed Martin\Prepar3D v4

it has this structure:

<?xml version="1.0" encoding="Windows=1252"?>

<SimBase.Document Type="SimConnect" version="1.0">
    <Descr>SimConnect Server Configuration</Descr>
    <Filename>SimConnect.xml</Filename>
    <Disabled>False</Disabled>

    <SimConnect.comm>
        <Disabled>False</Disabled>
        <Protocol>IPv4</Protocol>
        <Scope>global</Scope>
        <MaxClients>64</MaxClients>
        <Address>192.168.50.200</Address>
        <Port>4506</Port>
        <MaxRecvsize>4096</MaxRecvsize>
        <DisableNagle>False</DisableNagle>
    </SimConnect.Comm>

</SimConnect.Comm>
    <Disabled>False</Disabled>
    <Protocol>Auto</Protocol>
<    Scope>local</Scope>
</SimConnect.Comm>

<SimBase.Document>

 My Simconnect.ini file is located here:

C:\Users\Terry\Documents\Prepar3D v4 Files

It has this structure;

[SimConnect]
level=verbose
console=1
RedirectStdOutToConsole=1
OutputDebugString=1
file=c:\Users\Terry\Documents\Prepar3Dv4 Files\simconnect%03u.log
file_next_index=0
file_max_indexz=9
 

When I run the Prepar3d Sim I am expecting a debug window to appear on my main console. I am getting nothing. 

Am I not supposed to get a debug window showing SIMCONNECT communication traffic?

Will some  simconnect  expert please try to help me. I cant get anymore basic than this.

This is my last attempt to get simconnect working. Please please help.

 

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Suggest you start by reading through this for an understanding of the debug configuration: https://www.prepar3d.com/SDKv4/sdk/simconnect_api/configuration_files/configuration_files_overview.html

OutputDebugString only works if you are running from an integrated debug environment (IDE), which I would suspect you are not.  With the log file definition active, the console output may be getting diverted to the log file, so that might explain no output window. 

The debug window exposes the server-to-client comms, it doesn't create them...of course if there are no clients, there are no comms, and nothing to display.  A common technique is to use the AITraffic.exe program from the FSX SDK as a simple client to test the connection.  Unfortunately that program is now included in the P3D SDK as source (C++) code only, so if you don't have the FSX SDK installed somewhere or the ability to compile the P3D SDK example code you won't have that tool available.  Maybe someone else can suggest an alternative.

I notice you have changed the default port from 500 to 4506--any reason for that?

Also, this section of your xml is all buggered up, and may in fact be making the entire xml unreadable by P3D. It starts with an illegally-placed end tag "/SimConnect.Comm"

</SimConnect.Comm>
    <Disabled>False</Disabled>
    <Protocol>Auto</Protocol>
<    Scope>local</Scope>
</SimConnect.Comm> 

It should read like this:

<SimConnect.Comm>
    <Disabled>False</Disabled>
    <Protocol>Auto</Protocol>
    <Scope>local</Scope>
</SimConnect.Comm> 

Regards

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this