# [Release] Bosparser - BoS after-action report application

## Recommended Posts

So here's the deal with the problems reported with bosparser not showing the map properly:

The simulation seems to have modified its log output. Previously, you would get entries such as these for player position updates (in single player missions):

T:5255 AType:17 ID:712703 POS(138963.594,4706.224,245079.203)
T:5956 AType:17 ID:712703 POS(138136.188,4704.223,246332.203)
T:6672 AType:17 ID:712703 POS(137388.313,4731.542,247632.875)


But starting from some patch released around 23rd of february, these position entries are just not there anymore. That causes the map rendering to fail. It should still be possible to plot where stuff were destroyed, but the route info was used for some other stuff too such as centering the map over the approximate mission area. With route info missing the map rendering fails.

I see no new entries in startup.cfg to include position logging again. For now, bosparser seems to be able to parse hits/kills etc. OK but the map mode is plain broken until we get positional log entries back or I do some workaround to make map mode work without pos data.

Edited by Lupson
##### Share on other sites

Ok Lupson, that's how it works

##### Share on other sites

I think the DEV's should implement this tool in the game personally. Keep up the great work brother.

##### Share on other sites

• 1 month later...

No, it doesn't

##### Share on other sites

• 2 weeks later...

It is for me difficult to read but to me this piece of software, looks more something that is gathering statistics for MP and not from a SP!!!

##### Share on other sites

• 2 months later...

Hi !

I would like to try your software but I'm having this error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: se/lu/bos/App
lication : Unsupported major.minor version 52.0
at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
.java:46)


Is there a fix for this ?

##### Share on other sites

I think you are using an unsupported version of Java. If you enter a command shell and type

java --version

What is the output?

Possibly, its just a single dash before version.

##### Share on other sites

EDIT: upgraded, seems to work now ! (I hate java ) Thank you

java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Edited by Bacab
##### Share on other sites

EDIT: upgraded, seems to work now ! (I hate java ) Thank you

java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)


Ok, happy it worked out.

##### Share on other sites

So here's the deal with the problems reported with bosparser not showing the map properly:

The simulation seems to have modified its log output. Previously, you would get entries such as these for player position updates (in single player missions):

T:5255 AType:17 ID:712703 POS(138963.594,4706.224,245079.203)
T:5956 AType:17 ID:712703 POS(138136.188,4704.223,246332.203)
T:6672 AType:17 ID:712703 POS(137388.313,4731.542,247632.875)


But starting from some patch released around 23rd of february, these position entries are just not there anymore. That causes the map rendering to fail. It should still be possible to plot where stuff were destroyed, but the route info was used for some other stuff too such as centering the map over the approximate mission area. With route info missing the map rendering fails.

I see no new entries in startup.cfg to include position logging again. For now, bosparser seems to be able to parse hits/kills etc. OK but the map mode is plain broken until we get positional log entries back or I do some workaround to make map mode work without pos data.

By the way - anyone know if 1C/777 added the AType:17 entries back to the log file? I havn't taken a look at Bosparser or SMB for some time now (summer's just too busy with other stuff), would be interesting to know if they added the player position entries back.

##### Share on other sites

• 1CGS

By the way - anyone know if 1C/777 added the AType:17 entries back to the log file? I havn't taken a look at Bosparser or SMB for some time now (summer's just too busy with other stuff), would be interesting to know if they added the player position entries back.

AFAIK, it was debugging related log entry type. After debugging was finished, those entries were excluded from logging.

##### Share on other sites

AFAIK, it was debugging related log entry type. After debugging was finished, those entries were excluded from logging.

Ok, thanks for the clarification.

It would be neat if the debug logging could be re-enabled using a setting in startup.cfg, though I understand that wouldn't be a top priority.

##### Share on other sites

• 2 months later...

Hi,

since the last update i got this error message:

{"timestamp":1450116410032,"status":500,"error":"Internal Server Error","exception":"java.lang.NullPointerException","message":null,"path":"/rest/view/reports"}

Any ideas!?

Thomas

##### Share on other sites

Hi,

since the last update i got this error message:

{"timestamp":1450116410032,"status":500,"error":"Internal Server Error","exception":"java.lang.NullPointerException","message":null,"path":"/rest/view/reports"}

Any ideas!?

Thomas

Hi,

I havn't had time to try it myself. It's possible the log file format have changed even more making Bosparser fail. I may have some time during x-mas to take a look at it.

