Issue with text in Soul Eater

Discussion in 'NDS - ROM Hacking and Translations' started by Illidanz, Sep 3, 2019.

  1. Illidanz
    OP

    Illidanz Member

    Newcomer
    2
    Sep 4, 2013
    Italy
    I'm looking into setting up the tools to translate the Soul Eater NDS game, but I'm quite stuck on an issue with the text rendering.

    The game supports VWF and it works beautifully, but the text rendering seems to be limited to 15 characters per line, which makes sense for japanese (since that's all the characters you can fit at the font max length), but kinda ruins the English text.

    If anyone wants to try I've edited a script file with some test text that shows the issue: ev0051.cnut
    Just replace it into Rom/event/script and repack the rom. This is the first line in the game, so just start it, click through the opening and click the "デス・シティー" button in the top left of the bottom screen:
    (Left is original line, Right is edited script)
    [​IMG]

    The screen on the right should show "12345678901234567890" for every line but it stops after the 15th character. I've tried with other characters with different sizes and it always stops after the 15th, although the game still waits a bit like if it was still writing the text.

    Currently I'm using a workaround with a custom font like what I did here but it's a shame given this game supports VWF already.

    I suppose there might be some hard limitation somewhere in the text rendering functions, but I wasn't really able to find anything so would really appreciate any help.

    Thanks!
     
  2. Illidanz
    OP

    Illidanz Member

    Newcomer
    2
    Sep 4, 2013
    Italy
    Solved, there was indeed an hard limit of 15 characters. Many thanks to @StorMyu for figuring it out!
    Code:
    .org 0x0206680C
        Cmp r0,0xFF
     
    Fel and RedL like this.
  3. StorMyu

    StorMyu "I'm too old for this"

    Member
    6
    Jan 2, 2010
    France
    post screenshots for the crowd ! :P
     
  4. Illidanz
    OP

    Illidanz Member

    Newcomer
    2
    Sep 4, 2013
    Italy
    You're right :D Here's a screenshot with the fixed limit:

    [​IMG]
     
    DreamDrops likes this.
Loading...