Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make game modes votable

#26
Now I realize your server.cfg isn't based on the example server.cfg... Shouldn't matter. Add this line to your cfg:
Code:
log_file "server.log"
. Then quit the server, start it, and the log should be in server.log in your data directory.
Reply

#27
(04-18-2012, 06:38 AM)GaryRoach Wrote: If i try to write "vcall gametype ctf" or "vcall ctf" i get "This command is not acceptable"

You haven't said anything about other votes. Have you tried voting for other game modes? vcall 1v1dm or vcall minsta. Also double check everything. I accidently deleted a " once and didn't realize it. My server was going haywire and drove me nuts. Such a small mistake caused so much trouble.
Reply

#28
(04-20-2012, 03:10 AM)W4RP1G Wrote:
(04-18-2012, 06:38 AM)GaryRoach Wrote: If i try to write "vcall gametype ctf" or "vcall ctf" i get "This command is not acceptable"

You haven't said anything about other votes. Have you tried voting for other game modes? vcall 1v1dm or vcall minsta. Also double check everything. I accidently deleted a " once and didn't realize it. My server was going haywire and drove me nuts. Such a small mistake caused so much trouble.
I tried more commands and i still have to exec UNvotes.cfg from my serer again. Sad

(04-19-2012, 06:06 AM)Mr. Bougo Wrote: Now I realize your server.cfg isn't based on the example server.cfg... Shouldn't matter. Add this line to your cfg:
Code:
log_file "server.log"
. Then quit the server, start it, and the log should be in server.log in your data directory.

I dont get any server.log in my data folder
[Image: 10253.png]
Reply

#29
Are you even modifying the right server.cfg file? Put a quit line in your server.cfg file and see if your server quits on startup.
Reply

#30
How do I modify this so I can limit the game mode voting to dm, tm, ft only with 20 player slots?
[MoFo] Servers - North America - Hosted in Montreal Canada - Admin DeadDred [MoFo]
Reply

#31
What do you mean with the player slots?

You can restrict the game mode voting by removing the addvote lines that don't match commands that you want votable.
Reply

#32
(02-09-2013, 07:57 PM)Mr. Bougo Wrote: What do you mean with the player slots?

You can restrict the game mode voting by removing the addvote lines that don't match commands that you want votable.

Ok I ran a test server and was only ableto vote on Maps. But I was the only one playing with bots. There was no option to vote on game style.


Here's my test cfg file.

What I want to do is map voting and voting for dm, tdm, ft.

Quote:// semicolon). While just "" means 'no/empty setting'.

/////////////////////////////////////////////////////////////////////
// Everything has some sensible defaults so you do NOT really need to
// change anything. But here are some settings you SHOULD change to
// make it 'YOUR' server. IF so remove the // from the line start and
// change them to your liking.

//sv_public 1 // 0 if the server should not be on the public servers list
//sv_status_privacy 1 // 1 hides IP addresses from "status" replies shown to clients, 0 shows them. Enables players to identify wellknown punks on your server OR is a thread to anonymity.. depending on your point of view Smile
hostname "Freakzilla - Testing - $g_xonoticversion" // this name will appear on the server list (the $g_xonoticversion gets replaced with the current version)
//sv_motd "" // this message (unless "") is displayed to players on connect
//maxplayers 8 // number of players allowed on the server
port 260010 // the port used by the server
//log_file "server.log" // server console output will also be copied to this file. This: "${serverconfig}.log" uses variable substitution to make the logfile have the same name as your config file with .log appended which is useful if you run several servers
//g_start_delay 15 // delay before the game starts to let players join the server first

// List of maps to play on the server. Set to "" to autodetect (which would enumerate ALL maps. Maps that don't support the current game mode will be skipped, so you don't need to remove them here.
//g_maplist "afterslime dance g-23 glowplant leave_em_behind newtonian-nightmare nexballarena red-planet runningman space-elevator stormkeep techassault xoylent"
//g_maplist_shuffle 1 // 0 always selects the next map out of g_maplist (but then better set g_maplist_votable 0 below to prevent repetitive votes), 1 will select random maps each time
//g_maplist_mostrecent_count 3 // number of maps that have to be played before a map can be repeated

