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

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

    • Hello community, I’d like to share an improved version of the L2smr editor for StaticMeshes, focused on solving some workflow issues I found in the original tool. CreditsThis project is based on the original acmi/L2smr repository https://github.com/acmi/L2smr , created by acmi, and I updated it to Java 17 with some additional features. Issues in the original L2smr Too many windows: each StaticMesh opened in a new one → cluttered desktop. No search: navigating through hundreds of StaticMeshActors was slow and tedious. Added improvements Flexible views Single Window Mode: reuse one window instead of opening new ones. Multiple Window Mode: still available for those who prefer having several views open simultaneously. Real-time Search Field Instant filtering as you type. Case-insensitive search. “Reset” button to quickly clear the search.     Installation and Execution: Clone the repository: git clone https://github.com/Jeep12/l2smr.git cd l2smr        2.Build the project:   ./gradlew build        3. Run the application:     ./run.bat      Or simply double-click on run.bat.     The run.bat script automatically extracts JavaFX from the included javafx-17.0.2.zip file in the javafx/ directory, sets up the required libraries, and launches the application. You don’t    need to install JavaFX separately.      Repository: https://github.com/Jeep12/l2smr     Maybe these features already existed in another version or fork, and they might not be very big changes, but since I didn’t know about them and found them necessary, I decided to          implement them myself and wanted to share them.      
    • no....Mobius L2Clientdat and L2FileEditor can do that...but still cant works with TaiWanese Grand Crusade ,especially Armorgrp.dat and Armorgrp-Classic.dat
    • L2GOLD - Halcyon x45 Project Classic Interlude   C6 - Classic Interlude: Protocol 110     Is a complete copy of L2Gold in Classic [110 Protocol] with L2OFF files.   Fully L2Gold Features - Daily Quest - Daily Mining Quest - Ancient Weapons -Refine System  -Rebirth System -Fully configurable everything you want -Gold stats/Gold skills/Gold items working 100% -Zones 100% alike  -Unique donations system (npc or voicedcommand .donate) - On Enchant success announcement ( if +16 for weapon, 8 for armor , 7 for jewel) - Announce of Castle Lord - Announce of Hero  - Olympiad Max A grade - Olympiad Buffs on matches changed to Gold Alike - Working fully Dreadbane   - AI Mods: Static Time for RB   Automated Events: Squash Watermelon RB Event High rate  (those are fully automated)   Server is running a Test Server: Online to anyone can test it.   Game Client: https://www.mediafire.com/file/1d8xe18rvgi04lx/L2_Classic_Interlude_Client_V2.rar/file   Game Patch: https://www.mediafire.com/file/3z4b8ezy93h2z1g/L2Halcyon+Gold+Patch.rar/file   GM Accounts: ID: root pass root [ accounts go from  root1 until root20 ]   Regular Accounts Registrations: http://84.247.164.27/?page=register   Some Screenshots: https://imgur.com/a/o7TxzTN   Contact me here via PM (only serious buyers).    Price of the product: Fully Server Pack + Source ( 250 Euros )
    • ✨ A Service with Vibes  Vibe SMS ✨   Vibe SMS is not just a platform for working with numbers. We’ve built it to be simple, convenient, and stress-free, so your tasks get done without hassle. We value real communication: we listen to your ideas, provide support, and make sure everyone feels calm and confident. With us, you’re not just a client  you’re part of a space built on trust, support, and a human touch. Vibe SMS is a place where people matter and where we create an atmosphere you’ll want to stay in.   Website link — https://vibe-sms.net/ Our Telegram channel — https://t.me/vibe_sms
  • 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