OpenArena Message Boards

OpenArena => Technical Snafus => Topic started by: unkn0wn on March 29, 2013, 12:35:24 PM



Title: g_Alloc
Post by: unkn0wn on March 29, 2013, 12:35:24 PM
Hello everyone,

When I'm trying to add more bots into the game for example more than 26 bots into the game, The game crashes and it gives me the following error: ''g_alloc: Failed on allocation of 9088 bytes''. Yes I've searched the forums for solving this problem. Some say it worked for them if they increased ''hunkmegs'' in console or config file. It doesn't work for me. I've also read that hunkmegs or something like this are hardcoded into the game files and cannot be changed. It gets annoying when I'm playing a big map and so low bots. So I'm asking if someone has a solution to this problem, I don't know how to compile my own opensource Q3.

If someone has a mod or a simple guide to fix this, I would be happy both for Q3 and Q3: TA.

Greetings from Slovenia  ;D


Title: Re: g_Alloc
Post by: Akom74 on March 29, 2013, 01:09:51 PM
Hello.

In Quake 3 Arena the maximum number of players in your match (offline) is 21, that mean 20 BOTS and you (player).
In online matches this number it's set by the server.

;)


Title: Re: g_Alloc
Post by: unkn0wn on March 29, 2013, 01:16:09 PM
Hello.

In Quake 3 Arena the maximum number of players in your match (offline) is 21, that mean 20 BOTS and you (player).
In online matches this number it's set by the server.

;)


I've increased the ''max_svclients'' After adding below 23, the game crashes (Q3 & Q3: TA) and gives me this g_alloc error.
I have added some huge maps into Q3: TA, but they are useless because of low number of bots in such big map. Anyone know how to fix this for offline play?  Thank you.  ;)


Title: Re: g_Alloc
Post by: grey matter on March 29, 2013, 01:19:32 PM
G_Alloc() is part of the gamecode, you'd thus need a modded qagame.qvm with increased buffer sizes. There's no configuration limit for that.

Just for clarification, are you running Q3, Q3:TA, OA or OA missionpack?


Title: Re: g_Alloc
Post by: unkn0wn on March 29, 2013, 01:22:43 PM
G_Alloc() is part of the gamecode, you'd thus need a modded qagame.qvm with increased buffer sizes. There's no configuration limit for that.

Just for clarification, are you running Q3, Q3:TA, OA or OA missionpack?

I'm running Quake III Team Arena. So you or anybody has this modded qagame.qvm? Because I'm new at this stuff, and I don't really understand everything.

Thanks for helping.  :)


Title: Re: g_Alloc
Post by: Akom74 on March 29, 2013, 01:34:05 PM
G_Alloc() is part of the gamecode, you'd thus need a modded qagame.qvm with increased buffer sizes. There's no configuration limit for that.

Just for clarification, are you running Q3, Q3:TA, OA or OA missionpack?

I'm running Quake III Team Arena. So you or anybody has this modded qagame.qvm?

Thanks for helping.  :)

Try to open the game and from the console, write this: set com_hunkmegs 256 and restart the game.

;)


Title: Re: g_Alloc
Post by: unkn0wn on March 29, 2013, 01:47:57 PM
G_Alloc() is part of the gamecode, you'd thus need a modded qagame.qvm with increased buffer sizes. There's no configuration limit for that.

Just for clarification, are you running Q3, Q3:TA, OA or OA missionpack?

I'm running Quake III Team Arena. So you or anybody has this modded qagame.qvm?

Thanks for helping.  :)


Try to open the game and from the console, write this: set com_hunkmegs 256 and restart the game.

;)
I tried  /set com_hunkmegs 256  then restarted the game, The result is following:

(http://i50.tinypic.com/ztxfh1.png)
             


Title: Re: g_Alloc
Post by: Akom74 on March 29, 2013, 02:04:34 PM
But this issue appear with every map or just some ?

Have you added an external PK3 ? It may give some conflict.....
.....

;)


