Pular para o conteúdo principal

Pesquisa

Persistent variable limit, is it per scene or per dream?

  • TheBeardyMan

    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.

  • njm1992

    '@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?

  • TheBeardyMan

    '@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.

  • Mm Bogdan & Matt

    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.
    Many thanks
    Matt

  • njm1992

    Okay, thank you for the definitive answer :) I’ll try to work in a way that allows me to stay under the 128 limit :)

Por favor, entrar para comentar.