Jump to content

Weird (but interesting) discovery


Recommended Posts

Posted

The cvar limit in JKA has long been believed to be 1024 cvars for both client and server. Apparently this is not the case. It's actually 1224 cvars, as evidenced by this IDA code:

if ( numCvars >= 1224 )
  Com_Error(0, "MAX_CVARS");

spior, MUG, Delta_135 and 1 other like this
Posted

Not enough...

 

Nice find!

I'm hacking that at some point. Requires 4 engine patches to fix, but I don't have the willpower right now to actually attempt it atm.

therfiles likes this
Posted

 

The cvar limit in JKA has long been believed to be 1024 cvars for both client and server. Apparently this is not the case. It's actually 1224 cvars, as evidenced by this IDA code:

if ( numCvars >= 1224 )
 Com_Error(0, "MAX_CVARS");

 

 

my-little-pony-friendship-is-magic-brony-mother-of-spitfire.png

 

 

Nice find.

Posted

Haha

 

802+400 = 1202

Ok... my bad, 422 new cvars

 

 

 

 

?

 

 

The cvar limit in JKA has long been believed to be 1024 cvars for both client and server. Apparently this is not the case. It's actually 1224 cvars, as evidenced by this IDA code:

if ( numCvars >= 1224 )
 Com_Error(0, "MAX_CVARS");

 

1224 - 1024 = 200

Posted

what is a CVAR?

really?

 

They are variables that can be set via the console, such as cg_dismember or g_speed etc. I think it is short for Client Variable. I could be wrong, someone correct me if i got the name wrong xD

Posted

well i kept hearing all this talk about CVAR, and my perspective is, if we can have more, then do it, it even if we cant use em, it just gives that extra slack some people need

Posted

802 existing cvars + 422 "possible new" cvars = 1224 cvars

note: session data is also kept in cvars, and there's at least 35 or so oddball UI cvars floating around that aren't directly given a vmCvar_t in the code.

afi likes this
Posted

really?

 

They are variables that can be set via the console, such as cg_dismember or g_speed etc. I think it is short for Client Variable. I could be wrong, someone correct me if i got the name wrong xD

Console variable.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...