Hex Rez extractor [LTB]

Posts 1–15 of 28 · Page 1 of 2
Hex Rez extractor [LTB]
I keep this secret for CSCFE, but now it down and i don't need to keep it any more.
For who call they are Pro (Pro = silly + selfish + spammer + idiot) Ex: Va_silly
For who Leecher rank and call noob (noob = naive + smart + not spam)
True Pro = good at every thing
True noob = good at one thing (i'm noob ^^, i only 3D modeler)

How extract model (LTB):
Use hexeditor (I use HexWorkshop). Open rez16 và Ctrl + F (Find all) Type Hex Values: 0100090000000000 -> Enter. File ltb begin from 0100090000000000 to the next 0100090000000000 so you only need to copy this to New (Ctrl + N) and Paste (Ctrl+V) and save as ltb. How to convert ltb find it by yourself
There have about 1000 ltb rez16. If you want to extract all of them in 10m try use Macro Recorder (auto replay what you do)

My friend make video


header .dat (map): 55000000

How to Download CF: (Is Pro can download this or not?)
Indo: use Proxy
JP: View Source (http://crossfire.ucsjapan.com/setupf...fire_setup.exe)
KR: ÆÄÀÏ ´ٿî·εå ÁÖÀǻçÇ×
trishty sao tui không convert đc file ltb sang lta chỉ tui tool với tui convert = tool trong cái video thì bị đứng
với lại làm sao để biết đước file mình extract có mesh ở trỏng
thx
you reveal your secret! visako will be maD?
Why should he?

Anyways
header .dat (map): 55000000
Thats wrong
i didn't search a lots with that 0000000155000000 (maybe wrong) who care, really
I not interesting with it because there still don't have anyway to convert it to .map
Actually for now, i don't care anything about CF, so i post all info about it for who don't know
I don't care anyone mad or not, but this happy if Neowiz mad
Goodbye and good luck with those lithtech engine.

@pekidpro: i already give you a lots information when i chat with you, so plz try again. Most of people can do it at gamevn and vn-zoom. Ask them for suggestion. I was busy drawing the 3D model from scratch
Giving you a tip :



Code:
function hexToStr($hex){ $string='';   for ($i=0; $i < strlen($hex)-1; $i+=2)    {   $string .= chr(hexdec($hex[$i].$hex[$i+1]));   }return $string;}

//a hex to sting function 

$rez = file_get_contents("RF016.REZ"); // get the rez as a string

$ltbs = explode(hexTostr('0100090000000000'),$rez); //make an array containing the ltbs, its header is cut off, but we gonna fix that

foreach($ltbs as $k => $v) {
   if($k==0) continue; //skip the first, its the rez header
  $f = fopen("model_".$k); //save as model_NUMBER
  fwrite($f,hexTostr('0100090000000000 ').$v); //write the header + the ltb itself
  fclose($f);
}
There you go its a batch program for that manual work in php run it in PHP-Commandline or bamcompiler
pls share me exe file
i just download Bambalam PHP EXE Compiler/Embedder 1.21 - Free php to exe converter! and use it to make .exe from php but it when i copy to my rez folder it not work, i try many time ,could you check is it have any problem
Sry i had some typos in it ^^
Code:
<?php
function hexToStr($hex){ $string='';   for ($i=0; $i < strlen($hex)-1; $i+=2)    {   $string .= chr(hexdec($hex[$i].$hex[$i+1]));   }return $string;}


$rez = file_get_contents("RF016.REZ"); // get the rez as a string

$ltbs = explode(hexTostr('0100090000000000'),$rez); //make an array containing the ltbs, its header is cut off, but we gonna fix that

foreach($ltbs as $k => $v) {
   if($k==0) continue; //skip the first, its the rez header
  $f = fopen("model_".$k."****b","a+"); //save as model_NUMBER
  fwrite($f,hexTostr('0100090000000000 ').$v); //write the header + the ltb itself
  fclose($f);
}
sleep(3000);
?>
EDIT: Fixed file extension
it have to make the file but just file not ****b
yeah.. the program sayssomething about errors on line 11,12 and 13 when executated.
What o0 ? It works like a charm for me.
<?php
function hexToStr($hex){ $string=''; for ($i=0; $i < strlen($hex)-1; $i+=2) { $string .= chr(hexdec($hex[$i].$hex[$i+1])); }return $string;}


$rez = file_get_contents("RF016.REZ"); // get the rez as a string

$ltbs = explode(hexTostr('0100090000000000'),$rez); //make an array containing the ltbs, its header is cut off, but we gonna fix that

foreach($ltbs as $k => $v) {
if($k==0) continue; //skip the first, its the rez header
$f = fopen("model_".$k."****b","a+"); //save as model_NUMBER
fwrite($f,hexTostr('0100090000000000 ').$v); //write the header + the ltb itself
fclose($f);
}
sleep(3000);
?>

Put this in a asd.php file drag it on bamcompiler, and move the asd.exe in your rez directory and run it.
Posts 1–15 of 28 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?