mabre / team61

Other
2 stars 4 forks source link

Maze has to be repaired (was: Broken Networkgame?) #94

Closed Kegny closed 10 years ago

Kegny commented 10 years ago

When I wanted to test out, if I got my Stuff Network-ready, I cannot start a Network-game.

Due to "Warning 0 teams exist". Assuming I fucked up, I checked out the most recent masterbranch and get the exact same problem.

Log from Master(Host): CLIENT RECEIVED: SUBMITNAME CLIENT id: client122867 / A SERVER: asked for id and name SERVER: connection accepted CLIENT RECEIVED: NAMEACCEPTED CLIENT: connected CLIENT send: client122867 GET_STATUS CLIENT RECEIVED: COMMAND SPECTATOR_LIST {"spectators":[{"name":"A","team":"Team 1 (Host)"}]} SERVER sent command to client122867/A: COMMAND SPECTATOR_LIST {"spectators":[{"name":"A","team":"Team 1 (Host)"}]} Levels found: [Maze.lvl, Flat.lvl, High.lvl, Cave.lvl, BoardSmall.lvl, IceWorld.lvl, Board.lvl] Levels found: [Maze.lvl, Flat.lvl, High.lvl, Cave.lvl, BoardSmall.lvl, IceWorld.lvl, Board.lvl] CLIENT RECEIVED: STATUS LOBBY {"team-size":"4","teams":[{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"ready","name":"Avengers"}],"numberOfTeams":"2","teamsCreated":1,"weapons":[{"weapon1":50},{"weapon2":50},{"weapon3":50},{"weapon4":50}]} SERVER: asked for id and name SERVER: connection accepted CLIENT RECEIVED: COMMAND SPECTATOR_LIST {"spectators":[{"name":"A","team":"Team 1 (Host)"},{"name":"B","team":"Spectator"}]} SERVER sent command to client122867/A: COMMAND SPECTATOR_LIST {"spectators":[{"name":"A","team":"Team 1 (Host)"},{"name":"B","team":"Spectator"}]} SERVER sent command to client698937/B: COMMAND SPECTATOR_LIST {"spectators":[{"name":"A","team":"Team 1 (Host)"},{"name":"B","team":"Spectator"}]} server handling command in lobby: client698937 SPECTATOR UNCHECKED -1 handleSpectatorBoxChanged: current number of teams: 1 client698937/B associated with team 1 SERVER sent command to client122867/A: COMMAND SPECTATOR_LIST {"spectators":[{"name":"A","team":"Team 1 (Host)"},{"name":"B","team":"Team 2"}]} SERVER sent command to client698937/B: COMMAND SPECTATOR_LIST {"spectators":[{"name":"A","team":"Team 1 (Host)"},{"name":"B","team":"Team 2"}]} SERVER sent command to client122867/A: COMMAND STATUS LOBBY {"team-size":"4","teams":[{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"ready","name":"Avengers"},{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"not ready","name":"Avengers"}],"numberOfTeams":"2","teamsCreated":2,"map":"Maze.lvl","weapons":[{"weapon1":50},{"weapon2":50},{"weapon3":50},{"weapon4":50}]} SERVER sent command to client698937/B: COMMAND STATUS LOBBY {"team-size":"4","teams":[{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"ready","name":"Avengers"},{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"not ready","name":"Avengers"}],"numberOfTeams":"2","teamsCreated":2,"map":"Maze.lvl","weapons":[{"weapon1":50},{"weapon2":50},{"weapon3":50},{"weapon4":50}]} CLIENT RECEIVED: COMMAND SPECTATOR_LIST {"spectators":[{"name":"A","team":"Team 1 (Host)"},{"name":"B","team":"Team 2"}]} CLIENT RECEIVED: COMMAND STATUS LOBBY {"team-size":"4","teams":[{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"ready","name":"Avengers"},{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"not ready","name":"Avengers"}],"numberOfTeams":"2","teamsCreated":2,"map":"Maze.lvl","weapons":[{"weapon1":50},{"weapon2":50},{"weapon3":50},{"weapon4":50}]} server handling command in lobby: client698937 SPECTATOR UNCHECKED 1 handleSpectatorBoxChanged: current number of teams: 2 ERROR: Team requested, but already in team 1 server handling command in lobby: READY 1 {"team-size":"4","teams":[{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"ready","name":"Avengers"},{"figure":"Penguin","color":"#1E911E","figure-names":[{"figure":"Hasselbalch"},{"figure":"Heisenberg"},{"figure":"Curie"},{"figure":"Einstein"},{"figure":"Hägg"},{"figure":"Volhard"}],"ready":"not ready","name":"Quaternionen"}],"numberOfTeams":"2","teamsCreated":2,"map":"Maze.lvl","weapons":[{"weapon1":50},{"weapon2":50},{"weapon3":50},{"weapon4":50}]} removing team #0 removing team #1 WARNING 0 teams exist, hence cannot remove team #2 WARNING 0 teams exist, hence cannot remove team #3 CLIENT RECEIVED: COMMAND STATUS LOBBY {"team-size":"4","teams":[{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"ready","name":"Avengers"},{"figure":"Penguin","color":"#1E911E","figure-names":[{"figure":"Hasselbalch"},{"figure":"Heisenberg"},{"figure":"Curie"},{"figure":"Einstein"},{"figure":"Hägg"},{"figure":"Volhard"}],"ready":"not ready","name":"Quaternionen"}],"numberOfTeams":"2","teamsCreated":2,"map":"Maze.lvl","weapons":[{"weapon1":50},{"weapon2":50},{"weapon3":50},{"weapon4":50}]} SERVER sent command to client122867/A: COMMAND STATUS LOBBY {"team-size":"4","teams":[{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"ready","name":"Avengers"},{"figure":"Penguin","color":"#1E911E","figure-names":[{"figure":"Hasselbalch"},{"figure":"Heisenberg"},{"figure":"Curie"},{"figure":"Einstein"},{"figure":"Hägg"},{"figure":"Volhard"}],"ready":"not ready","name":"Quaternionen"}],"numberOfTeams":"2","teamsCreated":2,"map":"Maze.lvl","weapons":[{"weapon1":50},{"weapon2":50},{"weapon3":50},{"weapon4":50}]} SERVER sent command to client698937/B: COMMAND STATUS LOBBY {"team-size":"4","teams":[{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"ready","name":"Avengers"},{"figure":"Penguin","color":"#1E911E","figure-names":[{"figure":"Hasselbalch"},{"figure":"Heisenberg"},{"figure":"Curie"},{"figure":"Einstein"},{"figure":"Hägg"},{"figure":"Volhard"}],"ready":"not ready","name":"Quaternionen"}],"numberOfTeams":"2","teamsCreated":2,"map":"Maze.lvl","weapons":[{"weapon1":50},{"weapon2":50},{"weapon3":50},{"weapon4":50}]} Team #1 is ready CLIENT RECEIVED: COMMAND STATUS LOBBY {"team-size":"4","teams":[{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"ready","name":"Avengers"},{"figure":"Penguin","color":"#1E911E","figure-names":[{"figure":"Hasselbalch"},{"figure":"Heisenberg"},{"figure":"Curie"},{"figure":"Einstein"},{"figure":"Hägg"},{"figure":"Volhard"}],"ready":"ready","name":"Quaternionen"}],"numberOfTeams":"2","teamsCreated":2,"map":"Maze.lvl","weapons":[{"weapon1":50},{"weapon2":50},{"weapon3":50},{"weapon4":50}]} SERVER sent command to client122867/A: COMMAND STATUS LOBBY {"team-size":"4","teams":[{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"ready","name":"Avengers"},{"figure":"Penguin","color":"#1E911E","figure-names":[{"figure":"Hasselbalch"},{"figure":"Heisenberg"},{"figure":"Curie"},{"figure":"Einstein"},{"figure":"Hägg"},{"figure":"Volhard"}],"ready":"ready","name":"Quaternionen"}],"numberOfTeams":"2","teamsCreated":2,"map":"Maze.lvl","weapons":[{"weapon1":50},{"weapon2":50},{"weapon3":50},{"weapon4":50}]} SERVER sent command to client698937/B: COMMAND STATUS LOBBY {"team-size":"4","teams":[{"figure":"Penguin","color":"#FFCC66","figure-names":[{"figure":"Thor"},{"figure":"Hulk"},{"figure":"Iron Man"},{"figure":"Black Widow"},{"figure":"Hawkeye"},{"figure":"Captain America"}],"ready":"ready","name":"Avengers"},{"figure":"Penguin","color":"#1E911E","figure-names":[{"figure":"Hasselbalch"},{"figure":"Heisenberg"},{"figure":"Curie"},{"figure":"Einstein"},{"figure":"Hägg"},{"figure":"Volhard"}],"ready":"ready","name":"Quaternionen"}],"numberOfTeams":"2","teamsCreated":2,"map":"Maze.lvl","weapons":[{"weapon1":50},{"weapon2":50},{"weapon3":50},{"weapon4":50}]} Network-GameSettings: saved settings Exception in thread "JavaFX Application Thread" de.hhu.propra.team61.io.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1] at de.hhu.propra.team61.io.json.JSONTokener.syntaxError(JSONTokener.java:428) at de.hhu.propra.team61.io.json.JSONObject.(JSONObject.java:190) at de.hhu.propra.team61.io.json.JSONObject.(JSONObject.java:317) at de.hhu.propra.team61.io.Json.getFromFile(Json.java:50) at de.hhu.propra.team61.io.TerrainManager.load(TerrainManager.java:41) at de.hhu.propra.team61.MapWindow.(MapWindow.java:117) at de.hhu.propra.team61.gui.NetLobby$4.handle(NetLobby.java:229) at de.hhu.propra.team61.gui.NetLobby$4.handle(NetLobby.java:213) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49) at javafx.event.Event.fireEvent(Event.java:204) at javafx.scene.Node.fireEvent(Node.java:8175) at javafx.scene.control.Button.fire(Button.java:185) at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182) at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96) at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89) at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54) at javafx.event.Event.fireEvent(Event.java:204) at javafx.scene.Scene$MouseHandler.process(Scene.java:3746) at javafx.scene.Scene$MouseHandler.access$1800(Scene.java:3471) at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1695) at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2486) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:314) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:243) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:345) at com.sun.glass.ui.View.handleMouseEvent(View.java:526) at com.sun.glass.ui.View.notifyMouse(View.java:898) at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) at com.sun.glass.ui.gtk.GtkApplication.access$200(GtkApplication.java:48) at com.sun.glass.ui.gtk.GtkApplication$6$1.run(GtkApplication.java:149) at java.lang.Thread.run(Thread.java:745)

Process finished with exit code 137

mabre commented 10 years ago

No network related problem. Maze (which was already more or less unplayable befoe) has not been ported to json yet.

Kegny commented 10 years ago

I thought all maps have been ported to JSON, anyway thanks. This solved all problems not caused by my changes

mabre commented 10 years ago

Oh, we already have #66 for repairing maze. Closing this again.