local TESTHELPER_unlocks = false and not _RELEASE_MODE
-
it turns out this is because of how it's switched to exponential notation, as the number is over 100,000,000,000.
It's rendering two numbers, separated by an "e". The first number is NaN, the second number is Infinity.
-
thus the weirdness that is "naneinf"
-
to represent the same sort of nonsense:
local x = math.acos(1/0)
local y = 1/0print(x .. "e" .. y)
prints "naneinf"
-
the actual code is more complicated (because they're calculating the X and Y on the fly from one initial number, but I suspect that initial number is simply infinity. I'll have to check how it acts for really-big-but-not-infinity numbers
-
Foone🏳️⚧️replied to Foone🏳️⚧️ last edited by [email protected]
The absolute largest score you can have in Balatro is:
179750000000000001574318625484977898947260384037600330576926950431334251464818957550608705465051390139071003182796667378943344166189795259975644251354948785593376457287055832302290103144793299576893201789058992181691677134208984158120331833402432578197933132694173654650337834325389943879700658027417024069631
It will render as 1.797e308
-
fun comment:
WHY ON EARTH DOES THIS LINE MAKE IT RUN 2X AS FAST???that next line is commented out, though
-
@foone shouldn't it be slightly higher, at
179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368? -
@oblomov Nope! that's the highest value it'll accept. The value goes through some math functions before it's displayed, which causes it to max out early
-
@foone so the 7.1439e2665 was a fake?
-
@lovestha that might have been done with one of the mods that increase the limit
-
@foone so, I didn't realize that Balatro's source code was completely open to read.. it seems just opening the executable as a zip file?
-
@Brataccas yup
-
@foone
So naneinf is just scientific notation?? -
@jankatay basically, yeah.
-
I accidentally made all the cards invisible, which is going to make it a little hard to play
-
making the pixels in this game make sense is going to require massively rewriting it.
so I don't think I'm going to do that -
@foone I don't play Balatro but if anyone else had posted this I would've assumed this was just a thing the game would let you do to yourself
-
@thepi oh it definitely is. some blinds make you do this.