What does the error, "Recursive error 'Max_Cvars' after


(Ifurita) #1

Recursive error ‘Max_Cvars’ after: Max_Cvars

I get this from time to time. When this happens, the game shuts down and I get that error in the console window. What does it mean and what can I do about it?

Thanks


(Ark42) #2

Probably that you have too many cvars from too many scripts :slight_smile:


(Ifurita) #3

that’s what I figured. Damn.


(Kendle) #4

In RTCW there was always a limit to the size of a config file (16kb) and the number of cvars you could define (I think FlagMan reckoned it to be about 200).

Personally, I used to write scripts as one big config file, defining many, many cvars, often using long-winded names (being a programmer by trade I like stuff to look neat and unambiguous). However, I now tend to split scripts over several small files, using short cvar names, and even re-using cvar names if they’re redundant in certain circumstances (like Class selection scripts, etc.). I find small files, short cvar names, and fewer off them work more reliably than big files, long names, and lots of them.


(Ifurita) #5

hmmmmm

I have like 10 different configs doing different things (class specific configs, chat script, class select, spawn select, etc)

Guess I could look to see where I might have cvars that could be better named if they do the same thing. This might only account for 10-15 cvars though


(Kendle) #6

Iffy, I’ve no idea what this error means specifically. In my case (in RTCW as well, btw), I found trimming back the cvars and spliting them into multiple small files was more reliable. The only time I ever got a specific error message was when I tried to use a single config file that execeeded 16kb in size.

If your’s don’t, and you haven’t got anyway near this (possibly not correct) 200 user-defined cvar limit, maybe it’s something else entirely. Maybe there’s a hint in the word “recursive”? Do you have perhaps a vstr that executes another vstr that executes the 1st vstr? i.e. an infinate loop type problem? Just guessing…


(Ifurita) #7

i think i’m actually close to the 200 (or whatever) cvar limit


(squadjot) #8

the max_var limit is lower in ET than in retail…

i had same problem.