Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   l2asm/l2disasm output question (https://postpacific.loc-online.com/showthread.php?t=4422)

Spine 14.05.2006 14:13

l2asm/l2disasm output question
 
I just ran l2disasm on 3 files that i need to edit but i got a problem with the output files.
I ran l2disasm -d armorgrp.ddf armorgrp.dat armorgrp.txt and the same line on a few other files but the outputs are only around 800kb max and also seem to be missing data like skill_begin etc, anyone know how i can fix this ?

Xoleum 16.05.2006 02:43

They have another output format, that's why. But they work the same.

MelkorTheStrong 16.05.2006 03:20

there wouldn't happen to be a breakdown of this format lying around is there?

Spine 16.05.2006 22:15

Thanks.

CubAfull 16.05.2006 22:37

Decode.bat ^^

Code:

l2disasm -d c4\actionname-e.ddf -q actionname-e.dat actionname-e.txt

ANRDaemon 19.05.2006 02:01

When You skilled enough...

shell.bat:
Code:

SET DDF=%[1]
SET CMD=%[2]
shift 2

iff "%[1]" EQ "-e" then
  SET EXPORT=-e "%[2]"
  shift 2
endiff

iff "%[1]" EQ "-q" then
  SET SILENT=-q
  shift
endiff

iff "%[CMD]" EQ "enc" then
  X:\Path\To\l2asm\l2asm.exe -d "%[DDF]" %[SILENT] "%[2]" "%[1]"
elseiff "%[CMD]" EQ "dec" then
  X:\Path\To\l2asm\l2disasm.exe -d "%[DDF]" %[EXPORT] %[SILENT] "%[1]" "%[2]"
endiff

done

And add this to shell...
FTYPE l2asm=cmd.exe /C "X:\Path\To\l2asm\shell.bat" "%%1" %%*
ASSOC .ddf=l2asm

And just use definition file as archiver...
X:\Path\To\l2asm\c4\actionname-e.ddf dec file.dat file.txt
X:\Path\To\l2asm\c4\actionname-e.ddf enc file.dat file.txt

It's good for me... But You can use it or not... Or blame me... As You like...

P.S.
It is NOT A M$ BATCH SCRIPT.
Visit http://jpsoft.com/ for more information.

P.P.S.
"done" is ALIAS
Code:

done=iff %_TRANSIENT == 0 .and. %_BATCH == 1 then %+ exit %1 %+ else %+ quit %1 %+ endiff


All times are GMT. The time now is 15:39.