##### Share on other sites

Hi Lupson,

that looks good, thanks

Thomas

##### Share on other sites

I am going to bite the bullet & finally try to install this...unless there is news from Studio777 incorporating something like this into an upcoming patch...so is there any new news?

##### Share on other sites

Hi Lupson,

that looks good, thanks

Thomas

Hi,

I ran a quick mission earlier tonight and imported it into Bosparser without issues.

If someone can send me a PM with a log file that doesn't work I can take a look at it myself.

Please note that I havn't tried bosparser with the Stalingrad summer map or any other map than the standard winter Stalingrad one.

##### Share on other sites

• 2 weeks later...

Thanks to the program, works fine .

##### Share on other sites

• 3 weeks later...

Hi,

since the last update i got this error message:

{"timestamp":1450116410032,"status":500,"error":"Internal Server Error","exception":"java.lang.NullPointerException","message":null,"path":"/rest/view/reports"}

Any ideas!?

Thomas

Hi,

Problem solved. Two corrupt mission-report-files found. After deleting all works fine

Thomas

PS: Lupson, thx for your great work!!!!!!!!!!!!!!!

##### Share on other sites

• 4 months later...

Hi, guys. Bosparser on Win10 isn't started. What to do?

##### Share on other sites

Hi, guys. Bosparser on Win10 isn't started. What to do?

Hi,

what kind of problem do you have trying to start it? Can you enter a command shell, change into the bosparser directory and start by typing bosparser.bat?

I suspect there might be a problem with your PATH and Java. What happens if you enter a command shell and then type:

java --version

?

I havn't used Win 10 myself (still on Win 7) but Java (which is required for bosparser) should work the same way I guess.

##### Share on other sites

Hi !

It is solved. I have changed "application.properties" - server.port = 8080

##### Share on other sites

• 4 weeks later...

So, it seems that the application does not handle spaces in the directory path.

E.g., it works if I set the "D:\\missionlogs" as the directory in 'config/application.properties', but not if it is, e.g. "D:\\Program Files\\1C path\\IL-2 Sturmovik Battle of Stalingrad\\data".

I've tried quoting the whole path, but that did not work. I could try escaping the spaces etc.?

##### Share on other sites

So, it seems that the application does not handle spaces in the directory path.

E.g., it works if I set the "D:\\missionlogs" as the directory in 'config/application.properties', but not if it is, e.g. "D:\\Program Files\\1C path\\IL-2 Sturmovik Battle of Stalingrad\\data".

I've tried quoting the whole path, but that did not work. I could try escaping the spaces etc.?

Ok, it seems to work now with:

reports.directory = D:\\Program Files\\1C Game Studios\\IL-2\\data

Only difference from what I had before is the drive letter is capitalized?
##### Share on other sites

• 6 months later...

Hi there..I have followed all instructions slavishly...run bat etc seems to be all ok...but when I type in localhost into my browser...nothing is coming up...Win 10, latest ver of Java...my path to my data ingame seems to be correct...

##### Share on other sites

• 2 months later...

Hi there..I have followed all instructions slavishly...run bat etc seems to be all ok...but when I type in localhost into my browser...nothing is coming up...Win 10, latest ver of Java...my path to my data ingame seems to be correct...

change the server port to 8080 and you're set buddy!

make sure you have double \\ in your path from X:\\to-bos-root\\to-log-locations

and when you visit in browser make sure you type localhost:8080 or whatever port you picked

I did everything perfect but randomly tried changing the port and it worked all of a sudden. Try reading the other posts, this is where I got the idea from..

##### Share on other sites

• 4 weeks later...

Hmm, apparently I'm having an issue with my BoS.LogParser.Offline application (didn't even know what it was until I came upon this thread - is this automatically installed with BoS? TBH I don't recall installing it, but if it's a 3rd party app/mod maybe I did, lol).

I just ran the latest BoS update, after not flying BoS for a while. When I tried to fly offline tonight, whenever I jumped into a quick mission, as soon as I was in the air my screen would go black for a second, and then I'd get a pop up saying BoS.LogParser.Offline stopped working, or some such. I had to click a button (forget what the button label was) in order to close it and take control of my aircraft again, then it would repeat. After a couple times, I just clicked the link that said "send the error automatically" so I wouldn't have to keep clicking on it. After that, my screen would repeatedly go black for a second, then come back (due to the error dialog closing automatically), - it made BoS unplayable!

