Projects
AGS Editor | Scripts | Global built-in arrays of unlimited size are not declared if no game items exist |
---|---|---|
Crimson Wizard | There 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). | |
Radiant | As 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. |