fogleman / Minecraft

Simple Minecraft-inspired program using Python and Pyglet
MIT License
5.25k stars 1.24k forks source link

ConfigParser.NoSectionError: No section: 'Controls' #37

Closed embatbr closed 11 years ago

embatbr commented 11 years ago

Does anyone else got this error? Aparently this section 'Controls' is being used but don't exist. Below is the terminal message:

Traceback (most recent call last): File "main.py", line 1207, in main(options) File "main.py", line 1171, in main resizable=True, save=save_object, vsync=False) File "main.py", line 633, in init self.key_move_forward = config.getint('Controls', 'move_forward') File "/usr/lib/python2.7/ConfigParser.py", line 359, in getint return self._get(section, int, option) File "/usr/lib/python2.7/ConfigParser.py", line 356, in _get return conv(self.get(section, option)) File "/usr/lib/python2.7/ConfigParser.py", line 607, in get raise NoSectionError(section) ConfigParser.NoSectionError: No section: 'Controls'

BertrandBordage commented 11 years ago

The config file is now ~/.pyCraftr/game.cfg. Removing it will fix the problem.

(And here is the original repository, not boskee's [I know, issues are disabled…])

embatbr commented 11 years ago

I got it. This part of the config file will be improved yet? And why in the home and not in the own game's folder?

BertrandBordage commented 11 years ago

Dunno. Probably because each computer user want to have its own settings.

fogleman commented 11 years ago

Not relevant to master.