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

    • You should buy it then I’ll make a discount  
    • Hi everyone,   In 2014, I completely stepped away from developing L2 servers and doing L2J-related work. Since then, I’ve only opened this server about once a year and helped a few servers and individuals for free. I haven’t taken on any paid L2J work since then.   LINEAGE2.GOLD is a project that has reached about Season 6. The first season launched at the end of 2020 and was a fully rebuilt Gold-style server on the Classic client (protocol 110). It featured many custom systems and enhancements. After several seasons, I decided to abandon the Mobius-based project and move to Lucera, as my goal was to get as close as possible to Interlude PTS behavior while still staying on the L2J platform.   The current project was once again completely rebuilt, this time on the Essence client (protocol 306), and is based on Lucera. Because of that, acquiring a license from Deazer is required.   My Lucera extender includes, but is not limited to: Formulas.java Basic anti-bot detection, which proved quite effective, we caught most Adrenaline users using relatively simple server-side logic, logged them, and took staff action. Simple admin account lookup commands based on IP, HWID, and similar identifiers. In-game Captcha via https://lineage2.gold/code, protected by Cloudflare, including admin commands for blacklisting based on aggression levels and whitelisting. Additional admin tools such as Auto-Play status checks, Enchanted Hero Weapon live sync, force add/remove clans from castle sieges, item listeners for live item monitoring, and more. A fully rewritten Auto-Play system with support for ExAutoPlaySetting, while still using the Auto-Play UI wheel, featuring: Debuff Efficiency Party Leader Assist Respectful Hunting Healer AI Target Mode Range Mode Summoner buff support Dwarf mechanics Reworked EffectDispelEffects to restore buffs after Cancellation. Raid Bomb item support. Reworked CronZoneSwitcher. Prime Time Raid Respawn Service. Community Board features such as Top rankings and RB/Epic status. Custom systems for Noblesse, Subclasses, support-class rewards, and much more.   Depending on the deal, the project can include: The lineage2.gold domain The website built on the Laravel PHP framework The server’s Discord Client Interface source Server files and extender source The server database (excluding private data such as emails and passwords)   I’m primarily looking for a serious team to continue the project, as it would be a shame to see this work abandoned. This is not cheap. You can DM me with offers. If you’re wondering why I’m doing this: I’ve felt a clear lack of appreciation from the L2 community, and I’m not interested in doing charity work for people who don’t deserve it. I’m simply not someone who tolerates BS. Server Info: https://lineage2.gold/info Server for test: https://lineage2.gold/download Over 110 videos YouTube playlist: https://www.youtube.com/watch?v=HO7BZaxUv2U&list=PLD9WZ0Nj-zstZaYeWxAxTKbX7ia2M_DUu&index=113
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

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