gametechmods
Robot Arena => General Support => Topic started by: G.K. on January 30, 2011, 07:11:15 AM
-
I was modifying my arena's py file, and changed the following from:
class Twisted(Arenas.SuperArena):
"Twiiiiiiiiiiiiiiiisted"
name = "Twiiiiiiiiiiiiiisted Arena Losers Bracket Version"
preview = "twisted/twi_preview.bmp"
game_types = ['DEATHMATCH', 'BATTLE ROYAL', 'TEAM MATCH']
extent = (-15, 15, 15, -15)
def __init__(self):
Arenas.SuperArena.__init__(self, "Arenas/twisted/twisted.gmf")
to
class tandem(Arenas.SuperArena):
"We fight in Tandem"
name = "In Tandem Arena"
preview = "Tandem/tand_preview.bmp"
game_types = ['DEATHMATCH', 'BATTLE ROYAL', 'TEAM MATCH']
extent = (-15, 15, 15, -15)
def __init__(self):
Arenas.SuperArena.__init__(self, "Arenas/Tandem/Tandem.gmf")
Anyone got any ideas as to what caused the crashing?
-
Is Tandem.gmf properly compiled?
-
yeah.
-
Well there's no errors with the coding I don't think, all set out the same. I'd think it's either the GMF or the preview image?
-
EDIT: I went back, redid the whole .py exactly the same, and now it's working again... Strange.
-
Be sure to not mix tabs and spaces. Python doesn't like that, and the engine crashes at any exception that takes place in the scripts.