View Full Version : PHP C3EncDec
i am trying to get "skillsoundgrp.dat" decoded to txt and i got the output php file which has :
<?php
$rs[0] = array("nose01" => "1", "nose02" => "1", "nose03" => "SkillSound4.fatal_strike_cast", "nose04" => "SkillSound4.fatal_strike_shot", "nose05" => "", "nose06" => "1132068864", "nose07" => "
now my question is what next? after i get this output file? what shouldl i do with it? Maybe you know a better way to decode it to txt?
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).
Alien003
14.06.2006, 03:27
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)
i am trying to get "skillsoundgrp.dat" decoded to txt and i got the output php file which has :
<?php
$rs[0] = array("nose01" => "1", "nose02" => "1", "nose03" => "SkillSound4.fatal_strike_cast", "nose04" => "SkillSound4.fatal_strike_shot", "nose05" => "", "nose06" => "1132068864", "nose07" => "
now my question is what next? after i get this output file? what shouldl i do with it? Maybe you know a better way to decode it to txt?if you want use PHP pack in next time, you must lost time for edited all php-scripts to new formats. Example, it is remake script for plain output file.
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]
Alexandros
14.06.2006, 07:54
If u want go there https://postpacific.loc-online.com/forum/viewtopic.php?t=4918&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