BFStats stopped working after year rolled over to 2020
Posted: 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:
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.
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
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.