Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 13.06.2006, 17:52   #1
Junglos
Архивный участник
 
Join Date: Mar 2006
Posts: 26
Default PHP C3EncDec

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" => "
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?
Junglos is offline  
Old 13.06.2006, 23:45   #2
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

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).
m4rk is offline  
Old 14.06.2006, 03:27   #3
Alien003
Архивный участник
 
Join Date: Jun 2005
Posts: 143
Default

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)
Alien003 is offline  
Old 14.06.2006, 06:04   #4
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default Re: PHP C3EncDec

Quote:
Originally Posted by Junglos
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" => "
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]
HF is offline  
Old 14.06.2006, 07:54   #5
Alexandros
Архивный участник
 
Join Date: Oct 2005
Posts: 161
Default

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
Alexandros is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:47.