⚠ 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 EditorScriptsGlobal built-in arrays of unlimited size are not declared if no game items exist
Crimson WizardThere is an old and annoying problem, that global built-in arrays that are not restricted by size, such as "characters" and "inventory" are not declared in built-in header, but added by Editor itself, with their size set parametrically, depending on current game content.
If there is no content of respected type, the array is not declared at all.
This breaks compilation of any script module that depends on such array until the user adds a game object of respected type.


NOTE: I think we cannot declare them as dynamic arrays at current moment, because these arrays are not managed by dynamic object manager, but by engine directly.
(they could be made managed if we teach engine to track built-in object references too, but I doubt if its easiest solution for this problem).
RadiantAs far as I know, all templates including the blank one include at least one character and inventory item. A simple way of fixing this would be to disallow the editor from deleting the last character or item.
© Adventure Game Studio 2024. Page design by loominous and Darth Mandarb; coding by AGA.
Page generated on 06 May 2024 at 19:33:44