Dynasty Warrior Taisen Translation

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

Dec 2, 2008
  1. psycoblaster
    OP

    Member psycoblaster Divine

    Joined:
    Jan 26, 2008
    Messages:
    2,132
    Location:
    Seoul.. (in Korea)
    Country:
    Korea, South
    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

    Member Noitora ::

    Joined:
    Aug 9, 2007
    Messages:
    3,768
    Location:
    Athens
    Country:
    Greece
    Crappy post
     
  3. Aikia

    Newcomer Aikia Member

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

    What's the official name?
     
  4. psycoblaster
    OP

    Member psycoblaster Divine

    Joined:
    Jan 26, 2008
    Messages:
    2,132
    Location:
    Seoul.. (in Korea)
    Country:
    Korea, South
    san goku shi taisen
     
  5. SylvWolf

    Member SylvWolf Ave Dominus Nox

    Joined:
    Jul 30, 2007
    Messages:
    707
    Location:
    East Coast, USA
    Country:
    United States
    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

    Newcomer Aikia Member

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

    Member War Take it easy~

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

    Member Noitora ::

    Joined:
    Aug 9, 2007
    Messages:
    3,768
    Location:
    Athens
    Country:
    Greece
    Do you even know how much time it takes to figure everything psycoblaster posted?
     
  9. psycoblaster
    OP

    Member psycoblaster Divine

    Joined:
    Jan 26, 2008
    Messages:
    2,132
    Location:
    Seoul.. (in Korea)
    Country:
    Korea, South
    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

    Member War Take it easy~

    Joined:
    Oct 26, 2007
    Messages:
    5,409
    Location:
    California
    Country:
    Japan
    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

    Member HernanZh GBAtemp Regular

    Joined:
    Apr 6, 2008
    Messages:
    178
    Location:
    The Netherlands
    Country:
    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

    Banned Pedobear Banned

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

    Member psycoblaster Divine

    Joined:
    Jan 26, 2008
    Messages:
    2,132
    Location:
    Seoul.. (in Korea)
    Country:
    Korea, South
    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

    Member suruz GBAtemp Advanced Fan

    Joined:
    Oct 1, 2007
    Messages:
    607
    Country:
    United Kingdom
    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

    Member Lumstar Princess

    Joined:
    Mar 6, 2006
    Messages:
    3,531
    Location:
    Darling
    Country:
    United States
    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

    Member Uzumakijl GBAtemp Fan

    Joined:
    Aug 21, 2008
    Messages:
    390
    Country:
    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

    Member Noitora ::

    Joined:
    Aug 9, 2007
    Messages:
    3,768
    Location:
    Athens
    Country:
    Greece
    You know this topic is from 2008, right?
     
  18. Uzumakijl

    Member Uzumakijl GBAtemp Fan

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

Share This Page