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 | President and CEO, AVSIM Inc
ATP Gulfstream II-III-IV-V

System1 (P3Dv5/v4): i9-13900KS @ 6.0GHz, water 2x360mm, ASUS Z790 Hero, 32GB GSkill 7800MHz CAS36, ASUS RTX4090
Samsung 55" JS8500 4K TV@30Hz,
3x 2TB WD SN850X 1x 4TB Crucial P3 M.2 NVME SSD, EVGA 1600T2 PSU, 1.2Gbps internet
Fiber link to Yamaha RX-V467 Home Theater Receiver, Polk/Klipsch 6" bookshelf speakers, Polk 12" subwoofer, 12.9" iPad Pro
PFC yoke/throttle quad/pedals with custom Hall sensor retrofit, Thermaltake View 71 case, Stream Deck XL button box

Sys2 (MSFS/XPlane): i9-10900K @ 5.1GHz, 32GB 3600/15, nVidia RTX4090FE, Alienware AW3821DW 38" 21:9 GSync, EVGA 1000P2
Thrustmaster TCA Boeing Yoke, TCA Airbus Sidestick, 2x TCA Airbus Throttle quads, PFC Cirrus Pedals, Coolermaster HAF932 case

Portable Sys3 (P3Dv4/FSX/DCS): i9-9900K @ 5.0 Ghz, Noctua NH-D15, 32GB 3200/16, EVGA RTX3090, Dell S2417DG 24" GSync
Corsair RM850x PSU, TM TCA Officer Pack, Saitek combat pedals, TM Warthog HOTAS, Coolermaster HAF XB case

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.
×
×
  • Create New...