This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not letting my connect when i start game
#1
Hello. So i recently got MegaMek the other day and i noticed that 90% of the time the bot refused to move.  I managed to figure out that it was most likely that i was using the out of date "stable" version. So i got the newest one 0.35.41 and now when i click start a new game it says error could not connect to server at localhost:2346.  I just want to play with the bot.  Im currently in afghanistan on deployment so the free time and time i have it isnt really helpful to try and set up a game with a human player plus the internet is pretty awful. plus if someone could explain how i set it to the princess bot i've seen it mentioned around the forums but now how to do so.  Thank you all.
Reply
#2
Could you attach your logfile?  It should be in logs/megameklog.txt. 
Reply
#3
I'm not sure what's causing your error, but try changing the port to anything else. Randomly pick 4 digits and see what happens. I don't know if it'll help, but try unchecking "Register Game", if you checked it.

Assuming that you can ever get it working, then here's how to use the bot. While you are still at the lobby (the place where you add units, pick your camo, and so on), do the following:

  1. In the left pane, under the "Player Setup" area, click "Add Bot". The "Configure Bot" window displays.

  2. Click the "Princess" radio button. Several options related to the Princess bot display.

  3. If you want to change any of the bot's options, do so now. For basic games, the only option you might want to change is the "Aggression" slider. Moving the slider to the left makes the bot tend to stay away from you, seek cover whenever possible, and fire from long range. Moving the slider to the right makes the bot tend to charge into point blank range whenever possible and attack from close range. You also might want to change the bot's name in the "Name" field at the bottom. That's the name of the bot player that displays in the game, by which by default is "Princess".

  4. Click "Okay". The "Configure Bot" window closes, and the bot is added to the list of players in the lower left pane.

  5. Select the bot by clicking on the bot's name in the player list. Now, you can add units to the bot, or change any of the bot's parameters (starting location, camo, the team its on, etc.). You do all of this the same way that you change these things for yourself, except that you just have to make sure that you have the bot's name highlighted in the player list. Each time you change something or add units, the bot's name becomes not highlighted, so you have to click on the bot's name again after each change. When no names are highlighted, then by default any changes are made to your player.

  6. Repeat this procedure for each bot that you want to add.

Reply
#4
Today is Tue Sep 24 06:48:37 PDT 2013
Java vendor Oracle Corporation
Java version 1.7.0_25
Platform Windows 8 6.2 (amd64)
Total memory available to MegaMek: 466,048 kB

Starting GUI swing. args: []

Reading unit files:
  Reading from unit cache file...
  Looking in data\mechfiles...
  Looking in zip file data\mechfiles\battlearmor.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\convfighter.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\dropships.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\fighters.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\ge.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\infantry.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\jumpships.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\mechs.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\protomechs.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\smallcraft.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\spacestation.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\unofficial.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\vehicles.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\warship.zip...
  ...loaded 0 files.
  ...loaded 0 files.
6173 units loaded.
MMRandom: generating RNG type #1
s: starting a new server...
s: hostname = 'Skynet' port = 2346
s: hosting on address = 10.161.0.162
s: hosting on address = fe80:0:0:0:1c84:5803:5420:c665%12
s: hosting on address = fe80:0:0:0:30b0:7f3:f55e:ff5d%19
s: hosting on address = 2001:0:9d38:953c:30b0:7f3:f55e:ff5d
s: password = null
s: listening for clients...
Loading more unit images from localserver_mechset.txt...
Loading more unit images from localclient_mechset.txt...
... finished localclient_mechset.txt.
... finished localserver_mechset.txt.
Loading more unit images from localclient_wreckset.txt...
... finished localclient_wreckset.txt.
hexTileset: loaded 163 base images
hexTileset: loaded 1871 super images
hexTileset: loaded 64 ortho images
java.lang.NullPointerException
at megamek.common.net.AbstractConnection.getInputStream(AbstractConnection.java:421)
at megamek.common.net.DataStreamConnection.readNetworkPacket(DataStreamConnection.java:74)
at megamek.common.net.AbstractConnection.update(AbstractConnection.java:447)
at megamek.client.Client.updateConnection(Client.java:225)
at megamek.client.Client$2.run(Client.java:204)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at javax.swing.JOptionPane.showOptionDialog(Unknown Source)
at javax.swing.JOptionPane.showMessageDialog(Unknown Source)
at javax.swing.JOptionPane.showMessageDialog(Unknown Source)
at megamek.client.ui.swing.MegaMekGUI.host(MegaMekGUI.java:360)
at megamek.client.ui.swing.MegaMekGUI$5.actionPerformed(MegaMekGUI.java:913)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
c: error reading command: null
    Last 50 commands that were sent (oldest first): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

    Last 50 commands that were received (oldest first): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Contents of Send Queue:

c:Contents of Send Queue:
java.lang.NullPointerException
at megamek.common.net.AbstractConnection.getInputStream(AbstractConnection.java:421)
at megamek.common.net.DataStreamConnection.readNetworkPacket(DataStreamConnection.java:74)
at megamek.common.net.AbstractConnection.update(AbstractConnection.java:447)
at megamek.client.Client.updateConnection(Client.java:225)
at megamek.client.Client$2.run(Client.java:204)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at javax.swing.JOptionPane.showOptionDialog(Unknown Source)
at javax.swing.JOptionPane.showMessageDialog(Unknown Source)
at javax.swing.JOptionPane.showMessageDialog(Unknown Source)
at megamek.client.ui.swing.MegaMekGUI.host(MegaMekGUI.java:360)
at megamek.client.ui.swing.MegaMekGUI$5.actionPerformed(MegaMekGUI.java:913)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
c: error reading command: null
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  "Connect to Game" window bugged TheVenge 4 271 08-02-2020, 07:41 PM
Last Post: TheVenge
  Other players cannot connect to me Hakkonen 1 224 05-23-2020, 08:13 PM
Last Post: rjhancock
  Other people can't connect to your server? Read here. BeeRockxs 26 14,546 06-24-2018, 03:48 PM
Last Post: Hammer
  I can't start a game :( iampoch 11 5,762 08-30-2012, 03:51 PM
Last Post: Waffles
  Error, could not connect to server bento 1 1,404 03-05-2012, 12:09 PM
Last Post: ralgith
  Other cant connect Grosnounou 15 4,584 01-24-2012, 11:24 PM
Last Post: Xenon54z
  Can't Connect Online Sandstorm 2 2,623 02-23-2011, 05:45 PM
Last Post: Taharqa

Forum Jump:


Users browsing this thread: 1 Guest(s)