Title: Re: g_Alloc
Post by: unkn0wn on March 29, 2013, 02:14:11 PM
But this issue appear with every map or just some ?

Have you added an external PK3 ? It may give some conflict.....
.....

;)

Well, I tried with different maps, some maps handle below 24 bots, some crash at 22, then I tried increasing hunkmegs to 512, still some crash at 22, some below at 24-26
What do you mean maps that I have added? or mods? I will reinstall the Q3:TA any try again.


Title: Re: g_Alloc
Post by: Akom74 on March 29, 2013, 02:32:15 PM
But this issue appear with every map or just some ?

Have you added an external PK3 ? It may give some conflict.....
.....

;)

Well, I tried with different maps, some maps handle below 24 bots, some crash at 22, then I tried increasing hunkmegs to 512, still some crash at 22, some below at 24-26
What do you mean maps that I have added? or mods? I will reinstall the Q3:TA any try again.

No no, i mean that sometimes, third part (downloaded) PK3 can give problems.

By the way, i have the same problem with only one TA ctfmap called "Distant Realms", the other map work well, maybe your videocard need an update ? (just asking) ???
;)


Title: Re: g_Alloc
Post by: unkn0wn on March 29, 2013, 02:48:44 PM
But this issue appear with every map or just some ?

Have you added an external PK3 ? It may give some conflict.....
.....

;)

Well, I tried with different maps, some maps handle below 24 bots, some crash at 22, then I tried increasing hunkmegs to 512, still some crash at 22, some below at 24-26
What do you mean maps that I have added? or mods? I will reinstall the Q3:TA any try again.



No no, i mean that sometimes, third part (downloaded) PK3 can give problems.

By the way, i have the same problem with only one TA ctfmap called "Distant Realms", the other map work well, maybe your videocard need an update ? (just asking) ???
;)

Reinstalled Quake III Team Arena, No custom added maps/mods, Increased hunkmegs, restarted the games, Loaded Map ''Overdose'', Game crashed at 26 bots. For me ''Distant Screams'' Aren't working, it gives me an g_alloc error.

Thanks for futher helping.  :-[


Title: Re: g_Alloc
Post by: Akom74 on March 29, 2013, 02:53:01 PM
But this issue appear with every map or just some ?

Have you added an external PK3 ? It may give some conflict.....
.....

;)

Well, I tried with different maps, some maps handle below 24 bots, some crash at 22, then I tried increasing hunkmegs to 512, still some crash at 22, some below at 24-26
What do you mean maps that I have added? or mods? I will reinstall the Q3:TA any try again.



No no, i mean that sometimes, third part (downloaded) PK3 can give problems.

By the way, i have the same problem with only one TA ctfmap called "Distant Realms", the other map work well, maybe your videocard need an update ? (just asking) ???
;)

Reinstalled Quake III Team Arena, No custom added maps/mods, Increased hunkmegs, restarted the games, Loaded Map ''Overdose'', Game crashed at 26 bots. For me ''Distant Screams'' Aren't working, it gives me an g_alloc error.

Thanks for futher helping.  :-[

I'm sorry, insert 21 as max game client and re-try......
.....i hope that someone else can help you better.

;)


Title: Re: g_Alloc
Post by: unkn0wn on March 29, 2013, 02:55:24 PM
But this issue appear with every map or just some ?

Have you added an external PK3 ? It may give some conflict.....
.....

;)

Well, I tried with different maps, some maps handle below 24 bots, some crash at 22, then I tried increasing hunkmegs to 512, still some crash at 22, some below at 24-26
What do you mean maps that I have added? or mods? I will reinstall the Q3:TA any try again.



No no, i mean that sometimes, third part (downloaded) PK3 can give problems.

By the way, i have the same problem with only one TA ctfmap called "Distant Realms", the other map work well, maybe your videocard need an update ? (just asking) ???
;)

Reinstalled Quake III Team Arena, No custom added maps/mods, Increased hunkmegs, restarted the games, Loaded Map ''Overdose'', Game crashed at 26 bots. For me ''Distant Screams'' Aren't working, it gives me an g_alloc error.

