Talk:Logic script

From Valve Developer Community
Revision as of 07:58, 5 September 2017 by MrFunreal (talk | contribs) (Created page with "== extended array == Are you sure the arrays can be extended? I turned smart edit off and added more arrays, so that i end up with 36 (i still need more).<br> Now everytime...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

extended array

Are you sure the arrays can be extended? I turned smart edit off and added more arrays, so that i end up with 36 (i still need more).
Now everytime the logic_script has to do anything, i get the following error:

AN ERROR HAS OCCURED [the index '16' does not exist]

CALLSTACK
*FUNCTION [StopAllMusic()] f:/programme/steam/steamapps/common/left 4 dead 2/tumtara/scripts/vscripts/TUMTaRA_Music.nut line [386]
*FUNCTION [Play_Snd_alarm3()] f:/programme/steam/steamapps/common/left 4 dead 2/tumtara/scripts/vscripts/TUMTaRA_Music.nut line [319]
*FUNCTION [main()] InputRunScript line [1]

LOCALS
[this] TABLE
[this] TABLE
[vargv] ARRAY
[this] TABLE

According to the callstack the game knew what it was meant to do, but it just wouldn't do it because appereantly only the indexes 0-15 exist.
Even after i edited the "base.fdg" and manually expanded the available slots to 100 (screenshot) it still would not work.
So i'm pretty sure you can not expand the arrays past 15 --MrFunreal (talk) 14:58, 5 September 2017 (UTC)