clickingbad
clickingbad copied to clipboard
negative values counting down instead of up
Batches cooked: -672,479,198,089,507,800 Batches hand-cooked: 345,434,603,908,266 Batches sold: -3,424,484,675,008,960,000 Batches hand-sold: 696,353,257,588,539 Total upgrades purchased: 55 Total cash earned: -172,734,038,431,189,140,000
They count down to 0 instead of Up. I have a game save i can share if needed
Oh man. Yes, a save game export would be very helpful! Please share. Sorry this happened!
eyJzdiI6eyJjIjoiMWE2OGxkbDg4bWE4IiwiY3MiOiIxYTY4bGRsODhtYTgiLCJ3IjoiMzZhMDdmaDNobTI5ZzgiLCJjbCI6ImMxOjB8YzI6MHxjMzowfGM0OjB8YzU6MHxjNjoxfGM3OjFnfGM4Omx8Yzk6MTh8YzEwOm58YzExOjE0fGMxMjpufGMxMzpmfGMxNDprfGMxNTpmfGMxNjphIiwic2wiOiJzMTo0NHxzMjowfHMzOjB8czQ6Nzd8czU6MHxzNjoxMHxzNzo0fHM4OjZ8czk6MnxzMTA6NDZ8czExOjV8czEyOjExfHMxMzoxaXxzMTQ6YXxzMTU6NnxzMTY6YSIsImJuIjoiYjE6MHxiMjowfGIzOjB8YjQ6MHxiNTowfGI2OjB8Yjc6MTd8Yjg6MWN8Yjk6OGV8YjEwOjNifGIxMTo2ZSIsInUiOiJ1MDF8dTAyfHUwM3x1MDR8dTA1fHUwNnx1MDd8dTA4fHUwOXx1MTB8dTExfHUxMnx1MTN8dTE0fHUxNXx1MTZ8dTE3fHUxOHx1MTl8dTIwfHUyMXx1MjJ8dTIzfHUyNHx1MjV8dTI2fHUyN3x1Mjh8dTI5fHUzMHx1MzF8dTMyfHUzM3x1MzR8dTM1fHUzNnx1Mzd8dTM4fHUzOXx1NDB8dTQxfHU0Mnx1NDN8dTQ0fHU0NXx1NDZ8dTQ3fHU0OHx1NDl8dTUwfHU1MXx1NTJ8dTUzfHU1NHx1NzAiLCJzIjoic2VsbGVyX3Jwczo0ODQ2NWc4Z3xjbGlja2VyX3Jwczo1OGY4bW04Y3xiYW5rX3JwczoxZDVkbDIwMWlnfGNoZWF0ZWRfd2lkZ2V0czowfGNoZWF0ZWRfY2FzaDowfGhhbmRfbWFkZV93aWRnZXRzOjZmY2g0NDdrMjdrfG1hZGVfd2lkZ2V0czotaTlraWZuaGc3aWMwMHxzb2xkX3dpZGdldHM6LTNsaWFjYThqNjFjMzg4fGhhbmRfc29sZF93aWRnZXRzOmI1YWJnbDdlMWNufHNlY29uZHNfcGxheWVkOjJoZHxib3VnaHRfdXBncmFkZXM6Mjd8dG90YWxfY2FzaDotODUxZ2ZrZjNjZDFhZ2dnfHN0YXJ0X3RpbWU6Y2Q2NWwyOTlqIn0sImFjIjoiYTAxfGEwMnxhMDN8YTA0fGEwNXxhMDZ8YTA3fGEwOHxhMDl8YTEwfGExMXxhMTJ8YTEzfGExNHxhMTV8YTE2fGExN3xhMTh8YTE5fGEyMCJ9
Weird! The numbers seem to be counting in the correct way, but I don't understand how those became negative. Did the save get changed somehow? Do you remember what caused them to go negative? Thanks!
once they went over a certain number they rolled backwords. (can't remember what number is was) this happened about a week or so ago.
That's very odd. I'm going to test this for a bit, and see if I can reproduce. Thanks for the help!
@webgovernor I guess its a problem with the integer. https://en.wikipedia.org/wiki/Integer_%28computer_science%29 @slimm609 Are you using a 32bit, OS or Browser?
Nope, all 64bit
@slimm609 I guess you just filled an 64bit Integer up http://en.wikipedia.org/wiki/9223372036854775807
I do not believe this deals with integer limits as far as I can tell. On a 64bit OS, I can do:
gm.add_cash(9223372036854775807*1000)
Which gives me $9.223,372,036,854,776e+21 Cash Money. Since I'm not doing shifts or bitwise operations, there should not be any reachable limitation on the number. This could deal with conversion to base-16 at some point, and that's where I'm focusing my efforts now. Thanks for the help, guys!
I don't think that's it, either:
> var str1 = (9223372036854775807*1000).toString("16")
> str1
"1f40000000000000000"
> parseInt(str1, "16")
9.223372036854776e+21
Grrr. Magic? Yup. Black magic.
My cooked batches turned negative when i changed the clock on my computer one hour backwards. Im guessing this could have happened to other people too if they had clicking bad running when their computer automatically changed the time for daylight savings thing few days ago? And also i guess your current batches need to be less than what you would automatically cook in one day for it to go negative. And i guess same goes for cash thou i had so much of it that it didnt go negative. Not sure if this is the case with slimm609 but atleast this was one way to get negative numbers.
I see. I think I have an idea what to do. I'll try to get a fix up tonight.