A Project for Chronicle 4 based on L2JServer.


    Error GameServer

    Share

    kawodged

    Posts : 5
    Join date : 2018-09-25

    Error GameServer

    Post  kawodged on 26th September 2018, 00:00

    hi Guys!
    I'm having this problem when I start Gameserver

    Code:
    Error in file C:\Program Files (x86)\#l2 c4 server\#NOVAREV\599\gameserver\data\
    stats\skills\9000-9099.xml
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
           at net.sf.l2j.gameserver.model.L2Skill$SkillType.makeSkill(L2Skill.java:
    223)
           at net.sf.l2j.gameserver.skills.DocumentSkill.makeSkills(DocumentSkill.j
    ava:394)
           at net.sf.l2j.gameserver.skills.DocumentSkill.parseSkill(DocumentSkill.j
    ava:249)
           at net.sf.l2j.gameserver.skills.DocumentSkill.parseDocument(DocumentSkil
    l.java:116)
           at net.sf.l2j.gameserver.skills.DocumentBase.parse(DocumentBase.java:109
    )
           at net.sf.l2j.gameserver.skills.SkillsEngine.loadSkills(SkillsEngine.jav
    a:99)
           at net.sf.l2j.gameserver.skills.SkillsEngine.loadAllSkills(SkillsEngine.
    java:108)
           at net.sf.l2j.gameserver.datatables.SkillTable.reload(SkillTable.java:58
    )
           at net.sf.l2j.gameserver.datatables.SkillTable.<init>(SkillTable.java:51
    )
           at net.sf.l2j.gameserver.datatables.SkillTable.getInstance(SkillTable.ja
    va:43)
           at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:332)
           at net.sf.l2j.gameserver.GameServer.main(GameServer.java:784)
    Caused by: java.lang.reflect.InvocationTargetException
           at sun.reflect.GeneratedConstructorAccessor4.newInstance(Unknown Source)

           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
           at java.lang.reflect.Constructor.newInstance(Unknown Source)
           at net.sf.l2j.gameserver.model.L2Skill$SkillType.makeSkill(L2Skill.java:
    219)
           ... 11 more
    Caused by: java.lang.IllegalArgumentException: Enum value of type net.sf.l2j.gam
    eserver.model.L2Skill$SkillOpTyperequired, but found: PASSIVE
           at net.sf.l2j.gameserver.templates.StatsSet.getEnum(StatsSet.java:384)
           at net.sf.l2j.gameserver.model.L2Skill.<init>(L2Skill.java:450)
           at net.sf.l2j.gameserver.skills.l2skills.L2SkillDefault.<init>(L2SkillDe
    fault.java:31)
           ... 15 more

    SkillsEngine: Loaded 0 Skill templates from XML files.
    WalkerRoutesTable: Loaded 0 Npc Walker Routes.
    Initializing Walker Routes Table.
    RecipeController: Loaded 782 Recipes.
    SkillTreeTable: Loaded 0 skills.
    Exception in thread "main" java.lang.NullPointerException
           at net.sf.l2j.gameserver.datatables.SkillTreeTable.generateCheckArrays(S
    killTreeTable.java:311)
           at net.sf.l2j.gameserver.datatables.SkillTreeTable.<init>(SkillTreeTable
    .java:296)
           at net.sf.l2j.gameserver.datatables.SkillTreeTable.getInstance(SkillTree
    Table.java:66)
           at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:347)
           at net.sf.l2j.gameserver.GameServer.main(GameServer.java:784)

    can anybody help me?
    thanks
    avatar
    Karakan

    Posts : 471
    Join date : 2013-10-04

    Re: Error GameServer

    Post  Karakan on 26th September 2018, 14:00

    Caused by: java.lang.IllegalArgumentException: Enum value of type net.sf.l2j.gam
    eserver.model.L2Skill$SkillOpTyperequired, but found: PASSIVE


    Post your "9000-9099.xml" here.


    Tried to make a custom skill ?


    kawodged

    Posts : 5
    Join date : 2018-09-25

    Re: Error GameServer

    Post  kawodged on 26th September 2018, 21:22

    no.. is default. i just downloaded here and tried start loginserver and gameserver

    Code:
    <?xml version='1.0' encoding='utf-8'?>
    <list>
     <skill id="9001" levels="99" name="INT">
      <table name="#lvl">
         1  2  3  4  5  6  7  8  9 10
        11 12 13 14 15 16 17 18 19 20
        21 22 23 24 25 26 27 28 29 30
        31 32 33 34 35 36 37 38 39 40
        41 42 43 44 45 46 47 48 49 50
        51 52 53 54 55 56 57 58 59 60
        61 62 63 64 65 66 67 68 69 70
        71 72 73 74 75 76 77 78 79 80
        81 82 83 84 85 86 87 88 89 90
        91 92 93 94 95 96 97 98 99
      </table>
      <set name="target" val="TARGET_SELF"/>
      <set name="skillType" val="LUCK"/>
      <set name="operateType" val="PASSIVE"/>
      <!-- cannot be learned, given -->
      <set name="canLearn" val=""/>
      <for>
        <add val="#lvl" order="0x10" stat="STAT_INT"/>
      </for>
     </skill>
     <skill id="9002" levels="99" name="WIT">
      <table name="#lvl">
         1  2  3  4  5  6  7  8  9 10
        11 12 13 14 15 16 17 18 19 20
        21 22 23 24 25 26 27 28 29 30
        31 32 33 34 35 36 37 38 39 40
        41 42 43 44 45 46 47 48 49 50
        51 52 53 54 55 56 57 58 59 60
        61 62 63 64 65 66 67 68 69 70
        71 72 73 74 75 76 77 78 79 80
        81 82 83 84 85 86 87 88 89 90
        91 92 93 94 95 96 97 98 99
      </table>
      <set name="target" val="TARGET_SELF"/>
      <set name="skillType" val="LUCK"/>
      <set name="operateType" val="PASSIVE"/>
      <!-- cannot be learned, given -->
      <set name="canLearn" val=""/>
      <for>
        <add val="#lvl" order="0x10" stat="STAT_WIT"/>
      </for>
     </skill>
     <skill id="9003" levels="99" name="MEN">
      <table name="#lvl">
         1  2  3  4  5  6  7  8  9 10
        11 12 13 14 15 16 17 18 19 20
        21 22 23 24 25 26 27 28 29 30
        31 32 33 34 35 36 37 38 39 40
        41 42 43 44 45 46 47 48 49 50
        51 52 53 54 55 56 57 58 59 60
        61 62 63 64 65 66 67 68 69 70
        71 72 73 74 75 76 77 78 79 80
        81 82 83 84 85 86 87 88 89 90
        91 92 93 94 95 96 97 98 99
      </table>
      <set name="target" val="TARGET_SELF"/>
      <set name="skillType" val="LUCK"/>
      <set name="operateType" val="PASSIVE"/>
      <!-- cannot be learned, given -->
      <set name="canLearn" val=""/>
      <for>
        <add val="#lvl" order="0x10" stat="STAT_MEN"/>
      </for>
     </skill>
     <skill id="9004" levels="99" name="CON">
      <table name="#lvl">
         1  2  3  4  5  6  7  8  9 10
        11 12 13 14 15 16 17 18 19 20
        21 22 23 24 25 26 27 28 29 30
        31 32 33 34 35 36 37 38 39 40
        41 42 43 44 45 46 47 48 49 50
        51 52 53 54 55 56 57 58 59 60
        61 62 63 64 65 66 67 68 69 70
        71 72 73 74 75 76 77 78 79 80
        81 82 83 84 85 86 87 88 89 90
        91 92 93 94 95 96 97 98 99
      </table>
      <set name="target" val="TARGET_SELF"/>
      <set name="skillType" val="LUCK"/>
      <set name="operateType" val="PASSIVE"/>
      <!-- cannot be learned, given -->
      <set name="canLearn" val=""/>
      <for>
        <add val="#lvl" order="0x10" stat="STAT_CON"/>
      </for>
     </skill>
     <skill id="9005" levels="99" name="DEX">
      <table name="#lvl">
         1  2  3  4  5  6  7  8  9 10
        11 12 13 14 15 16 17 18 19 20
        21 22 23 24 25 26 27 28 29 30
        31 32 33 34 35 36 37 38 39 40
        41 42 43 44 45 46 47 48 49 50
        51 52 53 54 55 56 57 58 59 60
        61 62 63 64 65 66 67 68 69 70
        71 72 73 74 75 76 77 78 79 80
        81 82 83 84 85 86 87 88 89 90
        91 92 93 94 95 96 97 98 99
      </table>
      <set name="target" val="TARGET_SELF"/>
      <set name="skillType" val="LUCK"/>
      <set name="operateType" val="PASSIVE"/>
      <!-- cannot be learned, given -->
      <set name="canLearn" val=""/>
      <for>
        <add val="#lvl" order="0x10" stat="STAT_DEX"/>
      </for>
     </skill>
     <skill id="9006" levels="99" name="STR">
      <table name="#lvl">
         1  2  3  4  5  6  7  8  9 10
        11 12 13 14 15 16 17 18 19 20
        21 22 23 24 25 26 27 28 29 30
        31 32 33 34 35 36 37 38 39 40
        41 42 43 44 45 46 47 48 49 50
        51 52 53 54 55 56 57 58 59 60
        61 62 63 64 65 66 67 68 69 70
        71 72 73 74 75 76 77 78 79 80
        81 82 83 84 85 86 87 88 89 90
        91 92 93 94 95 96 97 98 99
      </table>
      <set name="target" val="TARGET_SELF"/>
      <set name="skillType" val="LUCK"/>
      <set name="operateType" val="PASSIVE"/>
      <!-- cannot be learned, given -->
      <set name="canLearn" val=""/>
      <for>
        <add val="#lvl" order="0x10" stat="STAT_STR"/>
      </for>
     </skill>
    </list>
    avatar
    Karakan

    Posts : 471
    Join date : 2013-10-04

    Re: Error GameServer

    Post  Karakan on 27th September 2018, 00:11

    Looks like you're using files from another L2J-fork.



    Your posted xml contains...

     <set name="operateType" val="PASSIVE"/>
     <!-- cannot be learned, given -->
     <set name="canLearn" val=""/>
     <for>
       <add val="#lvl" order="0x10" stat="STAT_INT"/>
     </for>
    </skill>



    Clean xml from our source....


     <set name="operateType" val="OP_PASSIVE"/>
     <set name="castRange" val="-1"/>
     <set name="effectRange" val="-1"/>
     <!-- cannot be learned, given -->
     <set name="canLearn" val=""/>
     <for>
       <add val="#lvl" order="0x10" stat="INT"/>
     </for>
    </skill>




    val="PASSIVE"  and stat="STAT_INT" not used in our project.

    kawodged

    Posts : 5
    Join date : 2018-09-25

    Re: Error GameServer

    Post  kawodged on 28th September 2018, 17:58

    thank u !
    but now i have another problem.
    i cant login. says password is not correctly, but is auto create on.
    avatar
    Karakan

    Posts : 471
    Join date : 2013-10-04

    Re: Error GameServer

    Post  Karakan on 29th September 2018, 01:25

    If you want to connect to the server from the same machine....

    Make sure you've put the right "Ip" in the config files.


    server.properties

    GameserverHostname=*
    InternalHostname=*
    LoginHost=127.0.0.1


    loginserver.properties

    InternalHostname=127.0.0.1
    LoginserverHostname=*
    LoginHostname=*



    Also.....

    Make sure the windows hosts file (C:\Windows\System32\drivers\etc) contains


    127.0.0.1 L2authd.lineage2.com

    kawodged

    Posts : 5
    Join date : 2018-09-25

    Re: Error GameServer

    Post  kawodged on 2nd October 2018, 18:46

    ok..
    this config its ok.

    i'll to continue try.
    tks for support.

    Sponsored content

    Re: Error GameServer

    Post  Sponsored content


      Current date/time is 16th November 2018, 02:50