PCoelho07 / opennero

Automatically exported from code.google.com/p/opennero
Other
0 stars 0 forks source link

Save and load team will fail if path contains space character #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. fix NERO\module.py as described in issue #113 (otherwise it's impossible to 
save/load team on windows)
2. try to save team to a directory which contains space in it, nero will fail 
to save team and log exception on console:

  File "NERO/main.py", line 17, in ModTick
    NERO.module.parseInput(data.strip())
  File "D:\dev\ai\OpenNERO-2011.12.02-win32\NERO\module.py", line 351, in parseInput
    loc, val = strn.split(' ')
ValueError: too many values to unpack

Workaround is not to use space character in file path.

I'm using:

OpenNERO 2011.12.02
Windows 7 64 bit 
Python 2.7 32 bit (current version of nero doesn't work on 64bit python on 
windows)

Original issue reported on code.google.com by pcze...@gmail.com on 3 Dec 2011 at 6:38

GoogleCodeExporter commented 9 years ago
r1523 should fix this issue (it incorrectly claims to fix 111, but it is 
actually 115)

Original comment by ikarpov on 3 Dec 2011 at 9:21