![]() |
Too many local, nonstatic variables - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Too many local, nonstatic variables (/showthread.php?tid=85) |
Too many local, nonstatic variables - Matt - 03-06-2006 I get this error, after applying Verrigan's Seamless maps tut (I never got this problem any other time I added it, but yeah). Anyone have any idea? - Dark Echo - 03-06-2006 Ahh.. this has been brought up heaps if times.. Um.. I seriously cant remember what the fix was i think it might have something to do with video and cpu memory.. I cant actually remember though.. Sorry.. - grimsk8ter11 - 03-06-2006 you get this error if a User Defined Type is exceeding 64KB of static data, meaning set arrays, ect. So what you do to fix it? Remove some of the things you added like layers, ect. or make dynamic tiles and maps so they aren't allocated as static data. - Matt - 03-06-2006 I have no idea how to do that, and all I added was Verrigan's seamless maps. Now, when I had my old source (Oblivion, ManaSync), I added this just to test it, and everything worked fine, I've never seen this before. Maybe it's what Dark said, maybe I'll switch over to Video Memory. Thanks for the help guys. - grimsk8ter11 - 03-06-2006 whats highlighted. - BigRed - 03-06-2006 Make them dynamic by changing anything like this: Tile(0 to x, 0 to x) as ... to Tile() as ... then redim it somewhere, perhaps the load map or something like that. Redim Preserve Map(x).Tile(0 to x, 0 to x) In client, you don't need Preserve. Make since? - Matt - 03-06-2006 Yeah, I just did that, thanks. It fixed that problem, but now I get a subscript out of range with this: Code: Ground = Map.Tile(X, Y).Ground In this: Code: Sub BltTile(ByVal X As Long, ByVal Y As Long) [EDIT] Ground = 0 If that helps any. - grimsk8ter11 - 03-06-2006 did you redim the maps? and if you did (on game load) did you redim preserve when new maps are added? - grimsk8ter11 - 03-06-2006 double post but whatever. its fixed now To Fix (for future reference): Code: Main(): - Dark Echo - 04-06-2006 Lol.. i was way off.. Oh well.. ![]() |