MAX. Config Size


(YourFather_CZ) #1

Wolfenstein: Enemy Territory

I read documentation about 2.6 patch and older. I tried search it in this forum but i have not found it yet. :eek:

My questistions are :???: :

  1. How many bytes can be executed from simple .cfg file at the time?
  2. How many bytes can be executed from “more than one” .cfg file at the time?
  3. How many variables can be executed at the time?
  4. How long can be variables’s name?
  5. How much time does executing one variable take?
  6. Does “time of executing” one variable depend on amount “just executed” variables linearly?

Thanx :clap:


(Ragnar_40k) #2

Max. config size is 16kB, but you can bypass this by splitting the cfg into several smaller ones and /exec it from a “main” cfg.

The other things you can find in the source code (like I found this one), but maybe someone else knows it right away and wll post it.


(YourFather_CZ) #3

I found this: “Significantly enlarged MAX_CMD_BUFFER (16k->128k)” in 2.60 ptach readme. …is this relate with max. config size?

If i overrange max. size… what follow-up after trying to execute this overranged .cfg file? Does it crush game…? …or nothing happen? …or will be executed only 16 kB of variables and the rest not?

Thanx for helping…


(Etnies) #4

Like Ragnar said, isnt really a problem just split your cfg up into seperate configs, then in your autoexec, exec sample1.cfg exec sample2.cfg Iv never heard of anyone hitting the limits on any of your other questions.


(YourFather_CZ) #5

16 kB was limit before 2.6 version. I had problem with this limit at long ago. I bypassed it by this:

bind w "exec scripts; echo ^gSkrypty nahrany!; bind w +forward"

I made some tests. Now i know that:

  1. How many bytes can be executed from simple .cfg file at the time?

  2. …128 kB

  3. How many bytes can be executed from “more than one” .cfg file at the time?

  4. …128 kB

Now i know that this: “Significantly enlarged MAX_CMD_BUFFER (16k->128k)” is key information. Patch 2.6 resized max. config size from 16 kB to 128 kB.

I have splited my configs… my configs are in 113 files and it has 78 kB. But few my friends asked me for some questions…

My friend asked me for question number 5. I said him that it very fast but realy i don’t know how fast is it…

2 questions now i know but 4 are remaining.


(Etnies) #6

You must have per map cfg’s do you?


(YourFather_CZ) #7

I have 3 .cfg files for each map but i’m still working on it… different settings for each nick, different coloured chat, etc.


(Nail) #8

different settings for each nick, different coloured chat, etc.

ahhh, all the important stuff, good