Note: This forum is merely an archive. It is no longer possible to register or post. - StackOverflow
New Ace of Spades Forums: http://buildandshoot.com/

Difficulties running Trenches map

Have a problem? Ask here.

Difficulties running Trenches map

Postby MuttonBandit » Sun Jun 17, 2012 8:10 pm

I try to run my server, which runs fine without the Trenches map in the rotation, with Trenches as the first map, and it doesn't work.
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.
MuttonBandit
Member
 
Posts: 1
Joined: Sun Jun 17, 2012 8:05 pm

Re: Difficulties running Trenches map

Postby Enari » Sun Jun 17, 2012 11:28 pm

change: Description = 'Charge across No Man's Land to seize the enemies War Plans!'
to: Description = 'Charge across No Mans Land to seize the enemies War Plans!'
Image
User avatar
Enari
Moderator
 
Posts: 595
Joined: Sun Dec 11, 2011 1:15 pm

Re: Difficulties running Trenches map

Postby PXYC » Mon Jun 18, 2012 2:17 am

You could use an escape character:
Description = 'Charge across No Man\'s Land to seize the enemies War Plans!'
I'm not sure if that would show up or not.
Image

<+laserlamp> lil b is my fav
User avatar
PXYC
Local Mod
 
Posts: 1068
Joined: Wed Dec 14, 2011 2:52 am
Location: Near Philadelphia, PA


Return to Help



Who is online

Users browsing this forum: No registered users and 0 guests

cron