Jump to content
  • 0

Help..Error compiling l2jfree core after patching..pls help...


Question

Posted

Hello...i compile my l2jfree core(exactly:1.2.11) succesfuly by deafault but i have a problem compiling l2jfree core after applying patches...it says that cannot find symbols(at my .java files)...also at the files i have modified,there is a red exclamation point and in .java files for example my Buffs.java there is a qestion mark...can anyone help me with this? :-\

14 answers to this question

Recommended Posts

  • 0
Posted

Hello...i compile my l2jfree core(exactly:1.2.11) succesfuly by deafault but i have a problem compiling l2jfree core after applying patches...it says that cannot find symbols(at my .java files)...also at the files i have modified,there is a red exclamation point and in .java files for example my Buffs.java there is a qestion mark...can anyone help me with this? :-\

Symbols mean that there are missing things or wrongly defined. The errors are very specific, just read them and you'll easely solve them.

  • 0
Posted

Here is the problem exactly:

C:\Users\kostas\Desktop\workspace2\Core Version 1.2.11\src\main\java\com\l2jfree

\gameserver\handler\VoicedCommandHandler.java:[23,59] cannot find symbol

symbol  : class Buffs

location: package com.l2jfree.gameserver.handler.voicedcommandhandlers

 

C:\Users\kostas\Desktop\workspace2\Core Version 1.2.11\src\main\java\com\l2jfree

\gameserver\handler\VoicedCommandHandler.java:[51,35] cannot find symbol

symbol  : class Buffs

location: class com.l2jfree.gameserver.handler.VoicedCommandHandler

 

Here is my Buffs.java:

/* This program is free software; you can redistribute it and/or modify */

package com.l2jfree.gameserver.handler.voicedcommandhandlers;

 

import javolution.util.FastList;

import com.l2jfree.gameserver.datatables.BuffTemplateTable;

import com.l2jfree.gameserver.handler.IVoicedCommandHandler;

import com.l2jfree.gameserver.model.L2Skill.SkillType;

import com.l2jfree.gameserver.model.actor.instance.L2PcInstance;

import com.l2jfree.gameserver.network.SystemMessageId;

import com.l2jfree.gameserver.network.serverpackets.MagicSkillUse;

import com.l2jfree.gameserver.network.serverpackets.SystemMessage;

import com.l2jfree.gameserver.templates.L2BuffTemplate;

 

/**

* @author v

*

*/

public class Buffz implements IVoicedCommandHandler

{

    //private static final Log _log = LogFactory.getLog(Wedding.class);

    private static String[] _voicedCommands = { "fighterbuff","magebuff" };

 

    /* (non-Javadoc)

    * @see com.l2jfree.gameserver.handler.IUserCommandHandler#useUserCommand(int, com.l2jfree.gameserver.model.L2PcInstance)

    */

