What recources does a tron server needs ?

Post here if you need help setting up your server, etc.
Post Reply
snake
Average Program
Posts: 59
Joined: Thu Oct 13, 2011 6:24 am

What recources does a tron server needs ?

Post by snake »

.......................................
Last edited by snake on Fri Apr 20, 2012 6:34 am, edited 1 time in total.
User avatar
AI-team
Shutout Match Winner
Posts: 1020
Joined: Tue Jun 23, 2009 6:17 pm
Location: Germany/Munich
Contact:

Re: What recources does a tron server needs ?

Post by AI-team »

5Mbit/s UnMetered
I wouldn't even host a 10 slot server on machine like that
  
 
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
 
 
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: What recources does a tron server needs ?

Post by Z-Man »

Well, the line would be fine, but what they always give you there is some average performance stats. What matters for game servers is the millisecond to millisecond performance of both the CPU and the network. And with servers that cheap, they must be cramming a lot of them into one host, so my guess would be that it's not all that good. I pay 10 Euros per months for my VPS and it's not all that hot.
snake
Average Program
Posts: 59
Joined: Thu Oct 13, 2011 6:24 am

Re: What recources does a tron server needs ?

Post by snake »

Z-Man wrote:the millisecond to millisecond performance of both the CPU and the network.
Can you explain this in noob language ? :P
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: What recources does a tron server needs ?

Post by Z-Man »

I'll try. VPSes are like time shares. With a time share, you don't buy an actual house by the sea, you buy part of it. Other people buy other parts. You can't control when you'll actually be able to use the house, maybe your turn always is in stormy and rainy autumn (let's assume you don't like that). The same applies to a VPS: you don't rent a full server, only time slices of it. Now, with games, response times are important: when a player sends in a command, you want to process that and share it with the other players as soon as possible. But maybe your time slice on the server isn't up when the command comes in. Your server then has to wait before processing it, and you have no control over the delay. It may be acceptable half of the time and totally unplayable the other half. And the cheaper your VPS, the more VPSes need to share a real server, the more time slices there are to manage, the longer the delay.

The only way to find out whether any given VPS offer is good enough for a purpose is to either try it yourself of find someone else who has tried it; there are just too many variables and hosters give too little *reliable* information.
snake
Average Program
Posts: 59
Joined: Thu Oct 13, 2011 6:24 am

Re: What recources does a tron server needs ?

Post by snake »

Well i tried it anyway and it turned out to be quite nice :) I only played with 3 players yet but for so far no lags :)

EDIT:
ive played with a total of 8 players at once and no lags =)

Here are there pings:
35
40
50
90
99
130
150
190
Last edited by snake on Fri Mar 30, 2012 6:28 pm, edited 1 time in total.
snake
Average Program
Posts: 59
Joined: Thu Oct 13, 2011 6:24 am

Re: What recources does a tron server needs ?

Post by snake »

Im getting the same problem again as 2 years ago :S I use a (the?) script to run multiple servers at one computer but i cant find out where to put the configs of the serperate servers :S

This is the script (username changed to my username ofc )

Code: Select all

#!/bin/bash

loc="/home/<your_username>/armagetronad"
tron=$loc"/bin/armagetronad-dedicated"
vardir=$loc"/servers/"$1"/var"
userconfigdir=$loc"/servers/"$1"/settings"
resourcedir=$loc"/servers/"$1"/resource/"

mkdir $loc"/servers/"$1"/logs"
screen -S $1 -X logtstamp on 					# print timestamps in log file
screen -S $1 -X logfile $loc"/servers/"$1"/logs/"$1_%m-%d-%Y-%c.log 	# create a logfile in the logs subf
screen -S $1 -X log on 					# Turn on logging for the server window
while true; do 						# start a loop to allow server restart if it crashes

#Runs the actual server. By default, the binary is called armagetronad-dedicated and is located in the prefix/bin directory. In this example, it is
# in /home/vertrex/armagetronad/bin directory.

	$tron --vardir $vardir
	$tron --resourcedir $resourcedir --userconfigdir $userconfigdir --vardir $vardir

# Shows the errors and indicates that the server has crashed, and then, waits 5 seconds before restarting the server, allowing you to quit with CTRL-C
      echo "Server has crashed. It will restart immediately..., press CTRL-C to cancel"
      sleep 5
	    done # end the loop
And this is the start script

Code: Select all

#!/bin/bash

loc="/home/<your_username>/armagetronad" 

