UFO:Alien Invasion

Technical support => Windows => Topic started by: Kaerius on September 05, 2009, 07:30:34 pm

Title: map-get - bad syntax
Post by: Kaerius on September 05, 2009, 07:30:34 pm
Ok... so the documentation for using map-get is non-existant, but it's apparently a python script, so I downloaded python(3.1)... still wasn't making it run, so I opened the python GUI, opened the script in it, and told it to run module... only to run into a syntax error in the script!

Code: [Select]
def run(cmd, mandatory=True):
    print cmd
    if os.system(cmd) and mandatory:
        sys.stderr.write('Faild to run: %s' % cmd)
        sys.exit(2)/code]

It says SyntaxError, invalid syntax, and highlights the "cmd" part.
Title: Re: map-get - bad syntax
Post by: Kildor on September 05, 2009, 07:36:46 pm
Try to use python 2.6, I`m not a python-coder, but I`ve seen a note, «Python 3.1 is a continuation of the work started by Python 3.0, the new backwards-incompatible series of Python.»
Title: Re: map-get - bad syntax
Post by: Kaerius on September 05, 2009, 07:54:17 pm
That did it... now if I could only get ufo2map to compile...