Games in Progress: 3 | Players logged in: 3 | Players Registered: 37413 | Games Played Total: 68649
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Just visiting, involuntarily [SOLVED]  (Read 2577 times)
fank1
Mule Forum Newbie
*
Posts: 7


View Profile
« on: January 27, 2010, 18:34 »

A solution has been found. See http://www.planetmule.com/forum?topic=642.msg6842#msg6842

Since upgrading to 1.2.3 I cannot play anymore. Before upgrading, I only played offline (which worked well) and did not try online yet, but now, neither online nor offline play works with my setup. The attached log is from starting an offline game.

As soon as the screen where I press 'J', 'U' and/or 'A' appears, one of my two CPUs is permanently at 100%, which are used up by Java. The reason I cannot add myself to the game seems to be that to the program I am a visitor, as is displayed in the attached screenshot.

I do not know if these two issues are related, but that could be since they come up at the same time. Also, while connected to the master server I get the same behavior as when I'm offline. I'll be happy to provide more info if that helps understanding my problem.


  INFO [Properties.<init>]                           VERSION: 1.2.3
  INFO [Properties.<init>]                           Classpath: ./data.jar
  INFO [Properties.<init>]                           Java VM: 14.2-b01
  INFO [Properties.<init>]                           Java Runtime: 1.6.0_16-b01
  INFO [Properties.<init>]                           OS: Linux 2.6.31-18-generic i386
  INFO [Properties.<init>]                           Java Library Path: lib
  INFO [Properties.<init>]                           Max Memory: 258539520
  INFO [Properties.<init>]                           Avaialble Processors: 2
  INFO [PropertiesBase.readFromFile]                 Reading Settings from file settings.txt
  INFO [Settings.<init>]                             Settings file not found: settings.txt (No such file or directory)
  INFO [SubstanceLoader.initLookAndFeel]             Window Skin: Default
  INFO [MasterClient.close]                          MasterServer: Closing...
  INFO [MasterClient.close]                          MasterServer: Closed (28ms)
  INFO [MetaFrame.<init>]                            Creating Meta Frame
  INFO [MapSkinParser.findSkins]                     No extra skins found
  INFO [MasterClient.logSend]                        MasterClient: Sending Enter Lobby
  INFO [Login.dispose]                               Disposing login
  INFO [Main.main]                                   Creating game container
  INFO [MuleGameContainer.<init>]                    LWJGL Version: 2.2.1
  INFO [MuleGameContainer.<init>]                    Desktop Display Mode: 1280 x 800 x 24 @50Hz
  INFO [MuleGameContainer.<init>]                    Current Display Mode: 1280 x 800 x 24 @50Hz
  INFO [MuleGameContainer.<init>]                    Display Adapter: null
  INFO [MuleGameContainer.<init>]                    Display Driver: null
  INFO [MuleGameContainer.setVSync]                  Setting vsync: true
  INFO [MuleGameContainer.<init>]                    Setting pixel format
  INFO [MuleGameContainer$1.run]                     Pixel format: Samples=0 Alpha=0 Depth=8 Stencil=0
  INFO [SlickLogSystem.info]                         Use Java PNG Loader = true
  INFO [MuleGameContainer.<init>]                    Display finished
  INFO [SettingsDialog.applySettings]                Changing map skin to default
  INFO [Main.main]                                   Entering game loop
