-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
discussionFurther discussion is requestedFurther discussion is requestedpriority:p2Medium priorityMedium priority
Description
- it does not respect boundaries set by CustomArrays.ini even when this option is enabled
- it treats all variables as 4 bytes, even str8 and str16 variables
- using a high numeric var like $12000 allows to start allocating from 12001, but it requires comping as a command, there is not compiler setting otherwise (maybe repurpose alloc(...) for that?)
Reactions are currently unavailable
Pinned by x87
Pinned comment options
Suggested changes to raise awareness of potential issues cause by mis-use of global variables.
- restrict use of global variables in CLEO scripts by default. User should explicitly opt-in by using directive
{$UNSAFE_USE_GLOBAL_VARS}. UNSAFE_USE_GLOBAL_VARS is implicitly on whenSB3_Compat optionis on (current default in 4.0-4.1, but will change in the future.) - no implicit allocations. User allocates each variable by using
Allocfunction. - Numeric variables are not allowed (
$1234), useAllocinstead - Convert
CustomVariables.inidata to the include fileGlobalVarsV1.txtwith set of Alloc instructions (e.g.Alloc($player1, 2)). User can import this file to use known indexes. This file can incl…
Metadata
Metadata
Assignees
Labels
discussionFurther discussion is requestedFurther discussion is requestedpriority:p2Medium priorityMedium priority