PDA

View Full Version : Invoking l2asm


4stryker
20-08-2006, 00:27
i'have some problems when encoding with l2asm ... i've decoded armor.grp.dat and chargrp.dat with l2encdec after that i used l2disasm ..all worked fine ...
--------------------------
c:\Temp\l2asm-disasm_092_beta>l2disasm -d armorgrp.ddf -q -e export armorgrp2.dat armorgrp.clear.dat

L2 disasm 0.92 beta by DStuff.

Record reg soft: 4
Record M/T soft: 4 / 4
Record MAT soft: 0
Record ASCF len: 0
Record UNI len: 52

Tabs subst. : 0
CRs subst. : 0
NLs subst. : 0
UNK convs. : 0
UNI convs. : 24616

Total allocated by pooler: 4198400
------------------------------------

but when i tried to encode it back with l2asm nothing happened ..it just gave me this message :

c:\Temp\l2asm-disasm_092_beta>l2asm -d armorgrp.ddf -q armorgrp.clear.dat armorgrp.mod.dat

L2 asm 0.92 beta by DStuff.

MTX field 'm_HumnFigh' must have both soft limits set (-1 / -1).
Post-parse init failed (check ddf file 'armorgrp.ddf').
Total allocated by pooler: 4198400


l2asm worked on itemname-e.dat ...didn't wok on armorgrp.dat and chargrp.dat :?:

Can someone help me figure this out ??
Tks allot

4stryker
20-08-2006, 00:39
i've worked with .utx, .ini, .int bot none of those gave me so much trouble ... i've tried other .dat encdec tools but none of them worked on armorgrp.dat and chargrp.dat (i succeded with modifing the C4 client original files with l2clientdat ..but i want to modify something in a custom armorgrp.dat that contains some c5 armors)

dstuff
20-08-2006, 07:54
Can someone help me figure this out ??
Tks allot

SOFT, SOFTM, SOFTT - are properties that control, how many columns are to be printed, when a dynamic table is used. SOFT is for regular field like UINT val3[val1] in the example above. SOFTM and SOFTT control the internals of MTX (respectively UNICODE mesh[cntm] and UNICODE tex[cntt] in MTX pseudo-struct). SOFTM also controls MAT ( {...} mats[cnt] in MAT pseudo-struct). L2disasm updates the fields in the first pass, if they are not specified, or are too low. L2asm REQUIRES these properties to be set on all MTX, MAT and dynamic table fields. For easy generating DDF files for l2asm - please use l2disasm's -e option.

Look closely at your l2asm invocation.

stryker_
25-08-2006, 05:09
Sory for the stupid post ... i was working at 3 in the morning and i didn't pay attention to the -e function ... figure it out the next day

Also i made an easy way to dec/enc DAT files based on your work :D ...
hope u like it ... and tell me if i have your permission to post it elsewhere ...
i don't want no credit ... just tring to help the beginners so they don't need to deal with those long command lines

stryker_
25-08-2006, 05:19
:roll: sry ..forgot to place the link so here it is ...
http://www.4shared.com/file/3244111/42f4dec6/easyl2asm-disasm.html

i also encountered a problem with a custom weapongrp.dat ... l2disasm just generated a 0 bytes file, also no ddf file was created ... with the original c4 weapongrp.dat i had no problems ...
here is a link at the weapongrp.dat
http://www.4shared.com/file/3244066/9213b795/weapongrp.html

imported_stryker_
05-09-2006, 15:16
updated link with exe files that use l2asm/disasm0.941 + made exe files that decrypt .dat .ini .int files
http://www.4shared.com/file/4048769/c55a9cbc/encdec_tools.html