03-06-2006, 06:06 AM
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?
Anyone have any idea?
Too many local, nonstatic variables
|
03-06-2006, 06:06 AM
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?
03-06-2006, 09:26 AM
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..
03-06-2006, 02:06 PM
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.
03-06-2006, 04:10 PM
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.
03-06-2006, 04:26 PM
whats highlighted.
03-06-2006, 04:29 PM
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?
03-06-2006, 04:32 PM
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.
03-06-2006, 05:00 PM
did you redim the maps? and if you did (on game load) did you redim preserve when new maps are added?
03-06-2006, 05:45 PM
double post but whatever.
its fixed now To Fix (for future reference): Code: Main():
04-06-2006, 02:39 AM
Lol.. i was way off.. Oh well..
![]() |
« Next Oldest | Next Newest »
|