    public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)

    {

        if(activeChar!=null)

        {

        FastList<L2BuffTemplate> _templateBuffs = new FastList<L2BuffTemplate>();

           

            boolean _wasInvul=false;

           

            if(command.startsWith("fighterbuff"))

            _templateBuffs = BuffTemplateTable.getInstance().getBuffTemplate(98);

            else

            _templateBuffs = BuffTemplateTable.getInstance().getBuffTemplate(99);

           

    if (_templateBuffs == null || _templateBuffs.size() == 0)

    return false;

           

    activeChar.setTarget(activeChar);

           

    //is this really need?

    double _mp=activeChar.getStatus().getCurrentMp(); //to disable mp consuming

   

    // for those who is invulnerable

    if(activeChar.isInvul()&&activeChar.isGM())

        {

        _wasInvul=true;

        activeChar.setIsInvul(false);

        }

   

            for (L2BuffTemplate _buff:_templateBuffs)

            {

                if ( _buff.checkPlayer(activeChar))

                {

               

                    // regeneration ^^ //is this really need?

                activeChar.getStatus().setCurrentMp(_mp);

                    String _name="";

                   

                    // some more functions depending on _buff name

                    if(_buff.getName().equalsIgnoreCase("RestoreHpMp")) {

                      MagicSkillUse msu = new MagicSkillUse(activeChar, activeChar, _buff.getSkillId(), _buff.getSkillLevel(), 110, 0);

                      activeChar.broadcastPacket(msu);

                      activeChar.getStatus().setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());

                      _name="Health and Mana Restoration";

                    }

                    else if(_buff.getName().equalsIgnoreCase("Heal")) {

                    MagicSkillUse msu = new MagicSkillUse(activeChar, activeChar, _buff.getSkillId(), _buff.getSkillLevel(), 110, 0);

                    activeChar.broadcastPacket(msu);

                    activeChar.getStatus().setCurrentHp(activeChar.getMaxHp());

                    _name="Health Restoration";

                    }

                    else if(_buff.getName().equalsIgnoreCase("Mana"))

                    {

                    MagicSkillUse msu = new MagicSkillUse(activeChar, activeChar, _buff.getSkillId(), _buff.getSkillLevel(), 110, 0);

                    activeChar.broadcastPacket(msu);

                    activeChar.getStatus().setCurrentMp(activeChar.getMaxMp());

                    _name="Mana Restoration";

                    }

                    else if(_buff.getName().equalsIgnoreCase("CP"))

                    {

                    MagicSkillUse msu = new MagicSkillUse(activeChar, activeChar, _buff.getSkillId(), _buff.getSkillLevel(), 110, 0);

                    activeChar.broadcastPacket(msu);

                    activeChar.getStatus().setCurrentCp(activeChar.getMaxCp());

                    _name="Combat Points Restoration";

                    }

                    else if (_buff.getSkill().getSkillType() == SkillType.SUMMON)

                    activeChar.doCast(_buff.getSkill());

                       

                    else

                    { 

                    // if this buff is first buff of this category - show animation

                    if(_templateBuffs.getFirst()==_buff){

                    MagicSkillUse msu = new MagicSkillUse(activeChar, activeChar, _buff.getSkillId(), _buff.getSkillLevel(), 200, 0);

                    activeChar.broadcastPacket(msu);

                    try{

                    Thread.sleep(200);//is this really need?

                    }catch (Exception f) {}

                    }

                    // buff process :D

                    _buff.getSkill().getEffects(activeChar, activeChar);

                    }

                    //text part

                    SystemMessage sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);

                    if (_name.equalsIgnoreCase("")||_name==null)

                    sm.addSkillName(_buff.getSkill().getId());

                    else sm.addString(_name);

                    activeChar.sendPacket(sm);

                    sm = null;

                }

                else return false;

            }

            if(_wasInvul&&activeChar.isGM())

            {

            activeChar.setIsInvul(true);

            _wasInvul=false;

            } 

            return true;

        }

        else

            return false;

    }

   

    /* (non-Javadoc)

    * @see com.l2jfree.gameserver.handler.IUserCommandHandler#getUserCommandList()

    */

    public String[] getVoicedCommandList()

    {

        return _voicedCommands;

    }

}   

 

 

 

and my VoicedCommandHandler.java:

/*

* 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 com.l2jfree.gameserver.handler;

 

import javolution.util.FastMap;

 

import org.apache.commons.logging.Log;

import org.apache.commons.logging.LogFactory;

import com.l2jfree.Config;

import com.l2jfree.gameserver.handler.voicedcommandhandlers.*;

import com.l2jfree.gameserver.handler.voicedcommandhandlers.Buffs;

/**

* This class ...

*

* @version $Revision: 1.1.4.5 $ $Date: 2005/03/27 15:30:09 $

*/

public class VoicedCommandHandler

