Shenmue I, Shenmue II & What's Shenmue Widescreen HEX hack.

(Modding and other series related projects)

Re: Shenmue I Widescreen ISo/Hex patch

Postby ner0 » Thu Feb 02, 2017 11:19 am

Esppiral wrote:
Sappharad wrote: Care to provide the Action Replay / Codebreaker version of this, so it can be used by people with original discs?

If not I can go ahead and convert later, just want to give you the opportunity to post it if you were planning on it.


I'd appreciate it.

Here it is the Cheat engine table to make things easier.

https://mega.nz/#!FZBDjbKK!HsqYjfQBkUXQ ... snc18AoAvM

This is really awesome!

I have a question though... I have tested changing the addresses from this table with Demul (and nullDC) and it works, but not completely - the same happens with US/JP versions. When using the ROM patch on 1ST_READ.BIN, whether you do it on the disc image itself or in memory, at boot, it works flawlessly. But changing the values from this table, even if you do it as early as the SEGA logo, will have a few glitches still, particularly with regards to walls/interiors. Below is an example image when using the standard PAL version for which the table was first used.

Image

Image

To be clear: screen aspect ratio is perfect, clipping is perfect (non-existent), but a few areas glitch out from afar with walls becoming invisible (I did not test it extensively).

I have tested patching 1ST_READ.BIN and there it is flawless, and it's really how it is supposed to be used as it avoids the need for complications, etc. But I really wanted to understand why the codes method still has this tiny glitch.

EDIT:
Codes used for PAL, as per table:
Code: Select all
Render Fix........: 2C130398, 4 bytes, 0C093F30
Widescreen........: 2C09E984, float, 1.777777791
Draw Distance.....: 2C094180, float, 70
Render Fix........: 2C094188, float, 1
Render Fix........: 2C09418C, float, 1
Render Fix........: 2C0941A4, float, 1
Render Fix........: 2C0941A8, float, 1
ner0
Asia Travel Representative
Asia Travel Representative
 
Joined: January 2017
Favorite title: Shenmue
Currently playing: Shenmue

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby Esppiral » Thu Feb 02, 2017 1:03 pm

One of those values should be set way higher than 1, don't remember witch one actually.

Shenmue 1 Intro in 21:9 old widescreen vs new widescreen

phpBB [video]

Esppiral has received 3 thanks from: DreamcastPast, masterchan777, ner0
User avatar
Esppiral
Alpha Trading Boss
Alpha Trading Boss
 
Joined: May 2012
PSN: Esppiral
XBL: Esppiral
Steam: Esppiral
Favorite title: Shenmue
Currently playing: The Witcher 2

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby ner0 » Thu Feb 02, 2017 1:07 pm

Esppiral wrote: One of those values should be set way higher than 1, don't remember witch one actually.

I tried changing the Draw Distance to 170 and it seemed to fix it. Maybe it's too high, probably I should find a sweet spot.
EDIT: Retried with 170 DD and it isn't working after all, maybe I loaded an already patched image and made a confusion.

But I checked against a patched 1ST_READ.bin and the values that appear in cheat engine are exactly those. :/

Cool comparison video btw.
ner0
Asia Travel Representative
Asia Travel Representative
 
Joined: January 2017
Favorite title: Shenmue
Currently playing: Shenmue

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby ner0 » Thu Feb 02, 2017 3:53 pm

I think I found which address needed a bigger value:
Code: Select all
Render Fix........: 2C0941A4, float, 1

Instead should be thought as a Draw Distance:
Code: Select all
Render Fix........: 2C0941A4, float, 70

Effectively draws geometry at distance (shadows too it seems), depending on the value.
Here's a comparison (there's more details added than the 2 boxes I selected):

Value at 35
Image

Value at 40
Image

You can see the difference in shadows too. I am now using 70 as a value but am not sure what would be the appropriate value since it is static instead of dynamic like it would be when changed by the game. But it seems to solve the issue I had with the walls and store front not being rendered until up close. Have to test more though.

ner0 has received a thanks from: Esppiral
ner0
Asia Travel Representative
Asia Travel Representative
 
Joined: January 2017
Favorite title: Shenmue
Currently playing: Shenmue

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby Esppiral » Fri Feb 03, 2017 3:48 pm

