Post AqEGrjFsO0RBEGcaPI by foone@digipres.club
(DIR) More posts by foone@digipres.club
(DIR) Post #AqEG8WI5jxiRzR6HCq by foone@digipres.club
2025-01-19T04:38:14Z
0 likes, 0 repeats
local TESTHELPER_unlocks = false and not _RELEASE_MODEsomeone's trying very hard to make sure this option isn't turned on!
(DIR) Post #AqEGW3R4fsoVRnWYGe by foone@digipres.club
2025-01-19T04:42:37Z
0 likes, 0 repeats
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
(DIR) Post #AqEGiSN5n1YSG8ZjKC by cadey@pony.social
2025-01-19T04:44:46Z
0 likes, 0 repeats
@foone are you hacking Balatro again
(DIR) Post #AqEGrjFsO0RBEGcaPI by foone@digipres.club
2025-01-19T04:46:32Z
0 likes, 0 repeats
@cadey first time!
(DIR) Post #AqEHfUqkDdyv1yb5g8 by foone@digipres.club
2025-01-19T04:55:29Z
0 likes, 0 repeats
that wasn't hard.
(DIR) Post #AqEHzXTg9r6GyOMinY by foone@digipres.club
2025-01-19T04:59:10Z
0 likes, 0 repeats
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
(DIR) Post #AqEI7jMppvTEAH4Qeu by nil@furry.engineer
2025-01-19T05:00:33Z
0 likes, 0 repeats
@foone > A jokerhis name is Jimbo...
(DIR) Post #AqEIcmdNjxVXH2cKCu by Sylvhem@eldritch.cafe
2025-01-19T05:06:11Z
0 likes, 0 repeats
@foone What are you trying to do?
(DIR) Post #AqEJ9MYxh4DjyI5JlQ by foone@digipres.club
2025-01-19T05:12:06Z
0 likes, 0 repeats
@ilmari Lua! Balatro is written in Love2D
(DIR) Post #AqEMpPuRwPYUNLsck4 by foone@digipres.club
2025-01-19T05:53:17Z
0 likes, 0 repeats
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
(DIR) Post #AqEN14bIzaprlLU2mO by foone@digipres.club
2025-01-19T05:55:26Z
0 likes, 1 repeats
This is what you see when that happens:"naneinf". which is confusing? why not an infinity symbol, or just NaN?
(DIR) Post #AqENFOUxoHOfWpLWBE by foone@digipres.club
2025-01-19T05:58:06Z
0 likes, 1 repeats
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.
(DIR) Post #AqENHj2GQNb1no294q by foone@digipres.club
2025-01-19T05:58:17Z
0 likes, 0 repeats
thus the weirdness that is "naneinf"
(DIR) Post #AqENRLOt9bpJOZCd5U by futurebird@sauropods.win
2025-01-19T06:00:32Z
0 likes, 0 repeats
@foone Vast and meaningless. I love it.
(DIR) Post #AqENqKdJ90kWFqrW7M by dpnash@c.im
2025-01-19T06:04:41Z
0 likes, 0 repeats
@foone and you thought things like i to the i’th power were weird, NaN to the ♾️ power leaves them in the dust.
(DIR) Post #AqENsrd3RApjAWx21I by foone@digipres.club
2025-01-19T06:05:12Z
0 likes, 0 repeats
to represent the same sort of nonsense:local x = math.acos(1/0)local y = 1/0print(x .. "e" .. y)prints "naneinf"
(DIR) Post #AqENwWiZ7t7ZTMH8cq by foone@digipres.club
2025-01-19T06:05:52Z
0 likes, 0 repeats
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
(DIR) Post #AqEOMf4Chv0OtarIGW by ChartreuseK@social.restless.systems
2025-01-19T06:10:31Z
0 likes, 0 repeats
@foone Supposedly the biggest number it can represent is around e308. (~1.79e308 seems to be the limit for Lua).
(DIR) Post #AqEOUO5VibfEYM9bIu by ChartreuseK@social.restless.systems
2025-01-19T06:11:56Z
0 likes, 0 repeats
@foone Even that infinity doesn't carry the game forever because at Blind 38 the blinds you need to beat also reach `naneinf` and `naneinf` is not more than `naneinf` (nor is it less than or equal either) so you just lose
(DIR) Post #AqEQok9XagoygcsC9o by foone@digipres.club
2025-01-19T06:37:59Z
0 likes, 0 repeats
@someonetellmetosleep @ChartreuseK it's not! I'm trying to figure out exactly where it is, but it's not where you'd expect.
(DIR) Post #AqEVIxGLoSK3qlih28 by foone@digipres.club
2025-01-19T07:28:09Z
0 likes, 0 repeats
@rodneylives I don't see why not!
(DIR) Post #AqEXLooJtTjwPh6NPs by foone@digipres.club
2025-01-19T07:51:09Z
0 likes, 0 repeats
The absolute largest score you can have in Balatro is:179750000000000001574318625484977898947260384037600330576926950431334251464818957550608705465051390139071003182796667378943344166189795259975644251354948785593376457287055832302290103144793299576893201789058992181691677134208984158120331833402432578197933132694173654650337834325389943879700658027417024069631It will render as 1797e308
(DIR) Post #AqEXZ0YfWnGIc24QaW by foone@digipres.club
2025-01-19T07:53:40Z
0 likes, 0 repeats
fun comment:WHY ON EARTH DOES THIS LINE MAKE IT RUN 2X AS FAST???that next line is commented out, though
(DIR) Post #AqEYDaV7JTNrfbl7MO by olligobber@mathstodon.xyz
2025-01-19T08:00:54Z
0 likes, 0 repeats
@foone I think if the number is just infinity, and they compute Y by doing log base 10 of the initial number, and then compute X as the initial number divided by 10 to the power of Y, they get X=NaN and Y=Inf.ghci> 1/0Infinityghci> log $ 1/0Infinityghci> (1/0) / (10**(1/0))NaN
(DIR) Post #AqEYb9Hq97reDVme0G by oblomov@sociale.network
2025-01-19T08:05:05Z
0 likes, 0 repeats
@foone shouldn't it be slightly higher, at179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368?
(DIR) Post #AqEZ4foOIXFvUP5To8 by foone@digipres.club
2025-01-19T08:10:35Z
0 likes, 0 repeats
@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
(DIR) Post #AqEalmQHh3GCOqvkWG by jbqueru@fosstodon.org
2025-01-19T08:29:25Z
0 likes, 0 repeats
@foone Deep inside, that implies that the logic to display FP numbers uses FP math. That is, well, unexpected, and somewhat scary: I wonder whether some bad rounding might e.g. cause off-by-over errors in the exponent, which would be bad.
(DIR) Post #AqEdM6XkYzPF8Ss4Aq by lykrast@eldritch.cafe
2025-01-19T08:58:26Z
0 likes, 0 repeats
@foone and then some people made Talisman mod so that it can go even higher (I don't know the exact max score with it, but it claims it increases it "from ~10308 to ~10{1000}10" (and it doesn't say how to read that second number))
(DIR) Post #AqEeCKT62He9Nhb4T2 by lovestha@mtgjudge.social
2025-01-19T09:07:50Z
0 likes, 0 repeats
@foone so the 7.1439e2665 was a fake?
(DIR) Post #AqEfj0mCN2mHongDCa by foone@digipres.club
2025-01-19T09:25:01Z
0 likes, 0 repeats
@lovestha that might have been done with one of the mods that increase the limit
(DIR) Post #AqEgW7XxzFgB0RRLGq by lovestha@mtgjudge.social
2025-01-19T09:33:55Z
0 likes, 0 repeats
@foone ahh. Silly mods
(DIR) Post #AqEqwkTuqmoGpYshU0 by webhat@infosec.exchange
2025-01-19T11:30:49Z
0 likes, 0 repeats
@foone what did I just watch? 😱
(DIR) Post #AqFLFJFVJzJOUuuHkO by Brataccas@mastodon.social
2025-01-19T17:10:04Z
0 likes, 0 repeats
@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?
(DIR) Post #AqFpOIco0b2JnE0bKK by foone@digipres.club
2025-01-19T22:48:03Z
0 likes, 0 repeats
@Brataccas yup
(DIR) Post #AqGUODuhcav7IlSiwq by jankatay@mastodon.social
2025-01-20T06:22:39Z
0 likes, 0 repeats
@foone So naneinf is just scientific notation??
(DIR) Post #AqGUgxSX1SpHltDdMe by foone@digipres.club
2025-01-20T06:30:52Z
0 likes, 0 repeats
@jankatay basically, yeah.
(DIR) Post #AqGX6AbFVFa7frRioS by foone@digipres.club
2025-01-20T06:57:47Z
0 likes, 0 repeats
I accidentally made all the cards invisible, which is going to make it a little hard to play
(DIR) Post #AqGZrOCUx9cnNJVr6W by foone@digipres.club
2025-01-20T07:28:41Z
0 likes, 0 repeats
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
(DIR) Post #AqGa7fgViQA6EaJZT6 by Forbearance@mastodon.xyz
2025-01-20T07:31:37Z
0 likes, 0 repeats
@foone don't-rewrite-balatro 2025 challenge [impossible]
(DIR) Post #AqGaHt5YjbJehZu0tU by thepi@urusai.social
2025-01-20T07:33:33Z
0 likes, 0 repeats
@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
(DIR) Post #AqGb5XcGqINMaMsbDM by foone@digipres.club
2025-01-20T07:42:31Z
0 likes, 0 repeats
@thepi oh it definitely is. some blinds make you do this.
(DIR) Post #AqGcBeAzSumqcfawUa by thepi@urusai.social
2025-01-20T07:54:49Z
0 likes, 0 repeats
@foone excellent
(DIR) Post #AqGmghdLeyeBreJ3GC by momo@social.linux.pizza
2025-01-20T09:52:22Z
0 likes, 0 repeats
@fooneSo... it's a blind blind then?