// LIMITS: how long a match will last before the next map starts (-1 means use the map default, 0 = unlimited, please note that the variables fraglimit/timelimit can NOT be globally used for this but only DURING a match is being played)
timelimit_override 1 // global timelimit for all maps and gametypes
//fraglimit_override -1 // global frag/point limit for all maps and gametypes
//g_ctf_capture_limit -1 // frag/capture limit for CTF
//capturelimit_override -1 // capture limit for CTF
//g_domination_point_limit -1 // frag/point limit for DOM
//g_runematch_point_limit -1 // frag/point limit for RUNE
//g_keyhunt_point_limit -1 // frag/point limit for KH
//g_lms_lives_override -1 // lives for LMS
//g_nexball_goallimit -1 // goals for NEXBALL

//g_ctf_win_mode 0 // CTF win mode: 0 = caps only, 1 = caps + points as tie breaker, 2 = points only
//g_ctf_ignore_frags 1 // set to 1 to ignore kills except for FC kills

// TEAMS for key hunt (change this to 2, 3, 4 to set a fixed keyhunt style)
//g_keyhunt_teams_override -1 // teams for KH

// GAME MODE: what type of server do you want to host?
// possible values: dm (deathmatch), tdm (team deathmatch), dom (domination), ctf (ctf), rune (runematch), lms (last man standing), arena (arena), kh (keyhunt), as (assault), ons (onslaught), race (race), nexball (nexball)
//gametype dm




/////////////////////////////////////////////////////////////////////
// Some settings you MIGHT want to change. Again IF so remove the //
// from the line start and change them to your liking.

//net_address 0.0.0.0 // ONLY change this if you have problems with your server. Specifies the network interface used by the engine. Set it you one of you internal IPs

//rcon_password "" // you can use rcon if this password is set. you need to set the same password in your client if you want to issue rcon commands
//rcon_restricted_password "" // put here the password for a "restricted" rcon user (see below)

bot_number 4 // number of bots to add
//skill 4 // the bots skill level
//minplayers 0 // add bots if less then that number of players playing. MAKE SURE ITS LESS THEN maxplayers or people will get blocked by bots!
//g_maxplayers 0 // above this player count, only allow spectators
//bot_prefix [BOT] // prepend this to all botnames
//bot_suffix "" // append this to all botnames
//g_maplist_check_waypoints 0 // set this to 1 to skip maps without waypoints if there aren't enough players to play without bots

//g_maplist_votable 6 // number of maps to vote between. set to 0 to disable the map voting screen (please enable g_maplist_shuffle above when this is enabled, or votes will be repetitive)
//g_maplist_votable_suggestions 2 // number of suggestions to accept using the suggestmap command
//g_maplist_votable_abstain 0 // when 1, people get a "don't care" selection in the vote screen
//g_maplist_votable_nodetail 1 // when 1, people can't see how many voted for what (to thwart abusive "influential" first votes)

//sv_vote_commands "restart fraglimit chmap gotomap nextmap endmatch reducematchtime extendmatchtime allready kick cointoss movetoauto" // players can vote for those commands or use them if they are masters. You canm also add 'g_grappling_hook' for hook voting, and 'sv_fbskin_green sv_fbskin_red sv_fbskin_orange sv_fbskin_off' for fbskin voting.
//sv_vote_master_commands "movetored movetoblue movetoyellow movetopink" // add commands masters can use if logged in or elected. You may want to put 'kickban' here, so masters can keep out punks. It may be good to also put "sv_status_privacy 0" then...
//rcon_restricted_commands "restart fraglimit chmap gotomap endmatch reducematchtime extendmatchtime allready kick kickban \"sv_cmd bans\" \"sv_cmd unban\" status \"sv_cmd teamstatus\" movetoauto movetored movetoblue movetoyellow movetopink" // commands for the (stronger) rcon restricted