After exiting, I found the "Lparser" folder and saw the BoS.LogParser.Offline.exe, BoS.LogParser.Offline.dll, etc., and simply renamed the folder to something like "Lparser.bak", just so it couldn't be found by BoS, to see what happened.

After that, I can fly BoS without the black screens, but the question is, do I need BoS.LogParser.Offline for Norma BoS usage? Is it needed for the campaigns, or even just simple or quick missions to see the flight log/results? I hadn't had this issue before, so not sure why it would stop working after the latest update.

Thanks

Edit - uninstalled IL2 BoS, reinstalling, see if that fixes it.

Edited by AKA_Relent
##### Share on other sites

• 8 months later...

I can't seem to make it find the log files, I suppose they have changed and this app is not compatible anymore. I can connect with a client and see the page, but since all stats are empty there isn't much to do. Is there a work-around?

IL-2 version 2.012d

Win7 x64

Java 1.8.0_77

2018-01-21 08:41:19.273  WARN 6016 --- [p-nio-80-exec-3] se.lu.bos.scanner.ReportFileScannerBean  : Specified report directory 's:\games\IL-2\data' is empty or does not exist.
##### Share on other sites

As far as I can tell, this is still working (except for the map), so you probably did not configure it correctly.

Have you instructed the game to write out txt-log files in startup.cfg? [mission_text_log = 1]

Is reports.directory in /config/application.properties of the parser correctly configured? Something like this: reports.directory = c:\\Program Files\\SteamApps\\common\\IL-2 Sturmovik Battle of Stalingrad\\data (if you are using steam). The double Backslashes are needed for java.

Edited by JG4_dingsda
• 1
##### Share on other sites

Yes, that must be the mission_text_log because I have binary log files (directory was fine). Thanks

I was looking for a way to parse those ".mlg" file and just realized there was this option to get text logs then came here to update my post... and saw you just gave the answer!

Do you know if there is a way to convert the mlg files back to text? I see there is a parser and its libraries (BoS.LogParser.Offline) but couldn't get any information on that.

It's apparently to launch it with the "lparser" option like this:

./BoS.LogParser.Offline lparser "../FlightLogs/missionReport(2018-01-20_20-52-30).mlg"

But it's a single summary output file, doesn't seem to contain all the data in the binary file. I tried to rename it to a .txt or .log file and copy that to either FlightLogs or logs subdirectory but without success. I'm not really sure what the text log files contain or how they are named, I'll have to launch a mission in text mode later and see the result.

Edited by Redglyph
##### Share on other sites

• 4 weeks later...

Well done Lupson, although I hope it is only a temporary solution and the developers will officially add such a function that can be accessed from inside the game.

+ infinite

Edited by PA_Spartan-
##### Share on other sites

• 2 months later...

The parser asks me for the file "bosparser-1.0-SNAPSHOT.war" where can I get it  please?

##### Share on other sites

15 hours ago, Leon_Portier said:

The parser asks me for the file "bosparser-1.0-SNAPSHOT.war" where can I get it  please?

Hi,

Extract the zip file and place the bosparser-1.0-SNAPSHOT.war file according to the installation instructions.

Disclaimer: It's been more than three years since the last release of bosparser and I have no idea if it's still working...

• 1
##### Share on other sites

• 4 weeks later...

Thanks and sorry for the late reply, after changing "reports.directory = c:\\Flightlogs" I get that error message as I use the "Scan for reports" button. The message is Identical if I capitalize the drive letter.

{"timestamp":1527687758039,"status":500,"error":"Internal Server Error","exception":"java.lang.NumberFormatException","message":"For input string: \"-1 POS(234069.984,32.703,323103.813)\"","path":"/rest/view/reports"}

I´m not sure what the message means, looks like it doesn´t like something in the mission reports, since it puts out a position of the map.

The folder Itself contains only the mission report files, for example "missionReport(2018-05-18_21-22-08)[132].txt", its a coop mission I made for a tabletop campaign and looking through it by hand I don´t quite understand all the log entrys, plus it takes quite a while.

This is the File: https://www.dropbox.com/s/3flh2rso658ieit/Flightlogs.zip?dl=0

Edit: The web UI looks great btw!

Windows 7, Java 1.8 (both x86 and x64)

Edit2: I just saw somebody has the same problem further up, after trying multiple reports I get the same message, Ill keep trying.

Edited by Leon_Portier
##### Share on other sites

• 8 months later...

That is nice.

Thank you.