boskee / Minecraft

Simple Minecraft-inspired program using Python and Pyglet
MIT License
207 stars 33 forks source link

World saves/reload #43

Closed tfaris closed 11 years ago

tfaris commented 11 years ago

Even on newly generated worlds, I can't load in world saves:

File "_ctypes/callbacks.c", line 314, in 'calling callback function' File "build\bdist.win32\egg\pyglet\window\win32init.py", line 849, in _wnd_proc

File "build\bdist.win32\egg\pyglet\window\win32init.py", line 1027, in _event_lbuttondown

File "build\bdist.win32\egg\pyglet\window\win32init.py", line 1021, in _event_mousebutton

File "build\bdist.win32\egg\pyglet\windowinit.py", line 1219, in dispatch_event

File "build\bdist.win32\egg\pyglet\event.py", line 343, in dispatch_event File "build\bdist.win32\egg\pyglet\event.py", line 370, in _raise_dispatch_exception File "C:\Python27\lib\inspect.py", line 815, in getargspec raise TypeError('{!r} is not a Python function'.format(func)) TypeError: <cyfunction MainMenuController.on_mouse_press at 0x055453F8> is not a Python function Traceback (most recent call last): File "F:\src\github\tfaris\Minecraft\main.py", line 220, in main(options) File "F:\src\github\tfaris\Minecraft\main.py", line 179, in main pyglet.app.run() File "build\bdist.win32\egg\pyglet\appinit.py", line 264, in run

File "build\bdist.win32\egg\pyglet\app\win32.py", line 74, in run File "build\bdist.win32\egg\pyglet\app\win32.py", line 84, in _timer_func File "build\bdist.win32\egg\pyglet\appinit.py", line 187, in idle

File "build\bdist.win32\egg\pyglet\clock.py", line 700, in tick File "build\bdist.win32\egg\pyglet\clock.py", line 303, in tick File "F:\src\github\tfaris\Minecraft\main.py", line 80, in update self.controller.update(dt) File "controllers.py", line 122, in controllers.GameController.update (controllers.c:4085) sector = sectorize(self.player.position) AttributeError: 'GameController' object has no attribute 'player'

Anyone else? I'm on 3dd1b4926b10eafe568ae6cff0e497bb70fdbf87

boskee commented 11 years ago

This is fixed by b6e074b8b1a83d9d4a6a0db43f18d012a87f3ea7

Make sure you remove your old saves before trying again