HOW-TO: Adjust 'com_hunkmegs'

General chat about United Offensive, Anarchicmod 2.0, and our servers.

Moderator: Forum Moderators

 
User avatar
Posts: 11849
Joined: Sun Aug 01, 2004 4:04 pm
Location: florida
XFire: gitman0
Xbox Live: gitman0

HOW-TO: Adjust 'com_hunkmegs'

Postby gitman » Sat May 14, 2005 3:39 pm

(use this command if you are receiving "hunk" errors on some maps, or map loading times seem slow)

the value of com_hunkmegs is the amount of ram that is allocated to cod. 128 is the default setting, with patch 1.51 increasing that amount if you have more than 128MB system ram.

to change this value, bring down the console (~ key) and type /set com_hunkmegs number. the number you choose should be around half of your total system memory. so if you have 512MB of ram, then 256 is a safe value to go with. anything past 75% of your total memory and you will start to see problems.

-------------
logik's how-to:

Setting hunkmegs Manually in UO

1. Open up your "\Call of Duty\UO" folder to find "uoconfig_mp.cfg"
Image





2. Open up "uoconfig_mp.cfg" and do a search (ctrl+F) for "hunkmegs"
Image





3. Scroll to the right of "com_hunkmegs" where there is a 3 digit number in quotes, default is "128". Set this value to half of your RAM (if you have 1GB or more of RAM, set this value to "512". Save the file and exit.
Image





4. Go back to your main "\Call of Duty\" folder and find the "\Call of Duty\anarchicmod_rc2" folder.
Image





5. Open your "\Call of Duty\anarchicmod_rc2" folder and find "uoconfig_mp.cfg"
Image



6. Repeat steps 2 and 3.


7. Open Call of Duty:United Offensive MultiPlayer. Bring down the console by typing the tilde key (~). Type "/com_hunkmegs" and Enter. If your console tells you:
Code: Select all
"com_hunkmegs" is:"512" default:"128"

then you have properly excecuted the proceedure (if you entered a value other than "512" then "is:" should reflect that value). If it does not reflect the correct value, repeat from step 1.
Last edited by gitman on Thu May 31, 2007 10:18 pm, edited 1 time in total.

ole salty
User avatar
Posts: 2382
Joined: Thu Mar 31, 2005 3:02 pm
Location: Germany, Berlin

re

Postby Rollin Hard » Sat May 14, 2005 3:47 pm

Thx man...hope it dont come again...

p.s.: "Hunk_AllocateTempMemory:failed on 3145744, needs 679872"

two cents
User avatar
Posts: 8017
Joined: Tue Jan 25, 2005 12:25 pm
Location: going nowhere fast

Postby Mancini » Tue May 24, 2005 9:19 am

OK...I tried this last night and I'm not sure if it took it,is there a way I can check my current hunkmegs setting?

 
User avatar
Posts: 11849
Joined: Sun Aug 01, 2004 4:04 pm
Location: florida
XFire: gitman0
Xbox Live: gitman0

Postby gitman » Tue May 24, 2005 2:18 pm

type com_hunkmegs in the console and it'll give you the current setting.

make sure to set this without the mod loaded first then with. if its set with only the mod config, and you load normal UO first, com_hunkmegs will not be changed.

shell shocked
User avatar
Posts: 4337
Joined: Wed Oct 06, 2004 4:21 pm
Location: CT

Postby HOPE » Tue May 24, 2005 3:09 pm

nice! thanks for the tip!

veteran
User avatar
Posts: 810
Joined: Thu Mar 31, 2005 11:15 pm
Location: Ohio

Postby Mad Man Murph » Sun Jun 12, 2005 1:44 pm

thanx man,been having this fucking problem w/ 1024mb installed of corsair..
Image

Uni Boy
Posts: 6111
Joined: Tue Jan 04, 2005 5:16 am
Location: Preston, Lancashire, UK

Postby Geo » Thu Sep 22, 2005 1:01 pm

Just wondering if there's a limit to your hunkmeg setting, i've recently installed 2GB RAM, so can I use 1GB?

*edit* just found out you can't have a gig :(
Arnold Schwarzenegger wrote:"You're a funny guy, Sully. I like you. That's why I'm going to kill you last."

veteran
User avatar
Posts: 567
Joined: Tue Aug 24, 2004 12:10 am
Location: Champaign, Illinois

Postby |ax| Cpt. Mac » Fri Oct 21, 2005 4:43 pm

This occured to me, and i probably sound really stupid, but if i have a gig of ram and i set it to 512, does that mean that ram is allocated to CoD at all times, or only when i'm playing the game?
Image

Uni Boy
Posts: 6111
Joined: Tue Jan 04, 2005 5:16 am
Location: Preston, Lancashire, UK

Postby Geo » Fri Nov 18, 2005 3:54 pm

For Call of Duty 2

Method 1

> Run Call of Duty 2 MP
> Bring down the console (~ or `)
> Type: seta com_hunkMegs "number" ("number" is any integer between 1 and 512. It is recommended that you allocate half of your total RAM).
> Exit from the game
> Restart Call of Duty 2 MP
> Bring down the console again, but this time type: com_hunkMegs (you should see that the value you put in before is now applied).

If that doesn't work try the next method.

Method 2

> My Computer
> C:
> Program Files
> Activision
> Call of Duty 2
> Main
> Players
> Geo (in my case, just apply it to yours)
> config_mp (double-click and open in Wordpad)
> You will see "seta com_hunkMegs" about halfway down the list. Change the value of this accordingly to your specs (again, any integer between 1 and 512).
> In Call of Duty 2 MP bring down the console (~ or `) and type in "com_hunkMegs". You should see that the value is the same one you typed in before in Wordpad.

Ps: Thanks to Rollin :2thumbsup:

the warning
User avatar
Posts: 17830
Joined: Mon Aug 02, 2004 2:20 am
Location: SoFla
XFire: logikman
Xbox Live: logikman

Postby logik » Thu Apr 13, 2006 3:59 pm

updated "how-to" in the first post ^
Image
Image
Image
krautnapped wrote:
C2theT wrote:Who is this Logik you speak of?

I heard if you say his name five times in the mirror he drives a jeep into your house and plants bombs in your basement.

greenhorn
User avatar
Posts: 220
Joined: Sun Sep 03, 2006 9:25 am
Location: Glasgow,scotland, U.K

Postby Element! » Fri Oct 20, 2006 7:19 am

i copied everything you typed and still it came up 256 128
Image
Image

Return to Call of Duty: United Offensive

Who is online

Users browsing this forum: No registered users and 0 guests