local TESTHELPER_unlocks = false and not _RELEASE_MODE
-
Tarot = HEX('424e54'),--HEX('29adff'),
heh. I love seeing this sort of thing in a released game: clearly the color used to be 29adff, and someone changed it to 424e54, but they weren't sure if it was gonna stay that way, so they just commented out the old color
-
@foone are you hacking Balatro again
-
@cadey first time!
-
that wasn't hard.
-
although getting this game to rendering anything like pixels is going to be tricky. it's infinitely scalable so you are always looking at scaled graphics, and usually through a CRT filter
-
Foone🏳️⚧️replied to Foone🏳️⚧️ last edited by [email protected]
so fun fact about balatro: It's possible to break the game's score counter by very carefully setting up a situation where you score infinity points.
Here's a video of RT doing it:
https://www.youtube.com/watch?v=ICrA_os9enYEDIT: corrected video link
-
This is what you see when that happens:
"naneinf". which is confusing? why not an infinity symbol, or just NaN?
-
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??