Форум администраторов игровых серверов

Форум администраторов игровых серверов (https://forum.zone-game.info/TT.php)
-   Lineage II (https://forum.zone-game.info/forumdisplay.php?f=34)
-   -   Работа над Goddess of Destruction (part 4) (https://forum.zone-game.info/showthread.php?t=16111)

Bacek 29.09.2011 12:24

Re: Работа над Goddess of Destruction (part 4)
 
Цитата:

Сообщение от 3JIO (Сообщение 141064)
скажите байпасы не менялись??
вернее пакет на байпасы

Менялся ( где то в 2-3 теме есть шара от меня )

PSIFAK 29.09.2011 13:18

Re: Работа над Goddess of Destruction (part 4)
 
Помогите решить проблему после создания персонажа бесконечная загрузка приходится перезапускать клиент в гс вот эта ошибка
Код:

1317217827418        SEVERE        27        l2open.gameserver.clientpackets.L2GameClientPacket        Client: L2GameClient: *****@127.0.0.1 from IP: 127.0.0.1 - Failed reading: [C] B0 RequestCharacterNameCreatable(l2open.gameserver.clientpackets.RequestCharacterNameCreatable) - L2Open Server Version: Unknown Version
1317217827419        SEVERE        27        l2open.gameserver.clientpackets.L2GameClientPacket        Buffer: java.nio.HeapByteBuffer[pos=4 lim=5 cap=65536] / Connection: MMOConnection: selector=Thread[SelectorThread:7777,9,main]; client=L2GameClient: *****@127.0.0.1; buffersReleased=false; buffersNulled=false
1317217827421        WARNING        27        l2open.gameserver.clientpackets.L2GameClientPacket        Packet not completed. Maybe cheater. IP:127.0.0.1, account:*****
1317217857111        WARNING        28        bosses.FourSepulchersManager        FourSepulchersManager: Entry time: Wed Sep 28 17:55:57 MSD 2011


N-Gin 29.09.2011 15:58

Re: Работа над Goddess of Destruction (part 4)
 
Пакет создавали RequestCharacterNameCreatable?

3JIO 29.09.2011 16:53

Re: Работа над Goddess of Destruction (part 4)
 
Bacekk, посмотри у себя плиз в исходах его, а то я чёт не нашёл

PSIFAK 29.09.2011 20:39

Re: Работа над Goddess of Destruction (part 4)
 
Да вот он
Код:

public class RequestCharacterNameCreatable extends L2GameClientPacket
{
    protected String _name;
   
    @Override
    protected void readImpl()
    {
        _name = readS();
    }

    @Override
    protected void runImpl()
    {

                if (_name.length() < 1 || _name.length() > 16)
                {
                        sendPacket(new ExIsCharNameCreatable(ExIsCharNameCreatable.CHARS_16));
                        return;
                }
               
                if (!Util.isAlphaNumeric(_name) || !isValidName(_name))
                {
                        sendPacket(new ExIsCharNameCreatable(ExIsCharNameCreatable.INCORRECT_NAME));
                        return;
                }
               
                synchronized (CharNameTable.getInstance())
                {
                        if (CharNameTable.getInstance().accountCharNumber(getClient().getLoginName()) >= Config.MAX_CHARACTERS_NUMBER_PER_ACCOUNT && Config.MAX_CHARACTERS_NUMBER_PER_ACCOUNT != 0)
                        {
                                sendPacket(new ExIsCharNameCreatable(ExIsCharNameCreatable.TOO_MANY_CHARACTERS));
                                return;
                        }
                        else if (CharNameTable.getInstance().doesCharNameExist(_name))
                        {
                                sendPacket(new ExIsCharNameCreatable(ExIsCharNameCreatable.NAME_ALREADY_EXISTS));
                                return;
                        }
                }       
               
                sendPacket(new ExIsCharNameCreatable(ExIsCharNameCreatable.OK));
               
    }
       
        private boolean isValidName(String text)
        {
                boolean result = true;
                String test = text;
                Pattern pattern;
                try
                {
                        pattern = Pattern.compile(Config.CNAME_TEMPLATE);
                }
                catch (PatternSyntaxException e) // case of illegal pattern
                {
                        pattern = Pattern.compile(".*");
                }
                Matcher regexp = pattern.matcher(test);
                if (!regexp.matches())
                        result = false;
                return result;
        }       

    @Override
    public String getType()
    {
        return "[C] B0 RequestCharacterNameCreatable";
    }
}

Вот мой ExIsCharNameCreatable
Код:

public class ExIsCharNameCreatable extends L2GameServerPacket
{
        public static final int OK = -1; // "Your character creation has failed."
        public static final int FAILED = 0; // "Your character creation has failed."
        public static final int TOO_MANY_CHARACTERS = 1; // "You cannot create another character. Please delete the existing character and try again."
        public static final int NAME_ALREADY_EXISTS = 2; // "This name already exists."
        public static final int CHARS_16 = 3; // "Your title cannot exceed 16 characters in length. Please try again."
        public static final int INCORRECT_NAME =  4; // "Incorrect name. Please try again."
        public static final int CREATE_NOT_ALLOWED =  5; // "Characters cannot be created from this server."
        public static final int CHOOSE_ANOTHER_SVR = 6; // "Unable to create character. You are unable to create a new character on the selected server. A restriction is in place which restricts users from creating characters on different servers where no previous character exists. Please choose another server."
       
    protected int _code;
   
    public ExIsCharNameCreatable(int code)
    {
        _code = code;
    }
       
        public void runImpl()
        {
        }
   
    @Override
    protected final void writeImpl()
    {
        writeC(0xfe);
        writeH(0x10f);
                writeD(_code);
    }

    @Override
    public String getType()
    {
        return "[S] 10F ExIsCharNameCreatable";
    }
}

Может в них чего то накосячил??

ANZO 29.09.2011 20:43

Re: Работа над Goddess of Destruction (part 4)
 
Парни есть дамп, обт руофа и Инвен база коряк - включите мозг, за Вас никто делать ничего не будет.

3JIO 29.09.2011 20:48

Re: Работа над Goddess of Destruction (part 4)
 
дамп руоффа есть???

Добавлено через 5 минут
извини но покажи! есть дамп 403 протокола кор офф

[STIGMATED] 29.09.2011 22:03

Re: Работа над Goddess of Destruction (part 4)
 
Да особой разницы в них, думаю, нет.

Wormza 30.09.2011 07:25

Re: Работа над Goddess of Destruction (part 4)
 
403 и 404
как говорили могли типо добавить фрост или какую нибудь подобную чушь, так что они не отличаются

3JIO 30.09.2011 09:33

Re: Работа над Goddess of Destruction (part 4)
 
биг спс за инфу


Текущее время: 08:31. Часовой пояс GMT +3.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot