Jump to content

Recommended Posts

Posted (edited)

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
Posted

Ok Lupson, that's how it works

Maybe the dev team will help you on this ?

SOLIDKREATE
Posted

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

  • 1 month later...
  • 2 weeks later...
  • 2 months later...
Posted

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.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.springframework.boot.loader.LaunchedURLClassLoader.doLoadClass(La
unchedURLClassLoader.java:161)
        at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(Laun
chedURLClassLoader.java:134)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner
.java:46)
        at java.lang.Thread.run(Unknown Source)

Is there a fix for this ?

 

Thank you in advance for your answer.

Posted

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.

Posted (edited)

Thanks for your answer. Here you go:

 

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
Posted

 

Thanks for your answer. Here you go:

 

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.

Posted

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.

Posted

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.

Posted

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.

  • 2 months later...
Posted

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

Posted

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.

Posted

Hi Lupson,

 

that looks good, thanks

 

Thomas

Posted

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?

Posted

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.

  • 2 weeks later...
  • 3 weeks later...
Posted

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!!!!!!!!!!!!!!!

  • 4 months later...
Posted

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

Posted

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.

Posted

Hi !

 

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

  • 4 weeks later...
Posted

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.?

Posted

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?
  • 6 months later...
Posted

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...

  • 2 months later...
diVineProportion
Posted

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..

  • 4 weeks later...
AKA_Relent
Posted (edited)

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
  • 8 months later...
Posted

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. 
Posted (edited)

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
  • Upvote 1
Posted (edited)

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
  • 4 weeks later...
Posted (edited)

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-
  • 2 months later...
Leon_Portier
Posted

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

Posted
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,

 

the download link in the first post still seems to work: https://www.dropbox.com/s/opdnpe61p89pctg/bosparser-alpha1.zip?dl=0

 

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...

  • Thanks 1
  • 4 weeks later...
Leon_Portier
Posted (edited)

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
  • 8 months later...
E69_charliedunne
Posted

That is nice.

 

Thank you.

  • LukeFF unpinned this topic
Zergling924
Posted (edited)

Maybe this is a long shot since the last post is over 6 years ago -- came across this tool as it is exactly what I was looking for, a way to look at the mission logs for individual missions I've played after completing scripted single player campaigns, since the "Awards" page for a campaign only lists the total sum of kills over the campaign but doesn't provide more information (e.g. exactly what kind of plane was shot down, by who, on a mission by mission basis, etc.). I installed it without any issues, and can bring up the web GUI for the program, but when I click "Scan for Reports" I get the following error message in a window:

 

Scan result
{"timestamp":1749940945714,"status":500,"error":"Internal Server Error","exception":"java.lang.NumberFormatException","message":"For input string: \"-1 POS(98894.3438,1499.1138,144793.9063)\"","path":"/rest/view/reports"}

 

Has anyone else had any luck getting the script to work in this modern day and age? Looking at some of the old posts in this thread, it seems like there were several BoS updates that changed the format of how the mission log files were written. I'm getting the feeling this is what's causing this issue and that I might just be out of luck if the script hasn't been updated for the most recent version of BoS.

 

Edited by Zergling924
update
Zergling924
Posted (edited)

Hi all,

 

I've managed to fix the bug that was causing the original program to break (Il-2 has since updated how the mission log files are formatted), and I've uploaded the recompiled program on GitHub (Huge thank you to Lupson for making the original source code publicly available! 😊). You can find it here: https://github.com/jwchew/bosparser/releases/tag/20250617_update

 

Simply replace the .war file from Lupson's original program with the one I linked above, and it should now work.

 

For those interested, the updated source code can be found within the same Github repository linked above along with an updated readme file which details the steps I took to fix the old code and recompile it.

 

The map functionality is still broken, however, and I haven't been able to fix it yet. It also appears that flight path data is no longer recorded in the mission log files.

Edited by Zergling924
  • Thanks 1

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