Now i know why 2.1b is the max mesos :D
basilmarket.com forums : Maple Story Tech Help & Patches  |  16 posts archived
« prev list next » thread 194 of 2,417  (arrow keys work)
thread starter argon321 Aug 31 2010 + PM | QUOTE | PERMALINK | REPORT
Hi Basilers! This is a totally random thread about something i discovered when doing HW xD Ever wondered why is 2147483647 the meso limit? I was told that it was because it was 2^31, but that number is 2147483648, 1 more than max mesos, so, while i was doing some stuff about binary system, i found out that the biggest number that can be stored in a 32 bit based system is 01111111111111111111111111111111, being the first number, in this case the 0, the sign of the number. 0 is positive, 1 is negative. The other 31 one's are the real number that can be stored in the 32 bit system, being in this case the famous 2147483647. So yeah, the 2^31 number makes sense because of the 31 bits that have room for storing numbers, but it has a difference from the actual number. It's nice to learn stuff that can be applied to games hahahahaha. well not really but anyways, now i am in peace with myself, and i know that the mess limit can't be increased because of that.
My Characters: xxbulseyexx - 160 Broa Night Lord
Savtoz 08/31/10 + PM | QUOTE | PERMALINK | REPORT
[quote] BreadBall : I think most of us know about the reason behind 2.147bil, but it is none the less interesting. But 255 is the max level, and 32xxx is the max amount of AP in one stat. This has something to do with different types of variables, right? Like 255 is the max for an int (or a byte?) Look this up for me, lol. [/quote] Well, I lack much knowledge w/ computers, etc. but i can tell you that stuff gues according to power of 2s. As in 2, 3, 8, 16, 32, 64, 128, then 256. 255 = 256-1, so that def has something to do with it just like 2^32-1 = max mezar. Also those numbers I listed, I bet people have seen 'em a lot. Things such as 4 gb of RAM, or windows vista 64 bit, or 8 gb USB, etc.
My Characters: AkimboOutlaw - 114 Broa Outlaw
KyuGuy 08/31/10 + PM | QUOTE | PERMALINK | REPORT
Of course the meso limit can be increased O-o Add a new item available from a certain npc that costs max mesos. This would act as a sort of 'gold coin' that you could trade in for max mesos whenever you want (assuming you have 0 mesos on you at the moment :/) Pretty much, make the monetary system step based as in many other games (thinking of WoW, here). Gold, Silver, Bronze pieces or w/e O-o
My Characters: iKyure - 101 Windia Priest
SportsRulez 08/31/10 + PM | QUOTE | PERMALINK | REPORT
i didnt get anything u said =.= u lost me at 2^31 and i didnt know the reason b4 so i learned something new but i didnt get any of it =.= wow i suk at math >.>
My Characters: iRainyDayx3 - 38 DemethosGMS Aran in Memory
LordMichael 08/31/10 + PM | QUOTE | PERMALINK | REPORT
i wondered why that number was the max meso like years ago. googled the number. found out why.
My Characters: Casel - 120 Scania Paladin
osiel66 08/31/10 + PM | QUOTE | PERMALINK | REPORT
[quote] DarkLink75 : lol seriously. I mean have fun reprogramming the entire game in 64-bit [/quote] I believe you are mistaken. The change to 64-bit addresses a very different problem (2038). To change this, maple would eventually have to be reprogrammed in 8byte data. But yes, the most convenient way to do this would be to do both at once. However I do not see this happening for a long time. With big bang, and the EXP decreases, they will be able to extend the level limit if they wanted to because of the lower EXP required to level.
My Characters: rinemu - 82 Scania Blade Lord
wierdmonkey4 08/31/10 + PM | QUOTE | PERMALINK | REPORT
[quote] c0jeffc0 : wowo uhh no... thats the largest positive integer yes, but that doesnt make it the largest number. with float values you can go MUCH higher. so theoretically if nexon ripped up the code and replaced every int with a double then the limits can be increased. [/quote] But why use double? there's no real need for decimals. Wouldnt it be enough to use "long"(i think that's what it's called) values?
My Characters: triftisdummy - 79 Windia Hermit
iSmashBugs 08/31/10 + PM | QUOTE | PERMALINK | REPORT
so... nexon would have to go to Vista to increase max mesos? no thankyou.
My Characters: CantLevelUp - 83 Khaini Blade Lord
MtFuji 08/31/10 + PM | QUOTE | PERMALINK | REPORT
Every year in Basil there has to be some of these threads.
My Characters: NoSentry - 42 Broa Fighter
myrdrex 08/31/10 + PM | QUOTE | PERMALINK | REPORT
[quote] manhunter12 : rlly? ur so frking slow and its (2^32)-1 [/quote] If you're going to be rude, at least try to be correct. It's 2^31 - 1, not 2^32 - 1. We need that extra first bit because it's a signed integer. If it was coded at to a uint (unsigned int), then yeah, it would be 2^32-1.
VassupBruno 08/31/10 + PM | QUOTE | PERMALINK | REPORT
Simple variation : 2^31-1 A thread gets posted about this atleast once a month...
My Characters: chibisuush - 48 Windia Cleric
AlmightySofa 08/31/10 + PM | QUOTE | PERMALINK | REPORT
Actually the meso count could be doubled pretty easily by just storing it as an unsigned integer. You gain a whole extra bit at the beginning by assuming it being positive, which comes to just under 4.3b.
My Characters: AlmightySofa - 126 Broa Night Lord
Telatsu + PM | QUOTE | PERMALINK | REPORT
[quote] Savtoz : Well, I lack much knowledge w/ computers, etc. but i can tell you that stuff gues according to power of 2s. As in 2, 3, 8, 16, 32, 64, 128, then 256. 255 = 256-1, so that def has something to do with it just like 2^32-1 = max mezar. Also those numbers I listed, I bet people have seen 'em a lot. Things such as 4 gb of RAM, or windows vista 64 bit, or 8 gb USB, etc. [/quote] 255 is just the max variable represented by an eight bit binary number, also represented in colors since they are 8bits, so on so on. We used to use that back when I did FIRST Robotics to determine speeds, velocity, increments. 0-255, sort of thing. Nothing complex. It's common in most standard programming languages. Also, you don't need to minus subtract 1 from it, as 0 is defined as a Value, same with the max mesos number. Above , An unsigned integer is most likely not used because you risk losing the remainder in the mathematical process. So although it can easily double, it also has a higher chance instead of equalizing out at the max mesos amount, but also just cutting off a number and causing you to lose much more then 1/2 (In terms of 200% degradation) of the original. It's just a tad unstable with math. Or it could overflow if it doesn't cut off the end, where as without using an unsigned it won't even attempt to go past the max and thus no room for user error.
My Characters: DarkShurk - 110 DemethosGMS Hermit
nerdsdespair 08/31/10 + PM | QUOTE | PERMALINK | REPORT
no reason they can't use a bigInteger type class. Java has one, so c++ should have one also.
My Characters: nerdsdespair - 136 Windia Corsair
maxxtro 08/31/10 + PM | QUOTE | PERMALINK | REPORT
They could always come out with new currency like gold pieces.Each gold piece is worth 10 mesos and you can have 2.1bil pieces.That way they can go past the meso limit.
My Characters: KSlesssin - 99 Windia Hermit
AlmightySofa 08/31/10 + PM | QUOTE | PERMALINK | REPORT
The overflow is handled by error checking now, so it could be then...any half rate programmer would do so. If it wasn't in place now, attempting to go over max mesos would reset you to about negative 2 billion. Of course, the constraints won't let you go above max or below 0, so there's little point in even having it signed if the rest of the code forces negative values to be impossible.
My Characters: AlmightySofa - 126 Broa Night Lord
« prev list next » thread 194 of 2,417  (arrow keys work)