Page 1 of 1

Unsupported format character

Posted: Fri Dec 28, 2012 12:49 pm
by kamild1996
That's what I see after starting a pyspades server:
D:\Game Files\Ace of Spades\dist>run.exe
2012-12-28 13:43:02+0100 [-] Log opened.
2012-12-28 13:43:02+0100 [-] REMEMBER TO CHANGE THE DEFAULT ADMINISTRATOR PASSWO
RD!
2012-12-28 13:43:02+0100 [-] Generating map 'random #437787503'...
2012-12-28 13:43:05+0100 [-] Map loaded successfully.
2012-12-28 13:43:05+0100 [-] Traceback (most recent call last):
2012-12-28 13:43:05+0100 [-] File "run.py", line 1030, in <module>
2012-12-28 13:43:05+0100 [-] File "D:\Game Files\Ace of Spades\dist\scripts\di
sco.py", line 39, in __init__
2012-12-28 13:43:05+0100 [-] protocol.__init__(self, *arg, **kw)
2012-12-28 13:43:05+0100 [-] File "run.py", line 653, in __init__
2012-12-28 13:43:05+0100 [-] File "run.py", line 761, in set_map_rotation
2012-12-28 13:43:05+0100 [-] File "run.py", line 727, in advance_rotation
2012-12-28 13:43:05+0100 [-] File "run.py", line 747, in set_map_name
2012-12-28 13:43:05+0100 [-] File "run.py", line 787, in update_format
2012-12-28 13:43:05+0100 [-] File "run.py", line 810, in format_lines
2012-12-28 13:43:05+0100 [-] File "run.py", line 802, in format
2012-12-28 13:43:05+0100 [-] ValueError: unsupported format character '!' (0x21)
at index 24

D:\Game Files\Ace of Spades\dist>pause
How to fix it?

Re: Unsupported format character

Posted: Fri Dec 28, 2012 5:08 pm
by colorpinpoint
You most likely have a weird an unsupported character in your config.

Re: Unsupported format character

Posted: Fri Dec 28, 2012 6:02 pm
by kamild1996
My config.txt: http://pastebin.com/fRqYbFjS
I can't see any bad characters.

Re: Unsupported format character

Posted: Fri Dec 28, 2012 10:11 pm
by colorpinpoint
Here you go: I found the bad characters.

New version:http://puu.sh/1Gvp0

It was this line:
"Aktualna mapa to %(map_name) autorstwa %(map_author)",
It's supposed to be
"Aktualna mapa to %(map_name)s autorstwa %(map_author)s",

Re: Unsupported format character

Posted: Sat Dec 29, 2012 11:31 am
by kamild1996
Thanks (again Blue_BigSmile), replacing this fixed the problem.