{

private final static Log _log = LogFactory.getLog(ItemHandler.class.getName());

 

private static VoicedCommandHandler _instance;

 

private FastMap<String, IVoicedCommandHandler> _datatable;

 

public static VoicedCommandHandler getInstance()

{

if (_instance == null)

_instance = new VoicedCommandHandler();

return _instance;

}

 

private VoicedCommandHandler()

{

_datatable = new FastMap<String, IVoicedCommandHandler>();

registerVoicedCommandHandler(new CastleDoors());

registerVoicedCommandHandler(new Hellbound());

registerVoicedCommandHandler(new Banking());

registerVoicedCommandHandler(new VersionInfo());

registerVoicedCommandHandler(new Buffs());       

if (Config.ALLOW_WEDDING)

{

registerVoicedCommandHandler(new Wedding());

 

}

             

 

_log.info("VoicedCommandHandler: Loaded " + _datatable.size() + " handlers.");

}

 

public void registerVoicedCommandHandler(IVoicedCommandHandler handler)

{

String[] ids = handler.getVoicedCommandList();

for (String element : ids)

{

if (_log.isDebugEnabled())

_log.debug("Adding handler for command " + element);

_datatable.put(element, handler);

}

}

 

public IVoicedCommandHandler getVoicedCommandHandler(String voicedCommand)

{

String command = voicedCommand;

if (voicedCommand.indexOf(" ") != -1)

{

command = voicedCommand.substring(0, voicedCommand.indexOf(" "));

}

if (_log.isDebugEnabled())

_log.debug("getting handler for command: " + command + " -> " + (_datatable.get(command) != null));

return _datatable.get(command);

}

 

/**

* @return

*/

public int size()

{

return _datatable.size();

}

}

 

 

 

  • 0
Posted

It says that when you build it? Go with ecplipse in The red errors and eclipse will help you to fix it..

  • 0
Posted

click there where is red in the java file or right click and eclipse will say you possible solutions..

  • 0
Posted

click there where is red in the java file or right click and eclipse will say you possible solutions..

yea do quick fix

also if you can't manage to make it give us a screenshot on the java files

  • 0
Posted

Are you kidding?

The problem is written in there loool. The class is named "Buffz" not "Buffs" either change the pointer from "Buffs" -> "Buffz" or rename "Buffz" -> "Buffs"

  • 0
Posted

