#-inf ? WHAT HAVE I DONE ???

52 messages · Page 1 of 1 (latest)

elfin vale
#

so, I kinda pushed to game to it's limits, I reached naneinf, like others did, but I did not know the existence of "-inf" in score value, what should I do ? ( It does not win the blind as well, very strange )

#

I made "nan" in base score ??

#

it says that my best hand is "naneinf"

open kernel
#

how did you get negative?

elfin vale
#

I kinda don't really know HOW, but it started kind of like this : I did naneinf last round, powered few cards up and went to the next round then did a Flush House with kings polychrome, red seal and then POOF : -inf

elfin vale
#

but I think you can do a -inf in unmodded Balatro

open kernel
#

hmmm

#

Its hard to tell whats causing it

elfin vale
#

yeah I just did more score in one Flush House hand

#

I had a lot of legendary jokers

#

I had the one from Mika's mods wich doubles all values ( except the values he can't double )

#

maybe that's part of the thing

#

and I had multiple

open kernel
#

I dont know enough about mika's mod

#

But without knowing 100% the full cause Id rather not look into it to much myself

elfin vale
#

Well the least we can do is really see if it can be reproduced on the unmodded Balatro ( Wich I'm sure is possible because the glitch is linked to the score, and in no way a mod should impact the mechanic of scoring, and even if it existed, I didn't have one )

vivid turtle
#

floating point numbers roll over to "infinity" once they max out

elfin vale
#

So when it reaches hypotethycal infinity it just goes... negative ??

vivid turtle
#

possibly from an overflow

#

What's happening is that your score was so high it could literally not fit in the 32 bits of data that a float represents.

open kernel
#

so like, naneinf, but more

elfin vale
#

woah

vivid turtle
#

this issue can be resolved by using a double precision float which is 64 bit's long instead of 32

#

NAN means "Not a number"

elfin vale
#

alright, because that made me lose the game lmao

open kernel
#

Thats it, time to test by modding in 100 barons and mimes

#

brb

elfin vale
#

"-inf" is weaker than "naneinf", because it didn't win the blind

open kernel
#

hmmm

elfin vale
#

but it seems after I played my second hand ( and had -inf ) it got to just "nan"

#

you can see it on the screenshots ( even if my game is french the numbers are the exact same )

vivid turtle
#

this is all classic floating point shenanigans

elfin vale
#

really dumb and funny how I lost because I overflowed off the calculator lmao

open kernel
#

XD

#

my game is so laggy

#

Ok maybe I need less mimes/barons

#

since I crashed

elfin vale
#

lmao

#

I had at least 60 jokers when performing the thingy

#

yeah 61

open kernel
#

I give up

elfin vale
#

already ?

#

you have a smol computer ?

#

I can test this out if you want

open kernel
#

I spent 10 minutes on the first king

#

and my computer was going multiple seconds for 1 frame

#

I couldnt tell weather the fire sounds was from the game, or the inside of my computer 💀

hollow imp
#

and when you reach it the score becomes nan e inf