Page 2 of 4

Re: Shenmue I Widescreen ISo/Hex patch

PostPosted: Thu Feb 02, 2017 11:19 am
by ner0
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

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

PostPosted: Thu Feb 02, 2017 1:03 pm
by Esppiral
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]

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

PostPosted: Thu Feb 02, 2017 1:07 pm
by ner0
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.

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

PostPosted: Thu Feb 02, 2017 3:53 pm
by ner0
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.

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

PostPosted: Fri Feb 03, 2017 3:48 pm
by Esppiral
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]

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

PostPosted: Mon Feb 06, 2017 2:46 pm
by ner0
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.

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

PostPosted: Tue Feb 07, 2017 4:02 pm
by Shenmue_Trilogy
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?

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

PostPosted: Tue Feb 07, 2017 5:14 pm
by Esppiral
Yes it is possible to imcrease the draw distance of everything, just use the cheat engine tables I posted.

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

PostPosted: Tue Feb 07, 2017 5:32 pm
by ner0
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 :)

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

PostPosted: Tue Feb 07, 2017 6:15 pm
by John Doom
:-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.

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

PostPosted: Wed Feb 08, 2017 11:57 pm
by TailsAndy
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.

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

PostPosted: Mon Feb 27, 2017 6:45 pm
by lorddanilo
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)

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

PostPosted: Tue Feb 28, 2017 3:45 pm
by ner0
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

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

PostPosted: Thu Mar 02, 2017 10:10 pm
by lorddanilo
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.

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

PostPosted: Sat Mar 11, 2017 7:55 pm
by RMinuzzi
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.