Thanks for futher helping.  :-[

I'm sorry, insert 21 as max game client and re-try......
.....i hope that someone else can help you better.

;)

Well, Thank you for trying to solve my problem, If anyone know how to fix this, please tell me  :)


Title: Re: g_Alloc
Post by: andrewj on March 30, 2013, 02:15:37 AM
greymatter already said it: this cannot be fixed unless somebody makes a mod with new QVMs which have a bigger g_Alloc buffer.


Title: Re: g_Alloc
Post by: unkn0wn on March 30, 2013, 02:49:04 AM
greymatter already said it: this cannot be fixed unless somebody makes a mod with new QVMs which have a bigger g_Alloc buffer.

After reading alot of forums about this problem, Did somebody make this mod?

Thanks for helping  :)


Title: Re: g_Alloc
Post by: Jakash3 on March 30, 2013, 12:18:36 PM
I give up on openarena


Title: Re: g_Alloc
Post by: unkn0wn on March 30, 2013, 05:12:09 PM
Found it. game/g_mem.c:
Code:
#define POOLSIZE (256 * 1024)
static char memoryPool[POOLSIZE];

I increased it to 512 kb in this qvm: http://192.168.0.64/oa/oa088-512mempool.pk3 (http://192.168.0.64/oa/oa088-512mempool.pk3)

Your link isn't working for me. Could you please upload on some cloud service or something similar and give me the instructions how I make this work. Thank you!


Title: Re: g_Alloc
Post by: Jakash3 on March 30, 2013, 05:21:38 PM
I give up on openarena


Title: Re: g_Alloc
Post by: unkn0wn on March 31, 2013, 04:07:55 AM
oh my god this is embarassing. I HATE MYSELF:

http://24.182.9.187/oa/oa088-512mempool.pk3 (http://24.182.9.187/oa/oa088-512mempool.pk3)

Make a folder in the same folder as your baseoa folder. name it anything you want. Put this pk3 file in that folder. Start the openarena client or server. Run this command "game_restart <modname>" where <modname> is the name of the folder you made.

Thank you :) I managed to apply it on OA, do you know how to apply it on regular Q3-Q3:TA?  :)


Title: Re: g_Alloc
Post by: Akom74 on March 31, 2013, 04:50:43 AM
oh my god this is embarassing. I HATE MYSELF:

http://24.182.9.187/oa/oa088-512mempool.pk3 (http://24.182.9.187/oa/oa088-512mempool.pk3)

Make a folder in the same folder as your baseoa folder. name it anything you want. Put this pk3 file in that folder. Start the openarena client or server. Run this command "game_restart <modname>" where <modname> is the name of the folder you made.

Thank you :) I managed to apply it on OA, do you know how to apply it on regular Q3-Q3:TA?  :)

Theorically it maybe played as a normal Q3 mod.

Create a new folder near Baseq3 (not inside!) named as you want (a name with no spaces).
Launch Quake 3 Arena (or TA) and load the mod.

;)


Title: Re: g_Alloc
Post by: unkn0wn on March 31, 2013, 05:16:35 AM
oh my god this is embarassing. I HATE MYSELF:

http://24.182.9.187/oa/oa088-512mempool.pk3 (http://24.182.9.187/oa/oa088-512mempool.pk3)

Make a folder in the same folder as your baseoa folder. name it anything you want. Put this pk3 file in that folder. Start the openarena client or server. Run this command "game_restart <modname>" where <modname> is the name of the folder you made.



Thank you :) I managed to apply it on OA, do you know how to apply it on regular Q3-Q3:TA?  :)

Theorically it maybe played as a normal Q3 mod.

Create a new folder near Baseq3 (not inside!) named as you want (a name with no spaces).
Launch Quake 3 Arena (or TA) and load the mod.

;)

