![]() |
|
|
#1 |
|
Архивный участник
Join Date: Mar 2006
Posts: 26
|
i am trying to get "skillsoundgrp.dat" decoded to txt and i got the output php file which has :
Code:
<?php
$rs[0] = array("nose01" => "1", "nose02" => "1", "nose03" => "SkillSound4.fatal_strike_cast", "nose04" => "SkillSound4.fatal_strike_shot", "nose05" => "", "nose06" => "1132068864", "nose07" => "
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
I think i told you in the forum. I'm not 100% positive on this but I think l2asm diasm (this is NOT php c3encdec) can encode and decode c4 skillsoundgrp.dat. It may give you a 'weird' output but it's 100% editable and encodable (at least it should be).
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jun 2005
Posts: 143
|
I'm pretty sure I posted a fix for that long ago
check in the sticky section, digital made a topic with all old shared files Edit: ok ..forget what I said if you are using C3, what I posted is for C4 but if changes all the names from nose0x to names we can read and all that high numbers to normal float's after you get that file you can change what you want and run the make scripts to change it again to dat format being in php format has many advantages from the txt format, its very easy to write another script to change values, or write other files (like decoding recipe-c.dat and itemname-e.dat and in 10min create 100% C4 recipies html and recipies.txt for server) |
|
|
|
|
#4 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
Differents in "$write = ..." But no all scripts easy to fix to new format. [php:1:948e8e70e4]<?php // L2ScriptMaker C4 compatible // 21 Apr 2006 // edited by HF, Russia include("func.php"); $fp = fopen("../input/dec-castlename-e.dat", "rb"); $count = endian($fp, 4); $fpo = fopen("../output/castlename-e.txt", "w+"); for ($i = 0; $i < $count; $i++) { unset($rs); $rs = readcastlename($fp); $write = "item_begin id={$rs['id']} name=[{$rs['name']}] loc=[{$rs['loc']}] desc=[{$rs['desc']}] castle_end\n"; // $write = " \$rs[$i] = ".array_to_code($rs).";\n"; fwrite($fpo, $write, strlen($write)); } fclose($fpo); function readcastlename($fp) { $rs['nose01'] = endian($fp, 4); $rs['nose02'] = endian($fp, 4); $rs['id'] = endian($fp, 4); $rs['name'] = textread($fp, 1); $rs['loc'] = textread($fp, 1); $rs['desc'] = textread($fp, 1); return $rs; } ?>[/php:1:948e8e70e4] |
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Oct 2005
Posts: 161
|
If u want go there https://postpacific.loc-online.com/f...918&highlight= and use the tutorial.From the DecPack u can download there u can use the l2asm/disasm that can decode your skillsoundgrp.dat (it can decode/encode for both C3-C4) in txt,change it and then encode it back
|
|
|
|
|