Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
SM_BATTLE_PREPARATION
#1
Someone can help this file original type play mode
i have little problem in this locate he not call true type mode play
writeC(2); // TYPE MODE PLAY 1 and 2 and 3?






Код:
        writeD(room.isFigth());
        writeD(room.getRoomSlotByPlayer(player).getId());
        [color=Blue]writeC(2); // TYPE MODE PLAY[/color] [color=red]1[/color] and [color=blue]2[/color] and [color=MediumTurquoise]3[/color]?
        writeB(room.getLeader().getConnection().getIPBytes());
        writeH(29890);// порт откуда идет
        writeB(room.getLeader().getConnection().getIPBytes());
        writeH(29890);// порт куда идет
        writeC(0);

        writeB(player.getConnection().getIPBytes());
        writeH(29890);// порт
        writeB(player.getConnection().getIPBytes());
        writeH(29890); // порт
        writeC(0);
        writeB(NetworkUtil.parseIpToBytes("127.0.0.1"));
        writeH(40000);
        writeB(new byte[] {
            //
            // (byte) 0xc3, 0x51, 0x74, 0x36, // айпи чего?
            //
            // 0x43,
            // (byte) 0x9c, // 40000 - порт?
            //
            (byte) 0x91, 0x00, 0x00, 0x00,
            //
            (byte) 0x47, 0x06, 0x00, 0x00
        });

        writeC(0);

        writeB(new byte[] {
            0x0a, 0x22, 0x00, 0x01, 0x10, 0x03, 0x1e, 0x05, 0x06, 0x07, 0x04, 0x09, 0x16, 0x0b, 0x1b, 0x08, 0x0e, 0x0f, 0x02, 0x11, 0x12, 0x21, 0x14, 0x15, 0x13, 0x17, 0x18, 0x19, 0x1a, 0x0c, 0x1c, 0x1d, 0x0d, 0x1f, 0x20
        });
    }
}
Ответ
#2
PROTOCOL_BATTLE_PRESTARTBATTLE_ACK - name of this packet.

UdpState
  1. RENDEZVOUS (Udp not in operatoin) only for Tutorial mode;
  2. CLIENT (all calculation is performed on player host client) only for AI and Infection mode;
  3. RELAY (all calculation is performed on server) for other modes.
Ответ


Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)