Here is the server log
2012-06-17 20:09:15+0100 [-] pyspades server started on 06/17/12 20:09:15
2012-06-17 20:09:15+0100 [-] Log opened.
2012-06-17 20:09:15+0100 [-] Traceback (most recent call last):
2012-06-17 20:09:15+0100 [-] File "run.py", line 1020, in <module>
2012-06-17 20:09:15+0100 [-] File "C:\Users\Kieran\Downloads\Games\Ace Of Spades\pyspades-feature_server-9cf75b8189a1\dist\scripts\disco.py", line 39, in __init__
2012-06-17 20:09:15+0100 [-] protocol.__init__(self, *arg, **kw)
2012-06-17 20:09:15+0100 [-] File "run.py", line 644, in __init__
2012-06-17 20:09:15+0100 [-] File "run.py", line 751, in set_map_rotation
2012-06-17 20:09:15+0100 [-] File "run.py", line 717, in advance_rotation
2012-06-17 20:09:15+0100 [-] File "run.py", line 728, in set_map_name
2012-06-17 20:09:15+0100 [-] File "run.py", line 741, in get_map
2012-06-17 20:09:15+0100 [-] File "map.pyo", line 43, in __init__
2012-06-17 20:09:15+0100 [-] File "map.pyo", line 58, in load_information
2012-06-17 20:09:15+0100 [-] File "./maps\Trenches.txt", line 4
2012-06-17 20:09:15+0100 [-] Description = 'Charge across No Man's Land to seize the enemies War Plans!'
2012-06-17 20:09:15+0100 [-] ^
2012-06-17 20:09:15+0100 [-] SyntaxError: invalid syntax
And here is the trenches.txt file
Name = 'Trenches'
Author = 'Ki11aWi11'
Version = '1.1'
Description = 'Charge across No Man's Land to seize the enemies War Plans!'
# script
from pyspades.constants import *
import random
def get_entity_location(team, entity_id):
if entity_id == BLUE_FLAG:
x, y, z = 154, 259, 54
return (x, y, z)
if entity_id == GREEN_FLAG:
x, y, z = 395, 254, 54
return (x, y, z)
if entity_id == BLUE_BASE:
x, y, z = 169, 256, 54
return (x, y, z)
if entity_id == GREEN_BASE:
x, y, z = 342, 255, 54
return (x, y, z)
def get_spawn_location(connection):
if connection.team is connection.protocol.blue_team:
x = random.randrange(138,179)
y = random.randrange(218,293)
z1 = 54
return (x, y, z1-1)
if connection.team is connection.protocol.green_team:
x = random.randrange(342,395)
y = random.randrange(218,293)
z1 = 54
return (x, y, z1-1)
Any ideas what the problem is? I can't seem to fix it.