Dreamcast Widescreen Hacks

Discussion in 'Sega Dreamcast Development and Research' started by S4pph4rad, Oct 20, 2015.

  1. Rocky5

    Rocky5 Site Supporter 2015

    Joined:
    Jan 17, 2014
    Messages:
    524
    Likes Received:
    95
    @yzb37859365

    Hacked 1ST_READ.bin worked great!

    Not sure how or what you did but it works.

    with the above hacked file is a simple as changing the value at 0x001C37BC to adjust the ratio :)
     
    Last edited: Oct 27, 2015
    Esppiral likes this.
  2. Esppiral

    Esppiral Gutsy Member

    Joined:
    Oct 3, 2012
    Messages:
    495
    Likes Received:
    1,041
    MAKEN X PAL
    0231290C---3F400000


    SKIES OF ARCADIA PAL
    02502A88---3F400000

    TENNIS 2K2 (VIRTUA TENNIS 2)
    024A19B0----43700000

    SEGA GT PAL
    025D613C----3F400000

    SEGA RALLY 2 NTSC J ( Someone please test this one on real hardware)
    02BD9BA0----3F400000
     
    Last edited: Oct 27, 2015
  3. S4pph4rad

    S4pph4rad Site Supporter 2015

    Joined:
    Nov 28, 2014
    Messages:
    140
    Likes Received:
    114
    I was using dcdis, which someone provided a link to on page 2 or 3 of this thread. It requires you to compile it from source code. I don't know of any assembler, I assembled instructions by hand. The SH4 documentation gives you the binary for each instruction.

    I am working on an SH4 plug-in for Hopper disassembler, based on the code to dcdis. But that's only for Linux and Mac OS X, and it's a paid product. There was once a Windows version, which I owned a license to as well, but that was dropped in version 3.0. It costs a fraction of what IDA does though, and it's written by one guy. It has an awesome decompiler too, but obviously I won't be implementing one for the SH4 plugin. I should have that ready in another day or two, it's already decoding instructions so I just need to hook up the branches and some other stuff.

    SH4 for Hopper:
    https://github.com/Sappharad/HopperSH4-Plugin

    I don't think so. I'm honestly surprised and pleased by the amount of others that people have done so far, I wasn't expecting this much since there weren't any just a few weeks ago.

    I have a couple more I'd like to do, but I'm going to work on the SH4 plug-in I mentioned earlier in this post before I lose interest or run out of time.
     
    Last edited: Oct 27, 2015
  4. yzb37859365

    yzb37859365 Spirited Member

    Joined:
    Jul 14, 2013
    Messages:
    187
    Likes Received:
    124
    Giorgio, Anthony817, SiZiOUS and 4 others like this.
  5. Esppiral

    Esppiral Gutsy Member

    Joined:
    Oct 3, 2012
    Messages:
    495
    Likes Received:
    1,041
    The House of the dead 2 PAL
    024C6708---43700000
     
  6. Meringues

    Meringues <B>Site Supporter 2014</B>

    Joined:
    May 24, 2012
    Messages:
    228
    Likes Received:
    17
    This is awesome, great work guys!
     
  7. Gromber

    Gromber Spirited Member

    Joined:
    Apr 4, 2012
    Messages:
    115
    Likes Received:
    30
    thanks!!! i wish a standalone tool with widescreen and japanese_cake vga patches for use with backups and original games.
     
  8. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,034
    Likes Received:
    891
  9. Giorgio

    Giorgio Member

    Joined:
    Feb 2, 2015
    Messages:
    6
    Likes Received:
    3
  10. Rocky5

    Rocky5 Site Supporter 2015

    Joined:
    Jan 17, 2014
    Messages:
    524
    Likes Received:
    95
  11. Meringues

    Meringues <B>Site Supporter 2014</B>

    Joined:
    May 24, 2012
    Messages:
    228
    Likes Received:
    17
    I dont suppose anyone is up for getting the codes for US version of D2 ;)
     
  12. Esppiral

    Esppiral Gutsy Member

    Joined:
    Oct 3, 2012
    Messages:
    495
    Likes Received:
    1,041
    I've been looking in to it, so far I've only found how to change the vertical fov, not the horizontal one, so... 16x9 widescreen, but the image is cropped instead of expanded, I'll see what I can do.
     
    Anthony817 likes this.
  13. S4pph4rad

    S4pph4rad Site Supporter 2015

    Joined:
    Nov 28, 2014
    Messages:
    140
    Likes Received:
    114
    It's not perfect, but there's usually a "zoom" value nearby in most games. You could always zoom out to whatever percentage of the original is applicable, then adjust vertical FOV back to what it needs to be.

    It will make it harder for people to change the values themselves, but it's better than nothing.
     
    Esppiral likes this.
  14. yzb37859365

    yzb37859365 Spirited Member

    Joined:
    Jul 14, 2013
    Messages:
    187
    Likes Received:
    124
    @-=FamilyGuy=-
    I just put the number of addresses to 0x43800000 or 0x43a00000

    @Giorgio
    I wrote it, the code is very simple
    Code I generally are inserted in the original read the key procedures
    Code:
    sub_C01FF00:
            mova    @(h'2C,pc), r0 ; unk_C01FF30
            mov.b    @r0, r1
            mov.l    @(h'24,pc), r2 ; [0C01FF2C] = unk_C2318D0
            mov.b    @r2, r3
            cmp/eq    r1, r3
            bt    loc_C01FF24
            mov.b    r3, @r0
            mov    r3, r0
            cmp/eq    #h'A, r0
            bf    loc_C01FF24
            mov.l    @(h'1C,pc), r1 ; [0C01FF34] = unk_C230250
            mov.l    @r1, r0
            mov.l    @(h'1C,pc), r2 ; [0C01FF38] = h'43A00000
            cmp/eq    r0, r2
            mov.l    @(h'1C,pc), r3 ; [0C01FF3C] = h'43800000
            bt    loc_C01FF22
            mov    r2, r3
    
    loc_C01FF22:                ;
            mov.l    r3, @r1
    
    loc_C01FF24:                ;
            mov.l    @(h'18,pc), r3 ; [0C01FF40] = sub_C1DEC6E
            jmp    @r3 ; sub_C1DEC6E
            nop


    @Rocky5
    You can use the EMU to try?
    I'm just testing it on the EMU.


    BTW,hack2_1ST_READ.rar After decompression is 1ST_READ.BIN.....
    I modified the default not Widescreen......

    @Esppiral
    good luck;)

     
    Last edited: Oct 28, 2015
    fafadou, Mrneo240 and Giorgio like this.
  15. Rocky5

    Rocky5 Site Supporter 2015

    Joined:
    Jan 17, 2014
    Messages:
    524
    Likes Received:
    95
    The file you linked to is hack_1ST_READ.rar & its the same as the first one you released.
     
  16. yzb37859365

    yzb37859365 Spirited Member

    Joined:
    Jul 14, 2013
    Messages:
    187
    Likes Received:
    124
    Last edited: Oct 28, 2015
    Anthony817 likes this.
  17. Radaron

    Radaron Member

    Joined:
    Oct 29, 2015
    Messages:
    8
    Likes Received:
    3
    I think 02502A84 3F400000 is correct. 02502A88 changes it vertically.
     
  18. Meringues

    Meringues <B>Site Supporter 2014</B>

    Joined:
    May 24, 2012
    Messages:
    228
    Likes Received:
    17
    I can confirm this works! ;)

    EDIT: I'm not actually 100% now
     
    Last edited: Oct 29, 2015
  19. Esppiral

    Esppiral Gutsy Member

    Joined:
    Oct 3, 2012
    Messages:
    495
    Likes Received:
    1,041
    It is only working in the menus?

    I tested it on demul, it worked on the menus, everything was 16x9 but once ingame, the value would revert to the previous one, I changed it again and it went back to 16x9 for a millisecond, then the value changed again automatically to the original, didn't know if it was the emulator or what.

    Does anyone know how to make ir permanent? I've found this issue in some games too.

    BTW D2 and Ikaruga achieved! :)
    [​IMG]
    [​IMG]

    I'll post a bunch of codes "soon™" xD
     
    Last edited: Oct 29, 2015
    justice99 and Anthony817 like this.
  20. yzb37859365

    yzb37859365 Spirited Member

    Joined:
    Jul 14, 2013
    Messages:
    187
    Likes Received:
    124
    @Esppiral

    How much is the Ikaruga memory address?


    There are some games that are going to be kept in the loop, such as Metal Geomatrix - Heavy, which can only be used by internal programs.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page