ERROR: MAX_GAMESTATE_CHARS exceeded

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

ERROR: MAX_GAMESTATE_CHARS exceeded

Post by bdbodger »

I can't find out why I am getting this error or what it is . Anyone know ?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

gamestate

Post by tltrude »

Hmmm, is there a lot of AI in your map?
Tom Trude,

Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Yes but most of them are turned off and hidden . Hmm I did that because the game stutters when you spawn them or use the global/ai.scr I guess I will have to start useing it . There about 100 or so no more that 10 active at one time . I thought maybe it was something else .
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think it is something else... wouldn't know what though :?

Does this error appear immediately or after a few minutes?
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Not right away and then the map crashes to the main menu .
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

chars

Post by tltrude »

Could it be to many dead bodies in a single view?
Tom Trude,

Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Some times crashes right away other times after a while . I haven't had time to check anything yet .
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Post by crunch »

I was doing a little research on this error. I found nothing definitive, but have a pretty good idea of the problem.

The MAX_GAMESTATE_CHARS is configured in the game's hardcode.

I don't know what the value is for MoHAA, but based on the fact that it sets a maximum number of strings reserved for AI, I would say you have too many AI, all running scripts (even if they are turned off, they still run threads).

Instead of spawning them all, hiding them, and showing them in groups, your problem will be solved by spawning the groups when they are needed. This way, they are not running any threads at all until they are needed.
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Thanks crunch but I already fixed it and you are right . I changed the hide thread and used the global/spawner.scr to turn them all into spawners and now I activate them when I need them .
Post Reply