Author Topic: Question: How to disable autojoin on server?  (Read 2891 times)

prozajik

  • Autococker
  • Posts: 761
Question: How to disable autojoin on server?
« on: February 03, 2011, 03:16:50 PM »
I think that it is really noob question but i cant get it working.
I tried "autojoin 0" in the server.cfg then exec server.cfg in rcon but it didnt work.
So pls any ideas? I can post server.cfg if you need to.
thanks

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Question: How to disable autojoin on server?
« Reply #1 on: February 03, 2011, 03:24:16 PM »
Does "autojoin off" works?

prozajik

  • Autococker
  • Posts: 761
Re: Question: How to disable autojoin on server?
« Reply #2 on: February 03, 2011, 03:27:18 PM »
Nah i tried it too. It doesnt work with exec or cmd cvar_set command.

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: Question: How to disable autojoin on server?
« Reply #3 on: February 04, 2011, 11:36:53 AM »
I think you need to have a 'map <first map of rotation>' at the end of your server.cfg to force the server to load a map when the server starts so that it will honor the game DLL cvars.

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Question: How to disable autojoin on server?
« Reply #4 on: February 04, 2011, 11:41:06 AM »
No, it works without any problems on our servers and we don't have such a command in the configs.


@prozajik: Can you post the config here?

prozajik

  • Autococker
  • Posts: 761
Re: Question: How to disable autojoin on server?
« Reply #5 on: February 04, 2011, 05:43:45 PM »
Quote
// ----------------------------------------------------------------------
// GENERIC SERVER INFO
// ----------------------------------------------------------------------

set hostname "FreEz|Match server"
set website "http://www.____" s
set admin "selda,prozajik" s
set e-mail "" s
set location "Germany" s

set public 1 // set to 0 if you don't want this on the public server list
set password "" // Password required to connect

setmaster dplogin.com master0.gamespy.com

// ----------------------------------------------------------------------
// MESSAGE OF THE DAY
// ----------------------------------------------------------------------

set motdfile pball/configs/motd.txt

// ----------------------------------------------------------------------
// ROTATION
// ----------------------------------------------------------------------

set rot_file pball/configs/rotation.txt

// ----------------------------------------------------------------------
// GENERAL SETTINGS
// ----------------------------------------------------------------------

set autojoin off
set ffire 0
set grenadeffire 0
set timelimit 20
set fraglimit 50
set elim 60 // time (in seconds) before players respawn
set gren_explodeonimpact 0
set deadtalk 0 // set to 1 to allow dead players to talk to living
set sv_maxvelocity 4096
set swear_filter 0
set sv_votemapenabled 0
set idle 0 // time (in seconds) before idle players are put on observer
set guntemp_inc 0
set maxclients 16
set flagcapendsround 0
set floodprotect 0
set deadtalk 1
set sv_minclientbuild 29
set g_autobalance 0


// ----------------------------------------------------------------------
// MATCH SETTINGS
// ----------------------------------------------------------------------

set allow_match 0 // set to 1 to enable the "match" command for clan matches
set matchmode_cfg "matchmode.cfg"
set publicmode_cfg "publicmode.cfg"

// ----------------------------------------------------------------------
// CONSOLE LOGGING
// ----------------------------------------------------------------------
//
// logfile
// -------
// 0 - Disable console logging.
// 1 - Buffered logging.  File is wiped each server restart.
// 2 - Continuous logging.  File is wiped each server restart.
// 3 - Continous logging.  File is appended.

set logfile 3

// ----------------------------------------------------------------------
// STANDARD LOGGING
// ----------------------------------------------------------------------

// sl_logging
// ----------
// bit 1, val | 1 : display STDLogging to console
// bit 2, val | 2 : log STDLogging to sl_logfile
// bit 3, val | 4 : send UDP packets to server defined IPs (DISABLED)

// sl_logfile
// ----------
// the file to put the STDlog info in.
// # will be replaced with the PORT number of the server

// set sl_logging 2
// set sl_logfile server#.log

// ----------------------------------------------------------------------
// DOWNLOAD OPTIONS
// ----------------------------------------------------------------------

set allow_download         1
set allow_download_maps    1
set allow_download_models  1
set allow_download_sounds  1
set allow_download_players 1

// ----------------------------------------------------------------------
// OPERATOR SETTINGS
// ----------------------------------------------------------------------

// Use "login password" at the console to obtain op status of said level
// Commands are restricted by level in commands.cfg
set numpasses 5
set oppass1      ""
set oppass1level 1
set oppass2      ""
set oppass2level 50
set oppass3      ""
set oppass3level 100
set oppass4      ""
set oppass4level 150
set oppass5      ""
set oppass5level 200

rcon_password ""
PS:I also had autojoin 0 there and it didnt help

Gamabunta

  • Committee Member
  • Autococker
  • Posts: 703
Re: Question: How to disable autojoin on server?
« Reply #6 on: February 04, 2011, 05:56:34 PM »
I'm not entirely sure, but:
Try using "sv autojoin off/normal" OR:

Code: [Select]
set allow_match 0 // set to 1 to enable the "match" command for clan matches
set matchmode_cfg "matchmode.cfg"
set publicmode_cfg "publicmode.cfg"
Try to delete these lines, publicmode.cfg contains "sv autojoin normal" which might be executed. I'm not sure on this one, you can also set allow_match to 1 and execute "match" command while on server to see if it changes autojoin.

prozajik

  • Autococker
  • Posts: 761
Re: Question: How to disable autojoin on server?
« Reply #7 on: February 04, 2011, 07:56:33 PM »
I'm not entirely sure, but:
Try using "sv autojoin off/normal" OR:

Code: [Select]
set allow_match 0 // set to 1 to enable the "match" command for clan matches
set matchmode_cfg "matchmode.cfg"
set publicmode_cfg "publicmode.cfg"
Try to delete these lines, publicmode.cfg contains "sv autojoin normal" which might be executed. I'm not sure on this one, you can also set allow_match to 1 and execute "match" command while on server to see if it changes autojoin.
lmao thx it worked :D
I changed autojoin form normal to 0 in publicmode.cfg and then executed it throw rcon ("exec publicmode.cfg") and there is autojoin no more really thanks it was really annoying :)
PS:I also think i know where i made mistake i was writting set autojoin 0, cvar_set autojoin 0, .... but i have never tried sv autojoin 0 (this probably what i have to write into config file in order to get autojoin disabled)

Gamabunta

  • Committee Member
  • Autococker
  • Posts: 703
Re: Question: How to disable autojoin on server?
« Reply #8 on: February 05, 2011, 05:32:48 AM »
Haha, I didn't honestly expect it to work though. Good to know it actually does.