[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Re: Assembly Line Game



Greg Ewing wrote:
It seemed that I would load and find that my latest factory
had vanished.

That's a bit of a worry -- let me know if you find a
way of reproducing it.

Aha, I think I've located the problem. I tried loading my game just now,
swept up some parts from the factory floor, looked at a few things, then
hit Escape to save. My game was K2.alg, so I clicked on the line saying
"K2", and said yes, I want to overwrite that save. The game quit
unexpectedly, suggesting that it had crashed. Loading again confirmed
that my game had not been saved.

I ran it in a DOS box (I notice that running it in IDLE instead of just
double-clicking on run_game.py crashes with "no module named main"). I
loaded, then tried saving again, and saw this error (abbreviated):

<code>
...in run... handle_mouse... call_handler... mouse_up...
widget.py, line 338, in call_handler...
shell.py, line 124, in save_name
  os.path.basename(new_path), mess))
NameError: global name 'mess' is not defined
</code>

By the way, the Supply Hopper is surreal because it drops material
"down" when other devices assume that the factory floor is horizontal.
How about treating it like the Transverse Saw and making its direction
of output be to the right?