Scripting and console problems.


(Gautama) #1

Hi,i create a script,and i encounter some problem:

-On some server,Enemy territory crash,and say to me “max cvar limits is reach” or something like that,so okay,i do what is needed to do,i limit my cvar.

Now,all is fine,but on some server,i still have a problem,my script won’t work at all…
This is a script to do a lot of things,they are a section video,to tweak some minor detail(cg_drawgun,cg_draw timer,cg_atmospheric,etc…),and i’m not sure what is the reason that make my script don’t work.

Is it cause the server is limited with a certain amount of cvar(is it possible?),or is it because of some video cvar?With pb_cvarlist,i encounter 0 violation…
And Also,the server that doesn’t allow me to use my script ,run EtPro,is it THE problem?

If you have a idea…

-And i have alos a littlle glitch,sometimes,in the console,the log don’t appear,no chat,no information on who kill who,nothing…and i don’t use the clear command,do you know why?

Thanks all :smiley:


(Wolfcastle) #2

Hi :slight_smile:

The problem is that ET has a max limit of about 1000 or so cvars that it will allow you to set. When you go over this amount you will get ET shutdown and the console up flashing you the max_cvar limit thing. There is no way around this apart from limiting your cvars…this you can do by getting rid of any scripts you dont use and trimming down any scripts you do use to get rid of excessive cvar use. If you have cut some cvars from your scripts and they no-longer work its because you have boken then not because the server wont let you run them.
A way around the problem is to write a cfg file with a menu selection allowing you to run each script you need on a key press so that you only activate the scripts you use and the not so useful one are not loaded so the cvar limit is not reached. The other scripts can still be activated if you need them but do not auto load on entry to a server.

To be sure you can post your script that is the problem here and let people look at it to see where they can help you with it :slight_smile:

Laters :smiley:


(senator) #3

the reason why your scripts wont work on some servers is because these server run a different mod. Basically you need 3 autoexec.cfg to ensure that all scrips are loaded, one in etmain, one in ETPro and one in shrubet.


(squadjot) #4

well… i have ALOT of settings i run every time i start ET… to avoid crash…i split them up in more cfg’s.(put an “exec next.cfg” in that…seems that ET likes it better that way… rather than one big load…


(pgh) #5

g_log 1 iirc to make sure Console Logs all the time.

Never encountered or heard of such a thing as a 1000 CVar limit and I dont particulary think that he has a config with 1000 CVars… :wink: Sometimes servers can kick you with errors like that or ‘Max_Config Strings’ or even simpler ‘Server Disconnected’ and the console may not show a reason why. The easiest way to overcome is with a /reconnect or restart ET and rejoin the server.

As stated, your config will only with the Mods if you have them in the same directory as the mod. Eg, If you on ETPro and the configs in /etmain/ then it wont be able to be executed. Just copy it over to /etpro/ then /exec config.cfg in console. Or, shove an autoexec.cfg with the lines exec config.cfg in it and shove it in /etmain and/or /etpro or whatever mod you need it for. This makes ET automatically execute anything in autoexec each time it is started and each time it connects to a server or loads a map.


(DarkangelUK) #6

well… i have ALOT of settings i run every time i start ET… to avoid crash…i split them up in more cfg’s.(put an “exec next.cfg” in that…seems that ET likes it better that way… rather than one big load…

I’m gonna have to do that with my ETPro Movie Making CFG. I don’t even get a max_cvars error, i get Cbuf_InsertText overflow what ever that is. Stupid thing, cfg worked fine for RTCW :confused:


(pgh) #7

Thats because I bet it is all Rotations, Camera Zooms, Matrix Bullet Time Effect, Timescales etc… :wink:

Gonna need to redo mine to suit the new panzer/gren cam etc. :]


(Wolfcastle) #8

you get the Cbuf_InsertText overflow error when your cfg file is over 16kb in size…just split it into 2 seperate cfg files and add an exec line in the first one and it wont happen…


(Ifurita) #9

DarkangelUK is a stupidhead. Discuss :wink:


(Gautama) #10

Thanks,all.
-Senator:Yes that whas that… :moo: I never do Big Script Before,never take care of different Autoexec.cfg,thanks. :clap:

-Wolfastle:for the Cvar,i read somewhere it was 200 max Cvar in Et… :???:

-Pgh:Thanks.

With the Variable,what count for a variable in the max limits?

Exemple:
set exemplevar vstr exemple
set exemple01 “say this is just a test”

The 2 exemple are counted like a variable,or it is just the first one?

And for the Cbuf_InsertText overflow,i’ve got it one time,and me it’s not cause of 16kb size file,it’s cause i’ve change a “seta” by a “set” on one of my scrript…


(DarkangelUK) #11

DarkangelUK is a stupidhead. Discuss

The prodigal son returns! Shall we book you in for another reply in 3 months time? :wink:

Thats because I bet it is all Rotations, Camera Zooms, Matrix Bullet Time Effect, Timescales etc…

Gonna need to redo mine to suit the new panzer/gren cam etc. :]

Mine is all ready for that, just can’t play demos until the new patch comes out so i can test it! Yes it has spins, 2 matrix effect speeds, 3 speeds of avidemo for slow mo, normal and fastforward effect, several demo speed playbacks etc etc etc