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

    • buenas no puedo poner el server On para que entren mis amigos   LoginServer # ================================================= # Settings authorization server # ================================================= # Host and port for client connections LoginserverHostname = 127.0.0.1 LoginserverPort = 2106 # Host and port for game servers LoginHost = 192.168.100.25 ( mi Ip interna) LoginPort = 9014     GameServer   # =============================== # Network Configuration Server  # # =============================== # IP which Bind Game server, * - all possible GameserverHostname = * GameserverPort = 7777 # This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname ExternalHostname = 186.158.144.71 ( Ip externa ovbio) # This is transmitted to the client from the same network, so it has to be a local IP or resolvable host name InternalHostname = 192.168.100.25 # AdvIpSystem Make more GameServerIDs. Every Ip should be Protected by a DDoS Guard. # Your Server will have Success with this system Online. AdvIPSystem = False # Address \ port LS LoginPort = 9014 LoginHost = 192.168.100.25 LoginUseCrypt = true # How to request ID of LS RequestServerID = 4 # Permission to take a different id, if requested busy AcceptAlternateID = False     en que estaria fallando ?    
    • mporeis na valeis l2jaCis i kapoio etimo project  free sources gia aCis edw https://acis.i-live.eu/index.php?topic=1974.0 server install ktl edw https://acis.i-live.eu/index.php?topic=10190.0 an dn vgaleis akrh steile mou discord margazeas2
    • Hello! I am new to l2 server creation and i need your help please!!! I want to make my own l2 interlude c6 server with custom thing in it.  I need help with where to start. What source pack to pick to start and what to do. Please if you can help me i would appreciate it very much !!!
    • Need Discord with rare badge? VISIT US AND SHOP WITH US! NEW STOCK   Aged, Early Supporter Discord Accounts I sell HQ Aged and Early, Discord Accounts that are inactive and not flagged by discord at cheap prices   If you want to contact me, you can add me on discord: worldcoldwar Features: Format - age : email : pass : token Not flagged and undetected by discord HQ % With OGE Emails, password etc can be changed Unverified Early Supporter 24M Boost Badge HypeSquad Events Early Verified Bot Developer Early Supporters SHOP LINK: disvault1.mypaylix.gg/ For PayPal payments, please open a ticket. If you experience any problems with cryptocurrency payments, please open a ticket as well.
  • 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..