PiRSquared17 / zildo

Automatically exported from code.google.com/p/zildo
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Exception on restoring game #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version 2.11:

java.lang.RuntimeException: Impossible to replace Zildo !
at zildo.server.MapManagement.arrangeLocation(MapManagement.java:961)
at zildo.client.gui.menu.SaveGameMenu.loadGameFromBuffer(SaveGameMenu.java:176)
at zildo.client.gui.menu.SaveGameMenu.loadGame(SaveGameMenu.java:144)
at zildo.client.gui.menu.SaveGameMenu.access$2(SaveGameMenu.java:141)
at zildo.client.gui.menu.SaveGameMenu$2.run(SaveGameMenu.java:86)
at zildo.client.Client.mainLoop(Client.java:216)
at com.alembrum.OpenGLRenderer.onDrawFrame(OpenGLRenderer.java:105)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1524)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248)

Exception is in a new method added since Issue 59. A player (Ashley) saved her 
game when she was on a case where a pot has been removed. So, when she reloaded 
the game, character was blocked.
Idea was to find a free spot for hero when he was on a colliding case.

No information about the map and precise location, but got to find a way of 
setting hero's location without crash.
==> maybe remove pot/bushes instead of arranging hero's location ?

Original issue reported on code.google.com by tcheg...@gmail.com on 28 Sep 2014 at 9:23

GoogleCodeExporter commented 9 years ago
[2.12]

Now we try to remove any jar/bushes on the case.
Then we try to check increasing radius around hero.

Plus, contextual infos has been added in exception (map name, and exact 
location)

SVN revision: 2061

Original comment by tcheg...@gmail.com on 5 Oct 2014 at 1:05