Thread: [MX3] 830 - Login Exceptions

Results 1 to 7 of 7
  1. #1 [MX3] 830 - Login Exceptions 
    Registered Member
    excl150's Avatar
    Join Date
    Jul 2014
    Posts
    123
    Thanks given
    46
    Thanks received
    30
    Rep Power
    97
    Hi,

    I was messing around with the way login exceptions are shown.
    I saw that just regular numbers were used and made it quite unclear for me which message was going to be displayed.

    In the Login class:
    Code:
    LoginServerChannelManager.sendReliablePacket(target, LoginChannelsPacketEncoder.encodeLoginResponse(sessionid, username, 0).getBuffer());
    [SPOIL]
    Code:
    public enum LoginExceptions {
    
        UNEXPECTED_SERVER_RESPONSE(0),
        INVALID_USER(3),
        ACCOUNT_DISABLED(4),
        ACCOUNT_NOT_LOGGED_OUT(5),
        SERVER_UPDATED(6),
        WORLD_FULL(7),
        LOGIN_SERVER_OFFLINE(8),
        LOGIN_LIMIT_EXCEEDED(9),
        BAD_SESSION_ID(10),
        PASSWORD_EXTREMELY_COMMON(11),
        MEMBERS_ACCOUNT(12),
        UNABLE_COMPLETE_LOGIN(13),
        SERVER_BEING_UPDATED(14),
        MANY_INCORRECT_LOGINS(16),
        STANDING_MEMBERS_AREA(17),
        ACCOUNT_LOCKED(18),
        FULLSCREEN_MEMBERS_FEATURE(19),
        INVALID_LOGINSERVER_REQUERST(20),
        MALFORMED_LOGIN_PACKET(22),
        ERROR_LOADING_PROFILE(24),
        COMPUTER_ADRESS_BLOCKED(26),
        SERVICE_UNAVAILABLE(27),
        NOT_MEMBERS_ACCOUNT(30),
        CHANGE_ACCOUNT_DISPLAY_NAME(31),
        LOGIN_UNSUCCESSFUL(32),
        SESSION_EXPIRED(35),
        AUTH_SERVER_OFFLINE(36),
        ACCOUNT_INACCESSIBLE(37),
        DENIED_ACCES_HTML5_BETA(38),
        INSTANCE_NO_LONGER_EXISTS(39),
        INSTANCE_FULL(41),
        SYSTEMS_UNAVAILABLE(44),
        MARKED_DELETION_REBUILD(46),
        VALIDATE_EMAIL(47),
        FIVE_MINUTE_SESSION_ENDED(48),
        ACCOUNT_JAG_ENABLED(50),
        INCOMPLETE_LOGIN_UNAUTHORISED(55),
        AUTHENTICATOR(56);
    
        private int status;
        
        private LoginExceptions(int status) {
    	this.status = status;
        }
        
        public int getStatus() {
    	return status;
        }
    }
    [/SPOIL]
    I am a big noob in programming but I still want to keep improving.
    I will try to share more useful stuff in the future.
    Thanks for reading, hope anyone can find this useful
    Reply With Quote  
     


  2. #2  
    Registered Member

    Join Date
    Nov 2015
    Age
    24
    Posts
    1,980
    Thanks given
    334
    Thanks received
    1,051
    Rep Power
    5000
    nice find
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member

    Join Date
    Sep 2009
    Posts
    1,919
    Thanks given
    479
    Thanks received
    1,687
    Rep Power
    1262
    It's actually good programming practice to use enums for restricting values as well for the names. Good on you +1
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Registered Member
    excl150's Avatar
    Join Date
    Jul 2014
    Posts
    123
    Thanks given
    46
    Thanks received
    30
    Rep Power
    97
    Quote Originally Posted by Cjay0091 View Post
    It's actually good programming practice to use enums for restricting values as well for the names. Good on you +1
    Thank you, appreciate it =)
    Reply With Quote  
     

  7. #5  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Thanks, is that all of them or just the ones that were being used in the source?
    Project thread
    Reply With Quote  
     

  8. Thankful user:


  9. #6  
    Registered Member
    excl150's Avatar
    Join Date
    Jul 2014
    Posts
    123
    Thanks given
    46
    Thanks received
    30
    Rep Power
    97
    Quote Originally Posted by clem585 View Post
    Thanks, is that all of them or just the ones that were being used in the source?
    I manually checked every int from 0.. at 75 it was just the same over and over again... so i stopped checking.
    Maybe there are move above 75 somewhere but I am not sure, these are all the valid ones that didn't give me an exception/ client crash.

    EDIT: I think these are all of them for the matrix 830 source.
    I went back and checked again from 75 up to 150, I'm 99% this is all of them since its still the same message since like 60.
    Reply With Quote  
     

  10. #7  
    Registered Member
    Join Date
    Apr 2017
    Posts
    16
    Thanks given
    8
    Thanks received
    6
    Rep Power
    18
    You can find those in client scripts, see for example script 10210 in 887 version for 887 login exceptions. (there is switch case like
    Code:
     case 7:
    			v6 = "This world is full. Please use a different world.";
    			break;
    )
    for 830 Im not sure what id the script has cause there are no decompiled client scripts for that version (didn't find one), but it should be in client scripts.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. 830 login error (10th day) Please Help!!
    By XI magicka IX in forum Help
    Replies: 2
    Last Post: 06-24-2016, 10:31 PM
  2. Mx3 830
    By PkzX in forum Help
    Replies: 6
    Last Post: 06-16-2016, 07:04 AM
  3. Replies: 2
    Last Post: 05-30-2016, 03:38 PM
  4. [Apollo] Player Login Exceptions Issue
    By Lmctruck30 in forum Snippets
    Replies: 6
    Last Post: 08-17-2014, 10:39 AM
  5. Apollo login exception/error.
    By Inside Sin in forum Help
    Replies: 3
    Last Post: 10-19-2012, 05:06 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •