Error in console when you do subclass

    Share

    manutuning2

    Posts : 33
    Join date : 2013-10-30

    Error in console when you do subclass

    Post  manutuning2 on 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
    Admin
    Admin

    Posts : 985
    Join date : 2012-12-03

    Re: Error in console when you do subclass

    Post  DnR on 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?

    manutuning2

    Posts : 33
    Join date : 2013-10-30

    Re: Error in console when you do subclass

    Post  manutuning2 on 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

    http://l2jlisvus.great-forum.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
    Admin
    Admin

    Posts : 985
    Join date : 2012-12-03

    Re: Error in console when you do subclass

    Post  DnR on 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.

    manutuning2

    Posts : 33
    Join date : 2013-10-30

    Re: Error in console when you do subclass

    Post  manutuning2 on 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

    http://imagizer.imageshack.us/v2/800x600q90/855/sfxa.jpg



    thanks

    DnR
    Admin
    Admin

    Posts : 985
    Join date : 2012-12-03

    Re: Error in console when you do subclass

    Post  DnR on 28th January 2014, 13:45

    So you still get this NPE error?

    manutuning2

    Posts : 33
    Join date : 2013-10-30

    Re: Error in console when you do subclass

    Post  manutuning2 on 28th January 2014, 17:27

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

    DnR
    Admin
    Admin

    Posts : 985
    Join date : 2012-12-03

    Re: Error in console when you do subclass

    Post  DnR on 29th January 2014, 14:17

    Alright, could you post line 9764 please?

    manutuning2

    Posts : 33
    Join date : 2013-10-30

    Re: Error in console when you do subclass

    Post  manutuning2 on 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
    Admin
    Admin

    Posts : 985
    Join date : 2012-12-03

    Re: Error in console when you do subclass

    Post  DnR on 1st February 2014, 12:24

    Have you added any custom skill to database?

    manutuning2

    Posts : 33
    Join date : 2013-10-30

    Re: Error in console when you do subclass

    Post  manutuning2 on 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
    avatar
    Karakan

    Posts : 405
    Join date : 2013-10-04

    Re: Error in console when you do subclass

    Post  Karakan on 8th February 2014, 00:15

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

    Sponsored content

    Re: Error in console when you do subclass

    Post  Sponsored content


      Current date/time is 16th August 2017, 18:32