[Need help] Bakumatsu Renka Shinsengumi DS translation

Discussion in 'NDS - ROM Hacking and Translations' started by ZaMoNG, Feb 24, 2015.

  1. ZaMoNG
    OP

    ZaMoNG Newbie

    Newcomer
    7
    2
    Dec 20, 2014
    Hi, everyone.
    I'm trying to extract scripts.

    I found sc.bin file, maybe it's a script file.


    https://www.mediafire.com/?yrvcp92wb48ey84
    sc.bin download link

    but Bakumatsu Renka Shinsengumi used custom table. Shift-JIS didn't match!
    I ever try but I could not find any readable text.

    How can i handle this problem?
    I really need someone who can help me. please let me know.


    P.S
    There are some difficult for me to communicate in english. It is possible to read. Simply writing is poor : (
    Sorry to bother U
     
    Pablitox likes this.
  2. DarthNemesis

    DarthNemesis GBAtemp Maniac

    Member
    1,211
    41
    Feb 19, 2008
    United States
    [​IMG]

    lt12.bin contains the font; you could try to find the characters from a line of the script in there and then do a relative search in the other files?
     
  3. DarthNemesis

    DarthNemesis GBAtemp Maniac

    Member
    1,211
    41
    Feb 19, 2008
    United States
    Using the tile indices of the images from lt12.bin as a table file, I found text in arm9.bin and sc.bin. Looks like sc.bin contains 200 files, each compressed with LZ77. Split and decompress them to find the script:

    [​IMG]

    Here's a partial table file; it's missing some kanji at the end.
     

    Attached Files:

  4. ZaMoNG
    OP

    ZaMoNG Newbie

    Newcomer
    7
    2
    Dec 20, 2014
    Oh, I'm much obliged to you for your help.
    With the help One of my favorite game is be able to translate.

    If you don't mind, May I ask one more question?
    i tried to decompress sc.bin using Crystaltile2 so i found some text!
    But it is not perfect! : some scripts are missing.
    It seems that there is a problem in process of decompression sc.bin file.
    Crystaltile2 cannot be decompressed it perfectly. I can't decompressed sc.bin like what you do.
    can you tell me how to decompress that file?

    I'm really sorry to ask a question like that. Thank you for readind my writing : )
     
  5. DarthNemesis

    DarthNemesis GBAtemp Maniac

    Member
    1,211
    41
    Feb 19, 2008
    United States
    sc.bin isn't a single compressed file, rather it's multiple compressed files appended to each other. In order to decompress them you would first need to split the files - each file is padded to the next 256-byte offset with 0x00 and 4 other bytes, then the next file starts with 0x10 indicating LZ77 compression:

    [​IMG]

    These are the file offsets I found doing a quick search using this padding pattern:
    Warning: Spoilers inside!
    Once the files are separated, Crystaltile or other such programs (I used my BatchLZ77) should be able to decompress them.