# If you run the script with a parameter (server name), only that server will be start. Otherwise, all servers in
# the /home/<your_username>/armagetrnad/servers directory will be started

if [ "$1" != "" ]; then
     screen -S $1 -X quit				# Kill the window if it exists already, avoiding to run the same server twice
     screen -dmS $1 $loc/scripts/srv.sh $1			 # start a GNU screen window with the specified server inside
else
      for f in $(ls $loc/scripts/servers/.)	 # start a loop running the following command for any existing folders in the
#/home/<your_username>/armagetronad/servers folder
               do
                      screen -S $f -X quit				# Kill the window if it exists already, avoiding to run the same server twice
                      screen -dmS $f $loc/scripts/srv.sh $f	# start a GNU screen window with the server inside for each server folder
               done							# ends the loop
fi
I did everything by this wiki http://wiki.armagetronad.org/index.php/ ... u_Computer
User avatar
erocat
On Lightcycle Grid
Posts: 36
Joined: Tue Mar 27, 2012 3:23 am

Re: What recources does a tron server needs ?

Post by erocat »

snake wrote:i cant find out where to put the configs of the serperate servers
You mean with those scripts you don't know how to make two or more separate servers?

./start SERVERNAME1
/home/<your_username>/armagetronad/servers/SERVERNAME1/var/configfileshere

./start SERVERNAME2
/home/<your_username>/armagetronad/servers/SERVERNAME2/var/configfileshere
snake
Average Program
Posts: 59
Joined: Thu Oct 13, 2011 6:24 am

Re: What recources does a tron server needs ?

Post by snake »

ooh they should be in /home/username/armagetronad/servers/server1/VAR and not /home/username/armagetronad/servers/server1/SETTINGS :)

but... what is the settings folder for ?
User avatar
erocat
On Lightcycle Grid
Posts: 36
Joined: Tue Mar 27, 2012 3:23 am

Re: What recources does a tron server needs ?

Post by erocat »

Not sure, I've never added a setting folder in my scripts.
snake
Average Program
Posts: 59
Joined: Thu Oct 13, 2011 6:24 am

Re: What recources does a tron server needs ?

Post by snake »

I have a problem again :S

I have two servers one ctf and one sumo

