local TESTHELPER_unlocks = false and not _RELEASE_MODE
someone's trying very hard to make sure this option isn't turned on!
local TESTHELPER_unlocks = false and not _RELEASE_MODE
someone's trying very hard to make sure this option isn't turned on!
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
@cadey first time!
@foone are you hacking Balatro again
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
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=FMqoS9gj-Rg
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/0
print(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
The absolute largest score you can have in Balatro is:
179750000000000001574318625484977898947260384037600330576926950431334251464818957550608705465051390139071003182796667378943344166189795259975644251354948785593376457287055832302290103144793299576893201789058992181691677134208984158120331833402432578197933132694173654650337834325389943879700658027417024069631
It will render as 1797e308
fun comment:
WHY ON EARTH DOES THIS LINE MAKE IT RUN 2X AS FAST???
that next line is commented out, though
@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 shouldn't it be slightly higher, at
179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368?
@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
@jankatay basically, yeah.
@foone
So naneinf is just scientific notation??
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.
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.