Closed DNM1967 closed 2 years ago
Interesting - thanks for the report!
Ok, so something quite fundamental has gone wrong whilst BetterBravoLights was trying to figure out where your MSFS files are installed.
Can you tell me if you have either of the following directories on your machine?
"%LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache"
"%APPDATA%\Microsoft Flight Simulator"
(Those aren't the literal filenames: the %variable%
parts of those filenames should get turned paths such as C:\Users\royston\AppData\Local
depending on your username and drive name and so on...)
If either (or both) of those exist, can you tell me which files exist in each of those places?
In particular, do either contain files named FlightSimulator.CFG
or UserCfg.opt
?
Thank you for the reply. I don't know if this is relevent, but I unzipped BBL to my D:\ drive. I am running install.bat from D:\BetterBravoLights_gZBm4\
My MSFS2020 is the Steam version and it is located on the C:\ drive in the default install directory.
I do NOT have a %localAppData% directory on my C:\ Drive I do NOT have a %Appdata%\Microsoft Flight Simulator directory on my C:\ drive either
The \Microsoft Flight Simulator directory is at C:\Users\Owner\AppData\Roaming\Microsoft Flight Simultator This directory has FlightSimulator.CFG and UserCFG.opt files in it.
I hope this helps. I am off to Hospital for the day but I will be back about 5pm if I can give any more information that is of help
Regards
David
Hi David,
Thanks for checking that.
Yes, you won't literally have a folder called %LOCALAPPDATA%
. The things between %
characters are variables that Windows knows how to expand. If you type d%LOCALAPPDATA%
into Windows File Explorer it'll automatically expand that into (in your case) C:\Users\Owner\AppData\Local
.
Running BBL from the D:
drive shouldn't make any difference. (I've just checked running it from my E:
drive and that was all fine.)
Ok, if you wouldn't mind, could we collect some more diagnostics?
Could you download this script: https://gist.githubusercontent.com/RoystonS/b78bca7d04c40918050acb3cafbc2a10/raw/caef239d20956710a6594fa43d370a094bfa1851/bbl-installation-diagnostics.cmd
Make sure the name of the saved file ends with .cmd
, not .cmd.txt
.
Then run that script and paste its output into this issue report. You may get a security warning from Windows when running it, because Windows protects you against running random scripts from strangers.
The script will dump out a few bits of information about your installation that'll help me figure out why it's going wrong on your machine.
Here's what it produces on my machine... (Yours will be a little different as yours is a Steam installation whereas mine is a Windows Store installation, but it should be similar.)
START OF BETTER BRAVO LIGHTS INSTALLATION DIAGNOSTICS
Microsoft Store location
"C:\Users\royston\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache"
Volume in drive C is 980
Volume Serial Number is E41A-ABF3
Directory of C:\Users\royston\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache
01/02/2022 17:18 <DIR> .
14/01/2022 06:06 <DIR> ..
31/01/2022 19:18 5,672 Cameras.CFG
31/01/2022 19:18 7,077 Content.xml
01/02/2022 17:18 524 exe.xml
31/01/2022 19:45 2,194 FlightSimulator.CFG
31/01/2022 19:18 140 GrantedRewards.BIN
31/01/2022 19:18 112 GrantedRewardsOld.BIN
31/01/2022 19:15 <DIR> Packages
31/01/2022 19:15 <DIR> PC
31/01/2022 19:45 8,589,934,592 ROLLINGCACHE.CCC
31/01/2022 19:18 <DIR> SceneryCache
31/01/2022 19:18 <DIR> SceneryIndexes
31/01/2022 19:18 1,764 SimConnect.xml
31/01/2022 19:21 <DIR> SimObjects
31/01/2022 19:45 3,232 UserCfg.opt
9 File(s) 8,589,955,307 bytes
7 Dir(s) 159,954,796,544 bytes free
UserCfg.opt InstalledPackage
---------- C:\USERS\ROYSTON\APPDATA\LOCAL\PACKAGES\MICROSOFT.FLIGHTSIMULATOR_8WEKYB3D8BBWE\LOCALCACHE\USERCFG.OPT
InstalledPackagesPath "C:\FSData"
exe.xml
<?xml version="1.0" encoding="windows-1252"?>
<SimBase.Document Type="SimConnect" version="1,0">
<Descr>Auto launch external applications on MSFS start</Descr>
<Filename>exe.xml</Filename>
<Disabled>False</Disabled>
<Launch.Addon>
<Name>BravoLights</Name>
<Disabled>False</Disabled>
<ManualLoad>False</ManualLoad>
<Path>E:\BBL\Program\BetterBravoLights.exe</Path>
<CommandLine>/startedbysimulator</CommandLine>
<NewConsole>False</NewConsole>
</Launch.Addon>
</SimBase.Document>Steam location
"C:\Users\royston\AppData\Roaming\Microsoft Flight Simulator"
Volume in drive C is 980
Volume Serial Number is E41A-ABF3
Directory of C:\Users\royston\AppData\Roaming
File Not Found
END OF BETTER BRAVO LIGHTS INSTALLATION DIAGNOSTICS
I am sorry, I have run the script but cannot see the output anywhere?
Could yiou assist me further. Sorry to be a numpty
I tried running from powershell as I donr know how to get a good old DOS prompt in Windows 10, all I got was as below:
PS C:\users\owner\desktop> bbl-installation-diagnostics.cmd bbl-installation-diagnostics.cmd : The term 'bbl-installation-diagnostics.cmd' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
+ CategoryInfo : ObjectNotFound: (bbl-installation-diagnostics.cmd:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
No problem at all! If you're using PowerShell you'll need to add .\
before the name of the script, confusingly.
For example:
Ok, finally got it. I'm only using powershell as I can't find the DOS prompt on this stupid windows 10. I started with PC in the 80's on CPM. I moved to MS-DOS 3.3 cos I had to. Can't be doing with GUI's/Windows at all to be honest. Anyway, here is the result, hiope it helps:-
PS C:\users\owner\desktop> .\bbl-installation-diagnostics.cmd START OF BETTER BRAVO LIGHTS INSTALLATION DIAGNOSTICS Microsoft Store location "C:\Users\owner\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache" .\bbl-installation-diagnostics.cmd : The system cannot find the file specified. At line:1 char:1
+ CategoryInfo : NotSpecified: (The system cann...file specified.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Steam location "C:\Users\owner\AppData\Roaming\Microsoft Flight Simulator" Volume in drive C is OS Volume Serial Number is 8A2C-80DE
Directory of C:\Users\owner\AppData\Roaming\Microsoft Flight Simulator
01/02/2022 18:20
---------- C:\USERS\OWNER\APPDATA\ROAMING\MICROSOFT FLIGHT SIMULATOR\USERCFG.OPT InstalledPackagesPath "C:\Users\owner\AppData\Roaming\Microsoft Flight Simulator\Packages" exe.xml <?xml version="1.0" encoding="Windows-1252"?>
Thanks for that. Wow, a fellow CP/M user. I learned so much on that thing, writing assembly language back in the day...
Btw, you can get a plain old command prompt on Windows by just running cmd
. Tap the windows key on your keyboard, type 'cmd' and you're there.
Aha! That revealed the problem!
I'll put a proper fix into the product itself shortly but in the meantime you can work around it by removing the empty <Launch.Addon>
section from your C:\Users\owner\AppData\Roaming\Microsoft Flight Simulator\exe.xml
file.
That is, in that file, delete the bit that looks like:
<Launch.Addon>
</Launch.Addon>
(But leave the other two (Logitech and AFCBridge) Launch.Addon
entries alone.)
BBL should then install cleanly.
(In case you're curious about the problem, BBL is trying to find the Name
of that particular Launch.Addon
, but the entry is completely empty, with no name, so BBL goes pop. I'll teach BBL to ignore such entries, and in the meantime you can safely remove that redundant empty one.)
That worked! It installed perfectly and runs fine.
If I run the BBLights executionable, I can't see the program running. Am I doing something wrong there now please?
Glad you got it installed.
As it starts up you should see a splash screen for a few seconds, then that'll go away. After that point it just runs in the background and doesn't show a user interface. It'll automatically start and exit with the simulator, btw, so you shouldn't need to start it manually.
There is however a little diagnostic/debugger UI hiding in the system tray, available from the light bulb icon:
Right-click on that and you can bring up the Debugger UI, which is useful if you're working on BBL configuration entries, or you can Exit.
Configuration information is available here if you have an aircraft that we haven't already provided configuration for: https://roystons.github.io/BetterBravoLights/configuration.html
Thanks for all your comprehensive help.
I fly the bredock3d 737max.
As you fixed everything I closed this hope I did right
Software version 0.6.0
Describe the bug
When I run install.bat I get the following:-
Little Box Entitled Better Bravo Lights with a red cross in it and the text "Operation failed. System.NullReferenceException:Object Reference not ret to an instance of an object. Please report this to the application author. The Box only had an OK button, which when pressed gets rid of the command prompt that was running the program.
To reproduce
Run install.bat again