Jump to content

Question

Posted (edited)

well... i compiled an old pack i had working fine, and the svn is not working anymore.. so i took a copy from my friends backup data and tried to open it and i am takin these errors and as he told me he did something but he doesnt remember what so i need some help with this.. i replaced the script files showing the errors and still same errors:

 

Pack info:

-------------------------------------------

L2j gracia final

L2J Server Version:    3287
L2J Datapack Version:  6395

-------------------------------------------

errors:

72. ERROR in \QueenAnt.java (at line 174)
        nurse.useMagic(getRandomBoolean() ? HEAL1.getSkill() : HEAL2.getSkill())
;
                       ^^^^^^^^^^^^^^^^
The method getRandomBoolean() is undefined for the type QueenAnt
----------
73. ERROR in \QueenAnt.java (at line 174)
        nurse.useMagic(getRandomBoolean() ? HEAL1.getSkill() : HEAL2.getSkill())
;
                                            ^^^^^
SkillHolder cannot be resolved to a type
----------
74. ERROR in \QueenAnt.java (at line 174)
        nurse.useMagic(getRandomBoolean() ? HEAL1.getSkill() : HEAL2.getSkill())
;
                                                               ^^^^^
SkillHolder cannot be resolved to a type
----------
75. ERROR in \QueenAnt.java (at line 180)
        if (nurse.getLeader() == _larva)
                                 ^^^^^^
L2MonsterInstance cannot be resolved to a type
----------
76. ERROR in \QueenAnt.java (at line 185)
        if ((nurse.getTarget() != _queen) || notCasting)
                                  ^^^^^^
L2MonsterInstance cannot be resolved to a type
----------
77. ERROR in \QueenAnt.java (at line 187)
        nurse.setTarget(_queen);
                        ^^^^^^
L2MonsterInstance cannot be resolved to a type
----------
78. ERROR in \QueenAnt.java (at line 188)
        nurse.useMagic(HEAL1.getSkill());
                       ^^^^^
SkillHolder cannot be resolved to a type
----------
79. ERROR in \QueenAnt.java (at line 201)
        if (getRandom(3) == 0)
            ^^^^^^^^^
The method getRandom(int) is undefined for the type QueenAnt
----------
80. ERROR in \QueenAnt.java (at line 203)
        if (getRandom(2) == 0)
            ^^^^^^^^^
The method getRandom(int) is undefined for the type QueenAnt
----------
81. ERROR in \QueenAnt.java (at line 215)
        L2GrandBossInstance queen = (L2GrandBossInstance) addSpawn(QUEEN, QUEEN_
X, QUEEN_Y, QUEEN_Z, 0, false, 0);
        ^^^^^^^^^^^^^^^^^^^
L2GrandBossInstance cannot be resolved to a type
----------
82. ERROR in \QueenAnt.java (at line 215)
        L2GrandBossInstance queen = (L2GrandBossInstance) addSpawn(QUEEN, QUEEN_
X, QUEEN_Y, QUEEN_Z, 0, false, 0);
                                     ^^^^^^^^^^^^^^^^^^^
L2GrandBossInstance cannot be resolved to a type
----------
83. ERROR in \QueenAnt.java (at line 215)
        L2GrandBossInstance queen = (L2GrandBossInstance) addSpawn(QUEEN, QUEEN_
X, QUEEN_Y, QUEEN_Z, 0, false, 0);
                                                          ^^^^^^^^
The method addSpawn(int, int, int, int, int, boolean, int) is undefined for the
type QueenAnt
----------
84. ERROR in \QueenAnt.java (at line 216)
        GrandBossManager.getInstance().setBossStatus(QUEEN, ALIVE);
        ^^^^^^^^^^^^^^^^
GrandBossManager cannot be resolved
----------
85. ERROR in \QueenAnt.java (at line 223)
        public String onSpawn(L2Npc npc)
                              ^^^^^
L2Npc cannot be resolved to a type
----------
86. ERROR in \QueenAnt.java (at line 225)
        final L2MonsterInstance mob = (L2MonsterInstance) npc;
              ^^^^^^^^^^^^^^^^^
L2MonsterInstance cannot be resolved to a type
----------
87. ERROR in \QueenAnt.java (at line 225)
        final L2MonsterInstance mob = (L2MonsterInstance) npc;
                                       ^^^^^^^^^^^^^^^^^
L2MonsterInstance cannot be resolved to a type
----------
88. ERROR in \QueenAnt.java (at line 236)
        _nurses.add(mob);
        ^^^^^^^
L2MonsterInstance cannot be resolved to a type
----------
89. ERROR in \QueenAnt.java (at line 248)
        public String onFactionCall(L2Npc npc, L2Npc caller, L2PcInstance attack
er, boolean isSummon)
                                    ^^^^^
