helping scripts for server owners
hey.
i thought were a nice idea to published it for all server owners.
explaining = quoted from epsi in another thread ( thank you )
here download link : http://www.speedyshare.com/files/26401689/pb_pure_scripts.rar
Put that scripts in your baseq3 folder on the ftp!
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 offthe 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
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
on my server
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
well nice idea hate that bug but i got other msg after setting sv_pure 1 here my picture
this are my pk3 files wich are in e+ folder
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
so double quoted now epsi ..thank you
Fragmovies and more Click ME!
AsphyxEvents Website Click ME!