Would you like to react to this message? Create an account in a few clicks or log in to continue.

Official Community Forums
 
HomeHome  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  The Wiki  Website  github Project  

 

 Logging out from current world

Go down 
3 posters
AuthorMessage
rotello
Super Contributor
Super Contributor
rotello


Posts : 215
Join date : 2012-12-06

Logging out from current world Empty
PostSubject: Logging out from current world   Logging out from current world EmptySat 9 Mar - 12:02

I've been playing around with the Mars slash/standard commands for a while and I noticed that there is a log out feature. When I tried to activate it by typing '/logout' nothing happens. The '/quit' works fine though..

Is this feature working or is there another way to log out from world and back to the character select screen?
Back to top Go down
tichfuie
Super Contributor
Super Contributor
tichfuie


Posts : 257
Join date : 2013-02-07
Location : NA

Logging out from current world Empty
PostSubject: Re: Logging out from current world   Logging out from current world EmptySun 10 Mar - 13:36

yup, confirmed, it is bugged.

been trying to trace the code to the server but so far no luck to see what it does
Back to top Go down
rotello
Super Contributor
Super Contributor
rotello


Posts : 215
Join date : 2012-12-06

Logging out from current world Empty
PostSubject: Re: Logging out from current world   Logging out from current world EmptySun 10 Mar - 14:43

Thanks for that confirmation tichfuie. I'm sure there is a workaround on this.

Submitted the bug here..

http://www.javaforge.com/tracker/189954

I'm sure this is relevant as standard MMOs needs to logout (not quit) somehow while playing or died from game.
Back to top Go down
rotello
Super Contributor
Super Contributor
rotello


Posts : 215
Join date : 2012-12-06

Logging out from current world Empty
PostSubject: Re: Logging out from current world   Logging out from current world EmptyMon 11 Mar - 9:22

Just found out that this feature is ignored by server..

http://www.multiversemmo.com/site/w/index.php/Client_Commands



Last edited by rotello on Mon 11 Mar - 20:37; edited 1 time in total
Back to top Go down
tichfuie
Super Contributor
Super Contributor
tichfuie


Posts : 257
Join date : 2013-02-07
Location : NA

Logging out from current world Empty
PostSubject: Re: Logging out from current world   Logging out from current world EmptyMon 11 Mar - 16:39

I wonder why.


maybe the actual code is commented out, or maybe is not yet implemented.


I havent dug into the code close yet.


let me know if you find something
Back to top Go down
rotello
Super Contributor
Super Contributor
rotello


Posts : 215
Join date : 2012-12-06

Logging out from current world Empty
PostSubject: Re: Logging out from current world   Logging out from current world EmptyMon 11 Mar - 20:59

I have checked out some part of the Java server side code. There is one Logout section but pointing to the Group features..

I do think it's time to fill out some posts in the Collab section to get this and other things rolling.. Rolling Eyes
Back to top Go down
Delurin
Head of Platform Development
avatar


Posts : 424
Join date : 2011-08-03

Logging out from current world Empty
PostSubject: Re: Logging out from current world   Logging out from current world EmptyTue 12 Mar - 5:40

It looks like they originally intended the quit command to exit the client and the logout command to return to the character selection page but they never did anything with it. You can change it to quit the game easily in MarsStandardCommands.py by replaceing ClientAPI.Network.SendLogoutMessage() to ClientAPI.Exit()
If you want to return to the character selection page you are going to have to do a lot more work... I havent actually looked into what it would take to get it up and running.
Back to top Go down
rotello
Super Contributor
Super Contributor
rotello


Posts : 215
Join date : 2012-12-06

Logging out from current world Empty
PostSubject: Re: Logging out from current world   Logging out from current world EmptyWed 13 Mar - 12:52

Hey Delurin,

Yes, already tried that exit() method but with our project, we're trying to have a lobby of some sort where players can get a timeout or arrange their stuff/inventory. It's too bad this feature has a dead end, and yes it looks like there's more work to be done on this.

Thanks.
Back to top Go down
tichfuie
Super Contributor
Super Contributor
tichfuie


Posts : 257
Join date : 2013-02-07
Location : NA

Logging out from current world Empty
PostSubject: Re: Logging out from current world   Logging out from current world EmptySun 17 Mar - 5:46

also client keeps simulating connection to the server even after server is shutdown.
needs some sort of server disconnected message to he client
Back to top Go down
rotello
Super Contributor
Super Contributor
rotello


Posts : 215
Join date : 2012-12-06

Logging out from current world Empty
PostSubject: Re: Logging out from current world   Logging out from current world EmptySun 17 Mar - 9:09

tichfuie wrote:
also client keeps simulating connection to the server even after server is shutdown.
needs some sort of server disconnected message to he client

That's odd, need to try this. I think they have implemented the 'Trust the Client' method which is not bad because some online games uses this one but only the player moves for a while then the disconnection message. How long before you got disconnected tichfuie?
Back to top Go down
tichfuie
Super Contributor
Super Contributor
tichfuie


Posts : 257
Join date : 2013-02-07
Location : NA

Logging out from current world Empty
PostSubject: Re: Logging out from current world   Logging out from current world EmptySun 17 Mar - 9:46

weird,

could not replicate it today.

yesterday the client just stayed simulating server connection for a long time.

today after shut down server, just stayed for like 5 secs then the client crashes, tried it several times today and same result, 4 to 5 secs then followed a client crash.

we really need a logout feature so when server disconnection client goes to login screen instead of crashing
Back to top Go down
rotello
Super Contributor
Super Contributor
rotello


Posts : 215
Join date : 2012-12-06

Logging out from current world Empty
PostSubject: Re: Logging out from current world   Logging out from current world EmptyMon 25 Mar - 12:14

Some development here (I guess):

Browsing through the server source, found this java code intended for logout..

\trunk\multiverse\src\multiverse\server\messages\LogoutMessage.java along with the login message file LoginMessage.java.

Snippet:

Code:
package multiverse.server.messages;

import multiverse.msgsys.*;

/** Sent when player logs out of the world.  The message is sent as a
broadcast RPC, so all subscribers must respond.  The message is
sent after the player has been despawned, but before it has
been unloaded.
*/
public class LogoutMessage extends SubjectMessage
{
    public LogoutMessage()
    {
    }

    public LogoutMessage(long playerOid, String playerName)
    {
        super(MSG_TYPE_LOGOUT,playerOid);
        setPlayerName(playerName);
    }

    /** Get the player name.
    */
    public String getPlayerName()
    {
        return playerName;
    }

    /** Set the player name.
    */
    public void setPlayerName(String name)
    {
        this.playerName = name;
    }

    private String playerName;

    /** LogoutMessage message type.
    */
    public static final MessageType MSG_TYPE_LOGOUT = MessageType.intern("mv.LOGOUT");

    private static final long serialVersionUID = 1L;
}

Now where is the code to despawn? confused
Back to top Go down
Sponsored content





Logging out from current world Empty
PostSubject: Re: Logging out from current world   Logging out from current world Empty

Back to top Go down
 
Logging out from current world
Back to top 
Page 1 of 1
 Similar topics
-
» The Real World as a Base Game World
» Logging in to the Multiverse engine
» current Axiom3d version?
» Current Open Source Status
» Logging in locally on same machine as Server

Permissions in this forum:You cannot reply to topics in this forum
 :: Development :: Bugs and Issues-
Jump to: