Hello, Members.
Anybody knows which problems cause this error?
I am getting this, when i reloading a SP level for RTCW made by me.
Hello, Members.
Anybody knows which problems cause this error?
I am getting this, when i reloading a SP level for RTCW made by me.
Do you get the crash before the map loads? Maybe you have too much detail in a part of the map.
EDIT: I believe this error is similar to the hunk_alloctempmemory failed error. If I’m correct, both are caused by too much detail in a specific area of the map. I may be wrong about that though.
That error comes from G_Alloc() which is defined in game/c_mem.c and is used in these files:
$ grep -R "G_Alloc(" .
./botai/ai_main.c: botstates[client] = G_Alloc( sizeof( bot_state_t ) );
./game/ai_cast.c: botstates[client] = G_Alloc( sizeof( bot_state_t ) );
./game/ai_cast.c: caststates = G_Alloc( aicast_maxclients * sizeof( cast_state_t ) );
./game/ai_cast_debug.c: ent->classname = G_Alloc( strlen( cmd ) + 1 );
./game/ai_cast_script.c: level.scriptAI = G_Alloc( len );
./game/ai_cast_script.c: curEvent->params = G_Alloc( strlen( params ) + 1 );
./game/ai_cast_script.c: curEvent->stack.items[curEvent->stack.numItems].params = G_Alloc( strlen( params ) + 1 );
./game/ai_cast_script.c: cs->castScriptEvents = G_Alloc( sizeof( cast_script_event_t ) * numEventItems );
./game/ai_cast_script_actions.c: classname = G_Alloc( strlen(token)+1 );
./game/ai_cast_script_actions.c: newCast->aiName = G_Alloc( strlen(token)+1 );
./game/g_client.c: level.animScriptData.modelInfo[i] = G_Alloc( sizeof( animModelInfo_t ) );
./game/g_local.h:void *G_Alloc( int size );
./game/g_mem.c:void *G_Alloc( int size ) {
./game/g_misc.c: ent->target_ent->tagName = G_Alloc( strlen( tagName ) + 1 );
./game/g_misc.c: ent->tagName = G_Alloc( strlen( tagName ) + 1 );
./game/g_save.c: *(char **)p = G_Alloc( len );
./game/g_script.c: level.scriptEntity = G_Alloc( len );
./game/g_script.c: curEvent->params = G_Alloc( strlen( params ) + 1 );
./game/g_script.c: curEvent->stack.items[curEvent->stack.numItems].params = G_Alloc( strlen( params ) + 1 );
./game/g_script.c: ent->scriptEvents = G_Alloc( sizeof( g_script_event_t ) * numEventItems );
./game/g_script_actions.c: ent->tagName = G_Alloc( strlen( token ) + 1 );
./game/g_spawn.c: newb = G_Alloc( l );
Check your .ai and .script files for errors.
[QUOTE=Eugeny;455969]
Try increase com_hunkMegs[/QUOTE]
Doesn’t increasing this cause problems? Personally, I’ve increased it once from 72 to 512, and didn’t notice any problems, but low memory pcs seem to have random crashes when hunkmegs is increased.
Hello,
Eugeny: Increasing more com_hunkMegs, but this procedure didn’t work.
WolfMan: I am loading the map without “ai” or “script” files and the error occurs.
ronboy: The map loads the first time, but it doesn’t reload when the player dies or you try to load a saved game.
Vicpas, could you perhaps send me the map? I could try it on my pc to see if I get the error too.
your scripts are probably too big, or you have too many ai’s (which results in bigger scripts)
This is only fixable by modifying the code in g_mem.c (I made this buffer bigger in rtcwcoop)
The Rtcw engine has it’s limitations, and they make it difficult for mappers to achieve what they want. This results in maps being “dumbed down” in order to make the engine happy.
Thanks for all responses.
I got to solve this problem, rewriting my scripts and removing some of the entities from the map.