L2JLisvus

Would you like to react to this message? Create an account in a few clicks or log in to continue.

3 posters

    Error in console when you do subclass

    avatar
    manutuning2


    Posts : 33
    Join date : 2013-10-30

    Error in console when you do subclass Empty Error in console when you do subclass

    Post  manutuning2 21st January 2014, 04:42

    DNR Hello Sir, I have the following error when I add custom subclass system not automatically switch to level 40, you got to switch subclass,

    Here is the error console gives me aver if I can not fix I could


    Code:
    Bad RequestBypassToServer:
    java.lang.NullPointerException
            at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.addSubClass(L
    2PcInstance.java:9764)
            at net.sf.l2j.gameserver.model.actor.instance.L2VillageMasterInstance.on
    BypassFeedback(L2VillageMasterInstance.java:291)
            at net.sf.l2j.gameserver.clientpackets.RequestBypassToServer.runImpl(Req
    uestBypassToServer.java:131)
            at net.sf.l2j.gameserver.clientpackets.ClientBasePacket.run(ClientBasePa
    cket.java:85)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
    DnR
    DnR
    Admin
    Admin


    Posts : 1475
    Join date : 2012-12-03
    Age : 34

    Error in console when you do subclass Empty Re: Error in console when you do subclass

    Post  DnR 25th January 2014, 15:30

    That's not the first report. However, i added patch for multiskills and faced no problems.
    Could i take a look into your L2PcInstance class?
    avatar
    manutuning2


    Posts : 33
    Join date : 2013-10-30

    Error in console when you do subclass Empty Re: Error in console when you do subclass

    Post  manutuning2 25th January 2014, 20:32

    DNR Hello, I leave the link in the L2PcInstance.
    the only thing that changes is the subject of cumulative skill, I made all the steps like this post

    https://l2jlisvus.forumotion.com/t407-share-custom-subclass-configuration-more-than-3-subs


    the link of the file L2PcInstance

    https://www.mediafire.com/?0z4ifmyya19irz2

    thanks for your help

    sorry for my bad English
    DnR
    DnR
    Admin
    Admin


    Posts : 1475
    Join date : 2012-12-03
    Age : 34

    Error in console when you do subclass Empty Re: Error in console when you do subclass

    Post  DnR 26th January 2014, 10:46

    In L2PcInstance boolean addSubclass find this line:
    Code:

    ClassId subTemplate = ClassId.values()[classId];

    and make it look like this:
    Code:

    ClassId subTemplate = ClassId.values()[classId];
    if (subTemplate == null)
        return false;

    I haven't tested anything but since level is not set to 40, template could be a problem.
    avatar
    manutuning2


    Posts : 33
    Join date : 2013-10-30

    Error in console when you do subclass Empty Re: Error in console when you do subclass

    Post  manutuning2 27th January 2014, 03:48

    give me the error when I add a L2PcInstance, not know if I'm the problem when I add, let photo for you to see

    https://2img.net/r/ihimizer/v2/800x600q90/855/sfxa.jpg



    thanks
    DnR
    DnR
    Admin
    Admin


    Posts : 1475
    Join date : 2012-12-03
    Age : 34

    Error in console when you do subclass Empty Re: Error in console when you do subclass

    Post  DnR 28th January 2014, 13:45

    So you still get this NPE error?
    avatar
    manutuning2


    Posts : 33
    Join date : 2013-10-30

    Error in console when you do subclass Empty Re: Error in console when you do subclass

    Post  manutuning2 28th January 2014, 17:27

    if you continue giving me error also when I download the original SVN. give me the error
    DnR
    DnR
    Admin
    Admin


    Posts : 1475
    Join date : 2012-12-03
    Age : 34

    Error in console when you do subclass Empty Re: Error in console when you do subclass

    Post  DnR 29th January 2014, 14:17

    Alright, could you post line 9764 please?
    avatar
    manutuning2


    Posts : 33
    Join date : 2013-10-30

    Error in console when you do subclass Empty Re: Error in console when you do subclass

    Post  manutuning2 29th January 2014, 17:41

    Code:
    9764               prevSkillList.put(newSkill.getId(), newSkill);
        9765            storeSkill(newSkill, prevSkill, classIndex);


    those are the lines L2PcInstance, I could not find the solution. do not know if you have the answer


    greetings and thanks
    DnR
    DnR
    Admin
    Admin


    Posts : 1475
    Join date : 2012-12-03
    Age : 34

    Error in console when you do subclass Empty Re: Error in console when you do subclass

    Post  DnR 1st February 2014, 12:24

    Have you added any custom skill to database?
    avatar
    manutuning2


    Posts : 33
    Join date : 2013-10-30

    Error in console when you do subclass Empty Re: Error in console when you do subclass

    Post  manutuning2 7th February 2014, 21:08

    Hello DNR if the problem was that where the customskill added to the database. I could already solve, you could add the efectDeflectBuff the trunk,

    I perform a posting in suggestions for the effect

    Thanks for your support! goodnight
    Karakan
    Karakan


    Posts : 756
    Join date : 2013-10-04

    Error in console when you do subclass Empty Re: Error in console when you do subclass

    Post  Karakan 8th February 2014, 00:15

    Never heard of "efectDeflectBuff" in c4....

    Sponsored content


    Error in console when you do subclass Empty Re: Error in console when you do subclass

    Post  Sponsored content


      Current date/time is 19th May 2024, 12:59