iminurnamez / pyroller

pygame casino
65 stars 29 forks source link

Pull #31 - Error when running -S command #32

Closed gimpycoder closed 9 years ago

gimpycoder commented 9 years ago

With this pull request, you cannot jump straight to game with -S argument:

Traceback (most recent call last): File "pyroller.py", line 8, in main() File "/pyroller/data/main.py", line 32, in main run_it.main() File "/pyroller/data/tools.py", line 126, in main self.update(time_delta) File "/pyroller/data/tools.py", line 55, in update self.state.update(self.render_surf,self.keys,self.now,dt,self.scale) File "/pyroller/data/states/keno/main.py", line 69, in update self.persist["music_handler"].update(scale) KeyError: 'music_handler'

It works fine when going through the standard way.

gimpycoder commented 9 years ago

The command used: python3 pyroller.py -S KENO

Mekire commented 9 years ago

Ok. The music handler needs to be created earlier then. I'll look into it.

Mekire commented 9 years ago

Should be working now; I'm looking to clean stuff up a bit still though. Let me know if you have a problem.

gimpycoder commented 9 years ago

Yes, it is now working properly.