Dynasty Warrior Taisen Translation

Discussion in 'NDS - ROM Hacking and Translations' started by psycoblaster, Dec 2, 2008.

  1. psycoblaster
    OP

    psycoblaster Divine

    Member
    2,132
    2
    Jan 26, 2008
    Seoul.. (in Korea)
    Before I promise anything, I need few tools to be made, because I lack in programming skills.

    First is a NFP unpack/repacker.
    There is a file called sangoku.nfp in this game, which seems to contain many files.

    0x00000000 ~ 0x0000002F a header that says "NFP2.0 ©NOBORI 1997-2002"
    0x00000030 ~ 0x00000033 00's
    0x00000034 ~ 0x00000037 the number of files contained in the NFP (1695 in this file)
    0x00000038 ~ 0x0000003B offset where the file table starts (0x00000040 in this file)
    0x0000003C ~ 0x0000003F offset where the individual files start (0x00016990 in this file)

    and then comes the file table section. Each file is divided into a 16 byte section:

    0x00000000 ~ 0x0000000B the file name
    0x0000000C ~ 0x0000000F pointer for the file

    but few things about this file:
    some extensions found inside this file is SCM, SWV, SSEQ, SWAR, SBNK, NFTR (probably there are more, for graphics)
    so, first of all, because there is an NFTR font inside, PROBABLY the other files will contain graphics, (well because this game is graphic heavy)

    so the point is that this can turn to be something useless.

    Somebody coded one for me, and he said he will soon work on a SAR unpack/repacker. How thankful [​IMG]
    So looking deeper into the ROM, I've found some files, such as unicode.bin (looked more like a character map file)
    dat files such as tactics.dat, tricks.dat etc which contained some text inside it. But it doesn't seem like it is used ingame.


    Code:
    # ??????
    defcmdÂÂÂÂclearLÂÂÂÂÂÂÂÂ0ÂÂÂÂÂÂÂÂÂÂÂÂ# ??????
    defcmdÂÂÂÂclearRÂÂÂÂÂÂÂÂ1ÂÂÂÂÂÂÂÂÂÂÂÂ# ??????
    defcmdÂÂÂÂtitleÂÂÂÂÂÂÂÂÂÂÂÂ2ÂÂÂÂÂÂÂÂÂÂÂÂ# ??????????
    defcmdÂÂÂÂstoryÂÂÂÂÂÂÂÂÂÂÂÂ3ÂÂÂÂÂÂÂÂÂÂÂÂ# ???????????
    defcmdÂÂÂÂtargetÂÂÂÂÂÂÂÂ4ÂÂÂÂÂÂÂÂÂÂÂÂ# ????????
    defcmdÂÂÂÂfadeinÂÂÂÂÂÂÂÂ5ÂÂÂÂÂÂÂÂÂÂÂÂ# ??????
    defcmdÂÂÂÂfadeoutÂÂÂÂÂÂÂÂ6ÂÂÂÂÂÂÂÂÂÂÂÂ# ???????
    defcmdÂÂÂÂclearÂÂÂÂÂÂÂÂÂÂÂÂ7ÂÂÂÂÂÂÂÂÂÂÂÂ# ????????????
    defcmdÂÂÂÂdispÂÂÂÂÂÂÂÂÂÂÂÂ8ÂÂÂÂÂÂÂÂÂÂÂÂ# ??????????
    defcmdÂÂÂÂhideÂÂÂÂÂÂÂÂÂÂÂÂ9ÂÂÂÂÂÂÂÂÂÂÂÂ# ??????????
    defcmdÂÂÂÂmoveÂÂÂÂÂÂÂÂ10ÂÂÂÂÂÂÂÂÂÂÂÂ# ??????????
    as you can see, it is just a table.




    The second tool I need is a SAR unpack/repacker.
    The script file is a SAR file, and the SAR file seems to be a group of files, too.

    pretty simple, though.
    0x00000000 ~ 0x00000003 is a pointer, 0x00000004 ~ 0x00000007 is the size, and repeats.


    After that's made, I'll look through the script and ask for a 3rd tool to edit the script XP
    So NOW, I think the main stuff will either be in the arm9 binary or the SAR files...



    Now some problems.
    1. The font was NOT the NFTR, but is saved somewhere else. probably in the arm9.bin. Will need to look harder...
    2. The font NEEDS a VWF. Even though single byte characters are supported, it looks just like the fat 2 byte characters.



    Just looked into the first script file:
    I'm not 100% sure about this, but I've at least found the pointers.
    I found out how the pointer table works for the first script file, but the first script is really basic. So I still need to find another script file that is seen in-game so I can see how it completely works.
    There are still bytes before the pointer table that I have to figure out. For what I know so far,
    pointers that start with 0201 are actual pointers. Other data in the pointer table that starts with 0200 seems to be like "end script" etc.
    and then for the 3rd and 4th byte, for the 0201's, are either 0B00 or 0C00. 0B00 means it is a pointer for the script, and 0C00 means for it is a pointer for the speaker. (well from what I see in the first script file)
    and the 5th and 6th byte is the pointer itself, with calculation starting from 0000.
    The 7th and 8th byte is always 0081 for this script file.
    But in other script files, there are more stuff which I need to see in-game to see how the other bytes in other script files work.
    That was only for pointers.. there are still more bytes before the table I need to inspect and I'll try to come up with a final conclusion soon after a little bit of more testing.


    Even though the text is editable, I still need to find the font and a width table for it.
    and I still need to locate the graphics :|
     
  2. Noitora

    Noitora ::

    Member
    3,765
    0
    Aug 9, 2007
    Greece
    Athens
    Crappy post
     
  3. Aikia

    Aikia Member

    Newcomer
    19
    0
    Apr 6, 2008
    Canada
    I don't think there is such a game on the DS :wtf:

    What's the official name?
     
  4. psycoblaster
    OP

    psycoblaster Divine

    Member
    2,132
    2
    Jan 26, 2008
    Seoul.. (in Korea)
    san goku shi taisen
     
  5. SylvWolf

    SylvWolf Ave Dominus Nox

    Member
    707
    4
    Jul 30, 2007
    United States
    East Coast, USA
    Just looked into it, might be cool to try out. Good luck on the translation. I can't help with any programming or translating, but if you need clarification on specific generals and things such as that, I've played a lot of the DW games and read the novel. Holler if you need something.
     
  6. Aikia

    Aikia Member

    Newcomer
    19
    0
    Apr 6, 2008
    Canada
    Oh sweet,loved those games but couldn't understand them. Is this SGST DS or SGST Ten?
     
  7. War

    War Take it easy~

    Member
    5,409
    8
    Oct 26, 2007
    California
    Don't mean to burst your bubble, but that's kind of asking for a lot in the first post.
     
  8. Noitora

    Noitora ::

    Member
    3,765
    0
    Aug 9, 2007
    Greece
    Athens
    Do you even know how much time it takes to figure everything psycoblaster posted?
     
  9. psycoblaster
    OP

    psycoblaster Divine

    Member
    2,132
    2
    Jan 26, 2008
    Seoul.. (in Korea)
    I'm just asking for 2 tools right now :|
    before a tool is made, the structure of the files need to be identified, so a program can be made according to the structure.
    So what I've done was just basically post what I have figured out about each files, which is all that is basically needed.
    So whoever that wants to make a tool for me doesn't need to open up each files and try to identify what each byte means themselves, because that's what I did.

    Or unless there is a tutorial of how to make such a program, then that would be great.
     
  10. War

    War Take it easy~

    Member
    5,409
    8
    Oct 26, 2007
    California
    Well, I'm just saying, the community is more about taking than giving. If a project requires the public to give something before the translation can begin, people probably won't look at it twice. No need to get testy.
     
  11. HernanZh

    HernanZh GBAtemp Regular

    Member
    178
    4
    Apr 6, 2008
    Netherlands
    The Netherlands
    Well, it doesn't look that hard, if it's just splitting files up. Except the last tool, that's asking a lot imo, besides there are already tools for inserting text. I'd help you, but I'm really busy at the moment. If there's nobody who wants to help, I can make you something quick, but not until next week (or maybe on Sunday) :/

    oh btw "SCM, SWV, SSEQ, SWAR, SBNK" -> I could be wrong, but aren't these sound files?
     
  12. Pedobear

    Pedobear Banned

    Banned
    165
    0
    Nov 30, 2008
    United States
    Can't find an nfp file program anywhere.
    looked at all my...uh...*arrrr!* sites, but nothing up
     
  13. psycoblaster
    OP

    psycoblaster Divine

    Member
    2,132
    2
    Jan 26, 2008
    Seoul.. (in Korea)
    yup.
    I need to look further into the ROM to find the right files, that seems to be the game's actual font, and the graphics.

    Then I'm going to do some testing.. And then I'll announce what I've found.
     
  14. suruz

    suruz GBAtemp Advanced Fan

    Member
    607
    18
    Oct 1, 2007
    EDIT: Damn, just realised how old this post is.. But my post still stands >:

    I'm glad someone else came across the NFP format too.. I'm currently looking at a game which uses the same format (here)

    If you have a working NFP extractor/repacker, could u please let me know? Thanks.

    And good luck on the project, your perseverance is admirable...
     
  15. Lumstar

    Lumstar Princess

    Member
    3,640
    90
    Mar 6, 2006
    United States
    Darling
    The hardest part with these games tends to be the tiny icons. I'd more than cringe at trying to make stuff like this look remotely passable in english or similar languages. [​IMG]
     
  16. Uzumakijl

    Uzumakijl GBAtemp Fan

    Member
    390
    1
    Aug 21, 2008
    Mexico
    Psychoblaster, Maybe you will want a mod to change the title of this topic...

    The game you said you are translating "Sangokushi Taisen DS" Is "?????DS"

    The game in the title "Dynasty Warriors Taisen" would be... "????????"

    You seem to be confusing Sangokushi Taisen by Sega

    With Shin Sangoku Musou by Koei.


    [​IMG]

    Good luck.
     
  17. Noitora

    Noitora ::

    Member
    3,765
    0
    Aug 9, 2007
    Greece
    Athens
    You know this topic is from 2008, right?
     
  18. Uzumakijl

    Uzumakijl GBAtemp Fan

    Member
    390
    1
    Aug 21, 2008
    Mexico
    You should had told that only to suruz, I took his bump as a chance to tell about the misleading title.