Doom3world

The world is yours! Doom 3 - Quake 4 - ET:QW - Prey - Rage
It is currently Fri May 24, 2013 1:58 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Exceeded global memory size
PostPosted: Fri Mar 04, 2005 9:19 am 
Offline
picked up 200 ammo

Joined: Sun Jan 30, 2005 10:59 am
Posts: 278
Did anybody get this error message before? I searched the forum but I didn't find any reference to this error:

Error: file maps\dungeondoom.script, line 2057: Exceeded global memory size (196608 bytes)

It appears that this error occurs, if my map script file exceeds a certain total size. Does anybody know how I could increase the global memory size?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 04, 2005 11:10 am 
Offline
picked up 100 armour

Joined: Sun Jan 02, 2005 8:46 pm
Posts: 141
Well that's all defined in the SDK. That is actually a check that occurs in game/script/Script_Program.cpp in the AllocDef function. You could always increase MAX_GLOBALS in game/script/Script_Program.h to get rid of the error.

The thing is, that is not just for your map script. The gameLocal.program is what compiles ALL the scripts. That means all the scripts combined have too many globals.

The next thing to note is, if you honestly have that much scripting code, it might be better to offset some of that into C++ code if possible. If you don't want to though, you can tweak the max number of statements, max string length, etc in that Script_Program.h file.

It's so nice that they included the code for the scripting language. :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 04, 2005 12:26 pm 
Offline
picked up 200 ammo

Joined: Sun Jan 30, 2005 10:59 am
Posts: 278
Thanks for the info. I guess, I will have to compile the gamex86.dll to include these settings. Right now, I could solve the problem by optimizing some of the code but I guess, the problem will come back later.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 08, 2005 8:55 am 
Offline
picked up 200 ammo

Joined: Sun Jan 30, 2005 10:59 am
Posts: 278
An easy fix for now was just to remove all the unused map scripts and pda script etc. I didn't had any problem ever since...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group