EZBoards - Generate kneeboards (flights, comms, stpts, weather) from briefings
-
@Fish44 Thanks a lot – perfect … this is very simple … thanks a lot, Fish44
-
thanks for the update Logic!
It would be a nice idea to include the version number in the script’s output so one can be sure it has updated correctly… just a thought.
All the best,
Uwe
-
Amazing mod! really helped me with knowing which channels to use !
-
@Logic
Just trying this out. I have a few game installs on different folders and EZBoards seems to find one folder, for example Z:\Falcon BMS 4.37.3. However, I am playing on a test folder Z:\Falcon BMS 4.37.3-test-How do I tell EZBoards or EZ2PAGES to look at Z:\Falcon BMS 4.37.3-test- folder for any kneeboard updates?
Thanks!
-
@Atlas There’s a line in the .bat file which points to the registry key for bms (different for each version). Its the registry key which tells EzBoards where BMS is. See my post a page back.
-
@Fish44
Sir, you speak of that forbidden place where I dare not venture, for fear of borking my PC…REM /// Get BASEDIR and PILOTBIN from Registry. REM /// Note: This part will need to be updated in future versions of BMS. SET REGPATH="HKLM\SOFTWARE\WOW6432Node\Benchmark Sims\Falcon BMS 4.37"
I believe it’s that last line? to be changed to HKLM\SOFTWARE\WOW6432Node\Benchmark Sims\Falcon BMS 4.37-test-
-
@Atlas
Nah, that’s the Registry key which is most likely still the same in your test install.
Yuo can just override the BASEDIR, in lines 12 and following:REM /// delims is a TAB followed by a space REM FOR /F "tokens=2* delims= " %%A IN ('REG QUERY %REGPATH% /v baseDir') DO SET BASEDIR=%%B SET BASEDIR=Z:\Falcon BMS 4.37.3-test- ECHO BASEDIR=%BASEDIR%
-
@Logic
Thank you sir! -
@Logic
I’ve made these edits on EZ2PAGES.BAT using Notepad++REM /// delims is a TAB followed by a space FOR /F "tokens=2* delims= " %%A IN ('REG QUERY %REGPATH% /v baseDir') DO SET BASEDIR=%%B SET BASEDIR=Z:\Falcon BMS 4.37-test- ECHO BASEDIR=%BASEDIR%
and that works beautifully. However, I would like to have the EZWATCH.BAT do the auto-updates for me and I tried this code but it doesn’t seem to work?
REM /// Get BASEDIR and PILOTBIN from Registry. REM /// Note: This part will need to be updated in future versions of BMS. SET REGPATH="HKLM\SOFTWARE\WOW6432Node\Benchmark Sims\Falcon BMS 4.37" REM /// delims is a TAB followed by a space FOR /F "tokens=2* delims= " %%A IN ('REG QUERY %REGPATH% /v baseDir') DO SET BASEDIR=%%B SET BASEDIR=Z:\:\Falcon BMS 4.37-test- ECHO BASEDIR=%BASEDIR% FOR /F "tokens=2* delims= " %%A IN ('REG QUERY %REGPATH% /v PilotCallsign') DO SET PILOTBIN=%%B ECHO PILOTBIN=%PILOTBIN% REM /// Convert the REG_BINARY callsign from Registry to a string SETLOCAL EnableDelayedExpansion ECHO !PILOTBIN!> temp.hex CALL certutil -decodehex temp.hex str.txt >nul ENDLOCAL SET /p PILOTCALLSIGN=<str.txt ( DEL temp.hex & DEL str.txt )>nul ECHO PILOTCALLSIGN=%PILOTCALLSIGN% SET BRIEFINGTXT="%BASEDIR%\User\Briefings\briefing.txt" ECHO BRIEFINGTXT=%BRIEFINGTXT% ECHO [33m---------------------------------------------------------------------------[0m REM /// Now call the real watchdog application CALL bin\when_changed.exe %BRIEFINGTXT% EZ2PAGES.BAT "/a > nul 2>&1"
-
@Atlas
There seems to be a typo in the lineSET BASEDIR=Z:\:\Falcon BMS 4.37-test-
which should be
SET BASEDIR=Z:\Falcon BMS 4.37-test-
-
@Logic
Whoops, fixed that, thanks, but still not workingI changed EZBOARDS to EZ2PAGES in this line
CALL bin\when_changed.exe %BRIEFINGTXT% EZ2PAGES.BAT "/a > nul 2>&1"
But I wonder if I should change anything else for it to work?
-
@Atlas
Ok, well EZWATCH uses BASEDIR too, so you’d have to do that BASEDIR “hack” there as well -
@Logic
Sorry for the confusion. I edited EZ2PAGES as above and it works perfectly when I run EZ2PAGES.Here is the code for EZWATCH:
REM /// Get BASEDIR and PILOTBIN from Registry. REM /// Note: This part will need to be updated in future versions of BMS. SET REGPATH="HKLM\SOFTWARE\WOW6432Node\Benchmark Sims\Falcon BMS 4.37" REM /// delims is a TAB followed by a space FOR /F "tokens=2* delims= " %%A IN ('REG QUERY %REGPATH% /v baseDir') DO SET BASEDIR=%%B SET BASEDIR=Z:\Falcon BMS 4.37-test- ECHO BASEDIR=%BASEDIR% FOR /F "tokens=2* delims= " %%A IN ('REG QUERY %REGPATH% /v PilotCallsign') DO SET PILOTBIN=%%B ECHO PILOTBIN=%PILOTBIN% REM /// Convert the REG_BINARY callsign from Registry to a string SETLOCAL EnableDelayedExpansion ECHO !PILOTBIN!> temp.hex CALL certutil -decodehex temp.hex str.txt >nul ENDLOCAL SET /p PILOTCALLSIGN=<str.txt ( DEL temp.hex & DEL str.txt )>nul ECHO PILOTCALLSIGN=%PILOTCALLSIGN% SET BRIEFINGTXT="%BASEDIR%\User\Briefings\briefing.txt" ECHO BRIEFINGTXT=%BRIEFINGTXT% ECHO [33m---------------------------------------------------------------------------[0m REM /// Now call the real watchdog application REM /// CALL bin\when_changed.exe %BRIEFINGTXT% EZBOARDS.BAT "/a > nul 2>&1" CALL bin\when_changed.exe %BRIEFINGTXT% EZ2PAGES.BAT "/a > nul 2>&1"
As you can see, I changed the BASEDIR too and also on the last line, I changed EZBOARDS to EZ2PAGES since I use OpenKneeboard instead of the in-game pilot kneeboards. This doesn’t seem to work though, so I wonder if any other edits are needed? Thanks!
-
@Atlas Ok, my bad.
Hmm, that does work for me, sorry I don’t see what the problem is.
What part exactly doesn’t work? -
@Logic
When I run EZ2PAGES or EZBOARDS, I get the updated kneeboard data. EZ2WATCH doesn’t seem to work.From what I understand, EZ2WATCH just monitors for any changes in the briefing and when there is one, it will run EZ2PAGES or EZBOARDS, right?
-
@Logic
I’ve set it to look at my default BMS folder and still no joy.I’ve set all 3 BAT files to:
SET BASEDIR=Z:\Falcon BMS 4.37.3
What I do is start up a TE (say TE4, AAR, callsign Goblin 3), print the briefing, exit the game, then run EZ2PAGES and EZBOARDS manually. This gives me my baseline. I then start up EZWATCH, start BMS, go to a different TE (say TE12, HARM, callsign Weasel 3), print the briefing, exit the game, then check the png files to see if EZWATCH has updated them. When I check the PNG files, the kneeboards are still for Goblin 3, not for Weasel 3.
Am I doing something wrong somewhere?
-
To get it work, I added the highlighted line to
EZBOARDS.bat
It opens another terminal window (it’s beyond my batch file knowledge to understand why), but doesn’t seem to affect anything.
-
@CriticalMass
Thanks, I’ll try that tomorrow, but really, I don’t need both EZ2 and EZB — I’m just doing both for testing. For my purposes, I just need EZ2 to work. -
@CriticalMass said in EZBoards - Generate kneeboards (flights, comms, stpts, weather) from briefings:
To get it work, I added the highlighted line to
EZBOARDS.bat
Thanks for this! It works now, although in a roundabout way. I think there is something about EZ2PAGES that doesn’t make it work with EZWATCH, but EZWATCH works nicely with EZBOARDS.
Doing EZW -> EZ2 results in nothing, but doing EZW -> EZB -> EZ2 works.
Maybe something for @Logic to look at? But nothing mission critical now as a workaround has been found.Spoke too soon. Apparently, when this is run, another terminal window opens but does not close down. When the briefing is changed again, this is how EZW would look:
The png files are not updated at this point. The blank terminal window must be closed down, then EZW will update the png files but in the process will open a new terminal window. This is how EZW looks after closing the new terminal window.
In other words, the workaround will only work once, after which the user has to exit or alt-tab out of BMS to close these blank windows so that the png files are updated. Removing @CriticalMass’s line of calling EZ2PAGES removes this issue, but then we’re back to square 1.
Any help please @Logic ? Thanks!
-