++++++++ END OF INITIALIZATION +++++++++++++++++++++++++++++++++++++++++++
  INFO [MetaFrame.startGame]                         Starting game number 0
  INFO [MuleGameContainer.init]                      *** Starting Game ***
  INFO [MuleGameContainer.init]                      Display: Created=true Active=false Visible=true
  INFO [MuleGameContainer.init]                      Making display the current GL context
  INFO [View.<init>]                                 Creating view...
  INFO [SlickLogSystem.info]                         Initialising sounds..
  INFO [SlickLogSystem.info]                         - Sound works
  INFO [SlickLogSystem.info]                         - 64 OpenAL source available
  INFO [SlickLogSystem.info]                         - Sounds source generated
  INFO [View.<init>]                                 Finished creating view
  INFO [GameController.setModel]                     ++++++++ New Model: CONNECT #0 +++++++++++++++++++++++++++++++++++++++++++
  INFO [Server.<init>]                               Server: Creating
  INFO [Server.<init>]                               Server: Started on TCP address /0:0:0:0:0:0:0:0:6260
  INFO [Server.<init>]                               Server: Started on UDP address /0:0:0:0:0:0:0:0:6260
  INFO [Client.connect]                              Client connects...
  INFO [Client.connect]                              Client UDP local address: 0.0.0.0/0.0.0.0:6261
  INFO [Client.connect]                              Client: Connects TCP: /127.0.0.1:6260 UDP: /127.0.0.1:6260
  INFO [Client.connect]                              Client: TCP receive buffer: 43690 send buffer: 8192
  INFO [Server.acceptClients]                        Server: Accepted client /127.0.0.1 id 49afb6e8-08f6-4aed-a97e-014433394fd3
  INFO [Client.finishConnect]                        Client finishes connection
  INFO [ServerMessageHandler.processJoin]            Server: Client /127.0.0.1 <S10> joins
  INFO [MuleGameContainer.setWindowedMode]           Setting windowed mode: 640 x 480 x 0 @0Hz
  INFO [Client.receiveTCPMessages]                   Client: ServerInfo (0) 35 bytes
  INFO [Client.receiveTCPMessages]                   Client: Join (10) 32 bytes
  INFO [UserController.apply]                        My client id is 49afb6e8-08f6-4aed-a97e-014433394fd3
  INFO [Player.<init>]                               Creating (P0) Spectator
  INFO [GameModel.setMyUser]                         (S10) fank1 is my user
  INFO [GameModel.setLocalUser]                      (S10) fank1 is a local Spectator
  INFO [GameModel.setServerUser]                     (S10) fank1 is hosting the server
  INFO [GameController.beginNextPhase]               (S10) fank1 is not accepted
  INFO [GameController.beginNextPhase]               --------- GAME_LOBBY #0 --------------------------------------------------------
  INFO [Server.acceptClientJoin]                     Server: Join accepted for /127.0.0.1 <S10>
  INFO [Server.logRoundtrip]                         Roundtrips: <S10> 0ms
  INFO [Client.logRoundtripTime]                     Client: Roundtrip time is 0 ms
  INFO [Client.initUDP]                              Sending UDP initialization message id 49afb6e8-08f6-4aed-a97e-014433394fd3
  INFO [Server.initUdp]                              Server: Client /127.0.0.1 <S10> requests UDP address /127.0.0.1:6261
  INFO [MetaFrame$16.windowClosing]                  Meta frame closing
  INFO [MuleGameContainer.logSkippedFrames]          Skipped frames: 63
  INFO [MuleGameContainer.release]                   Closing game.
  INFO [GameController.close]                        -------- CLOSING GAME CONTROLLER ----------------------------------
  INFO [Client.receiveTCPMessages]                   Client: UserLeft (10) 0 bytes
  INFO [GameController.close]                        Got my UserLeft (10) message.
  INFO [Server.removeClient]                         Server: Removing client /127.0.0.1 <S10> with id 49afb6e8-08f6-4aed-a97e-014433394fd3
  INFO [ConnectedClient.removeUser]                  Server: Removing user 10 from /127.0.0.1 <S10>
  INFO [Server.sendMessages]                         Server: Closing connection to removed client /127.0.0.1 <>
  INFO [GameController.close]                        Left server in 3 ms
  INFO [Server.close]                                Server: Closing
  INFO [MuleGameContainer.release]                   *** Game Over ***
  INFO [Main.main]                                   Leaving game loop
  INFO [MetaFrame$16.windowClosing]                  Meta frame closing done
  INFO [MetaFrame$16.windowClosing]                  User closes meta frame again.
  INFO [MetaFrame$16.windowClosing]                  User closes meta frame again.


EDIT: Also, text input I type into the chat field is only partially displayed (many letters are left out), like the program skips some of my input.

EDIT: A solution has been found. See http://www.planetmule.com/forum?topic=642.msg6842#msg6842
« Last Edit: February 15, 2011, 09:12 by fank1 » Logged
Peter
Turborilla
Administrator
Mule Expert
*****
Posts: 379


Planet M.U.L.E. Team


View Profile WWW
« Reply #1 on: January 28, 2010, 08:49 »

I don't see anything wrong in your log. Some questions: Are you using Java downloaded from Sun? What linux distribution do you use? Have you tried closing all other programs running in the background?
Logged

fank1
Mule Forum Newbie
*
Posts: 7


View Profile
« Reply #2 on: January 28, 2010, 10:40 »

I seem to have two JREs installed, the package names are sun-java6-jre and openjdk-6-jre. Is there a way of telling which one of them the program is using?

I use Ubuntu 9.10.

Closing programs in the background helped -- I had Firefox and evince running, after closing them the CPU did not go haywire anymore when reaching the J U A screen and I could input chat messages normally.

The other problem persists, however, and prevents me from joining games. Could there be a configuration switch which always makes me a visitor, perhaps?
Logged
Peter
Turborilla
Administrator
Mule Expert
*****
Posts: 379


Planet M.U.L.E. Team


View Profile WWW
« Reply #3 on: January 29, 2010, 09:26 »

