Official Community Forums
 
HomeHome  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  The Wiki  Website  github Project  

Share | 
 

 Logging out from current world

View previous topic View next topic Go down 
AuthorMessage
rotello
Super Contributor
Super Contributor
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: Logging out from current world   Sat 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
avatar

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

PostSubject: Re: Logging out from current world   Sun 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
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: Re: Logging out from current world   Sun 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
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: Re: Logging out from current world   Mon 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
avatar

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

PostSubject: Re: Logging out from current world   Mon 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
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: Re: Logging out from current world   Mon 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


Posts : 424
Join date : 2011-08-03

PostSubject: Re: Logging out from current world   Tue 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
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: Re: Logging out from current world   Wed 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
avatar

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

PostSubject: Re: Logging out from current world   Sun 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
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: Re: Logging out from current world   Sun 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
avatar

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

PostSubject: Re: Logging out from current world   Sun 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
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: Re: Logging out from current world   Mon 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




PostSubject: Re: Logging out from current world   

Back to top Go down
 
Logging out from current world
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Forge World 40 K
» What is the current point norm? 1750, 1850, 2000?
» WoW china is back+need to update to 3.1.3+new realmlist
» unable to connect
» WoW "Development" Server

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