View Full Version : A question about weapongrp.dat
Megatronpt
08.02.2006, 13:44
Hey!
I've been having some difficulties make Sword of Valhalla with Acumen visible on my server.
The thing is.. if I use the weapongrp.dat that came with the server, I can see all names an textures, except the one for SoVA...
I used another weapongrp, from another server where I used to play and I can see the valhalla.. but it is a NoItemName... and almost all other weapons are like that as well.
So, I was thinking of rebuilding the weapongrp.dat to fit my server.. how do I do that?
Isn't it by getting your itemdata.txt from the scripts directory and searching/copying/pasting all itemtype=weapon into a new .txt, to encode later and re-create the .dat file?
Thanks in advance!
lol?
start by decrypting your weapongrp.dat and take a look at it before you talk random crap. oh, and btw, the 'search' function of the forum exists.
Megatronpt
08.02.2006, 14:43
Well.. that was "very" helpful.. and didnt quite answer... as I already searched..
When I do a l2encdec -s weapongrp.dat it works.. but when I try opening it with l2clientdat.exe it says wrong format or something like that.
l2encdec -g always outputs errors... so.. next idea?
It has to do with crossing between itemname-e and the weapongrp. This actually has been answered many times in search. Search for nonameitem
Edit: Or why dont you just copy the texture and mesh paths from the weapongrp that has it working to the one that doesn't? Use the Hami pack to decrypt the files. Works like a charm, except on C4 grp files which can't be decrypted with it.
Megatronpt
08.02.2006, 19:53
Thx for that update Eanae, I've tried decrypting that weapongrp.dat many times but it always says corrupt header... and that's with 2 different decoders.
My itemname-e.dat looks fine... maybe if I'm only able to rebuild the weapongrp from scratch... I'll try that tonight.. right now, I'm fixing Mammons and the Subclass manager... unfortunately I still don't understand AI well enough... but that's a matter of time.. ;)
Each Sword of Vahalla should use this. I've also included all my weapongrp that's fully decrypted. It's probably missing alot of stuff that you have, but iit may be helpfull to you.
item_begin object_id=148 object_name=[] body_part={rhand} animation=1 drop_type=1 drop_anim_type=1 drop_radius=7 drop_height=10 projectile=[none] curvature=1000 drop_mesh={[LineageWeapons.sword_of_valhalla_m00_wp]} drop_texture={[LineageWeaponsTex.sword_of_valhalla_t00_wp]} icon={[icon.weapon_sword_of_valhalla_i00]} mesh={[LineageWeapons.sword_of_valhalla_m00_wp]} texture={[LineageWeaponsTex.sword_of_valhalla_t00_wp]} crystallizable=1 item_sound={[ItemSound.sword_small_3];[ItemSound.sword_mid_2];[ItemSound.sword_mid_3];[ItemSound.public_sword_shing_10]} drop_sound=[ItemSound.itemdrop_sword] equip_sound=[ItemSound.itemequip_sword] weight=900 soulshot_count=1 spiritshot_count=1 material_type=oriharukon crystal_type=b physical_damage=140 random_damage=10 weapon_type=sword critical=8 hit_modify=0 avoid_modify=0 shield_defense=0 shield_defense_rate=0 attack_speed=379 mp_consume=0 magical_damage=122 durability=95 effect_c={[]} effect_c_s={[]} c3_attr1=0 c3_attr2=0.00 c3_attr3=0.00 c3_attr4=1.00 c3_attr5=1.00 range_s={[LineageWeapons.rangesample]} c3_attr6=1.40 c3_attr7=0.80 c3_attr8=0.80 c3_attr9=xx.xx c3_attr10=0.00 range2_s=0.00 range2_arg={} item_end
Megatronpt
08.02.2006, 21:38
Thanks. I'll try fixing my weapongrp. I'll post something here. ;)
Megatronpt
09.02.2006, 10:53
No luck...
Yesterday a guy told me about the PHP decrypter... but I can't make it work... He got me the .dat file in .php...
Told me to decode.. I tried, but said "header error".. and the PHP Decrypter simply won't work.. it outputs a 1Kb file.. :|
Any ideas?
Megatronpt
09.02.2006, 19:09
Well.. me and a friend rolled back to older *.dat files to do some tests..
I made some changes.. and now I can see it, but still a NoNameItem.
Itemname-e.dat code:
item_name_begin id=80000 name=[Sword of Valhalla] additionalname=[Acumen] popup=-1 description=[Increases Casting Speed by 15%] item_name_end
Weapongrp.dat code:
item_begin object_id=80000 object_name=[] body_part={rhand} animation=1 drop_type=1 drop_anim_type=1 drop_radius=7 drop_height=10 projectile=[none] curvature=1000 drop_mesh={[LineageWeapons.sword_of_valhalla_m00_wp]} drop_texture={[LineageWeaponsTex.sword_of_valhalla_t00_wp]} icon={[icon.weapon_sword_of_valhalla_i00]} mesh={[LineageWeapons.sword_of_valhalla_m00_wp]} texture={[LineageWeaponsTex.sword_of_valhalla_t00_wp]} crystallizable=1 item_sound={[ItemSound.sword_small_3];[ItemSound.sword_mid_2];[ItemSound.sword_mid_3];[ItemSound.public_sword_shing_10]} drop_sound=[ItemSound.itemdrop_sword] equip_sound=[ItemSound.itemequip_sword] weight=900 soulshot_count=1 spiritshot_count=1 material_type=oriharukon crystal_type=b physical_damage=140 random_damage=10 weapon_type=sword critical=8 hit_modify=0 avoid_modify=0 shield_defense=0 shield_defense_rate=0 attack_speed=379 mp_consume=0 magical_damage=122 durability=95 effect_c={[]} effect_c_s={[]} c3_attr1=0 c3_attr2=0.00 c3_attr3=0.00 c3_attr4=1.00 c3_attr5=1.00 range_s={[LineageWeapons.rangesample]} c3_attr6=1.40 c3_attr7=0.80 c3_attr8=0.80 c3_attr9=xx.xx c3_attr10=0.00 range2_s=0.00 range2_arg={} item_end
Regular Valhalla in both itemname and weapongrp code:
Item Name:
item_name_begin id=148 name=[Sword of Valhalla] additionalname=[] popup=-1 description=[] item_name_end
Weapongrp:
item_begin object_id=148 object_name=[] body_part={rhand} animation=1 drop_type=1 drop_anim_type=1 drop_radius=7 drop_height=10 projectile=[none] curvature=1000 drop_mesh={[LineageWeapons.sword_of_valhalla_m00_wp]} drop_texture={[LineageWeaponsTex.sword_of_valhalla_t00_wp]} icon={[icon.weapon_sword_of_valhalla_i00]} mesh={[LineageWeapons.sword_of_valhalla_m00_wp]} texture={[LineageWeaponsTex.sword_of_valhalla_t00_wp]} crystallizable=1 item_sound={[ItemSound.sword_small_3];[ItemSound.sword_mid_2];[ItemSound.sword_mid_3];[ItemSound.public_sword_shing_10]} drop_sound=[ItemSound.itemdrop_sword] equip_sound=[ItemSound.itemequip_sword] weight=900 soulshot_count=1 spiritshot_count=1 material_type=oriharukon crystal_type=b physical_damage=140 random_damage=10 weapon_type=sword critical=8 hit_modify=0 avoid_modify=0 shield_defense=0 shield_defense_rate=0 attack_speed=379 mp_consume=0 magical_damage=122 durability=95 effect_c={[]} effect_c_s={[]} c3_attr1=0 c3_attr2=0.00 c3_attr3=0.00 c3_attr4=1.00 c3_attr5=1.00 range_s={[LineageWeapons.rangesample]} c3_attr6=1.40 c3_attr7=0.80 c3_attr8=0.80 c3_attr9=xx.xx c3_attr10=0.00 range2_s=0.00 range2_arg={} item_end
Any ideas on what should I do next?
Thanks.
Use tabs not spaces.
It happened the same thing to me when i tried to add in a new item named Spirit Orb. It came out as Nonameitem..i tried everything then i just used those tab spaces betwen the code in itemname-e.dat
toolpunk
13.05.2006, 16:07
forum replaces tabs by 3 spaces...
and by the way, how about looking at the topic's date before posting? :roll:
Maybe your problem is.... in your new dats u add some weapon, armor o etcitem... the files weapongrp ... armorgrp or etcitemgrp contains line for this item and the replaced itemname-e.dat don't have....
to check if is correct... remember always... if you sum lines of grp files... must be identical to itemname-e.dat lines... and in the same order... if u add new armor at end of itemname-e.dat maybe have problems... i have NoItemName problem for weeks and... after a lot of test... i discover this was the problem.