RoystonS / BetterBravoLights

Utility for controlling lights on a Honeycomb Bravo Throttle from Microsoft Flight Simulator
MIT License
42 stars 8 forks source link

Can you help fix my corrupt exe.xml file? #26

Closed t0ffi closed 2 years ago

t0ffi commented 2 years ago

Software version 0.6.0

Problem BetterBravoLights refused to install because my exe.xml file is corrupt.

My exe.xml file is located at C:\Users\matoc\AppData\Roaming\Microsoft Flight Simulator\exe.xml

The error reported was

Unexpected end tag. Line 7, position 3.

The contents of the exe.xml file are as follows:

<?xml version="1.0" encoding="Windows-1252"?>
  <Launch.Addon>
    <Name>AFCBridge</Name>
    <Disabled>False</Disabled>
    <Path>D:\msfs\community\AFC_Bridge\bin\AFC_Bridge.exe</Path>
   </Launch.Addon>
</SimBase.Document>

I understand that BetterBravoLights didn't corrupt the file and that it's simply warning about the corrupted file. But could you help me fix it?

DNM1967 commented 2 years ago

I am NOT an expert. Below is a copy of my exe.xml file. I run on steam so this lives in the default msfs directory for a steam install, which on my PC is C:\users\owner\Appdata\roaming\microsoft flight simulator\

You can see I have three lines between Xml version and Launch.Addon that you don't/ I think you are missing these lines. Please note I am not an expert and only trying to suggest assistance.

Full exe.xml file is below:-

I hope this helps you.

Best Regards

David

DNM1967 commented 2 years ago

<?xml version="1.0" encoding="windows-1252"?>

SimConnect SimConnect.xml Logitech Microsoft Flight Simulator Plugin Steam False C:\Program Files\Logitech\Microsoft Flight Simulator Plugin\LogiMicrosoftFlightSimulator.exe -r AFCBridge False C:\Users\owner\AppData\Roaming\Microsoft Flight Simulator\Packages\community\AFC_Bridge\bin\AFC_Bridge.exe
DNM1967 commented 2 years ago

Im sorru but it wont paste the file with the <> comment bits correctly. Dont know how to make it do that

RoystonS commented 2 years ago

Hi @t0ffi.

@DNM1967 is quite right. Your exe.xml file is missing the initial <SimBase.Document> line.

You'll want your exe.xml to look like this:

<?xml version="1.0" encoding="Windows-1252"?>
<SimBase.Document Type="SimConnect" version="1,0">
  <Launch.Addon>
    <Name>AFCBridge</Name>
    <Disabled>False</Disabled>
    <Path>D:\msfs\community\AFC_Bridge\bin\AFC_Bridge.exe</Path>
   </Launch.Addon>
</SimBase.Document>

(@DNM1967 You can add bits of code to comments by adding triple backticks before and after the code section.)

t0ffi commented 2 years ago

Thank you for instant help. My issue is solved.

RoystonS commented 2 years ago

You're very welcome!