Have you clicked on the game screen so that the message "click here or press escape..." disappeard? It's only possible to press J and join after you have focused the game screen.

On Linux the game will first try to find java in /usr/lib/jvm/java-6-sun. Otherwise it will read your environment variable $JAVA_HOME which you should set to your sun-java6-jre path. You can type "echo $JAVA_HOME" in a terminal to see which of the versions you are using.
Logged

fank1
Mule Forum Newbie
*
Posts: 7


View Profile
« Reply #4 on: January 29, 2010, 11:05 »

Yes, clicking on the game screen works, the message disappears. But the game does not react to 'J' nor 'A'. I did play the game successfully before (offline), but something seems to have changed. I would have said it is my router settings (I enabled port forwarding for the required port since successfully playing the game), but offline play does not work, so I guess that cannot be it.

Is one usually able to join a game if one's status is that of a visitor? Like in my case, as seen on the above screenshot (where I only unfocussed the game to be able to make the screenshot)?

$JAVA_HOME is empty, but the game uses Java from Sun, which is installed in the default directory. It is the only Java running after I start the game.
Logged
Peter
Turborilla
Administrator
Mule Expert
*****
Posts: 379


Planet M.U.L.E. Team


View Profile WWW
« Reply #5 on: February 01, 2010, 09:03 »

Yes pressing J as a visitor should make you join the game. This is a tough problem, I can't replicate the issue and I don't know what the cause could be.
« Last Edit: February 01, 2010, 09:07 by Peter » Logged

fank1
Mule Forum Newbie
*
Posts: 7


View Profile
« Reply #6 on: February 01, 2010, 09:26 »

Thanks for trying. Let's hope it is something intricate with my personal setup, so nobody else encounters that problem.

I'll try out new versions as they come and be sure to report as soon as the game works again.

Until then, I think I'll install Planet M.U.L.E. under Windows. Games are the only reason I keep Windows on my hard drive, anyway ;-)
Logged
shihan
Mule Forum Newbie
*
Posts: 4


View Profile
« Reply #7 on: February 01, 2010, 16:51 »

I've have the exact same problem myself (and never had a working version)... i've tried it with several different versions of mule (1.1.1, 1.2.0 and 1.2.3 are in my download area and i just tried those again, all of them do the same thing).

Im on ubuntu 9.10 with nvidia 190 drivers (i originally upgraded to the 190 drivers because this problem).

there was another post lying around about this too... http://www.planetmule.com/forum?topic=439.msg2149#msg2149

Im using sun java... though i've tried different versions without much luck... Chat works, just cant join/add ai at all.

Also worth pointing out that when i go to the settings dialog, i cant change the bound keys either. Maybe its a locale/input problem? UPDATE - actually, i just realised that unless i move out of the box where the key is typed, it doesnt actually update the key (so user problem). Though, thats the least of my problems really  Grin.
« Last Edit: February 02, 2010, 02:07 by shihan » Logged
fank1
Mule Forum Newbie
*
Posts: 7


View Profile
« Reply #8 on: February 01, 2010, 16:56 »

I'm still using the 185 drivers. So updating to 190 does not solve the problem?

Also, closing the background programs did only work that one time, in my recent tests, the CPU went to 100% and the program was uncloseable again.
Logged
shihan
Mule Forum Newbie
*
Posts: 4


View Profile
« Reply #9 on: February 02, 2010, 03:53 »

I certainly had no luck with the 190 drivers myself... you might?

it may be something querky with my particularly hardware... either way though, i've pretty much given up... i've been at it trying to get the thing to work on and off for about a month and its just too frustrating. I have tried so many different combinations of software versions between nvidia, mule and java its just rediculous. Normally it doesnt take me too long to figure out what might be wrong with something (even if i cant fix it)... but this one is just impossible and i'm kinda sick of reading output of things like strace and the like.
Logged
fank1
Mule Forum Newbie
*
Posts: 7


View Profile
« Reply #10 on: February 15, 2011, 09:10 »

I found a solution for my problem while experiencing similar issues with Minecraft. There is some incompatibility between ibus-daemon and java while using Ubuntu (I use Sun Java, but I think with Icedtea it is the same). I just didn't see the link between beginning to type Chinese regularly and Planetmule ceasing to work at that time :-)

A workaround is:

Code:
killall ibus-daemon
to kill ibus-daemon using a terminal

play the game

when you are done playing

Code:
ibus-daemon -d &
to restart ibus-daemon as a background process using a terminal

Finally I can play again :-)

EDIT: added '&' to the ibus-daemon start command -- otherwise ibus-daemon will not work as it did before the kill
« Last Edit: February 15, 2011, 09:48 by fank1 » Logged
Pages: [1]
  Print  
 
Jump to: