⚠ Cookies ⚠

By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.

Projects

AGS EngineScriptsIncrease AGS Script's stack limit
Crimson WizardCurrently AGS script has a limit of 250 simple variables [b]on stack[/b] (i.e. declared locally) and precisely 3996 bytes for array and "old string" data.
While this seem to be not very common thing for local variables to require more space, it might have sense to increase this limit, and implement expanding stack allocation.

A note should be made, that contrary to "real" programming languages, AGS Script's "stack" is not absolutely a stack, for it is created in dynamic memory. AGS interpreter simply tries to emulate x86 processor behavior, but that imposes unnecessary restrictions. I guess it will be simplier to handle it same way as global script data is handled.
© Adventure Game Studio 2024. Page design by loominous and Darth Mandarb; coding by AGA.
Page generated on 06 May 2024 at 18:54:25