JohnathonNow / Bending

A 2D, multiplayer online action game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/quit no longer works

JohnathonNow opened this issue · comments

When issuing the /quit command mid game, rather than restarting with the user back in the main menu, the game closes and reopens in a match connected to a fake server, with the following error log:

Loading BENDING v 2.020.09.17Linux/
null/Bending/maps
null/Bending/maps
Server SERVER started
with address 0.0.0.0
and port 25565com.johnwesthoff.bending.entity.PumpkinEntity
com.johnwesthoff.bending.entity.GuardianEntity
com.johnwesthoff.bending.entity.PumpkinEntity
bb joined with ID 1.
bb joined red
null/Bending/maps
com.johnwesthoff.bending.entity.PumpkinEntity
Feb 03, 2021 11:09:53 PM com.johnwesthoff.bending.util.network.OrderedOutputStream run
SEVERE: null
java.net.SocketException: Socket closed
        at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
        at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:138)
        at com.johnwesthoff.bending.util.network.NetworkMessage.send(NetworkMessage.java:31)
        at com.johnwesthoff.bending.util.network.OrderedOutputStream.run(OrderedOutputStream.java:40)
        at java.base/java.lang.Thread.run(Thread.java:834)

Feb 03, 2021 11:09:53 PM com.johnwesthoff.bending.util.network.OrderedOutputStream run
SEVERE: null
Feb 03, 2021 11:09:54 PM com.johnwesthoff.bending.util.network.OrderedOutputStream run
SEVERE: null
java.net.SocketException: Broken pipe (Write failed)
        at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110)
        at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:138)
        at com.johnwesthoff.bending.util.network.NetworkMessage.send(NetworkMessage.java:31)
        at com.johnwesthoff.bending.util.network.OrderedOutputStream.run(OrderedOutputStream.java:40)
        at java.base/java.lang.Thread.run(Thread.java:834)

Feb 03, 2021 11:09:54 PM com.johnwesthoff.bending.util.network.OrderedOutputStream run
SEVERE: null
java.lang.InterruptedException: sleep interrupted
        at java.base/java.lang.Thread.sleep(Native Method)
        at com.johnwesthoff.bending.Server$1.run(Server.java:147)
null/Bending/maps
Loading BENDING v 2.020.09.17Linux/
java.io.IOException
        at com.johnwesthoff.bending.util.network.OrderedOutputStream.addMessage(OrderedOutputStream.java:62)
        at com.johnwesthoff.bending.spells.Spell.getMessage(Spell.java:232)
        at com.johnwesthoff.bending.spells.chemistry.Chemistry.getAction(Chemistry.java:41)
        at com.johnwesthoff.bending.spells.Spell.cast(Spell.java:304)
        at com.johnwesthoff.bending.logic.ClientInputListener.cast(ClientInputListener.java:108)
        at com.johnwesthoff.bending.logic.ClientInputListener.mouseReleased(ClientInputListener.java:158)
        at java.desktop/java.awt.Component.processMouseEvent(Component.java:6635)
        at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
        at java.desktop/java.awt.Component.processEvent(Component.java:6400)
        at java.desktop/java.awt.Container.processEvent(Container.java:2263)
        at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5011)
        at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
        at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
        at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
        at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
        at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
        at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Feb 03, 2021 11:09:58 PM com.johnwesthoff.bending.ui.AppletActionListener actionPerformed
SEVERE: null
java.io.IOException
        at com.johnwesthoff.bending.util.network.OrderedOutputStream.addMessage(OrderedOutputStream.java:62)
        at com.johnwesthoff.bending.ui.AppletActionListener.actionPerformed(AppletActionListener.java:116)
        at com.johnwesthoff.bending.logic.ClientInputListener.keyReleased(ClientInputListener.java:324)
        at java.desktop/java.awt.Component.processKeyEvent(Component.java:6596)
        at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2849)
        at java.desktop/java.awt.Component.processEvent(Component.java:6412)
        at java.desktop/java.awt.Container.processEvent(Container.java:2263)
        at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5011)
        at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
        at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1950)
        at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:870)
        at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1139)
        at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1009)
        at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:835)
        at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4892)
        at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
        at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Loading BENDING v 2.020.09.17Linux/

This was certainly caused by #52.