L2Npc cannot be resolved to a type
----------
90. ERROR in \QueenAnt.java (at line 248)
        public String onFactionCall(L2Npc npc, L2Npc caller, L2PcInstance attack
er, boolean isSummon)
                                               ^^^^^
L2Npc cannot be resolved to a type
----------
91. ERROR in \QueenAnt.java (at line 248)
        public String onFactionCall(L2Npc npc, L2Npc caller, L2PcInstance attack
er, boolean isSummon)
                                                             ^^^^^^^^^^^^
L2PcInstance cannot be resolved to a type
----------
92. ERROR in \QueenAnt.java (at line 255)
        if (!npc.isCastingNow() && (npc.getAI().getIntention() != CtrlIntention.
AI_INTENTION_CAST))
                                                                  ^^^^^^^^^^^^^
CtrlIntention cannot be resolved to a variable
----------
93. ERROR in \QueenAnt.java (at line 260)
        ((L2Attackable) npc).useMagic(HEAL1.getSkill());
          ^^^^^^^^^^^^
L2Attackable cannot be resolved to a type
----------
94. ERROR in \QueenAnt.java (at line 260)
        ((L2Attackable) npc).useMagic(HEAL1.getSkill());
                                      ^^^^^
SkillHolder cannot be resolved to a type
----------
95. ERROR in \QueenAnt.java (at line 267)
        public String onAggroRangeEnter(L2Npc npc, L2PcInstance player, boolean
isSummon)
                                        ^^^^^
L2Npc cannot be resolved to a type
----------
96. ERROR in \QueenAnt.java (at line 267)
        public String onAggroRangeEnter(L2Npc npc, L2PcInstance player, boolean
isSummon)
                                                   ^^^^^^^^^^^^
L2PcInstance cannot be resolved to a type
----------
97. ERROR in \QueenAnt.java (at line 275)
        final L2Playable character;
              ^^^^^^^^^^
L2Playable cannot be resolved to a type
----------
98. ERROR in \QueenAnt.java (at line 292)
        if (!Config.RAID_DISABLE_CURSE && ((character.getLevel() - npc.getLevel(
)) > 8))
             ^^^^^^
Config cannot be resolved to a variable
----------
99. ERROR in \QueenAnt.java (at line 294)
        L2Skill curse = null;
        ^^^^^^^
L2Skill cannot be resolved to a type
----------
100. ERROR in \QueenAnt.java (at line 324)
        public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
                             ^^^^^
L2Npc cannot be resolved to a type
----------
100 problems (100 errors)AbstractNpcAI cannot be resolved to a type
L2GrandBossInstance cannot be resolved to a type
L2Npc cannot be resolved to a type
L2PcInstance cannot be resolved to a type
L2Npc cannot be resolved to a type
L2Npc cannot be resolved to a type
L2Npc cannot be resolved to a type
L2PcInstance cannot be resolved to a type
L2Npc cannot be resolved to a type
L2PcInstance cannot be resolved to a type
L2Npc cannot be resolved to a type
L2PcInstance cannot be resolved to a type
The import ai.npc cannot be resolved
The import com.l2jserver.Config cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
SkillHolder cannot be resolved to a type
SkillHolder cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2BossZone cannot be resolved to a type
SkillHolder cannot be resolved to a type
SkillHolder cannot be resolved to a type
QuestEventType cannot be resolved to a variable
QuestEventType cannot be resolved to a variable
QuestEventType cannot be resolved to a variable
The method addFactionCallId(int) is undefined for the type ai.individual.QueenAn
t
L2BossZone cannot be resolved to a type
GrandBossManager cannot be resolved
StatsSet cannot be resolved to a type
GrandBossManager cannot be resolved
GrandBossManager cannot be resolved
The method startQuestTimer(java.lang.String, long, null, null) is undefined for
the type ai.individual.QueenAnt
L2GrandBossInstance cannot be resolved to a type
L2GrandBossInstance cannot be resolved to a type
The method addSpawn(int, int, int, int, int, boolean, int) is undefined for the
type ai.individual.QueenAnt
GrandBossManager cannot be resolved
L2BossZone cannot be resolved to a type
L2GrandBossInstance cannot be resolved to a type
L2GrandBossInstance cannot be resolved to a type
The method addSpawn(int, int, int, int, int, boolean, int) is undefined for the
type ai.individual.QueenAnt
GrandBossManager cannot be resolved
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
L2BossZone cannot be resolved to a type
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
L2BossZone cannot be resolved to a type
L2BossZone cannot be resolved to a type
GrandBossManager cannot be resolved
The method startQuestTimer(java.lang.String, int, null, null, boolean) is undefi
ned for the type ai.individual.QueenAnt
PlaySound cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
CtrlIntention cannot be resolved to a variable
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
The method getRandomBoolean() is undefined for the type ai.individual.QueenAnt
SkillHolder cannot be resolved to a type
SkillHolder cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
SkillHolder cannot be resolved to a type
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
L2GrandBossInstance cannot be resolved to a type
L2GrandBossInstance cannot be resolved to a type
The method addSpawn(int, int, int, int, int, boolean, int) is undefined for the
type ai.individual.QueenAnt
GrandBossManager cannot be resolved
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
CtrlIntention cannot be resolved to a variable
L2Attackable cannot be resolved to a type
SkillHolder cannot be resolved to a type
L2Playable cannot be resolved to a type
Config cannot be resolved to a variable
L2Skill cannot be resolved to a type
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
SkillTable cannot be resolved
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
SkillTable cannot be resolved
MagicSkillUse cannot be resolved to a type
L2Attackable cannot be resolved to a type
PlaySound cannot be resolved to a type
GrandBossManager cannot be resolved
Config cannot be resolved to a variable
Config cannot be resolved to a variable
Config cannot be resolved to a variable
The method startQuestTimer(java.lang.String, long, null, null) is undefined for
the type ai.individual.QueenAnt
The method cancelQuestTimer(java.lang.String, null, null) is undefined for the t
ype ai.individual.QueenAnt
StatsSet cannot be resolved to a type
GrandBossManager cannot be resolved
GrandBossManager cannot be resolved
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
Failed executing script: C:\Users\SudoAnonymous\Desktop\l2 gracia servers\L2j wa
tchdogs pack\GameServer\data\scripts\ai\individual\QueenAnt.java. See QueenAnt.j
ava.error.log for details.

