Jump to content
  • 0

Stuck at login and stuck at START


Dev

Question

Hi I was on with a GM char of my team and he left . Then w/o any reason he wasn't able to login the server because I had set the login server GM only but he could log other times I gave him the 127 access. Anyways then I restarted the server and he coult enter the login but when he pressed START he couldnt see his char in game he didnt go in game somehow "meanwhile on game server console it said the message that "x" has logged with master access just to be carefull ;) " etc so what's the problem anyone knows ? ???

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

This is the fix thanks for know a shit about Java Req for Lock I did it myself.

 

 

 

67 67                //playLogFile(getConnection()); // try to play log file

68 68

69

70                // we should always be abble to acquire the lock

71                // but if we cant lock then nothing should be done (ie repeated packet)

72                if (this.getClient().getActiveCharLock().tryLock())

73                {

74                        try

69                try

70                {

71                        // we should always be abble to acquire the lock

72                        // but if we cant lock then nothing should be done (ie repeated packet)

73                        if (this.getClient().getActiveCharLock().tryLock())

75 74                        {

76                                // should always be null

77                                // but if not then this is repeated packet and nothing should be done here

78                                if (this.getClient().getActiveChar() == null)

75                                try

79 76                                {

80                                        // The L2PcInstance must be created here, so that it can be attached to the L2GameClient

81                                        if (Config.DEBUG)

82                                        {

83                                                _log.fine("selected slot:" + _charSlot);

84                                        }

85                                        

86                                        //load up character from disk

87                                        L2PcInstance cha = getClient().loadCharFromDisk(_charSlot);

88                                        if (cha == null)

89                                        {

90                                                _log.severe("Character could not be loaded (slot:"+_charSlot+")");

91                                                sendPacket(ActionFailed.STATIC_PACKET);

92                                                return;

93                                        }

94                                        if (cha.getAccessLevel().getLevel() < 0)

95                                        {

96                                                cha.deleteMe();

97                                                return;

98                                        }

99                                        

100                                        cha.setClient(this.getClient());

101                                        getClient().setActiveChar(cha);

102                    

103                    sendPacket(new SSQInfo());

104                    

105                                        this.getClient().setState(GameClientState.IN_GAME);

106                                        CharSelected cs = new CharSelected(cha, getClient().getSessionId().playOkID1);

107                                        sendPacket(cs);

77                                        // should always be null

78                                        // but if not then this is repeated packet and nothing should be done here

79                                        if (this.getClient().getActiveChar() == null)

80                                        {

81                                                // The L2PcInstance must be created here, so that it can be attached to the L2GameClient

82                                                if (Config.DEBUG)

83                                                {

84                                                        _log.fine("selected slot:" + _charSlot);

85                                                }

86                                                

87                                                //load up character from disk

88                                                L2PcInstance cha = getClient().loadCharFromDisk(_charSlot);

89                                                if (cha == null)

90                                                {

91                                                        _log.severe("Character could not be loaded (slot:"+_charSlot+")");

92                                                        sendPacket(ActionFailed.STATIC_PACKET);

93                                                        return;

94                                                }

95                                                if (cha.getAccessLevel().getLevel() < 0)

96                                                {

97                                                        cha.deleteMe();

98                                                        return;

99                                                }

100                                                

101                                                cha.setClient(this.getClient());

102                                                getClient().setActiveChar(cha);

103                            

104                            sendPacket(new SSQInfo());

105                            

106                                                this.getClient().setState(GameClientState.IN_GAME);

107                                                CharSelected cs = new CharSelected(cha, getClient().getSessionId().playOkID1);

108                                                sendPacket(cs);

109                                        }

110                                }

111                                finally

112                                {

113                                        this.getClient().getActiveCharLock().unlock();

108 114                                }

109 115                        }

110                        finally

111                        {

112                                this.getClient().getActiveCharLock().unlock();

113                        }

116                }

117                catch (Exception e)

118                {

119                        e.printStackTrace();

114 120                }

115 121        }

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...