//sv_vote_call 1 // 0 will disable the normal voting
//sv_vote_master 1 // 0 will disable voting to become master, good if you prefer to use the master password instead
//sv_vote_master_password "" // when set, vlogin PWD will allow people to become master to run master commands directly using vdo
//sv_vote_majority_factor 0.5 // What percentage of the PLAYERS constitute a majority to win a vote? must be at least 0.5
//sv_vote_majority_factor_of_voted 0 // What percentage of the VOTERS who already voted constitute a majority to win a vote? must be at least 0.5
// note: to JUST support simple majorities, set these two factors equal

//sv_maxidle 0 // idle time in seconds after which players will get kicked

//sv_taunt 1 // 0 to disallow taunts
//sv_autotaunt 1 // 0 to disallow autotaunts


/////////////////////////////////////////////////////////////////////
// Settings you MIGHT want to change for PRIVACY reasons.
//
// The settings here may impact your or your players' privacy and serve to
// optimize the game for further releases.
//
// Change them, or comment them out to turn them off.

// This line sends the following data to our servers:
// - Date and time
// - Your server IP address
// - Your server ID hash, which is a fingerprint of the public key of your
// server and does not impact security of your private key (use "crypto_keys"
// on the console to show it)
// - Your server name ("hostname")
// - Current game type
// - Current map
// - Balance settings you have modified from defaults (only those that make
// your server "impure")
// - For each weapon pairing (A, B), separately for player-player, player-bot,
// bot-player, bot-bot pairings:
// - Number of hits of players/bots holding A against players/bots holding B
// - Number of frags of players/bots holding A against players/bots holding B
// - Total damage of players/bots holding A against players/bots holding B
//
// We use this data to:
// - Optimize the game balance for future releases
// - Identify problems in the bot AI and improving it
// - Find settings that make servers "impure" that should not, so we can
// whitelist them in future releases
//
// We will or might publish:
// - Global weapon pairing statistics for players vs players, or bots vs bots,
// or any vs any, on a selection of servers
// - Per-gametype and per-map weapon pairing statistics players vs players, or
// bots vs bots, or any vs any, on a selection of servers
// - Lists of commonly changed cvars, together with counts on how often they
// are modified
//
// No information about the players on the server is sent, so as a server admin
// you need no permission of your players for this.
//
// No information about your server will be published - all published data sets
// will include data from multiple servers.
//
sv_weaponstats_file http://www.xonotic.org/weaponbalance/




/////////////////////////////////////////////////////////////////////
// Some more advanced settings. You probably are not interested in changing them at all.

//sys_ticrate 0.0333333 // change to 0.0166667 if your server can take the abuse, can make the game a bit more fluent

//sv_ready_restart 0 // 1 to allow players to restart the map when all of them press the ready button
//sv_ready_restart_after_countdown 0 // if set to 1 the players and map items are reset after the countdown ended, otherwise they're reset already at the beginning of the countdown
//sv_ready_restart_repeatable 0 "allows the players to restart the game as often as needed
//sv_autoscreenshot 0 // 1 will force a screenshot for all clients when the map ends. Useful for competitions or the ladder.

//g_antilag 2 // 0 to disable the antilag feature, 1 and 2 use different methods

//sv_maxrate 1000000 // limits client connections to this rate in bytes/seconds

// see Docs/mapdownload.txt for more info
//sv_curl_defaulturl http://www.xonotic.com/contentdownload/getmap.php?file= //fallback download URL

//sv_defaultcharacter 0 // 1 will force a specific model for all players
//sv_defaultplayermodel models/player/nexus.zym // this model will be used
//sv_defaultplayerskin 0 // this skin number will be forced for all players
//sv_defaultplayercolors "" // you can even force player colors here (16*shirt+pants)
//g_fullbrightplayers 0 // 1 to make players fullbright
//g_fullbrightitems 0 // 1 to make items fullbright

//g_balance_teams 1 // 0 will show players the team selection menu after joining instead of automaticly putting them on the smaller team
//g_balance_teams_force 0 // 1 to automaticly balance teams even during a game