some help with this? -.- i think all ai scripts are destroyed.. (90% of errors are posted as cannot be resolved to a type)

Edited by MouzasSierra117

6 answers to this question

Recommended Posts

  • 0
Posted

Wrong imports, verfiy other scripts imports to get the correct writing (looks like only QueenAnt is bugged). If it's on more scripts, then you screwed somewhere (either compilation time hs been corrputed or packages are different).

  • 0
Posted (edited)

Wrong imports, verfiy other scripts imports to get the correct writing (looks like only QueenAnt is bugged). If it's on more scripts, then you screwed somewhere (either compilation time hs been corrputed or packages are different).

 

so all these errors comming from qa boss files? do you have any svn for final gracia?

Edited by MouzasSierra117
  • 0
Posted

Scripts didn't change that much since that time, and yup from what you posted it's only QueenAnt.

i fixed most and i am taking this error with Valakas this time... the errors were almost 100 o.O' now i left them on 5.. some help? and some solutions i can try?

Loading Server Scripts
----------
1. WARNING in \Valakas.java (at line 1256)
        {
                        if (timer != null)
                                timer.cancel();
                        return;
                }
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dead code
----------
2. WARNING in \Valakas.java (at line 1275)
        startQuestTimer("1003", 500, npc, null, true);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dead code
----------
3. WARNING in \Valakas.java (at line 1292)
        startQuestTimer("1003", 500, npc, null, true);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dead code
----------
3 problems (3 warnings)----------
1. WARNING in C:\Users\Sudo Anonymous\Desktop\L2j watchdogs pack\GameServer\data\scripts\handlers\admincommandhandlers\AdminEffects.java (at line 479)
        activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dead code
----------
2. WARNING in C:\Users\Sudo Anonymous\Desktop\L2j watchdogs pack\GameServer\data\scripts\handlers\admincommandhandlers\AdminEffects.java (at line 545)
        activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dead code
----------
3. WARNING in C:\Users\Sudo Anonymous\Desktop\L2j watchdogs pack\GameServer\data\scripts\handlers\admincommandhandlers\AdminEffects.java (at line 581)
        activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dead code
----------
----------
4. WARNING in C:\Users\Sudo Anonymous\Desktop\L2j watchdogs pack\GameServer\data\scripts\handlers\admincommandhandlers\AdminEventEngine.java (at line 107)
        BufferedReader inbr = new BufferedReader(new InputStreamReader(in));
                       ^^^^
Resource leak: 'inbr' is never closed
----------
----------
5. WARNING in C:\Users\Sudo Anonymous\Desktop\L2j watchdogs pack\GameServer\data\scripts\handlers\itemhandlers\SummonItems.java (at line 127)
        return;
        ^^^^^^^
Dead code
----------
5 problems (5 warnings)Loading Handlers...

i am taking them as wornings but it gives them in the end as dead codes... how can i fix these.. lol i am mad..

  • 0
Posted (edited)

You can remove them, since it's a dead code. Or you removed some lines which made it dead code, that means you messed a bit.

Edited by SweeTs
  • 0
Posted (edited)

You can remove them, since it's a dead code. Or you removed some lines which made it dead code, that means you messed a bit.

if i remove them i wont have problems with item handlers and admincommand handlers? i didnt remove any lines of it. its doing this since i copied the pack from my backup drive.. i took the files of a compiled version and it does it still. can you find me the correct codes to replace them and upload them plz? i will be thkfull for it! i need these

Edited by MouzasSierra117

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...