this post was submitted on 28 Mar 2025
82 points (98.8% liked)
Just Post
797 readers
20 users here now
Just post something ๐
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Give that man a cigar.
2^16 is 65,536 precisely, one less than that is the number in question. 65,535 is the maximum value of an unsigned 16 bit integer, i.e. sixteen ones in binary: 1111111111111111.
Any nerd who has spent enough time around computers, or at least old computer games, will recognize that instantly as well as the maximum of an 8 bit integer (255) and 32 bit integer (4,294,967,295) because these are inevitably the values you see on your score/money/ammo/whatever counter when you bork your game. Deliberately or otherwise.
1/1/1970 for the epoch
Fun fact: the maximum amount of money you can hold in Maple story is actually half the 32 bit maximum, at 2,147,483,647.
That means it's being stored as a signed integer for some reason. The other half of the binary space is for the negative values, which was probably a poor choice. Unless there is a valid case when you can have negative money. Is debt a thing in Maple Story?
Not at all, but it definitely used to get exploited a lot back in the day.
I bet they thought using signed integers made math easier or something.