Persistent variable limit, is it per scene or per dream?
If it's per scene, that would allow me to retire variables that are no longer relevant for the game, but still use the full 128 persistent variables if needed.
If it's per dream, then I guess I might have to get creative about how I store data.
Part of my interest is in building a small 3-slot save system for a game I'm working on, but that would triple / quadrouple the amount of variables needed, and I'm worrying about hitting the 128 limit.
Okay, thank you for the definitive answer :) I’ll try to work in a way that allows me to stay under the 128 limit :)
Mm Bogdan & Matt commented
Hi, the limit is per Dream. You can have as many variable gadgets in a scene as the thermo allows but only 128 can be saved to the the user's save data per Dream (i.e be persistent). As of full release the variables can store from -9,999,999 to 9,999,999. We're looking at increasing the number of stored variables in the future but it adds considerable complexity to the save data which currently just stores a fixed amount of data per Dream played.
@njm1992 I haven't used variables a great deal. If the limit for their values is indeed -10000 to +10000, you can use a similar compression scheme with a range of -8192.0 to +8191.99951171875 by steps of 0.00048828125. The limit for tweaks in general - some tweaks had narrower limtis - used to be -9999999 to +9999999. I think it may have been relaxed for values computed by calculator gadgets - they might allow the full range of an IEEE 32 bit floating point value now - but for values entered into tweaks using L1+Square, the -9999999 to +9999999 limit is still in force.
@TheBeardyMan I'm aware that I can compress them, and will probably end up doing that, but it would be nice to avoid it if possible :) Also don't variables have a value limit of -10000 to 10000?
What kind of data are you storing? If it's single bit on/off values, you can compress 25 of them into a single variable by storing a value ranging from -8388608.0 to +8388607.5 by steps of 0.5. That's 33554432 distinct values which is 25 bits of information.