Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

The Legend of Heroes: Trails in the Sky (*.DAT/DIR)

Featured Replies

  • Author
  • Localization

Ekey, posted Mon Aug 11, 2014 8:44 pm (119)


Code:
# The Legend of Heroes: Trails in the Sky (DAT/DIR format)
#
# Written by Ekey (h4x0r)
#
# open DIR file for unpack
# script for QuickBMS http://quickbms.aluigi.org

open FDDE DAT 0
open FDDE DIR 1

idstring "LB DIR" 1
goto 0x10 1

for
    getdstring NAME 16 1
    get ZSIZE long 1
    get SIZE long 1
    get SIZE2 long 1
    get CRC32 long 1
    get OFFSET long 1
   
   if NAME == "/_______.___"
      cleanexit
   endif
   
    if ZSIZE == 0
        log NAME OFFSET SIZE 0
    else if ZSIZE == SIZE
        log NAME OFFSET SIZE 0
    else
        #unknown compression :/
        log NAME OFFSET ZSIZE 0
    endif
next
  • Author
  • Localization

aluigi, posted Mon Aug 11, 2014 9:52 pm (120)


No luck with the compression scanner?

Do you have a website or repository where you collect all your scripts?
  • Author
  • Localization

Ekey, posted Tue Aug 12, 2014 5:15 am (122)


aluigi wrote:
No luck with the compression scanner?

Here samples

aluigi wrote:
Do you have a website or repository where you collect all your scripts?

http://forum.xentax.com here :mrgreen:
  • Author
  • Localization

aluigi, posted Tue Aug 12, 2014 7:06 am (125)


What should be the format or structure of these SYS files when uncompressed?
I mean, how they should look? :)

It's very difficult to understand what results may be correct because there are no text strings or known formats to recognize.

I tried both the original file and by removing the 24bit compresssed size but there no result had an interesting format.
  • Author
  • Localization

Ekey, posted Tue Aug 12, 2014 10:20 am (127)


aluigi wrote:
What should be the format or structure of these SYS files when uncompressed?
I mean, how they should look? :)

Good question! I dont know :)
  • Author
  • Localization

cgaion, posted Tue Aug 19, 2014 10:42 am (214)


good job!
  • Author
  • Localization

sigroon365, posted Fri Nov 21, 2014 11:13 am (1894)


There are script files in DT01.dat Would it be possible to edit script file..? Is there are some script tools?
  • Author
  • Localization

chrrox, posted Fri Nov 21, 2014 11:42 pm (1899)


I am not sure if its the same format as the japanese version but you can try rpg viewer
http://pigspy.ys168.com/
  • Author
  • Localization

sigroon365, posted Sat Nov 22, 2014 11:35 am (1904)


chrrox wrote:
I am not sure if its the same format as the japanese version but you can try rpg viewer
http://pigspy.ys168.com/


Hi, I bought steam version of L.o.h. But RPG viewer doesn't work.

PC version of L.o.h 4 and L.o.h6 has the same script structure.
  • Author
  • Localization

sigroon365, posted Mon Nov 24, 2014 1:07 pm (1965)


Loh4 has the same structure, however, there are no *.dir files for Loh4. How to adjust your script to Loh4?
Here is sample file.
  • Author
  • Localization

aluigi, posted Mon Nov 24, 2014 5:20 pm (1970)


You can try something like the following:
Code:
idstring "LB DAT"
goto 0x10
    get OFFSET long
for
    get NEXT_OFFSET long
    if NEXT_OFFSET == 0
        break
    endif
    xmath SIZE "NEXT_OFFSET - OFFSET"
    log "" OFFSET SIZE
    math OFFSET = NEXT_OFFSET
next
  • Author
  • Localization

sigroon365, posted Tue Nov 25, 2014 5:14 am (1977)


aluigi wrote:
You can try something like the following:
Code:
idstring "LB DAT"
goto 0x10
    get OFFSET long
for
    get NEXT_OFFSET long
    if NEXT_OFFSET == 0
        break
    endif
    xmath SIZE "NEXT_OFFSET - OFFSET"
    log "" OFFSET SIZE
    math OFFSET = NEXT_OFFSET
next


Thanks a lot :) , however, bms script can't get unzip the data because there are no SIZE values. https://www.sendspace.com/file/6wtuwb
Although there are no SIZE valuse in dat files, is it possible to get SIZE values and unpack it by bms script?
  • Author
  • Localization

aluigi, posted Tue Nov 15, 2016 8:03 pm (18843)


I have the compression algorithm :D
It will be available in quickbms 0.7.7 together with the script for the format
  • Author
  • Localization

sigroon365, posted Wed Nov 16, 2016 2:20 am (18847)


aluigi wrote:
I have the compression algorithm :D
It will be available in quickbms 0.7.7 together with the script for the format


Great! :) :lol:
  • Author
  • Localization

aluigi, posted Wed Nov 16, 2016 8:16 am (18855)


The script works with any game of Nihon Falcom that uses the same "LB DIR/DAT" format, so Dinosaur Resurrection too :)
The TODO list of the next quickbms is quite big now so it's probably the right moment to start to implement everything and pushing the new version in the next weeks.
  • Author
  • Localization

sigroon365, posted Wed Nov 16, 2016 10:58 am (18861)


aluigi wrote:
so it's probably the right moment to start to implement everything and pushing the new version in the next weeks.


Could you also consider compress_zlib? :) Recompressing file with copress_zlib is smaller than the original ZSIZE of the file.
  • Author
  • Localization

aluigi, posted Wed Nov 16, 2016 11:41 am (18862)


About what are you referring?
There is no zlib used in this format.
  • Author
  • Localization

sigroon365, posted Wed Nov 16, 2016 1:45 pm (18864)


What I said is get off this subject. You're going to update quickbms, right?
I just hope you consider update the compress_zlib.
  • Author
  • Localization

aluigi, posted Wed Nov 16, 2016 2:01 pm (18865)


zlib_compress is perfect and already uses the maximum level of zlib, advancecomp, zopfli and kzip (that's why is so terribly slow in reimport mode).
There is really nothing else I can do.
  • Author
  • Localization

sigroon365, posted Wed Nov 16, 2016 4:08 pm (18868)


aluigi wrote:
zlib_compress is perfect and already uses the maximum level of zlib, advancecomp, zopfli and kzip (that's why is so terribly slow in reimport mode).
There is really nothing else I can do.


Ah, ha! That't the reason why compress_zlib is smaller than original one! :o Thank you. :lol:
  • Author
  • Localization

foubou, posted Fri Mar 03, 2017 9:05 am (21175)


Here are the translation tools for people who want to translate FC in another language :

https://www.dropbox.com/s/nuzharbumdhmf ... s.zip?dl=0

Follow the steps in "How to use" file to make it work.

Send me PM if you encounter trouble.

Screenshots :
french http://www.hostingpics.net/viewer.php?i ... french.jpg
spanish http://www.hostingpics.net/viewer.php?i ... nishFC.jpg
german http://www.hostingpics.net/viewer.php?i ... rmanFC.jpg
  • Author
  • Localization

merseus, posted Fri May 05, 2017 10:43 pm (22936)


sabes en que parte se encuentra los dialogos para traducir?
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.