Jump to content

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

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

 


Bob Scott | AVSIM Forums Administrator | AVSIM Board of Directors
ATP Gulfstream II-III-IV-V

System: i9-10900K @ 5.2GHz on custom water loop, ASUS Maximus XII Hero, 32GB GSkill 3600MHz CAS15, EVGA RTX3090 XC3 Ultra
Samsung 55" JS8500 4K TV@30Hz,
3x NVME 2x SATA Samsung SSD, EVGA 1KW PSU, 1.2Gbps internet
SoundBlaster XFi Titanium, TOSLINK to Yamaha RX-V467 HT Rcvr, Polk/Klipsch 6" bookshelf spkrs, Polk 12" subwoofer, 12.9" iPad Pro
PFC yoke/throttle quad/pedals with custom Hall sensors, Coolermaster HAF932 case, Stream Deck XL button box

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    50%
    $12,660.00 of $25,000.00 Donate Now
×
×
  • Create New...