helping scripts for server owners

9 replies [Last post]
outofhere!
hook's picture
Offline
Joined: Mar 2008
Posts:

hey.

i thought were a nice idea to published it for all server owners.

explaining = quoted from epsi in another thread ( thank you ) Happy

here download link : http://www.speedyshare.com/files/26401689/pb_pure_scripts.rar

Put that scripts in your baseq3 folder on the ftp!

epsiplayer wrote:

i wanna add that some servers don't have sv_pure and pb_sv_enable / pb_sv_disable

like asphyxland jumpsland bananaland hyperland *zmb*war server

however to enable pure and pb on then you will need to use the exec command like this

/ref exec pbon //for pb on
/ref exec pboff //for pb off
/ref exec pureon //for pure on
/ref exec pureoff //for pure off

the pureon is a script that was made for not alowing the "pure bug" appear and block the server.

Pure Bug
---------------

When pure is made on by sv_pure "1"
an bug appears .. the map will restart automatically but then no player
wont be able to join the server... they will be kicked saying "invalid .pk3 ... unpure detected". However that dosnt mean
that the players have invalid .pk3 its just a bug that occurs when pure
is set 1. If after this the map will be changed the pure bug will
disappear and the pure will show as on. So all is needed is to
rotate/change the map after sv_pure "1" but without being on the server. (cause of invalid pk3. message)

The manual method that i use on servers that don't have the pureon/pureoff scripts but have the sv_pure for ref is:

/ref timelimit 1
/ref sv_pure 1
//then wait 1 min for the server to auto-rotate the map ..
//after that all will be fine.
/ref timelimit 15 (back to the normal value)

(
Is very important to know that the server will rotate the map or else
map will need to be changed remotely or the server restarted )

pureon is doing the same sv_pure "1" but it also changes the map after that.

When you have more helping scripts for server owners then feel free to add it here.

Cheers ASp

Fragmovies and more Arrow Click ME!

AsphyxEvents Website Arrow Click ME!

¯¯__█ALI█¯¯__
xpaliminium's picture
Offline
Joined: Nov 2005
Posts:
Re: pb, pure scripts for server owners

I have more interesting scripts based on what u said :

=pbon
=pboff

=pureon
=pureoff

=reset
=public
=private

=ctf
=rtf
=oneflag
=tag
=tdm
...

check this command : cmd2

Wanna avoid seeying mow, skull & co Surprise

Check this peacefull place

.SHADOW
.SHADOW's picture
Offline
Joined: Jan 2011
Posts:
Re: pb, pure scripts for server owners

on my server

epsiplayer
THE ONE AND ONLY
intact-epsilon's picture
Offline
Joined: Dec 2006
Posts:
Re: pb, pure scripts for server owners

asphyx quoted me without putting quotes :PP but im ok. <3

i recommend these scripts to help referees for enable/disable pure and pb without that bug.
________
epsislow


outofhere!
hook's picture
Offline
Joined: Mar 2008
Posts:
Re: pb, pure scripts for server owners
epsiplayer wrote:

asphyx quoted me without putting quotes :PP but im ok. <3

i recommend these scripts to help referees for enable/disable pure and pb without that bug.
________
epsislow

so double quoted now epsi ..thank you

Fragmovies and more Arrow Click ME!

AsphyxEvents Website Arrow Click ME!

AnyoneSays
delarry's picture
Offline
Joined: Jul 2005
Posts:
Re: helping scripts for server owners

well nice idea hate that bug but i got other msg after setting sv_pure 1 here my picture

Yellow card for

Using ur brain, finding a solution, beside an excisting rule and have an agreement.

Gj


outofhere!
hook's picture
Offline
Joined: Mar 2008
Posts:
Re: helping scripts for server owners
AnyoneSays wrote:

well nice idea hate that bug but i got other msg after setting sv_pure 1 here my picture

this helps me :

Do u have 1.03 and 2.1 .pk3 files in ur q3/e+ folder?

Try to delete all 1.03 files and put there 2.1

(dont forget to save ur cfg )

Fragmovies and more Arrow Click ME!

AsphyxEvents Website Arrow Click ME!

AnyoneSays
delarry's picture
Offline
Joined: Jul 2005
Posts:
Re: helping scripts for server owners

this are my pk3 files wich are in e+ folder

Yellow card for

Using ur brain, finding a solution, beside an excisting rule and have an agreement.

Gj


epsiplayer
THE ONE AND ONLY
intact-epsilon's picture
Offline
Joined: Dec 2006
Posts:
Re: helping scripts for server owners

this message happens on all situations .. it happens with the pure bug also because what it does is: you send "connect packets" to the server and the client awaits a command/state but the server automatically kill the connection so the command/state received will be unknown/unexpected.. so whenever the command/state is unknown/unexpected this message appears..

client/cl_parse.c :

void CL_ParseServerMessage ( msg_t * msg ){
...
   // other commands
     switch ( cmd ) {
     default:   //epsi: for other commands it comes here
       Com[_Error (ERR_DROP,"CL_ParseServerMessage: Illegible server message\n");
       break;      
     case svc_nop:
       break;
     case svc_serverCommand:
       CL_ParseCommandString( msg );
       break;
     case svc_gamestate:
       CL_ParseGamestate( msg );
       break;
     case svc_snapshot:
       CL_ParseSnapshot( msg );
       break;
     case svc_download:
       CL_ParseDownload( msg );
       break;
     }
...
}

server/sv_client.c :
static void SV_VerifyPaks_f( client_t *cl ) {
 
...
		if (bGood) {
			cl->pureAuthentic = 1;
		} 
		else {
			cl->pureAuthentic = 0;
			cl->nextSnapshotTime = -1;
			cl->state = CS_ACTIVE;
			SV_SendClientSnapshot( cl );
			SV_DropClient( cl, "Unpure client detected. Invalid .PK3 files referenced!" );
		}
...
}
....
 
void SV_DropClient( client_t *drop, const char *reason ) {
...
	if (drop->download)	{
		FS_FCloseFile( drop->download );
		drop->download = 0;
	}
 
	// call the prog function for removing a client
	// this will remove the body, among other things
	VM_Call( gvm, GAME_CLIENT_DISCONNECT, drop - svs.clients );
 
        //epsi: this [[disconnect]] command is not received by the client
	// add the disconnect command
	SV_SendServerCommand( drop, "disconnect \"%s\"", reason);
 
	if ( drop->netchan.remoteAddress.type == NA_BOT ) {
		SV_BotFreeClient( drop - svs.clients );
	}
 
	// nuke user info
	SV_SetUserinfo( drop - svs.clients, "" );
 
...
}

maybe if the server would return svc_nop before it kills the connection this message wouldn't be shown.

correct me if i'm wrong.
__________
epsislow


=ANU815=
outeris's picture
Offline
Joined: Feb 2007
Posts:
Re: pb, pure scripts for server owners
¯¯__█ALI█¯¯__ wrote:

I have more interesting scripts based on what u said :
=pbon
=pboff
=pureon
...
check this command : cmd2

example from sv cfg:
set on "pb_sv_enable;sv_pure 1;map_restart;wait 100;says done"
/rcon =on 

The majority of people think they think, when really they just change their prejudices. Understanding is a matter of will in most cases.

Lietuvių excessiveplus draugija - Lithuanians National Team
Linux (1st E17+Compiz powered ! Built on Debian GNU/Linux.)

MODDB.com all cool things for Quake III Arena @ one place from E+