lfnetwork.com mark read register faq members calendar

Thread: Regarding exploits to snaps and rate...
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 05-18-2006, 08:34 PM   #1
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
Regarding exploits to snaps and rate...

I would strongly urge all JKA coders to create a cvar and limit how low snaps and rate can go. default minsnaps to 10 and minrate to 1500. I've recently seen many people on JA+ betaServer abusing snaps 1 to make them "lag". It might also be wise to put a lower and upper limit on com_maxFPS of 30 and 130 because setting that below 30 is a cheat, and anything above 130 doesnt really matter hell, above 30 doesnt really either and anything above 200 can actually cause you to get connection interupted even if you dont have net lag.

Here's what i did:

g_local.h -

Code:
extern vmCvar_t	sv_minSnaps;
extern vmCvar_t	sv_minRate;
g_main.c -

Code:
vmCvar_t	sv_minSnaps;
vmCvar_t	sv_minRate;
...

Code:
{ &sv_minSnaps, "sv_minSnaps", "10", 0, 0, qfalse },
{ &sv_minRate, "sv_minRate", "1500", 0, 0, qfalse },
g_client.c -

ClientConnect below the ban check statement:

Code:
// check snaps
value = Info_ValueForKey( userinfo, "snaps" );
if ( sv_minSnaps.integer > 0 && atoi(value) < sv_minSnaps.integer ) {
	return va("Your snaps is too low (%d). Minimum: %d.", atoi(value), sv_minSnaps.integer );
}

// check rate
value = Info_ValueForKey( userinfo, "rate" );
if ( sv_minRate.integer > 0 && atoi(value) < sv_minRate.integer ) {
	return va("Your rate is too low (%d). Minimum: %d.", atoi(value), sv_minRate.integer );
}
ClientUserInfoChanged above the set name part:

Code:
// check snaps
s = Info_ValueForKey( userinfo, "snaps" );
if ( sv_minSnaps.integer > 0 && atoi(s) < sv_minSnaps.integer ) {
	Info_SetValueForKey( userinfo, "snaps", va("%d", sv_minSnaps.integer) );
	trap_SetUserinfo( clientNum, userinfo );
}

// check rate
s = Info_ValueForKey( userinfo, "rate" );
if ( sv_minRate.integer > 0 && atoi(s) < sv_minRate.integer ) {
	Info_SetValueForKey( userinfo, "rate", va("%d", sv_minRate.integer) );
	trap_SetUserinfo( clientNum, userinfo );
}


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 05-18-2006, 10:57 PM   #2
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
Alrighty, thanks for the heads up bro.


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Old 05-19-2006, 02:50 PM   #3
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
no problem


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 05-20-2006, 10:22 AM   #4
Slider744
Junior Member
 
Slider744's Avatar
 
Join Date: Jan 2004
Location: France
Posts: 260
what snaps does and what rate does?

rate is the number of frame per second?

or is it snaps?


also what this lags produced by changing their value gives to the player as advantages?


******************************
Slider
JA+ MOD Author for Jedi Academy
the lastest version on

http://www.japlus.net/


******************************
Slider744 is offline   you may: quote & reply,
Old 05-20-2006, 01:57 PM   #5
bzug0
Rookie
 
bzug0's Avatar
 
Join Date: Apr 2006
Posts: 52
snaps - specifies the ammount of packets that server sends to you
rate - specifies the number of bytes that the server can send to the you per second, you can thing of this like your maximum connection speed.
bzug0 is offline   you may: quote & reply,
Old 05-20-2006, 02:01 PM   #6
bzug0
Rookie
 
bzug0's Avatar
 
Join Date: Apr 2006
Posts: 52
btw the exploits you reffer iis just to get lagged and skip a lot of frames maybe to avoid contact?
bzug0 is offline   you may: quote & reply,
Old 05-20-2006, 05:43 PM   #7
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
indeed.

rate is bits per second actually.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 05-21-2006, 11:30 AM   #8
bzug0
Rookie
 
bzug0's Avatar
 
Join Date: Apr 2006
Posts: 52
oops lol you're right xD
bzug0 is offline   you may: quote & reply,
Old 05-21-2006, 02:37 PM   #9
dtriniman
Rookie
 
dtriniman's Avatar
 
Join Date: Feb 2006
Location: Trinidad
Posts: 201
Or if you want you can set it in your cfg

/snaps 40

/rate 25000

and heres another one that lowers ur ping by lowering ur packets

/cl_maxpackets 15


dtriniman is offline   you may: quote & reply,
Old 05-21-2006, 04:41 PM   #10
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
15? the default is 30... try /cl_maxpackets 100.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 05-22-2006, 08:27 AM   #11
dtriniman
Rookie
 
dtriniman's Avatar
 
Join Date: Feb 2006
Location: Trinidad
Posts: 201
Exactly. That's why you go to 15 so its lower, and 15 is the lowest you can go. 100 is ridiculous ur just having the opposite effect.


dtriniman is offline   you may: quote & reply,
Old 05-22-2006, 02:22 PM   #12
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
no, you want it higher to allow more packets. i ping 18-25 on wild jedi with my connection settings. i live in minnesota and the server is in dallas, texas.

rate 25000
cl_maxpackets 100
cl_timenudge -40
snaps 40


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 05-22-2006, 03:59 PM   #13
dtriniman
Rookie
 
dtriniman's Avatar
 
Join Date: Feb 2006
Location: Trinidad
Posts: 201
When mine was at 30 I hada certain ping when I dropped it to 15 my ping became lower. I'll test out 100 and get back to you.


dtriniman is offline   you may: quote & reply,
Old 05-22-2006, 11:11 PM   #14
MDN14
Rookie
 
Join Date: Sep 2003
Posts: 159
maybe this is a n00b question, but what is cl_timenudge?
MDN14 is offline   you may: quote & reply,
Old 05-22-2006, 11:48 PM   #15
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
dont think it really helps in base but it does with Unlagged.

actually nvm it is affected, heres a comment from the q3 engine:

Code:
// cl_timeNudge is a user adjustable cvar that allows more
// or less latency to be added in the interest of better 
// smoothness or better responsiveness.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 06-08-2006, 05:01 PM   #16
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,187
If I read this correctly, doesn't this fix block users from connecting if their setting is weird? Wouldn't it be better to just correct the value and allow users to connect?


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 06-08-2006, 06:42 PM   #17
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
well i dunno, it seems as though it doesnt actually set it for some reason when i actually tested it 100% on a live server, maybe update wasnt called or smth i dunno.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Regarding exploits to snaps and rate...

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:25 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.