gametechmods

Robot Arena => General Support => Topic started by: G.K. on January 30, 2011, 07:11:15 AM

Title: Arena Crashing and other troubles - The woes G.K. faced with his latest project
Post by: G.K. on January 30, 2011, 07:11:15 AM
I was modifying my arena's py file, and changed the following from:

Code: [Select]
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

Code: [Select]
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?
Title: Re: Sudden Arena Crashing
Post by: Pwnator on January 30, 2011, 07:13:08 AM
Is Tandem.gmf properly compiled?
Title: Re: Sudden Arena Crashing
Post by: G.K. on January 30, 2011, 07:13:47 AM
yeah.
Title: Re: Sudden Arena Crashing
Post by: cephalopod on January 30, 2011, 07:18:31 AM
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?
Title: Re: Sudden Arena Crashing
Post by: G.K. on January 30, 2011, 07:21:33 AM
EDIT: I went back, redid the whole .py exactly the same, and now it's working again... Strange.
Title: Re: Arena Crashing and other troubles - The woes G.K. faced with his latest project
Post by: Serge on January 31, 2011, 02:49:57 PM
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.