Secret Experience

Secret Experience (https://secretexperience.net/)
-   [L2J] Dúvidas Solucionadas (https://secretexperience.net/l2j-duvidas-solucionadas/)
-   -   Possível erro ao compilar. (https://secretexperience.net/l2j-duvidas-solucionadas/21511-possivel-erro-ao-compilar.html)

out 18-05-2010 04:24 AM

Possível erro ao compilar.
 
Sempre que vou compilar da esse erro:
Citação:

[mkdir] Created dir: D:\workspace\L2JTeon-Project\L2JTeon\build
[mkdir] Created dir: D:\workspace\L2JTeon-Project\L2JTeon\build\classes
[mkdir] Created dir: D:\workspace\L2JTeon-Project\L2JTeon\build\dist
[mkdir] Created dir: D:\workspace\L2JTeon-Project\L2JTeon\build\dist\L2JTeon_login
[mkdir] Created dir: D:\workspace\L2JTeon-Project\L2JTeon\build\dist\L2JTeon_gameserver
version:
compile:
[javac] Compiling 1398 source files to D:\workspace\L2JTeon-Project\L2JTeon\build\classes
[javac] D:\workspace\L2JTeon-Project\L2JTeon\java\net\sf\l2j\gameserver\handler \voicedcommandhandlers\PlayersWithdrawCWH.java:36: warning: unmappable character for encoding UTF8
Alguém saberia o que seria isso? Sugestões? :wideeyed:

Aqui ta o arquivo voicedcommandhandlers:

Código:

* This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

import net.sf.l2j.Config;
import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

/**
 * VoicedCommand Handler Allows clan leaders the power allow clan members withdraw items from clan warehouse. Syntax : .cwh_withdraw_on/off Author : Sergey V Chursin WWW : www.gludin.ru Email : schursin@gmail.com
 */
public class PlayersWithdrawCWH implements IVoicedCommandHandler
{
        private static final String[] VOICED_COMMANDS = { "cwh_withdraw_on", "cwh_withdraw_off" };

        public boolean useVoicedCommand(String command, L2PcInstance activeChar, String targetTxt)
        {
                if (!command.startsWith("cwh_withdraw_on") && !command.startsWith("cwh_withdraw_off"))
                {
                        return false;
                }
                if (!Config.ALLOW_WITHDRAW_CWH_CMD)
                {
                        activeChar.sendMessage("Êîìàíäà îòêëþ÷åíà àäìèíèñòðàòîðîì.");
                        return true;
                }
                if (!activeChar.isClanLeader())
                {
                        activeChar.sendMessage("Âû íå ìîæåòå èñïîëüçîâàòü ýòó êîìàíäó! Âû íå êëàí ëèäåð.");
                        return true;
                }
                if (activeChar.getTarget() == null)
                {
                        activeChar.sendMessage("Ïåðåä èñïîëüçîâàíèåì êîìàíäû - âûáåðèòå èãðîêà.");
                        return true;
                }
                if (!(activeChar.getTarget() instanceof L2PcInstance))
                {
                        activeChar.sendMessage("Ïåðåä èñïîëüçîâàíèåì êîìàíäû - âûáåðèòå èãðîêà.");
                        return true;
                }
                L2PcInstance target = (L2PcInstance) activeChar.getTarget();
                if (activeChar.getObjectId() == target.getObjectId())
                {
                        activeChar.sendMessage("Âû è òàê èìååòå ïîëíûé äîñòóï ê êëàí-ñêëàäó.");
                        return true;
                }
                if (activeChar.getClanId() != target.getClanId())
                {
                        activeChar.sendMessage("Âûáåðèòå èãðîêà èç ñâîåãî êëàíà.");
                        return true;
                }
                if (command.startsWith("cwh_withdraw_on"))
                {
                        target.setCanWithdrawCWH(1);
                        activeChar.sendMessage(target.getName() + " ïîëó÷èë ïîëíûé äîñòóï ê êëàí-ñêëàäó.");
                        target.sendMessage("Êëàí ëèäåð ðàçðåøèë âàì ïîëíûé äîñòóï ê êëàí-ñêëàäó.");
                }
                else if (command.startsWith("cwh_withdraw_off"))
                {
                        target.setCanWithdrawCWH(0);
                        activeChar.sendMessage(target.getName() + " ëèøåí ïîëíîãî äîñòóïà ê êëàí-ñêëàäó.");
                        target.sendMessage("Êëàí ëèäåð ëèøèë âàñ ïîëíîãî äîñòóïà ê êëàí-ñêëàäó.");
                }
                return true;
        }

        public String[] getVoicedCommandList()
        {
                return VOICED_COMMANDS;
        }
}


Daniel2 18-05-2010 03:08 PM

Código:

* This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

import net.sf.l2j.Config;
import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

/**
 * VoicedCommand Handler Allows clan leaders the power allow clan members withdraw items from clan warehouse. Syntax : .cwh_withdraw_on/off Author : Sergey V Chursin WWW : www.gludin.ru Email : schursin@gmail.com
 */
public class PlayersWithdrawCWH implements IVoicedCommandHandler
{
        private static final String[] VOICED_COMMANDS = { "cwh_withdraw_on", "cwh_withdraw_off" };

        public boolean useVoicedCommand(String command, L2PcInstance activeChar, String targetTxt)
        {
                if (!command.startsWith("cwh_withdraw_on") && !command.startsWith("cwh_withdraw_off"))
                {
                        return false;
                }
                if (!Config.ALLOW_WITHDRAW_CWH_CMD)
                {
                        activeChar.sendMessage("Êîìàíäà îòêëþ÷åíà àäìèíèñòðàòîðîì.");
                        return true;
                }
                if (!activeChar.isClanLeader())
                {
                        activeChar.sendMessage("Âû íå ìîæåòå èñïîëüçîâàòü ýòó êîìàíäó! Âû íå êëàí ëèäåð.");
                        return true;
                }
                if (activeChar.getTarget() == null)
                {
                        activeChar.sendMessage("Ïåðåä èñïîëüçîâàíèåì êîìàíäû - âûáåðèòå èãðîêà.");
                        return true;
                }
                if (!(activeChar.getTarget() instanceof L2PcInstance))
                {
                        activeChar.sendMessage("Ïåðåä èñïîëüçîâàíèåì êîìàíäû - âûáåðèòå èãðîêà.");
                        return true;
                }
                L2PcInstance target = (L2PcInstance) activeChar.getTarget();
                if (activeChar.getObjectId() != target.getObjectId())
                {
                        activeChar.sendMessage("Âû è òàê èìååòå ïîëíûé äîñòóï ê êëàí-ñêëàäó.");
                        return true;
                }
                if (activeChar.getClanId() != target.getClanId())
                {
                        activeChar.sendMessage("Âûáåðèòå èãðîêà èç ñâîåãî êëàíà.");
                        return true;
                }
                if (command.startsWith("cwh_withdraw_on"))
                {
                        target.setCanWithdrawCWH(1);
                        activeChar.sendMessage(target.getName() + " ïîëó÷èë ïîëíûé äîñòóï ê êëàí-ñêëàäó.");
                        target.sendMessage("Êëàí ëèäåð ðàçðåøèë âàì ïîëíûé äîñòóï ê êëàí-ñêëàäó.");
                }
                else if (command.startsWith("cwh_withdraw_off"))
                {
                        target.setCanWithdrawCWH(0);
                        activeChar.sendMessage(target.getName() + " ëèøåí ïîëíîãî äîñòóïà ê êëàí-ñêëàäó.");
                        target.sendMessage("Êëàí ëèäåð ëèøèë âàñ ïîëíîãî äîñòóïà ê êëàí-ñêëàäó.");
                }
                return true;
        }

        public String[] getVoicedCommandList()
        {
                return VOICED_COMMANDS;
        }
}

bom mano eu arrumei mais o erro ta nessa linha aque ;D


Código:

                        activeChar.sendMessage("Âû è òàê èìååòå ïîëíûé äîñòóï ê êëàí-ñêëàäó.");
                        return true;

mais de uma boa olhada refomule esse codigo dinovo coloca eu coloquei acima e re-copile ;D

Guma 18-05-2010 03:17 PM

voce tem o mod completo ?

paytaly 18-05-2010 03:35 PM

Esses ou algum(ns) desses caracteres russos não estão mapeados na encodificação UTF-8.

Solução? Traduzir o Mod.

out 18-05-2010 04:18 PM

Mas não consigo traduzir esses caracters "Âû è òàê èìååòå ïîëíûé äîñòóï ê êëàí-ñêëàäó.");.
Esse erro já vem da SVN, não add nada, na hora que vo compilar aparece.

Daniel2 18-05-2010 04:36 PM

muito facil amigo vc vai num projeto ja traduzido aii vc traduz as msg mais vc tem que commitar Okss para o svn da REV ;D :GEEK:

Guma 18-05-2010 05:11 PM

@daniel
quem te disse q pra fase isso tem q commitar ?

@Gma93
bom esse mod tem aki na area de java mod tente adiciona em cima desse ...

paytaly 19-05-2010 02:42 AM

Convenhamos, é totalmente possível que o código, mesmo sendo direto do SVN esteja errado, já que não há nenhum tipo de restrição, como há na compilação. Também não é necessário saber essa língua para traduzir isso.

A primeira é a mensagem que será mandada caso a Config ALLOW_WITHDRAW_CWH_CMD seja false.

A segunda, se o Char não for líder de Clan.

A terceira, se o Target for null, ou seja, nada.

Quarta, se o Target não for instância do L2PcInstance.

Quinta, se o ObjectId do Char for igual ao Target (Target em você mesmo).

Sexta, se o Clan do Char for diferente do Target.

Sétima, se o comando for cwh_withdraw_on.

Oitava, se o comando for cwh_withdraw_off.

Nos 2 últimos são mandadas 2 mensagens. A primeira para o Char e a segunda para o Target.

out 20-05-2010 04:05 AM

Bom galera ainda continua esse erro inconveniente :swoon:
Teria como deletar o arquivo do Build para não carregar?

Guma 20-05-2010 04:11 AM

pode passa o source pra possa ver o erro ?
eu peguei esse arquivo e coloquei no meu aqui e nao deu erro...


Horários baseados na GMT -3. Agora são 05:47 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0