//g_ban_sync_uri "http://94.23.21.40/~xonotic/bans/" // sync bans using this ban list provider (disabled by default, uncomment this line to enable)
//g_ban_sync_trusted_servers "" // accept bans that were initially set on the server IPs listed here (if not set, your bans are just sent to the sync URIs, but no bans are retrieved from there)

//g_spawnshieldtime 1 // time for which players are protected after spawn


/////////////////////////////////////////////////////////////////////
// "Obvious" mutators that are allowed on a "pure" server
//g_minstagib 0 // set to 1 for MinstaGib
//g_weapon_stay 0 // set to 1, 2 or 3 for different weapon-stay modes (1 = traditional, 2 = no ammo but allow throwing, 3 = ghost weapon stay)
//g_powerups -1 // set to 0 to turn off strength/quad and shield/invincible, and set to 1 to turn them on even in game modes that normally have them turned off




/////////////////////////////////////////////////////////////////////
// WARNING: anything below this line makes your server "impure"!

// enable some mutators you'd like
//g_cloaked 0 // set to 1 for transparent hard to see players
//g_grappling_hook 0 // set to 1 to enable the hook (allowed on "pure" server in MinstaGib)
//g_jetpack 0 // set to 1 to enable the jetpack (allowed on "pure" server in MinstaGib)
//g_laserguided_missile 0 // set to 1 for laser guided missiles in the RL
//g_midair 0 // set to 1 to make only midair damage count
//g_vampire 0 // set to 1 to give players the damage they cause as health
//sv_gravity 800 // for low gravity, set this somewhere between 50 and 400

// select AT MOST one of these arena mutators (if you didn't select g_minstagib)
//g_nix is "0" ["0"] No Items Xonotic - instead of pickup items, everyone plays with the same weapon. After some time, a countdown will start, after which everyone will switch to another weapon, and so on
//g_nix_with_healtharmor is "0" ["0"] when 1, health and armor still show up in NIX
//g_nix_with_laser is "0" ["0"] always carry the laser as an additional weapon in NIX
//g_nix_with_powerups is "0" ["0"] when 1, powerups still show up in NIX


alias tourneysettings "fraglimit_overide 0; g_tourney 1; minplayers 0; teamplay_mode 2"
alias publicsettings "fraglimit_override -1; g_tourney 0; minplayers 4; teamplay_mode 4"

alias 1v1dm "gametype dm; g_maxplayers 2; tourneysettings;g_powerup_strength 0;endmatch"
alias 2v2tdm "gametype tdm; g_maxplayers 4; tourneysettings;g_powerup_strength 1;endmatch"
alias 3v3tdm "gametype tdm; g_maxplayers 6; tourneysettings;g_powerup_strength 1;endmatch"
alias 4v4tdm "gametype tdm; g_maxplayers 8; tourneysettings;g_powerup_strength 1;endmatch"
alias 5v5tdm "gametype tdm; g_maxplayers 10;tourneysettings;g_powerup_strength 1;endmatch"
alias 2v2ctf "gametype ctf; g_maxplayers 4; tourneysettings;g_powerup_strength 1;endmatch"
alias 3v3ctf "gametype ctf; g_maxplayers 6; tourneysettings;g_powerup_strength 1;endmatch"
alias 4v4ctf "gametype ctf; g_maxplayers 8; tourneysettings;g_powerup_strength 1;endmatch"
alias 5v5ctf "gametype ctf; g_maxplayers 10;tourneysettings;g_powerup_strength 1;endmatch"
alias 2v2ca "gametype ca; g_maxplayers 4; tourneysettings;g_powerup_strength 1;endmatch"
alias 3v3ca "gametype ca; g_maxplayers 6; tourneysettings;g_powerup_strength 1;endmatch"
alias 4v4ca "gametype ca; g_maxplayers 8; tourneysettings;g_powerup_strength 1;endmatch"
alias 5v5ca "gametype ca; g_maxplayers 10;tourneysettings;g_powerup_strength 1;endmatch"
alias dm "gametype dm; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias infection "gametype infection; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias freezetag "gametype freezetag; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias tdm "gametype tdm; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias ctf "gametype ctf; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias ca "gametype ca; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias assault "gametype as; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias keepaway "gametype keepaway; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias nexball "gametype nexball; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias domination "gametype dom; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias keyhunt "gametype kh; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias rune "gametype rune; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias arena "gametype arena; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias lms "gametype lms; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"
alias onslaught "gametype onslaught; g_maxplayers 0; publicsettings;g_powerup_strength 1;endmatch"