i did it...the same error...(It does not only happen with those codes...i cant put other codes too ex: online playets commands,commands for tvt and others...all of them say that cannot find symbol....

I tried to fix it with eclipse by going to red marks but it doesnt say anything that can help me...

  • 0
Posted

ya u are kidding lol... if its the same error than  u dont changed anything

 

public class Buffz implements IVoicedCommandHandler

 

to

 

 

public class Buffs implements IVoicedCommandHandler

  • 0
Posted

i did it...the same error...(It does not only happen with those codes...i cant put other codes too ex: online playets commands,commands for tvt and others...all of them say that cannot find symbol....

I tried to fix it with eclipse by going to red marks but it doesnt say anything that can help me...

Errors are there for some reason. If they're still there than you haven't modified what I told you to.

Anyway don't forget to install the commons.

  • 0
Posted

i changed buffz to buffs...the same..:/..i forgot to mention that I am using tags not trunk...in tags,eclipse doesnt help me to fix the errors...in trunk it helps me but i cant compile trunk cause it says that [iNFO] Unable to find resource 'l2jfree:l2j-commons:pom:1.3.0' in repository cen

tral (http://repo1.maven.org/maven2)

Downloading: http://www.l2jfree.com:8080/archiva/repository/internal//l2jfree/l2

j-mmocore/1.3.0/l2j-mmocore-1.3.0.pom

and it continues say thinks like that..:/...

there is the error again:

C:\Users\kostas\Desktop\workspace2\Core Version 1.2.11\src\main\java\com\l2jfree

\gameserver\handler\voicedcommandhandlers\Buffs.java:[7,43] cannot find symbol

symbol  : class SkillType

location: class com.l2jfree.gameserver.model.L2Skill

 

C:\Users\kostas\Desktop\workspace2\Core Version 1.2.11\src\main\java\com\l2jfree

\gameserver\handler\voicedcommandhandlers\Buffs.java:[12,39] cannot find symbol

symbol  : class L2BuffTemplate

location: package com.l2jfree.gameserver.templates

 

C:\Users\kostas\Desktop\workspace2\Core Version 1.2.11\src\main\java\com\l2jfree

\gameserver\handler\voicedcommandhandlers\Buffs.java:[30,18] cannot find symbol

symbol  : class L2BuffTemplate

location: class com.l2jfree.gameserver.handler.voicedcommandhandlers.Buffs

 

C:\Users\kostas\Desktop\workspace2\Core Version 1.2.11\src\main\java\com\l2jfree

\gameserver\handler\voicedcommandhandlers\Buffs.java:[30,64] cannot find symbol

symbol  : class L2BuffTemplate

location: class com.l2jfree.gameserver.handler.voicedcommandhandlers.Buffs

 

C:\Users\kostas\Desktop\workspace2\Core Version 1.2.11\src\main\java\com\l2jfree

\gameserver\handler\voicedcommandhandlers\Buffs.java:[54,17] cannot find symbol

symbol  : class L2BuffTemplate

location: class com.l2jfree.gameserver.handler.voicedcommandhandlers.Buffs

 

C:\Users\kostas\Desktop\workspace2\Core Version 1.2.11\src\main\java\com\l2jfree

\gameserver\handler\voicedcommandhandlers\Buffs.java:[90,64] cannot find symbol

symbol  : variable SkillType

location: class com.l2jfree.gameserver.handler.voicedcommandhandlers.Buffs

 

and as i told you it doesnt happen only with this voice command....it happens with all voice commands and i am making the changes correctly!!:/

  • 0
Posted

Read the damn errors. SkillType isn't a method in L2Skill, L2SkillType is.

Just pay attention to the errors and you'll work it out :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • wtf is your website lol ai slop
    • who have this files? or info about cached packets?
    • Hi maxcheaters, i am trying to bring back an old server ( L2Revenge) but with my own ideas, i only liked how it was and made the gameplay based on that just putting my own ideas.   So practicly is a PTS C6 with an extender that i work lately    Exp / SP is x45 adena is x200 and drops x5  so safe is +3 , max is unlimited and rate is 65% for both mage and fighter weapons I created a system that you can get on the levels the gear you need based on farm but for S grade theres a little farm to get some armor Tokens to unseal them. As you remember L2Revenge had olympiad / Tournament gear. So people abused them and had S grades that way just couldnt enchant them. So i made to be wearable only if u are nobless. That way i cancel this "exploit".  The server gives opportunity to solo and clans , epic gear ( epic weapons) or armors can be bought with raid tokens and you can craft them or get them with various ways Regarding Buffs: 24 buff slots no changes asked. Cov/Pony/Cat , siren - renewal - champion out of buffer , if u make the char as main roll u can use them or use the offline buffer system to sell them and get adenas. their time is 20 mins so that way we see again the " 1kk for rene/siren" or rec = song  Regarding armors: they are dropped ( parts ) from 3 only raids , rest lvl 76+ raids drop recipes , so crafting takes place (so if u are solo u can craft them )  there are 3 armors each armor have its purpose: Revenge Armors - Example for light ( its a glass cannon , high damage , less atk speed and less pdef ) - they mostly modify your base stats, so useable on sieges or off tank chars Titanium Armors - A little bit of balanced of all  Epic Armor - Daggers/Enchanters/Healers mostly but u can always combine your build    Regarding weapons: can be dropped from Monastery of Silence monsters or get them from NPC with Raid Tokens its like a 5% better than S grades and the S/A Activates at +4  Regarding retail gear: you need to unseal only S grades for a great amount of armor tokens all weapons on any grade need Soul crystals that are sold for adenas  stage 13 crystals are expensive or dropped from raids Regarding fun: There is a squash event a Fortress vs Fortress pvp event an RB Event at weekends and from Monday - Wednesday Tournament ( Olympiad is closed monday/tuesday/wednesday)  at tournament you can practice 1vs1 like olympiad but pots/ss allowed , gear allowed is only olympiad or tournament , each win of match gives u 5 glits at 100 glits u can be hero till restart Olympiad works the same way regarding gear allowance but works only thursday to friday and you win monthly hero Auction with Raid Tokens is activated Event medals from events can be exchanged for various items i try to make the oldschool with a little bit of new school systems Not planing to open it anytime soon as i still develop and make corrections to extender , looking forward to meet people that actually played this and are hyped to help on testing / development   P.S is c5 into interlude ( theres no akamanah / nor PI aswell , no lifestones) forgot to mention
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock