Quick question. Is RPG Maker likely to run into problems if I set variables to values of up to, say, 50,000? I don't know if there are any inherent limitations with the software with that kind of thing. Thanks!
Anyone had problems with large variable values?
RPG Maker MV SupportNope.
If setting variables to large values caused problems being a programmer would be a lot more problematic than it is. 😛
I thought it was probably a stupid question as I was asking it, haha. Thanks both!
Yeah, the only way there'd be a restriction was if they did something silly like use 8 bit values for all variables, which would cap us at 255 (127 if we allow negative numbers). Even 16 bit can go to 65,535 (if unsigned).
Though, oddly enough, there are still programs out there with that 255 number limit. Try to get a score above 255 in Madden for instance.
Though, oddly enough, there are still programs out there with that 255 number limit. Try to get a score above 255 in Madden for instance.
Yes, there is a limit - all memory storage on a Computer has an upper limit for technical reasons.
However, because memory limits are not as low as they were twenty years ago (when 1MB of RAM could cost several hundred $), that limit is now usually extremely high.
That is what they refer to when talking about "64 bit" OS or "32 bit"...
However, because memory limits are not as low as they were twenty years ago (when 1MB of RAM could cost several hundred $), that limit is now usually extremely high.
That is what they refer to when talking about "64 bit" OS or "32 bit"...
Right. So unless you intend to cross over 2.048 billion (upper limit of 32 bit integers, allowing for negative signs), you should be good. Though just remember that there IS a limit, as Grand Theft Auto (V I think it was?) forgot about this and if you got enough G it rolled over to a negative number. Had a few people wondering just what happened until it was patched.
For 64 bit the limit is very far in the trillions. It is (2^64) - 1 for unsigned numbers, and (2^63) - 1 for signed numbers if you wish to compute it.
For 64 bit the limit is very far in the trillions. It is (2^64) - 1 for unsigned numbers, and (2^63) - 1 for signed numbers if you wish to compute it.
Original thread: https://forums.rpgmakerweb.com/threads/anyone-had-problems-with-large-variable-values.85992/