alias 1on1dm "1v1dm"
alias 2on2tdm "2v2tdm"
alias 3on3tdm "3v3tdm"
alias 4on4tdm "4v4tdm"
alias 5on5tdm "5v5tdm"
alias 2on2ctf "2v2ctf"
alias 3on3ctf "3v3ctf"
alias 4on4ctf "4v4ctf"
alias 5on5ctf "5v5ctf"
alias 2on2ca "2v2ca"
alias 3on3ca "3v3ca"
alias 4on4ca "4v4ca"
alias 5on5ca "5v5ca"

alias dom "domination"
alias kh "keyhunt"
alias ons "onslaught"

addvote 1v1dm
addvote 2v2tdm
addvote 3v3tdm
addvote 4v4tdm
addvote 5v5tdm
addvote 2v2ca
addvote 3v3ca
addvote 4v4ca
addvote 5v5ca
addvote 2v2ctf
addvote 3v3ctf
addvote 4v4ctf
addvote 5v5ctf
addvote 3v3ca
addvote 4v4ca
addvote 1on1dm
addvote 2on2tdm
addvote 2on2ca
addvote 3on3ctf
addvote 3on3ca
addvote 4on4ca
addvote dm
addvote tdm
addvote ctf
addvote ca
addvote infection
addvote freezetag
addvote assault
addvote keepaway
addvote nexball
addvote kh
addvote keyhunt
addvote dom
addvote domination
addvote rune
addvote arena
addvote lms
addvote ons
addvote onslaught

alias minsta "toggle g_minstagib;g_weaponarena 0; restart"
alias nobots "minplayers 0; bot_number 0; say To re-enable bots, please revote for a public gametype"
alias infammo "toggle g_use_ammunition; restart"
alias warmup "toggle g_warmup; restart"

addvote minsta
addvote timelimit
addvote nobots
addvote infammo
addvote sv_fbskin_green
addvote sv_fbskin_orange
addvote sv_fbskin_red
addvote sv_fbskin_off
addvote warmup
[MoFo] Servers - North America - Hosted in Montreal Canada - Admin DeadDred [MoFo]
Reply

#33
Does the server startup log show any errors? Can you tell me what the contents of the sv_vote_commands cvar are? (Just type sv_vote_commands in the server console or in a rcon session)
Reply

#34
Does the "addvote" command even work at all? In a working server configuration that also allows for voting game modes I got the aliases for the game mode just as in the example above and then I got a line like

sv_vote_commands "duel assault ca ..."

In your example this line is commented out with "//". Maybe you try using sv_vote_commands to list all the possible votes instead of "addvote"?
My Xonstats Profile
Latest track on soundcloud: Farewell - to a better Place (piano improvisation)
New to Xonotic? Check out the Newbie Corner!

Reply

#35
Yeah, addvote works on the unconnected servers.
Reply

#36
(02-11-2013, 04:47 AM)Halogene Wrote: Does the "addvote" command even work at all? In a working server configuration that also allows for voting game modes I got the aliases for the game mode just as in the example above and then I got a line like

If addvote doesn't work, that's a bug.
Reply

#37
(02-11-2013, 01:36 AM)Mr. Bougo Wrote: Does the server startup log show any errors? Can you tell me what the contents of the sv_vote_commands cvar are? (Just type sv_vote_commands in the server console or in a rcon session)

Ok this is from the ssh console