the sumo server's size_factor is to small and the circle doesnt colapse when i leave it...
In the main configs for all the servers i have sinclude server_info.cfg but i dont know if that makes any difference (with the main configs i mean /home/username/armagetronad/etc/games/armagetronad-dedicated/settings.cfg and settings_dedicated.cfg

The ctf server has a size factor problem to: the arena is to small when only one client is connected and if a 2nd client connects it gets to big

The size_factor problem is solved by typing /admin include server_info.cfg but the sumo circle isnt

Here's my config i have in /home/username/armagetronad/servers/servername/var :

Code: Select all

server_port 4535

SERVER_NAME snakes sumo test server
SERVER_OPTIONS
TITLE_OF_DAY Message of the Day
MESSAGE_OF_DAY


# example:
# MESSAGE_OF_DAY Line1\nLine2\n\
Line3

ROUND_CONSOLE_MESSAGE
ROUND_CENTER_MESSAGE

############################################################################################
#
# arena settings
#
############################################################################################

RESOURCE_REPOSITORY_SERVER http://maps.ix.lv-vl.net/
MAP_FILE_OVERRIDE 0
MAP_FILE Z-Man/fortress/sumo_4x4-0.1.1.aamap.xml
ARENA_AXES 4

############################################################################################
#
# cycle physics
#
############################################################################################

CYCLE_TURN_MEMORY 3

# speed
CYCLE_SPEED 30.0
CYCLE_SPEED_MIN .25
CYCLE_SPEED_DECAY_BELOW 5.0
CYCLE_SPEED_DECAY_ABOVE .1
CYCLE_START_SPEED 20.0
CYCLE_ACCEL 20.0
CYCLE_ACCEL_SELF 1.0
CYCLE_ACCEL_TEAM 1.0
CYCLE_ACCEL_ENEMY 1.0
CYCLE_ACCEL_RIM 0.0
CYCLE_ACCEL_SLINGSHOT 1.0
CYCLE_ACCEL_TUNNEL 1.0
CYCLE_ACCEL_OFFSET 2.0
CYCLE_WALL_NEAR 6.0
CYCLE_SOUND_SPEED 30.0
CYCLE_BRAKE 30.0

CYCLE_BOOST_SELF     0.0
CYCLE_BOOST_TEAM     0.0
CYCLE_BOOST_ENEMY    0.0
CYCLE_BOOST_RIM      0.0
CYCLE_BOOSTFACTOR_SELF   1.0
CYCLE_BOOSTFACTOR_TEAM   1.0
CYCLE_BOOSTFACTOR_ENEMY  1.0
CYCLE_BOOSTFACTOR_RIM    1.0

# turning
CYCLE_DELAY  .1
CYCLE_DELAY_TIMEBASED 1.0
CYCLE_TURN_SPEED_FACTOR .95

# rubber settings
CYCLE_RUBBER  5
CYCLE_PING_RUBBER 4
CYCLE_RUBBER_TIMEBASED 0.0

CYCLE_RUBBER_SPEED 40.0
CYCLE_RUBBER_MINDISTANCE 0.000999987
CYCLE_RUBBER_MINDISTANCE_RATIO 0.000099868
CYCLE_RUBBER_MINDISTANCE_RESERVOIR .005
CYCLE_RUBBER_MINDISTANCE_UNPREPARED .005
CYCLE_RUBBER_MINDISTANCE_PREPARATION .2
CYCLE_RUBBER_MINADJUST 0.00999999

CYCLE_RUBBER_LEGACY 0
CYCLE_RUBBER_TIME 10.0

CYCLE_RUBBER_DELAY 0.0

CYCLE_RUBBER_WALL_SHRINK 1

CYCLE_RUBBER_MINDISTANCE_GAP 0
CYCLE_RUBBER_MINDISTANCE_GAP_SIDE .5

# braking
CYCLE_BRAKE_REFILL .1
CYCLE_BRAKE_DEPLETE 1.0

# respawn relevant settings
CYCLE_BLINK_FREQUENCY  10          
CYCLE_INVULNERABLE_TIME 3
CYCLE_WALL_TIME 3
CYCLE_FIRST_SPAWN_PROTECTION 0


############################################################################################
#
# game rules settings
#
############################################################################################

#Multi player
SCORE_WIN 0
SCORE_SUICIDE -30
SCORE_KILL 30
SCORE_DIE  0

LIMIT_SCORE 600
LIMIT_ROUNDS 8
LIMIT_TIME  30

#Single player
SP_SCORE_WIN 10
SP_LIMIT_SCORE 100000
SP_LIMIT_ROUNDS 10
SP_LIMIT_TIME   30

# sty+ct
FORTRESS_CONQUERED_SCORE 60
FORTRESS_HELD_SCORE 0
FORTRESS_CONQUERED_WIN 0
FORTRESS_SURVIVE_WIN 1

SCORE_SHOT 1
SCORE_SHOT_SUICIDE 0
SCORE_DEATH_SHOT 1
SCORE_SELF_DESTRUCT 1
SCORE_ZOMBIE_ZONE_REVENGE 1
SCORE_ZOMBIE_ZONE 0

SCORE_FLAG 3
SCORE_GOAL 1

SCORE_DEATHZONE 0

############################################################################################
#
# Game settings
#
############################################################################################

# cycle physics
CYCLE_RUBBER_MINDISTANCE_LEGACY 1

# Single player
SP_EXPLOSION_RADIUS 2
SP_WALLS_LENGTH 400
SP_WALLS_STAY_UP_DELAY 8
SP_TEAM_BALANCE_ON_QUIT 0
SP_TEAM_BALANCE_WITH_AIS 1
SP_TEAM_MAX_IMBALANCE 1
SP_TEAM_MAX_PLAYERS 1
SP_TEAM_MIN_PLAYERS 1
SP_TEAMS_MAX 16
SP_TEAMS_MIN 1
SP_WIN_ZONE_MIN_ROUND_TIME 1000000
SP_WIN_ZONE_MIN_LAST_DEATH 1000000
SP_FINISH_TYPE 1
SP_GAME_TYPE 0
SP_SIZE_FACTOR 1
SP_SPEED_FACTOR 0
SP_AUTO_IQ 0
SP_AUTO_AIS 0
SP_AI_IQ 50
SP_MIN_PLAYERS 0
SP_NUM_AIS 0

# Multi player
EXPLOSION_RADIUS 2
WALLS_LENGTH 400
WALLS_STAY_UP_DELAY 8
TEAM_BALANCE_ON_QUIT 1
TEAM_BALANCE_WITH_AIS 0
TEAM_MAX_IMBALANCE 1
TEAM_MAX_PLAYERS 1
TEAM_MIN_PLAYERS 1
TEAMS_MAX 16
TEAMS_MIN 1
WIN_ZONE_MIN_ROUND_TIME 10000000
WIN_ZONE_MIN_LAST_DEATH 10000000
FINISH_TYPE 1                       # 0 immediate round restart, 1 slow round restart, 2 remaining AIs fight in fast forward mode, 3 AIs fight on normally
GAME_TYPE 0                         # 1 for normal duel, 0 for freestyle(round end when everyone death)
SIZE_FACTOR 1
SPEED_FACTOR 0
AUTO_IQ 0
AUTO_AIS 0
AUTO_TEAM 1
ALLOW_TEAM_CHANGE 1
AI_IQ 50
MIN_PLAYERS 0
NUM_AIS 0

# team name
ALLOW_TEAM_NAME_COLOR 1             # allow teams to be named after a color
ALLOW_TEAM_NAME_PLAYER 1            # allow teams to be named after the leading player

# i think these are eddited in the custom language strings.
TEAM_NAME_1 $team_name_blue   # name of team 1
TEAM_NAME_2 $team_name_gold   # name of team 2
TEAM_NAME_3 $team_name_red    # name of team 3
TEAM_NAME_4 $team_name_green  # name of team 4
TEAM_NAME_5 $team_name_violet # name of team 5
TEAM_NAME_6 $team_name_ugly   # name of team 6
TEAM_NAME_7 $team_name_white  # name of team 7
TEAM_NAME_8 $team_name_black  # name of team 8

# team color options. Effective if ALLOW_TEAM_NAME_PLAYER is set to 0.

TEAM_RED_1   15 # red portion of team 1's color
TEAM_RED_2   15 # red portion of team 2's color
TEAM_RED_3   15 # red portion of team 3's color
TEAM_RED_4    4 # red portion of team 4's color
TEAM_RED_5   15 # red portion of team 5's color
TEAM_RED_6    4 # red portion of team 6's color
TEAM_RED_7   15 # red portion of team 7's color
TEAM_RED_8    7 # red portion of team 8's color

TEAM_GREEN_1  3 # green portion of team 1's color
TEAM_GREEN_2 15 # green portion of team 2's color
TEAM_GREEN_3  4 # green portion of team 3's color
TEAM_GREEN_4 15 # green portion of team 4's color
TEAM_GREEN_5  4 # green portion of team 5's color
TEAM_GREEN_6 15 # green portion of team 6's color
TEAM_GREEN_7 15 # green portion of team 7's color
TEAM_GREEN_8  7 # green portion of team 8's color

TEAM_BLUE_1   0 # blue portion of team 1's color
TEAM_BLUE_2  15 # blue portion of team 2's color
TEAM_BLUE_3   4 # blue portion of team 3's color
TEAM_BLUE_4   4 # blue portion of team 4's color
TEAM_BLUE_5  15 # blue portion of team 5's color
TEAM_BLUE_6  15 # blue portion of team 6's color
TEAM_BLUE_7  15 # blue portion of team 7's color
TEAM_BLUE_8   7 # blue portion of team 8's color

#TEAM_ALLOW_SHUFFLE_UP 0
TEAM_CENTER_IS_BOSS 1


############################################################################################
#
# sty+ct specific (for scores see game rules settings)
#
############################################################################################

SHOT_THRESH 2
SHOT_DISCARD_TIME 0.3
SHOT_START_DIST 1.0
SHOT_VELOCITY_MULT 1.8
SHOT_RADIUS_MIN 0.7
SHOT_RADIUS_MAX 5.0
SHOT_ROT_MIN 2.0
SHOT_ROT_MAX 10.0
SHOT_EXPLOSION 0

MEGA_SHOT_THRESH 2
MEGA_SHOT_MULT 0.3
MEGA_SHOT_DIR 3
MEGA_SHOT_EXPLOSION 1

SHOT_KILL_SELF 0
SHOT_KILL_VANISH 1
DEATH_SHOT 1
SHOT_COLLISION 0

SELF_DESTRUCT 0
SELF_DESTRUCT_RADIUS 18
SELF_DESTRUCT_ROT 7
SELF_DESTRUCT_RISE 5
SELF_DESTRUCT_FALL 2
SELF_DESTRUCT_VANISH 1

SHOT_SEEK_UPDATE_TIME 0.5
ZOMBIE_ZONE 0
ZOMBIE_ZONE_RADIUS 6
ZOMBIE_ZONE_ROT 2
ZOMBIE_ZONE_RISE 0.4
ZOMBIE_ZONE_FALL 0
ZOMBIE_ZONE_VANISH 0
ZOMBIE_ZONE_SPEED 12
ZOMBIE_ZONE_SHOOT 1.0

############################################################################################

respawn_time -1

BASE_RESPAWN 1
BASE_ENEMY_RESPAWN 1

BASE_RESPAWN_REMIND_TIME 5

BASE_ENEMY_KILL 0

FLAG_REQUIRED_HOME 1
FLAG_DROP_HOME 0

FLAG_DROP_TIME 3

FLAG_HOLD_TIME -1
FLAG_CHAT_BLINK_TIME -1

FLAG_BLINK_TIME 1.5
FLAG_BLINK_ON_TIME 0.3
FLAG_BLINK_START 0.2
FLAG_BLINK_END 1.0
FLAG_BLINK_ESTIMATE_POSITION 0.6
FLAG_BLINK_TRACK_TIME -1


############################################################################################
#
# zone's
#
############################################################################################

# win zone settings
WIN_ZONE_RANDOMNESS 0
WIN_ZONE_EXPANSION .5656
WIN_ZONE_INITIAL_SIZE 56.56
WIN_ZONE_DEATHS 1

# fortress settings
FORTRESS_CONQUEST_RATE 0
FORTRESS_DEFEND_RATE .6
FORTRESS_CONQUEST_DECAY_RATE .3
FORTRESS_CONQUEST_TIMEOUT 5
#FORTRESS_CONQUERED_KILL_MIN 1
#FORTRESS_CONQUERED_KILL_RATIO 1

FORTRESS_MAX_PER_TEAM 1
SPAWN_POINT_GROUP_SIZE 0
FORTRESS_COLLAPSE_SPEED .5

############################################################################################
#
# colors
#
############################################################################################

COLOR_STRINGS 1
FILTER_COLOR_STRINGS 0
FILTER_COLOR_NAMES 1
FILTER_NAME_ENDS 1
FILTER_NAME_MIDDLE 1
FILTER_COLOR_SERVER_NAMES 0

############################################################################################
#
# Politics: Voting and Spam protection
#
############################################################################################

SHUFFLE_SPAM_MESSAGES_PER_ROUND 3

SPAM_PROTECTION_REPEAT 5.0

SPAM_PROTECTION 4.0
SPAM_PROTECTION_VOTE 50.0
SPAM_PROTECTION_CHAT .3
SPAM_PENALTY 0.0
SPAM_AUTOKICK 14.0
SPAM_AUTOKICK_COUNT 3
SPAM_MAXLEN 180

# prefix spam

PREFIX_SPAM_ENABLE 0
PREFIX_SPAM_START_COLOR_MULTIPLIER 1.5
PREFIX_SPAM_LENGTH_MULTIPLIER 1.2
PREFIX_SPAM_NUMBER_COLOR_CODES_MULTIPLIER 1.2
PREFIX_SPAM_NUMBER_KNOWN_PREFIXES_MULTIPLIER 1.0
PREFIX_SPAM_REQUIRED_SCORE 10.0
PREFIX_SPAM_TIMEOUT_MULTIPLIER 15.0

# voting

ALLOW_VOTING 1
MAX_VOTES 5
MAX_VOTES_PER_VOTER 2
ALLOW_VOTING_SPECTATOR 0
VOTING_BIAS 0
VOTING_PRIVACY 1
VOTING_SPAM_ISSUE 1
VOTING_SPAM_REJECT 5
VOTING_MATURITY 300

MIN_VOTERS 3

VOTING_TIMEOUT 120
VOTING_TIMEOUT_PER_VOTER 15
VOTING_START_DECAY 60
VOTING_DECAY 60

VOTING_SPAM_ISSUE 1.0
VOTING_SPAM_REJECT 5.0
VOTING_KICK_MINHARM 0
VOTING_KICK_TIME 300
VOTING_HARM_TIME 180
VOTING_SUSPEND_ROUNDS 5

CONSOLE_DECORATE_ID 1
CONSOLE_DECORATE_IP 0

LADDERLOG_GAME_TIME_INTERVAL -1

SCORE_FLAG 4

FLAG_DROP_TIME 3
Oh and a spoiler mod would be great ;D
nelg

Re: What recources does a tron server needs ?

Post by nelg »

you forgot about the map
try MAP_FILE default

EDIT: Its set to MAP_FILE Z-Man/fortress/sumo_4x4-0.1.1.aamap.xml
Post Reply