UPDATED AS 11/06/2017

SHENMUE2 , E MK-5118450 V1.001

1ST_READ.BIN / ISO HEX PATCH (Click Show for download links)

Shenmue II PAL Disc 1 (GDI) - FireDrop | Mega.nz
Shenmue II PAL Disc 2 (GDI - FireDrop | Mega.nz
Shenmue II PAL Disc 3 (GDI) - FireDrop | Mega.nz
Shenmue II PAL Disc 4 (GDI) - FireDrop | Mega.nz
ISOZONE: http://theisozone.com/downloads/dreamca ... -esppiral/

Shenmue II Full English Xbox Speech Mod Disc 1 (CDI) - FireDrop | Mega.nz
Shenmue II Full English Xbox Speech Mod Disc 2 (CDI - FireDrop | Mega.nz
Shenmue II Full English Xbox Speech Mod Disc 3 (CDI) - FireDrop | Mega.nz
Shenmue II Full English Xbox Speech Mod Disc 4 (CDI)
- FireDrop | Mega.nz

SHENMUE, E MK-5105950, V1.00120001005


Value 1 (widescreen)
Code: Select all
Find
ABAAAA3F 90FF1D8C
Replace
398EE33F 90FF1D8C


Value 2 Render Fix
Code: Select all
Find
00000000 00000000 00000000 00000000 09000900 09000900 09000900 09000900 00000000 00000000 00000000
Replace
00001B43 0000F041 0000803F 0000803F 09000900 09000900 09000900 09000900 0000F041 0000803F 0000803F


Value 3 (Render Fix)
Code: Select all
Find
Find
60DF048C 00000000 00000000 E62F224F F36E06D1
Replace
FA3B008C 00000000 00000000 E62F224F F36E06D1


Value 4 (No Black Bars)

Code: Select all
Find
01A0 01E100E1 A36002C9
Replace
01a0 00e100E1 A36002C9



Image

Image

Image




Cheat engine table so anyone can toy increasing draw distance and other cool things.

https://mega.nz/#!xd5A0aID!6xWUxleyG9Cj ... oGQDYP7ais


phpBB [video]
Last edited by Esppiral on Sun Jun 11, 2017 10:25 am, edited 2 times in total.

Esppiral has received a thanks from: ner0
User avatar
Esppiral
Alpha Trading Boss
Alpha Trading Boss
 
Joined: May 2012
PSN: Esppiral
XBL: Esppiral
Steam: Esppiral
Favorite title: Shenmue
Currently playing: The Witcher 2

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby ner0 » Mon Feb 06, 2017 2:46 pm

Esppiral wrote: Hi I bring you an hex fix to patch a Shenmue I 1ST_READ.BIN/ISO/GDI/CDI.

This hex hack will make Shenmue display in Widescreen aspect ratio without clipping or glitches unlike NullDC extra geometry option or previous action replay codes, it will basically render the extra geometry necessary for 16:9 TV's.

The hack works great on emulators, as do on a real Dreamcast.


SHENMUE, E MK-5105950, V1.00120001005

So with an hex editor find and replace the following values.

Value 1
Code: Select all
Find
CCCCCC3D AAAAAA3F

Replace
CCCCCC3D 398EE33F

Render fix
Code: Select all
Find

203F090C 8BC78AD4 FFE55224 51145214
Replace

303F090C 8BC78AD4 FFE55224 51145214

Render Fix
Code: Select all
Find

09000900 09000900 09000900 09000900 09000900 09000900 09000900 00000000 00000000 00000000 00000000 09000900 09000900 09000900 09000900 00000000 00000000 00000000

Replace

09000900 09000900 09000900 09000900 09000900 09000900 09000900 00008C42 0000F042 0000803F 0000803F 09000900 09000900 09000900 09000900 0000803F 0000803F 0000803F



Following Esppiral's breakthrough, here's the same for other versions, just different for the 1st "render fix", which is actually the unlocker code that prevents the game from dynamically updating the ranges for clipping and draw distance:

SHENMUE, U MK-51059, V1.00320000918 [USA (NTSC-U)]

Value 1
Code: Select all
Find
CCCCCC3D AAAAAA3F

Replace
CCCCCC3D 398EE33F

Render fix
Code: Select all
Find
403F090C 8BC78AD4 FFE55224 51145214

Replace
503F090C 8BC78AD4 FFE55224 51145214

Render Fix
Code: Select all
Find
09000900 09000900 09000900 09000900 09000900 09000900 09000900 00000000 00000000 00000000 00000000 09000900 09000900 09000900 09000900 00000000 00000000 00000000

Replace
09000900 09000900 09000900 09000900 09000900 09000900 09000900 00008C42 0000F042 0000803F 0000803F 09000900 09000900 09000900 09000900 0000803F 0000803F 0000803F



SHENMUE, J HDR-0016 V1.0071999112 [JAP (NTSC-J)]

Value 1
Code: Select all
Find
CCCCCC3D AAAAAA3F

Replace
CCCCCC3D 398EE33F

Render fix
Code: Select all
Find
803E090C 8BC78AD4 FFE55224 51145214

Replace
903E090C 8BC78AD4 FFE55224 51145214

Render Fix
Code: Select all
Find
09000900 09000900 09000900 09000900 09000900 09000900 09000900 00000000 00000000 00000000 00000000 09000900 09000900 09000900 09000900 00000000 00000000 00000000

Replace
09000900 09000900 09000900 09000900 09000900 09000900 09000900 00008C42 0000F042 0000803F 0000803F 09000900 09000900 09000900 09000900 0000803F 0000803F 0000803F



To make it easier to patch your images, whether you're using a lite version (for 700MB CD-R) or the bulkier (untouched) GDRom rips, you can use the script that I uploaded here: https://mega.nz/#F!L4xAUTCB!dz3QkSV7WnkF8w8XGelfoA

Just unzip the file anywhere on your disk, then simply drag & drop each of your track06.bin files, from each of the 3 game discs, over the script named DRAG track06.bin HERE.bat. This will patch the EUR, USA or JAP images and also create a backup just in case.

ner0 has received 3 thanks from: Esppiral, Mr357, SanzenSama
ner0
Asia Travel Representative
Asia Travel Representative
 
Joined: January 2017
Favorite title: Shenmue
Currently playing: Shenmue

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby Shenmue_Trilogy » Tue Feb 07, 2017 4:02 pm

Is there any chance to increase the draw instance for the people/pedestrians on the streets? At least when using emulator? Have anyone tried this?
User avatar
Shenmue_Trilogy
Master of the Three Blades
Master of the Three Blades
 
Joined: July 2015

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby Esppiral » Tue Feb 07, 2017 5:14 pm

Yes it is possible to imcrease the draw distance of everything, just use the cheat engine tables I posted.
User avatar
Esppiral
Alpha Trading Boss
Alpha Trading Boss
 
Joined: May 2012
PSN: Esppiral
XBL: Esppiral
Steam: Esppiral
Favorite title: Shenmue
Currently playing: The Witcher 2

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby ner0 » Tue Feb 07, 2017 5:32 pm

Esppiral wrote: Yes it is possible to imcrease the draw distance of everything, just use the cheat engine tables I posted.

From a few tests I did the draw distance did not change the spawning distance of NPCs.
Well, not exactly. Decreasing the level of draw distance would decrease the distance at which NPCs would spawn from the player. But increasing the draw distance did not seem to affect NPCs spawn distance (i.e. they would appear/disappear at approximately the same distance as with default values).

EDIT: Also, even with default values there doesn't seem to exist a rule of thumb. Sometimes NPCs will spawn a few hundred meters ahead and sometimes they will spawn right in your face, without you changing your trajectory. I think it might be tied with NPCs AI and maybe a bit more complicated. Then again, everything seems complicated whit regards to hacking Shenmue :)
ner0
Asia Travel Representative
Asia Travel Representative
 
Joined: January 2017
Favorite title: Shenmue
Currently playing: Shenmue

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby John Doom » Tue Feb 07, 2017 6:15 pm

:-k I have a feeling Shenmue's engine is designed to not render more than a specific number of NPCs at the same time. This could explain why changing the draw distance doesn't effect them. If it's constant, it might be extra difficult to find and edit such value.

John Doom has received a thanks from: Shenmue_Trilogy
User avatar
John Doom
Master of the Three Blades
Master of the Three Blades
 
Joined: January 2017
Location: Italy
Steam: John Doom
Favorite title: Shenmue II
Currently playing: Yakuza

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby TailsAndy » Wed Feb 08, 2017 11:57 pm

My hex editor isn't finding these values. What file am I supposed to be editing, specifically? Would using the undub for this have any effect on these hex values?

EDIT: I have figured it out, it was because my hex editor was looking for text strings, not hex values.
User avatar
TailsAndy
Asia Travel Representative
Asia Travel Representative
 
Joined: February 2008
Nintendo FC: TailsAndy
Steam: TailsAndy
Favorite title: Shenmue II
Currently playing: MK8,

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby lorddanilo » Mon Feb 27, 2017 6:45 pm

How do I make it work on Shenmue Undub? The discs 2 and 3 don't have the thirt value to replace and the cheat engine does not work

I'm using NullDC with shenmue fixes from these forum

P.S.: sorry, my english is not good (I'm brazilian)
User avatar
lorddanilo
Fuku-san
Fuku-san
 
Joined: February 2017
Location: São Paulo - Brazil
PSN: danilo_tino
Favorite title: Shenmue II
Currently playing: Zelda BotW

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby ner0 » Tue Feb 28, 2017 3:45 pm

lorddanilo wrote: How do I make it work on Shenmue Undub? The discs 2 and 3 don't have the thirt value to replace and the cheat engine does not work

I'm using NullDC with shenmue fixes from these forum

P.S.: sorry, my english is not good (I'm brazilian)


I am not completely sure but I believe the undub version is based on the JAP release.
Either way, the undub should be using values from either USA, EUR, or JAP - check here: viewtopic.php?p=1147260#p1147260

I tried disc 2 and all the patterns exist, although I did not test in-game.
But the fact that my "Save Anywhere" trainer works is indication that one of the existing hex patterns should also work. Try using my patch script (found on the post linked above) and see if that works for you.

Se não conseguires, manda-me uma mensagem privada
ner0
Asia Travel Representative
Asia Travel Representative
 
Joined: January 2017
Favorite title: Shenmue
Currently playing: Shenmue

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby lorddanilo » Thu Mar 02, 2017 10:10 pm

ner0 wrote:
lorddanilo wrote: How do I make it work on Shenmue Undub? The discs 2 and 3 don't have the thirt value to replace and the cheat engine does not work

I'm using NullDC with shenmue fixes from these forum

P.S.: sorry, my english is not good (I'm brazilian)


I am not completely sure but I believe the undub version is based on the JAP release.
Either way, the undub should be using values from either USA, EUR, or JAP - check here: viewtopic.php?p=1147260#p1147260

I tried disc 2 and all the patterns exist, although I did not test in-game.
But the fact that my "Save Anywhere" trainer works is indication that one of the existing hex patterns should also work. Try using my patch script (found on the post linked above) and see if that works for you.

Se não conseguires, manda-me uma mensagem privada


Finally, it worked. I just changed the order of searching these values and I found it (maybe my hex editor was the problem). I've used the PAL version of the codes and they worked perfectly on NullDC and DEMUL.


If anyone's having the same problem, the order I used to searching is: the second Render Fix, the Value 1 and the first Render Fix.
User avatar
lorddanilo
Fuku-san
Fuku-san
 
Joined: February 2017
Location: São Paulo - Brazil
PSN: danilo_tino
Favorite title: Shenmue II
Currently playing: Zelda BotW

Re: Shenmue I & What's Shenmue Widescreen Iso/Hex patch

Postby RMinuzzi » Sat Mar 11, 2017 7:55 pm

Hi, I tried to edit the 1st_read on the shenmue2 gdi and works fine on demul but isn't working on nulldc, it freezes right after the am2 screen. I used gdi explorer to extract files and gdi rebuilder. sorry for my bad english.

EDIT: i tested the codes one by one, the Value 3 (render fix) is the one that freezes the game on nulldc, demul is ok.

my image is MK-5118450V1.001

thanks.
RMinuzzi
Fuku-san
Fuku-san
 
Joined: January 2017
PSN: xRM360BRx
XBL: xRM360BRx
Steam: r.minuzzi
Favorite title: Shenmue

PreviousNext

Return to Community Projects

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by phpBB © 2000-
ShenmueDojo.net