Quote:Game is Xonotic using base gamedir data
Xonotic Linux 17:18:25 Mar 8 2012 - release
Current nice level is below the soft limit - cannot use niceness
Skeletal animation uses SSE code path
execing quake.rc
execing default.cfg
execing defaultXonotic.cfg
Warning: Could not expand $vid_width
Warning: Could not expand $vid_height
Warning: Could not expand $vid_pixelheight
execing sRGB-disable.cfg
menu: program is not loaded
execing weapons.cfg
Warning: Could not expand $r_showsurfaces
Warning: Could not expand $r_ambient
Warning: Could not expand $gl_finish
Warning: Could not expand $vid_gl20
Warning: Could not expand $vid_gl13
Warning: Could not expand $r_drawviewmodel
execing cdtracks.cfg
execing balanceXonotic.cfg
execing ctfscoring-ai.cfg
execing effects-normal.cfg
execing physicsX.cfg
execing turrets.cfg
execing unit_machinegun.cfg
execing unit_hk.cfg
execing unit_hellion.cfg
execing unit_mlrs.cfg
execing unit_flac.cfg
execing unit_fusreac.cfg
execing unit_plasma.cfg
execing unit_plasma2.cfg
execing unit_tesla.cfg
execing unit_phaser.cfg
execing unit_walker.cfg
execing unit_ewheel.cfg
execing vehicles.cfg
execing vehicle_racer.cfg
execing vehicle_raptor.cfg
execing vehicle_spiderbot.cfg
execing vehicle_bumblebee.cfg
execing crosshairs.cfg
execing commands.cfg
Warning: Could not expand $qport in alias _if_dedicated
execing _hud_common.cfg
execing _hud_descriptions.cfg
execing hud_luminos.cfg
couldn't exec config.cfg
"maxplayers" set to "16"
execing data/campaign.cfg
execing config_update.cfg
execing font-xolonium.cfg
Warning: Could not expand $scr_loadingscreen_barheight
Warning: Could not expand $scr_infobar_height
Warning: Could not expand $scr_centersize
This command only works on clients: cl_cmd hud scoreboard_columns_set
execing autoexec/empty.cfg
execing autoexec.cfg
Loaded public key key_0.d0pk (fingerprint: Xon//KssdlzGkFKdnnN4sgg8H+koTbBn5JTi37BAW1Q=)
Loaded private ID key_0.d0si.test2 for key_0.d0pk (public key fingerprint: H+Ul9BOMLRxDUbXTdY0evZ9eH8pXzt9dz4saS/r7LwE=)
NOTE: this ID has not yet been signed!
Only need a signature for an existing key...
curl failed
Server using port 26000
LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
Server failed to open socket on address 0.0.0.0:26000
Server listening on address 0.0.0.0:26001
LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
Server failed to open socket on address [0:0:0:0:0:0:0:0]:26000
Server listening on address [0:0:0:0:0:0:0:0]:26001
execing server-ft.cfg
Host_Mingled: time stepped forward (went from 0.000000 to 1360590153.108882, difference 1360590153.108882)
Changing "port" will not take effect until "map" command is executed.
Server using port 26010
Server listening on address 0.0.0.0:26010
Server listening on address [0:0:0:0:0:0:0:0]:26010


Quote:/sv_vote_commands is "restart fraglimit chmap gotomap nextmap endmatch reducematchtime extendmatchtime allready kick cointoss moveauto" [""restart fraglimit chmap gotomap nextmap endmatch reducematchtime extendmatchtime allready kick cointoss moveauto"]
[MoFo] Servers - North America - Hosted in Montreal Canada - Admin DeadDred [MoFo]
Reply

#38
Weird. And you put the addvote etc in server-ft.cfg, is that right?
Reply

#39
(02-11-2013, 04:48 PM)Mr. Bougo Wrote: Weird. And you put the addvote etc in server-ft.cfg, is that right?

Here's the cfg I'm using http://pastebin.com/Wb0zmFZA
[MoFo] Servers - North America - Hosted in Montreal Canada - Admin DeadDred [MoFo]
Reply

#40
The configuration file you posted works fine for me:
Code:
curl -s http://pastebin.com/raw.php?i=Wb0zmFZA > ~/.xonotic/data/server-ft.cfg
./all run dedicated +serverconfig server-ft.cfg

###
> vhelp
....
You can call a vote for or execute these commands: warmup sv_fbskin_off sv_fbskin_red sv_fbskin_orange sv_fbskin_green infammo nobots timelimit minsta onslaught ons lms arena rune domination dom keyhunt kh nexball keepaway assault freezetag infection ca ctf tdm dm 4on4ca 3on3ca 3on3ctf 2on2ca 2on2tdm 1on1dm 5v5ctf 4v4ctf 3v3ctf 2v2ctf 5v5ca 4v4ca 3v3ca 2v2ca 5v5tdm 4v4tdm 3v3tdm 2v2tdm 1v1dm restart fraglimit chmap gotomap nextmap endmatch reducematchtime extendmatchtime allready kick cointoss movetoauto shuffleteams and maybe further arguments

####
> ca
Game type successfully switched to ca
Unknown command "g_powerup_strength"
Saving persistent data...
done!

I have no 0.6.0 release, so I cannot test it with your version.

Another issue with these vote aliases g_powerup_strength cvar does not exist anymore - strength is combined with shield and jetpack in g_powerups.
Use g_powerups 0 to disable and g_powerups -1 to set to default.

To add only votes for dm, tdm and freezetag...
You can just add these 4 lines at the end of your server-ft.cfg - instead of all these aliases and addvote commands you dont want anyway.

Code:
alias dm    "gametype dm;          endmatch"
alias tdm   "gametype tdm;         endmatch"
alias ft   "gametype freezetag; endmatch"

addvote "dm tdm ft"

Keep in mind that sv_vote_commands must be set before addvote commands - otherwise you overwrite the commands you set before Smile

I have cleaned your posted server-ft.cfg (removed comments and commented cvars) and added the needed votes (and some tips): http://pastebin.com/raw.php?i=1JuuQafN

Now I have to add, that I also share a bunch of server configs: https://github.com/itsme-/server.configs Big Grin (files offer everything you need...)

You can just drop these into your data folder and
use http://pastebin.com/raw.php?i=18vpvSTz as your server-ft.cfg
Reply

#41
Tested here with a 0.6 codebase (not release, but compiled from 0.6 sources). Your server-ft.cfg works for me.

Can you add this line at the end of your server-ft.cfg?
Code:
sv_vote_commands
That's without any arguments. That way we can see what sv_vote_commands is when the server config is done.
Reply

#42
Does a config come with Xonotic actually (this?)? Should be cleaned up then, cause I can see Infection too (0.1 era).
Reply

#43
I think maybe its me misunderstanding the system.

Are the game votes done though the console using commands or are they suppose to show once a game ends and the map votes appears and are voted on like I've seen on Nexuiz?


So what I have now is on the main server with the stock cfg file the game is set to DM though the cfg file and the maps are chosen randomly.

On the test server cfg I inserted the lines posted in the first post, the game is still DM but when a game ends players can vote on the map they want to play. Are they suppose to be able to also select the game type or is this done by say me though the console?

Thanks.
[MoFo] Servers - North America - Hosted in Montreal Canada - Admin DeadDred [MoFo]
Reply

#44
Ok I get it now. Had to do some searching on the forums.

vcall alias will trigger the vote.

So this

Code:
alias tourneysettings "fraglimit_overide 0; g_tourney 1; minplayers 0; teamplay_mode 2"

typed into the "in game console" (click the ~ key on the keyboard to bring up the game console)

Code:
vcall tourneysettings


would trigger a vote for the above settings.

Taken from http://forums.xonotic.org/showthread.php...light=vote

Quote:The Console

Games generally have a great many settings which can be changed or tweaked to give you the best advantage. A lot of these aren't included in the game menus, which are limited by space and intended to give only a quick and compact view of the most important options. For all the other variables, you have the in-game console. This is like a command line inside the game, even with tab completion! You can enter commands to connect to a server, vote for options on the server, or to change variables like your name or various graphic effects. You can access the console by pressing shift-escape, and you can close it again by pressing escape. Lots of info is available on the official Xonotic forum regarding the effective use of the console, but probably the most important in multiplayer is using it for voting, which will be briefly covered here:

When you are on a server, open the console and type vhelp. This will display a short help regarding voting, and also tell you what can be voted on the server. By default, things you can vote for include the time limit and the map played. By entering vcall endmatch you call a vote to end the current map and to play the next one. Or, as another example, vcall gotomap xoylent will start a vote to switch to the map 'Xoylent'. Note that you won't have to write the full map name, the server will check if there is only one possible completion and, if yes, complete the command accordingly (so vcall gotomap xoy would do the same trick unless there's another map present on the server beginning with xoy). The vote gets printed to every player on the server, who can then accept or reject it. To accept a vote, press F1 (or type in cmd vote yes into console); to reject it, press F2 (or enter cmd vote no into console). If enough players accept the vote you called, the action you voted for will be executed. It does not hurt to tell people to press F1/F2, as some might not know about it.


Now is there a way like I've seen in Nexuiz to have the game type choices available after map selection when a new game starts?
[MoFo] Servers - North America - Hosted in Montreal Canada - Admin DeadDred [MoFo]
Reply

#45
Where have you seen this in nexuiz? Because I'm not aware of such a possibility.

EDIT: If it's after map selection, that wouldn't make much sense at all. Not all maps support all game modes.
Reply

#46
(02-13-2013, 01:45 AM)Mr. Bougo Wrote: Where have you seen this in nexuiz? Because I'm not aware of such a possibility.

EDIT: If it's after map selection, that wouldn't make much sense at all. Not all maps support all game modes.

Its in the Rocket Minsta version some of the servers had it set up like that. I just tired one out and it had the game selection after map selection.

I believe the game type selection that are not available for the map are grayed out.

I found another thread about it here http://forums.xonotic.org/showthread.php?pid=24339
[MoFo] Servers - North America - Hosted in Montreal Canada - Admin DeadDred [MoFo]
Reply

#47
You would have to contact the server admins (EDIT: I guess Akari, based on your thread), because I'm not aware of them sharing the code for this. It must be a custom mod.
Reply

#48
Ok so discovered another issue Ihave Minsta+Hook set. In order to be able to vcall ft (freezetag) I have to set freezetag as the default gamemode. If I set the gametype dm in server.cfg then when I type in vcall ft the game restart but it goes back to dm and not freezetag.

Main reason I want to use dm as when the freezetag game start and there's only one person/bot you get frozen right away after choosing the team but you can vall fr and restart the game with out being frozen. Gettign frozen will confuse new players if they don't know how to change game modes.

Any suggestion would be appreciated.
[MoFo] Servers - North America - Hosted in Montreal Canada - Admin DeadDred [MoFo]
Reply

#49
What does the server log show when you vcall ft? The part I need is from the moment the vote is received until the next map starts.
Reply

#50
(02-20-2013, 02:37 AM)Mr. Bougo Wrote: What does the server log show when you vcall ft? The part I need is from the moment the vote is received until the next map starts.


BlushBlushBlushBig GrinAngel LOL spelling mistake in gametype - gametye

I owe you some beer.

Now to fix the map download issues Tongue
[MoFo] Servers - North America - Hosted in Montreal Canada - Admin DeadDred [MoFo]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Let's make our servers community-like! xord86_64 3 1,459 02-03-2023, 05:36 PM
Last Post: xord86_64
  [NEED HELP] Game types | Tipos de juego [Votable] KyMAN 10 6,733 08-31-2017, 08:08 AM
Last Post: KyMAN
  [RESOLVED] How to make people admin? Beagle 9 8,530 05-02-2016, 11:03 PM
Last Post: Beagle
  How having xonotic server to make client download custom characters' sounds? gabolander 7 10,745 01-25-2015, 07:43 PM
Last Post: gabolander
  How to make a Server on Ubutnu 12.04? dafull97 2 4,621 09-18-2013, 04:20 PM
Last Post: dafull97
  [SOLVED] How do I make a dedicated server at home? dylstew 5 9,397 02-25-2013, 05:37 PM
Last Post: Mr. Bougo
  How do I make a proper 1v1 server? W4RP1G 3 8,509 04-01-2012, 03:45 AM
Last Post: Mr. Bougo

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-