Jump to content

Weird (but interesting) discovery


Recommended Posts

Posted
  On 10/26/2012 at 8:23 PM, therfiles said:

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
  On 10/26/2012 at 5:27 PM, eezstreet said:

 

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");

 

 

  Reveal hidden contents

 

 

Nice find.

Posted
  On 10/27/2012 at 11:08 AM, afiNity said:

Ok but who needs 400 new cvars?

Your maths is impressive.

Posted
  On 10/27/2012 at 1:11 PM, MUG said:

Your maths is impressive.

Haha

 

802+400 = 1202

Ok... my bad, 422 new cvars

 

 

 

 

?

Posted
  On 10/27/2012 at 1:19 PM, afiNity said:

Haha

 

802+400 = 1202

Ok... my bad, 422 new cvars

 

 

 

 

?

 

 

  On 10/26/2012 at 5:27 PM, eezstreet said:

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
  On 10/27/2012 at 2:05 PM, Akimoto said:

1224 - 1024 = 200

 

 

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

Posted
  On 10/28/2012 at 1:35 PM, OmegaSigma said:

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
  On 10/27/2012 at 2:12 PM, afiNity said:

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
  On 10/28/2012 at 2:15 PM, MUG said:

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...