L2J Revision 6490:
L2JDP Revision 10265:
So I've created a l2j server and I only have 1 issue, whenever i try to put npcs
I stuck to the part that i have to add lines to scripts.cfg since the file is missing,I guess my version dones't have it.
Okay but how show I add a custom npc buffer , for example YANBUFFEr , i've tried to add YANModPack into myserver\game\data\scripts\
but I guess i have to load it somehow... can anyone help me I just want to add a custom buffer nothing else.
ps:I've changed to true > CustomNpcTable = True
Missing file and/or buffer issue
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 40
- Joined: Sun Dec 29, 2013 4:01 am
Re: Missing file and/or buffer issue
Hi,
Please use search... viewtopic.php?f=13&t=26578
file supose to be:
game\data\scripts.cfg
Add YANModPack/YANBuffer/YANBuffer.java to your scripts.cfg file.
Good luck
Please use search... viewtopic.php?f=13&t=26578
file supose to be:
game\data\scripts.cfg
Add YANModPack/YANBuffer/YANBuffer.java to your scripts.cfg file.
Good luck
-
- Posts: 16
- Joined: Fri Jan 27, 2012 3:12 pm
Re: Missing file and/or buffer issue
I don't have the required amount of topics so that I can post at that YAN thread,
I've placed the unstable file YANBuffer from zip arcive
and into scripts.cfg added:
ps:my custom tables are all False in genera.properties file
And i did not change anything inside customnpcs.xml file
restarted the server and saw the following errors:
I've placed the unstable file YANBuffer from zip arcive
toYANBuffer_v5_u3_r2%28CT2.5_HighFive%29.zip\HighFive\unstable\game\data\scripts
YANModPack (is the folder)myserver/game/data/scripts
and into scripts.cfg added:
YANModPack/YANBuffer/YANBuffer.java
ps:my custom tables are all False in genera.properties file
And i did not change anything inside customnpcs.xml file
restarted the server and saw the following errors:
1. ERROR in \YANModPack\YANBuffer\YANBuffer.java (at line 53)
import com.l2jserver.gameserver.model.skills.BuffInfo;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import com.l2jserver.gameserver.model.skills.BuffInfo cannot be resolved
----------
2. ERROR in \YANModPack\YANBuffer\YANBuffer.java (at line 142)
return YANBufferData.getInstance().getBufferNpc(npc.getId());
^^^^^
The method getId() is undefined for the type L2Npc
----------
3. ERROR in \YANModPack\YANBuffer\YANBuffer.java (at line 154)
Long amount = items.get(item.getValue().item.getId());
^^^^^
The method getId() is undefined for the type L2Item
----------
4. ERROR in \YANModPack\YANBuffer\YANBuffer.java (at line 159)
items.put(item.getValue().item.getId(), amount + item.getValue().amount)
;
^^^^^
The method getId() is undefined for the type L2Item
----------
5. ERROR in \YANModPack\YANBuffer\YANBuffer.java (at line 165)
buff.skill.applyEffects(playable, playable);
^^^^^^^^^^
Skill cannot be resolved to a type
----------
6. ERROR in \YANModPack\YANBuffer\YANBuffer.java (at line 637)
final List<BuffInfo> effects = player.getEffectList().getEffects();
^^^^^^^^
BuffInfo cannot be resolved to a type
----------
7. ERROR in \YANModPack\YANBuffer\YANBuffer.java (at line 637)
final List<BuffInfo> effects = player.getEffectList().getEffects();
^^^^^^^^^^^^^
The method getEffectList() is undefined for the type L2PcInstance
----------
8. ERROR in \YANModPack\YANBuffer\YANBuffer.java (at line 638)
for (final BuffInfo effect : effects)
^^^^^^^^
BuffInfo cannot be resolved to a type
----------
9. ERROR in \YANModPack\YANBuffer\YANBuffer.java (at line 648)
if (buff.skill.getId() == effect.getSkill().getId())
^^^^^^^^^^
Skill cannot be resolved to a type
----------
----------
10. ERROR in C:\l2jserver\game\data\scripts\YANModPack\YANBuffer\YANBufferData.j
ava (at line 44)
import com.l2jserver.gameserver.datatables.NpcData;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import com.l2jserver.gameserver.datatables.NpcData cannot be resolved
----------
11. ERROR in C:\l2jserver\game\data\scripts\YANModPack\YANBuffer\YANBufferData.j
ava (at line 45)
import com.l2jserver.gameserver.datatables.SkillData;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import com.l2jserver.gameserver.datatables.SkillData cannot be resolved
----------
12. ERROR in C:\l2jserver\game\data\scripts\YANModPack\YANBuffer\YANBufferData.j
ava (at line 49)
import com.l2jserver.gameserver.model.skills.Skill;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import com.l2jserver.gameserver.model.skills.Skill cannot be resolved
----------
13. ERROR in C:\l2jserver\game\data\scripts\YANModPack\YANBuffer\YANBufferData.j
ava (at line 71)
protected final Skill skill;
^^^^^
Skill cannot be resolved to a type
----------
14. ERROR in C:\l2jserver\game\data\scripts\YANModPack\YANBuffer\YANBufferData.j
ava (at line 77)
protected Buff(String ident, Skill skill, BuffType type, Element elem)
^^^^^
Skill cannot be resolved to a type
----------
15. ERROR in C:\l2jserver\game\data\scripts\YANModPack\YANBuffer\YANBufferData.j
ava (at line 80)
this.skill = skill;
^^^^^^^^^^
Skill cannot be resolved to a type
----------
16. ERROR in C:\l2jserver\game\data\scripts\YANModPack\YANBuffer\YANBufferData.j
ava (at line 450)
Skill skill = SkillData.getInstance().getSkill(skillId, skillLevel);
^^^^^
Skill cannot be resolved to a type
----------
17. ERROR in C:\l2jserver\game\data\scripts\YANModPack\YANBuffer\YANBufferData.j
ava (at line 450)
Skill skill = SkillData.getInstance().getSkill(skillId, skillLevel);
^^^^^^^^^
SkillData cannot be resolved
----------
18. ERROR in C:\l2jserver\game\data\scripts\YANModPack\YANBuffer\YANBufferData.j
ava (at line 495)
L2NpcTemplate npc = NpcData.getInstance().getTemplate(npcId);
^^^^^^^
NpcData cannot be resolved
----------
19. ERROR in C:\l2jserver\game\data\scripts\YANModPack\YANBuffer\YANBufferData.j
ava (at line 502)
_bufferNpcs.put(npc.getId(), new BufferNpc(npc, curElem));
^^^^^
The method getId() is undefined for the type L2NpcTemplate
----------
----------
20. ERROR in C:\l2jserver\game\data\scripts\YANModPack\util\ItemRequirement.java
(at line 38)
this.placeholder.addChild("id", String.valueOf(item.getId())).addChild("
icon", item.getIcon()).addChild("name", item.getName()).addChild("amount", Strin
g.valueOf(amount));
^^^^^
The method getId() is undefined for the type L2Item
----------
20 problems (20 errors)The import com.l2jserver.gameserver.model.skills.BuffInfo
cannot be resolved
The import com.l2jserver.gameserver.datatables.NpcData cannot be resolved
The import com.l2jserver.gameserver.datatables.SkillData cannot be resolved
The import com.l2jserver.gameserver.model.skills.Skill cannot be resolved
The method getId() is undefined for the type com.l2jserver.gameserver.model.acto
r.L2Npc
The method getId() is undefined for the type com.l2jserver.gameserver.model.item
s.L2Item
The method getId() is undefined for the type com.l2jserver.gameserver.model.item
s.L2Item
Skill cannot be resolved to a type
Skill cannot be resolved to a type
BuffInfo cannot be resolved to a type
The method getEffectList() is undefined for the type com.l2jserver.gameserver.mo
del.actor.instance.L2PcInstance
BuffInfo cannot be resolved to a type
Skill cannot be resolved to a type
Skill cannot be resolved to a type
Skill cannot be resolved to a type
Skill cannot be resolved to a type
SkillData cannot be resolved
NpcData cannot be resolved
The method getId() is undefined for the type com.l2jserver.gameserver.model.acto
r.templates.L2NpcTemplate
The method getId() is undefined for the type com.l2jserver.gameserver.model.item
s.L2Item
Failed executing script: C:\l2jserver\game\data\scripts\YANModPack\YANBuffer\YAN
Buffer.java. See YANBuffer.java.error.log for details.
-
- Posts: 40
- Joined: Sun Dec 29, 2013 4:01 am
Re: Missing file and/or buffer issue
I never installed this one, but shouldn't be difficult...
Change "False" for "True"
In General.properties:
ADD SQL to your DATABASE (retail = l2jgs):
Copy paste from the original post... you cant write there, but you can read... all information...
Change "False" for "True"
In General.properties:
Code: Select all
# ---------------------------------------------------------------------------# Custom Components# --------------------------------------------------------------------------- # Default: FalseCustomSpawnlistTable = False # Option to save GM spawn only in the custom table.# Default: FalseSaveGmSpawnOnCustom = False # Default: FalseCustomNpcData = False # Default: FalseCustomTeleportTable = False # Default: FalseCustomNpcBufferTables = False # Default: FalseCustomSkillsLoad = False # Default: FalseCustomItemsLoad = False # Default: FalseCustomMultisellLoad = False # Default: FalseCustomBuyListLoad = False
ADD SQL to your DATABASE (retail = l2jgs):
Code: Select all
SET FOREIGN_KEY_CHECKS=0; CREATE TABLE `yanb_ulist_buffs` ( `ulist_id` int(10) unsigned NOT NULL, `ulist_buff_ident` varchar(255) NOT NULL, PRIMARY KEY (`ulist_id`,`ulist_buff_ident`), CONSTRAINT `yanb_ulist_buffs_ibfk_1` FOREIGN KEY (`ulist_id`) REFERENCES `yanb_ulists` (`ulist_id`) ON DELETE CASCADE ON UPDATE CASCADE) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `yanb_ulists` ( `ulist_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ulist_char_id` int(10) unsigned NOT NULL, `ulist_name` varchar(255) NOT NULL, PRIMARY KEY (`ulist_id`), UNIQUE KEY `ulist_char_id` (`ulist_char_id`,`ulist_name`), CONSTRAINT `yanb_ulists_ibfk_1` FOREIGN KEY (`ulist_char_id`) REFERENCES `characters` (`charId`) ON DELETE CASCADE ON UPDATE CASCADE) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Code: Select all
Npc Buffer Create a custom npc. Open buffer_npcs.xml. Change the id of the default npc buffer to the id of your custom created npc. (<buffer_npc id="1000006" can_heal="true" can_cancel="true">)
Copy paste from the original post... you cant write there, but you can read... all information...
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Missing file and/or buffer issue
Either you're not using the beta branch or you haven't updated your code in a loooong time. Unstable patch is for the beta branch, not for trunk.Skill cannot be resolved to a type
The method getId() is undefined for the type L2Item
...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 16
- Joined: Fri Jan 27, 2012 3:12 pm
Re: Missing file and/or buffer issue
I did all that you suggested and now it works like a charm
))) ps:I've forogtten to create a custom npc too but its working now !!! thank you 


-
- Posts: 106
- Joined: Thu Oct 06, 2011 11:08 pm
Re: Missing file and/or buffer issue
I have last revision & dont work, is normal?