Closed christopher-dG closed 6 years ago
this map should probably be an exception since the site shows 0 stars and it uses infinity bpm. i don't think there's even a valid pp value for this. also, since json doesn't support inf and NaN i make it output the maximum positive value for doubles which is what produced that funny output on the reddit bot.
what do you suggest? cause I don't think there's any way to output infinity over json. should I just output zero for infinity in json mode?
There's not really a good answer, but 0 would be fine, -1 if it's already a signed value. On my end for the bot I'll probably just make it not show pp if it's above some threshold or something.
I guess -1 is fine since pp can't be normally negative
another solution on your end could be to force scientific notation or whatever on the output so it displays 1.79769e+308
either way, i've changed it to -1 which is a good way to signal infinity since we don't use negative values anyways
closing this for now, reopen if you come up with more ideas to handle nan and infinity, but i think the current solution is good enough
For sure, -1 is working fine for me.
I don't know how useful a report this will be because this map was basically made to break everything.
Tested with the latest release binary.
It resulted in this gem