I did, when I typed in console ''/game_restart <modname>'' it gives me an error that command is not recognizable. Is there an other way to appy this mod through console? And gives me this error ''vm/ui.qvm has bad header'' at game start..


Title: Re: g_Alloc
Post by: Akom74 on March 31, 2013, 05:33:04 AM
I did, when I typed in console ''/game_restart <modname>'' it gives me an error that command is not recognizable. Is there an other way to appy this mod through console? And gives me this error ''vm/ui.qvm has bad header'' at game start..

It gives me the same error....... maybe there is an error in the code..... :RIP: :P

-.-"


Title: Re: g_Alloc
Post by: unkn0wn on March 31, 2013, 07:39:29 AM
I did, when I typed in console ''/game_restart <modname>'' it gives me an error that command is not recognizable. Is there an other way to appy this mod through console? And gives me this error ''vm/ui.qvm has bad header'' at game start..

It gives me the same error....... maybe there is an error in the code..... :RIP: :P

-.-"

I think we should wait for the user ''Jakash3'' to tell us if is going to work with Q3&Q3:TA


Title: Re: g_Alloc
Post by: grey matter on March 31, 2013, 08:53:18 AM
The id Quake 3 1.32c engine uses a different QVM format, for mods to be binary compatible with quake3 (VM_MAGIC) while compiled from ioquake3 sources (defaults to VM_MAGIC_VER2) one must pass -vq3 to q3asm (e.g. in the Makefile). Or just load the Q3 assets in an ioquake3 engine build. game_restart is only available in ioquake3 by the way.


Title: Re: g_Alloc
Post by: Gig on March 31, 2013, 09:35:19 AM
Although original Q3A has not game_restart, you can launch a mod from the Mods menu or from os command line (quake3.exe +set fs_game <modfolder>). Of course this cannot fix the qvm format issue.

A thing I suppose you may try is to download and install the ioquake3 package, and then try if jackash's tweak "mod" works there.


Title: Re: g_Alloc
Post by: unkn0wn on March 31, 2013, 11:44:15 AM
Although original Q3A has not game_restart, you can launch a mod from the Mods menu or from os command line (quake3.exe +set fs_game <modfolder>). Of course this cannot fix the qvm format issue.

A thing I suppose you may try is to download and install the ioquake3 package, and then try if jackash's tweak "mod" works there.

I already tried this, it gives me an error. Can you give me the link to this ''jackash's tweak "mod"

Thank you.


Title: Re: g_Alloc
Post by: Gig on April 01, 2013, 03:32:02 AM
Just a few posts above this one:
http://openarena.ws/board/index.php?topic=4748.msg46796#msg46796
The one you said you managed to have working with OA.
Considering OA is probably using the same QVM format as ioquake3, I can guess OA gamecode may somehow work within ioquake3 (meant as q3a+ioquake engine... that you download from ioquake3 site), as a mod.

It's just a theory, I never tried that. And anyway some oa features would have problems (e.g. no model for Double Domination points in q3a!).

Or Jackash could recompile the patch with the switches to make the qvm format compatible with the original q3a... some problems due to missing oa stuff in q3 may appear anyway.


Title: Re: g_Alloc
Post by: Jakash3 on April 01, 2013, 10:55:40 AM
I give up on openarena


Title: Re: g_Alloc
Post by: grey matter on April 02, 2013, 03:01:33 PM
OA's QVMs are compatible with ioquake3's VM_MAGIC_VER2 format, as I've already explained. You should be able to run OA as a mod in ioquake3, World of Padman and other ioquake3 forks that did not change the inner workings of the ioq3 engine.
You can compile OA as an id-Quake3-compatible QVM. You could also compile Quake 3 or Q3:TA with ioq3's q3asm, but there's not much sense in doing so.

I am too lazy right now to test this, but if you download the Q3 source code and compile its missionpack (using its q3asm) you should get a QVM which can be used in either Quake 3 or ioquake3.


Title: Re: g_Alloc
Post by: Jakash3 on April 03, 2013, 09:11:27 PM
I give up on openarena