How to import the translated PC version of Grandia 2 into the Dreamcast version?

Discussion in 'Sega Dreamcast Development and Research' started by fafadou, Nov 20, 2017.

  1. fafadou

    fafadou Gutsy Member

    Joined:
    Aug 3, 2016
    Messages:
    474
    Likes Received:
    185
    Thanks to all, I have understand how I can modify the pvr files. I was borried by the alpha layer.
    Now it's good, we have to work for showing a good result :)

    @yzb I don't understand exactly what do mean by 0x8c380000... do you mean here :

    [​IMG]

    And those pointers works like you have shown us ? :

    [​IMG]
     
  2. yzb37859365

    yzb37859365 Spirited Member

    Joined:
    Jul 14, 2013
    Messages:
    187
    Likes Received:
    124
    QQ截图20171217220221.png


    Like this

    Actual address + pointer = memory address
     
    fafadou likes this.
  3. dragoncity

    dragoncity Rapidly Rising Member

    Joined:
    Nov 20, 2017
    Messages:
    97
    Likes Received:
    18
    @ yzb37859365

    http://www117.zippyshare.com/v/pI9L27a6/file.html
    So there is 2 files in my ZIP
    GR2TITLE-ORIGINAL.BIN : ORIGINAL with the text "Controller Port"
    GR2TITLE-MODIF.BIN : MODIFIED with the text "Controller abcde"

    [​IMG]

    So please change GR2TITLE-MODIF.BIN with the good pointeur for understand how you do :)
     
  4. yzb37859365

    yzb37859365 Spirited Member

    Joined:
    Jul 14, 2013
    Messages:
    187
    Likes Received:
    124
  5. dragoncity

    dragoncity Rapidly Rising Member

    Joined:
    Nov 20, 2017
    Messages:
    97
    Likes Received:
    18
  6. yzb37859365

    yzb37859365 Spirited Member

    Joined:
    Jul 14, 2013
    Messages:
    187
    Likes Received:
    124
    How did you modify the GR2TITLE-MODIF.BIN file?

    It's all wrong from the back, all the pointers are wrong

    I guess that all of the data you started with 0xce10 moved back 4 bytes.

    I'll change one, you try
     

    Attached Files:

  7. dragoncity

    dragoncity Rapidly Rising Member

    Joined:
    Nov 20, 2017
    Messages:
    97
    Likes Received:
    18
    With the software "Notepad ++"
    Just change the "port" by "abcde"

    So this time I modified with "Hex Edit" too,so there is 3 files :
    http://dragoncity17.free.fr/Grandia 2/GR2TITLE - original +modif.zip
    GR2TITLE-ORIGINAL.BIN : ORIGINAL with the text "Controller Port"
    GR2TITLE-MODIF-Notepad.BIN : MODIFIED with the text "Controller abcde"
    GR2TITLE-MODIF-Hex Edit.BIN : MODIFIED with the text "Controller abcde"

    So I need to modify with Hex Edit each time? Have you better for change because in hex it's boring o_O !

    Thank you :)
     
  8. yzb37859365

    yzb37859365 Spirited Member

    Joined:
    Jul 14, 2013
    Messages:
    187
    Likes Received:
    124
    1 Don't modify it with Notepad, which will make the file larger and offset

    2 Hex Edit requires 4 bytes to be tidy (divided by 4 can not have the remainder), not a simple copy of 4 00.


    This kind of thing is boring. Especially when you don't have the help of a program friend, it will be even more boring. I suggest you first look for several programmers.
     
    fafadou and dragoncity like this.
  9. dragoncity

    dragoncity Rapidly Rising Member

    Joined:
    Nov 20, 2017
    Messages:
    97
    Likes Received:
    18
    1 - GR2TITLE-MODIF-Hex Edit.BIN
    Ok but just for give me an example,can you modify this file "GR2TITLE-MODIF-Hex Edit.BIN" with the good preset.

    http://dragoncity17.free.fr/Grandia 2/GR2TITLE - original +modif.zip

    And explain why you change like that.
    If you make that we can progress :)

    2 - VWF
    It's very important to know where you changed that..? Where is the VWF?
    Because the text is too long,need to reduce like that :

    This is NOT GOOD :(

    [​IMG]


    This is GOOD,the text is SMALL :)
    [​IMG]

    Thanks for your help !! :)
     
  10. fafadou

    fafadou Gutsy Member

    Joined:
    Aug 3, 2016
    Messages:
    474
    Likes Received:
    185
    @yzb : I follow your instructions and I replace all the pointers. Not try it for now because I can't with my actual laptop.
    But I 'm thinking : if there is others pointers in the file, even if I change anything, I have to replace all ?
    I tell that because here the zone with pointer and text to tranlaslate :
    here the first than you shown me :
    [​IMG]
    And an other below :
    [​IMG]
    the second pictures show others pointers to change ? Even if there is nothing to translate.

    An other question. When you tranlaste the game in chinese, you didn't change the wvf for chinese caracters ? How have you done please.
     
  11. yzb37859365

    yzb37859365 Spirited Member

    Joined:
    Jul 14, 2013
    Messages:
    187
    Likes Received:
    124
    Every sentence has a pointer. If you want to modify which sentence, which pointer should be changed, others need not be changed, and the pointer must be 4 byte aligned.

    The second problem, Japanese and Chinese are the same size and width, so I don't have to change it.


    Please note that the above discussion is only for GR2TITLE.bin file, that is, the text of the title screen, the plot dialogue is not these, the plot dialogue is more complex than this.


    It seems that you still know what I mean, you need an English programmer to talk to me........
     
  12. fafadou

    fafadou Gutsy Member

    Joined:
    Aug 3, 2016
    Messages:
    474
    Likes Received:
    185
    In file like this gr2titlte.bin we have some pointers for sentences with no words. I think it's pictures inside the menu (like a picture of controller or a memory card).
    But for me, if I change a sentence the lenght change too, and other pointers below in the file have a wrong target. But I will try some test and I'll found an issue I'm not borried about that.

    I think I won't find a programmer, but I have a tool for text files in the map folder and I do manully some bin and change simple things in other.
    The probleme of caracters area is very busy... I don't know how change the vwf. The 1ST_READ.BIN is not easy to work on it...
     
  13. dragoncity

    dragoncity Rapidly Rising Member

    Joined:
    Nov 20, 2017
    Messages:
    97
    Likes Received:
    18
    The most important for the moment,VWF :)

    So please reply for that :)

    2 - VWF

    It's very important to know where you changed that..? Where is the VWF?
    Because the text is too long,need to reduce like that :

    This is NOT GOOD :(

    [​IMG]


    This is GOOD,the text is SMALL :)
    [​IMG]
     
    fafadou likes this.
  14. fafadou

    fafadou Gutsy Member

    Joined:
    Aug 3, 2016
    Messages:
    474
    Likes Received:
    185
    After a long time to search, we have finally found the wvf. it's in the XLS_DATA.AFS at line 45000 with hex edit.

    @yzb37859365 : Maybe I can learn to you something. After all your help, it's a little fair return of things :)

    I explain :
    in the XLS_DATA.AFS at line 45000 with hex edit you have :
    [​IMG]
    The first number is the space between the left and the letter and the second is the large of the letter. In the font file we have :
    [​IMG]
    If we select the ! :
    [​IMG]
    We have two empty pixel before the beginning of the letter from the left and 2 pixels of large.

    So each letter have is own size, after some many attemps to reduce the text we have :
    [​IMG]
    Before some final adjustement.

    I'm still in trouble with the pointers in the .bin and I'm translating the main page in french in pvr format. I hope I will able to show you something nice soon :)
     
    fry76 likes this.
  15. yzb37859365

    yzb37859365 Spirited Member

    Joined:
    Jul 14, 2013
    Messages:
    187
    Likes Received:
    124
    Congratulations, but we do not need to modify these versions of the sinified version

    The most troublesome is the conversation pointers
     
    fafadou likes this.
  16. fafadou

    fafadou Gutsy Member

    Joined:
    Aug 3, 2016
    Messages:
    474
    Likes Received:
    185
    I guess the pointers are horrible to understand ^^
    I still trying to know how change them in menu.

    I'm finishing the main page of the game and I will probabby release a first beta :)
     
  17. dragoncity

    dragoncity Rapidly Rising Member

    Joined:
    Nov 20, 2017
    Messages:
    97
    Likes Received:
    18
    All it's fine :) I think it will be last step !

    How can I add .SRT in SFD video..?

    I tested to convert SFD Video in MPG,and Add .SRT with "Virtual Dub" or "VLC" but doesn't work after..black screen.

    Thanks for your help :)
     
  18. dragoncity

    dragoncity Rapidly Rising Member

    Joined:
    Nov 20, 2017
    Messages:
    97
    Likes Received:
    18
    Ok Virtual Dub It's ok... and video too :)

    Do you know the order for MAP files..?

    D000.afs... 2000.afs... what is the order please?
     
  19. fafadou

    fafadou Gutsy Member

    Joined:
    Aug 3, 2016
    Messages:
    474
    Likes Received:
    185
    @yzb37859365 if you have a list with the order of afs it may help us a lot because we have half of them in french but don't know which there are and we have to find to correct the ram alignement or else the game crash in a real dreamcast...


    I want to ask you something else. I have a quick look on the datas of the anniversary edition for pc. the videos are very poor and the wav files seems to be the same quality. So we have keep the dreamcast originals videos and inject the subtitles trying to lose the less quality as possible. We have used virtual dump and tempenc for this (just for the info). It looks the magic effect are the same than the dreamcast version.

    BUT :)
    the textures of models and field are better and the trees of files and folder dataas are the same than the dreamcast version but not optimized than the dreamcast (no afs format for example just a folder so easy for extracting the datas). do you think it's possible to import them in the dreamcast version if can change the format (.DDS for pc and I guess PVR for dreamcast) ? Not all of them but maybe for the models ?

    Last thing very interesting the anniversary edition has a hard mode and you can see a sys and a sys_hardmode folder looks the same than the sys.AFS and a enemy_harmode folder and a boss_harmode folder.
    So same question : is it possible for you to add this mode in a special dreamcast hardmode version.

    I am very excited of those possiblities :) I can share the anniversary grandia 2 pc datas if you want.
     
  20. yzb37859365

    yzb37859365 Spirited Member

    Joined:
    Jul 14, 2013
    Messages:
    187
    Likes Received:
    124
    I'm sorry, I'm not sure which scene of that AFS file.

    You should say it all, I've seen the PC version, and it's feasible in theory, but it takes a lot of time to modify and test.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page