Community
SCI Programming => SCI Syntax Help => Topic started by: gumby on September 04, 2014, 06:12:10 PM
-
I ran into this today. For some reason, the template game is dumping on me when I try to use an array that I've defined with an index over (about) 2000.
Here's my code
(local
roomMap[2460]
)
-- then in the init of my room:
(for (= i 0) (< i 2460) (++i)
= roomMap[i] 1
)
If I change my loop to only iterate say 2000 times, it's fine. I tested this out in Studio and it seemed to work fine (no crashing) so it seems to only be impacting Companion.
EDIT: I can change the loop to go up to 2024 before the game starts corrupting. Starting at 2025, the top menu gets corrupted.
-
A difference in the compilers?
-
Yeah, looks like it. I'd like my new script to work in Studio & Companion, so I may just need to create 2 arrays at half the size.