BFStats stopped working after year rolled over to 2020

BFStats stopped working after year rolled over to 2020

Postby jrivett » Thu Jan 02, 2020 4:21 am

Earlier this year I had to switch my BF1942 server stats from select(bf) to BFStats, mostly because of obsolete PHP code in select(bf). BFStats has been working fine since then.

This morning I was looking at rolling over my server stats for the new year and noticed that all of the rounds played in 2020 were generating errors when processed by BFStats. The errors look like this:
Code: Select all
Error (java.lang.NumberFormatException: For input string: ""Tanks'nPlanes Unlimited CO-OP"") parsing line (entry will be ignored): 2020-01-01,04:01:43,"Tanks'nPlanes Unlimited CO-OP",el alamein,coop,1,-1,285,0

On a hunch, I changed the year in one of the round records in the statistics.csv input file, from 2020 to 2019. BFStats processed that round normally.

I don't know if there's anything special about the number 2020 in Java, or if we're just running into an arbitrary limit in the code.

Either way, it may be worth trying to patch the Java code, as I think there are still a few people using BFStats.
User avatar
Posts: 15
Joined: Sat Nov 26, 2011 8:03 pm
Location: Vancouver, Canada

Re: BFStats stopped working after year rolled over to 2020

Postby buschhans » Mon Jan 06, 2020 12:09 pm

Indeed. Would be nice if the bf stats works again. Stats are for new players more important than in the past. Soon I have to create a news about it, but for that it have to work.
If do you like the BF 1942 Mods or search a Download please visit:
User avatar
Posts: 318
Joined: Wed Jul 18, 2012 12:50 pm

Return to Battlefield server and client

Who is online

Users browsing this forum: No registered users and 5 guests