Shenmue I Re-Release 16:9 Cutscenes Fix

@ner0 when trying to drag and drop Shenmue.exe onto the DRAGnDROP, I get

'II' is not recognized as an internal or external command,
operable program or batch file.
ERROR: 'grep.exe' was not found in [C:\Users\Me\Downloads\Shenmue I ]!

Any idea what I'm doing wrong?

EDIT: Figured it out; it was unable to read the full file directory name because of the &, so I renamed the folder :p
 
Last edited:
@ner0 when trying to drag and drop Shenmue.exe onto the DRAGnDROP, I get

'II' is not recognized as an internal or external command,
operable program or batch file.
ERROR: 'grep.exe' was not found in [C:\Users\Me\Downloads\Shenmue I ]!

Any idea what I'm doing wrong?
You're probably not doing anything wrong, I may have failed to sanitize the path properly when passing arguments around - in this case it seems that maybe the '&' character in the path may be the issue, but I have to replicate it first. It depends if I can repeat the same issue on my side to be able to fix it.

In the meantime, try to rename the folder to something else that does not have any special characters in it.
 
You're probably not doing anything wrong, I may have failed to sanitize the path properly when passing arguments around - in this case it seems that maybe the '&' character in the path may be the issue, but I have to replicate it first. It depends if I can repeat the same issue on my side to be able to fix it.

In the meantime, try to rename the folder to something else that does not have any special characters in it.

Hah, looks like we figured it out at the same time :p
 
I'm downloading Dewey's Japanese audio before I start up the game again, but was wondering; if I download the Special K mod, will that break this patch? Was looking to download some HD textures and they all seem to use Special K.
 
I'm downloading Dewey's Japanese audio before I start up the game again, but was wondering; if I download the Special K mod, will that break this patch? Was looking to download some HD textures and they all seem to use Special K.
I don't think they will clash, but I can't be sure.
As far as I know, Special K works in memory and shouldn't have any issue with the small patches done by my script, even Steam isn't bothered so I'm guessing it will work. But please, report back if there is an issue.

Back to your initial issue, thanks for reporting it. It is now fixed and the script has been updated to sanitize properly the path/filename at all levels.
 
One funny little thing I think I noticed; the last guy you beat up in the Charlie/Sakuragaoka fight who twirls in the air in slow-motion... When the focus turns back to Ryo + Charlie and goes back to regular speed, I think you can still see him twirling/bouncing on the ground in slow-motion thanks to the expanded view :p
 
I updated the base patch for v1.05beta, the custom patches for Shenmue2 (fullscreen cutscenes, camera icon and sub position) aren't done yet, working on it...
 
How does going from one version of the script to another work? Do I need to delete the existing Shenmue.exe.bak file before dragging and dropping again?
 
Shenmue I & II 16:9 Generic Hex Fix v5

UsTXTc0.png


1gTyHIQ.png


This is an updated version of my previous generic patcher.

Changelog :
  • Added compatibility with Shenmue v1.05 (Patch 5).
Features :
  • Compatible with v1.00, v1.01, v1.02, v1.03, 1.04, and 1.05 (Patch 5).
  • Shenmue.exe / Shenmue2.exe are automatically located if installed into the default Steam location.
Instructions :
  • Download the zip from this link, extract it to any folder.
  • Run Shenmue-GHexFix5.exe / Shenmue2-GHexFix5.exe and click Patch.
  • Locate Shenmue.exe / Shenmue2.exe if asked to.
  • Done.
Note : As mentioned earlier, the patchers may get flagged by some AV software as false positive, as an alternative you can use a hex editor to manually make the following changes to Shenmue.exe / Shenmue2.exe :

Code:
Find: 89 0D BD 42 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 0D 9B 1D BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 58 1D BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D FE 1C BB 00 - Replace with: 90 90 90 90 90 90
Code:
Find: 89 0D 31 C5 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 0D BF 9F BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 45 9F BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D EB 9E BB 00 - Replace with: 90 90 90 90 90 90
Code:
Find: 89 15 2C D5 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 15 9A AF BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 09 AF BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 93 AE BB 00 - Replace with: 90 90 90 90 90 90
Code:
Find: 89 15 CC D1 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 15 3A AC BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D A9 AB BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 33 AB BB 00 - Replace with: 90 90 90 90 90 90
Code:
Find: 89 15 BC 71 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 15 1A 4C BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 89 4B BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 13 4B BB 00 - Replace with: 90 90 90 90 90 90
Code:
Find: 89 15 FC 7C BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 15 4A 56 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D B9 55 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 43 55 BB 00 - Replace with: 90 90 90 90 90 90
Code:
Find: C7 05 F4 1E 6B 00 00 00 00 00  - Replace with: 90 90 90 90 90 90 90 90 90 90
Find: 89 0D 2A 1E 6B 00 - Replace with: 90 90 90 90 90 90
Code:
Find: C7 05 2C 24 6B 00 00 00 00 00 - Replace with: 90 90 90 90 90 90 90 90 90 90
Find: 89 0D 62 23 6B 00 - Replace with: 90 90 90 90 90 90
Code:
Find: C7 05 6C 2E 6B 00 00 00 00 00 - Replace with: 90 90 90 90 90 90 90 90 90 90
Find: 89 0D 12 2D 6B 00 - Replace with: 90 90 90 90 90 90
Code:
Find: C7 05 8C 28 6B 00 00 00 00 00 - Replace with: 90 90 90 90 90 90 90 90 90 90
Find: 89 0D C2 27 6B 00 - Replace with: 90 90 90 90 90 90
Code:
Find: C7 05 4C 35 6B 00 00 00 00 00 - Replace with: 90 90 90 90 90 90 90 90 90 90
Find: 89 0D 82 34 6B 00 - Replace with: 90 90 90 90 90 90
Code:
Find: C7 05 CC 7D 6C 00 00 00 00 00 - Replace with: 90 90 90 90 90 90 90 90 90 90
Find: 89 0D 02 7D 6C 00 - Replace with: 90 90 90 90 90 90
 
Last edited:
How does going from one version of the script to another work? Do I need to delete the existing Shenmue.exe.bak file before dragging and dropping again?
Yeah, you need to restore the backup since the script won't patch an already patched .exe file.
 
How does going from one version of the script to another work? Do I need to delete the existing Shenmue.exe.bak file before dragging and dropping again?
You need to delete the currently patched Shenmue(2).exe and rename the Shenmue(2).exe.bak back to Shenmue(2).exe - then apply the patch again.

When the game is updated, Steam replaces the patched EXE with a brand new vanilla one, so in theory you should just patch it again as always. You don't need to delete the backup file manually, if you try to patch the new executable, the script will first look if there is an existing backup and ask you if you want to overwrite it, which typically is the correct thing to do - it's there just as a precaution.

I updated the base patch for v1.05beta, the custom patches for Shenmue2 (fullscreen cutscenes, camera icon and sub position) aren't done yet, working on it...
Full support for v1.05 added: https://www.shenmuedojo.com/forum/index.php?posts/10013/
 
Last edited:
Shenmue I and II - 16:9 Widescreen patch
- for anyâ„¢ PC version -


I decided to adapt to the PC re-release version of Shenmue the script that I initially did for the Dreamcast, which was also based on @Esppiral's work.

The script is universal for both games, and it patches the binaries instead of the memory. One of the immediate advantages is that it is permanent, you don't have to run the program every time you want to play. At this point it works with all releases up until v1.05 of both games. This patch also includes a "fix" dedicated to Shenmue II which allows cut-scenes to be full-screen instead of keeping black borders on the top and bottom. Additionally, I have written custom code that can be injected into the executable to make the subtitles stay on the same lower position during full-screen cut-scenes; optionally you can remove the camera icon that appears during cut-scenes and action sequences in the top-right corner.

Link to the patch: http://tiny.cc/shmwsp


giphy.gif

Just unzip all the ZIP archive's contents anywhere on your disk, then simply drag & drop one of Shenmue's executables, from the sm1 or sm2 folders (Shenmue.exe or Shenmue2.exe, accordingly), over the script named DRAGnDROP Shenmue EXE HERE. When the patch is ready to be applied, a backup of the executable is created for you to be able to roll-back if you need.

NOTE: If you have issues with the patcher opening and closing without any error message at all, try extracting its contents to a folder in your Desktop and copy the intended Shenmue's executable there, then do the drag & drop operation inside that folder and see if that works for you, if it does then just copy the patched executable and backup files back to your Steam installation folder.


Patcher feature demo





Shenmue II
Properâ„¢ fullscreen cut-scenes




Shenmue II
Properâ„¢ subtitle positioning in fullscreen cut-scenes


View attachment 1272
NOTE
: The subtitle positioning fix during full-screen cut-scenes will only work if your game UI Display scale is at 100%.


Shenmue II
Properâ„¢ subtitle positioning in fullscreen cut-scenes (tech demo)



Shenmue II
No camera icon in top-right during fullscreen cut-scenes or action sequences

index.php

Code:
00007FF7E4A18D3E  | jmp 0x7FF7E4C599C1               ->|--|
00007FF7E4A18D43  | mov dword ptr ss:[rbp+0x4C],eax  <-|--|-------|
                                                       |  |       |
00007FF7E4C599C1  | cmp eax,0x44430000               <-|--|       |
00007FF7E4C599C6  | je 0x7FF7E4CA699A                ->|----|     |
00007FF7E4C599CC  | mov rdi,qword ptr ss:[rsp+0x60]  <-|----|--|  |
00007FF7E4C599D1  | jmp 0x7FF7E4A18D43               ->|----|--|--|
                                                       |    |  |
00007FF7E4CA699A  | cmp si,0x198                     <-|----|  |
00007FF7E4CA699F  | jne 0x7FF7E4C599CC               ->|-------|
00007FF7E4CA69A5  | mov eax,0x44638000                 |       |
00007FF7E4CA69AA  | jmp 0x7FF7E4C599CC               ->|-------|
Notes:
  • This code checks if the game is trying to change the position of an UI object to the coordinates 0x44430000, if it is then it checks for the next thing on its list;
  • 0x198 is the value that represents the subtitle object during cut-scenes - when the game is about to change the object position, it checks if it's during a cut-scene, if it is not then the code returns to its original routine;

Thank's for this :)
 
Shenmue I & II 16:9 Generic Hex Fix v6

nQLXs1g.png


8t6KGqA.png


This is an updated version of my previous generic patcher.

Changelog :
  • Added compatibility with Shenmue v1.06 (Patch 6).
Features :
  • Compatible with v1.00 up to v1.06 (Patch 6).
  • Shenmue.exe / Shenmue2.exe are automatically located if installed into the default Steam location.
Instructions :
  • Download the zip from this link, extract it to any folder.
  • Run Shenmue-GHexFix6.exe / Shenmue2-GHexFix6.exe and click Patch.
  • Locate Shenmue.exe / Shenmue2.exe if asked to.
  • Done.
Note : As mentioned earlier, the patchers may get flagged by some AV software as false positive, as an alternative you can use a hex editor to manually make the following changes to Shenmue.exe / Shenmue2.exe :

Code:
Find: 89 0D BD 42 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 0D 9B 1D BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 58 1D BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D FE 1C BB 00 - Replace with: 90 90 90 90 90 90
Code:
Find: 89 0D 31 C5 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 0D BF 9F BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 45 9F BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D EB 9E BB 00 - Replace with: 90 90 90 90 90 90
Code:
Find: 89 15 2C D5 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 15 9A AF BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 09 AF BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 93 AE BB 00 - Replace with: 90 90 90 90 90 90
Code:
Find: 89 15 CC D1 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 15 3A AC BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D A9 AB BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 33 AB BB 00 - Replace with: 90 90 90 90 90 90
Code:
Find: 89 15 BC 71 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 15 1A 4C BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 89 4B BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 13 4B BB 00 - Replace with: 90 90 90 90 90 90
Code:
Find: 89 15 FC 7C BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 15 4A 56 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D B9 55 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 43 55 BB 00 - Replace with: 90 90 90 90 90 90
Code:
Find: 89 15 1C BB BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 15 6A 94 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D D9 93 BB 00 - Replace with: 90 90 90 90 90 90
Find: 89 1D 63 93 BB 00 - Replace with: 90 90 90 90 90 90
Code:
Find: C7 05 F4 1E 6B 00 00 00 00 00  - Replace with: 90 90 90 90 90 90 90 90 90 90
Find: 89 0D 2A 1E 6B 00 - Replace with: 90 90 90 90 90 90
Code:
Find: C7 05 2C 24 6B 00 00 00 00 00 - Replace with: 90 90 90 90 90 90 90 90 90 90
Find: 89 0D 62 23 6B 00 - Replace with: 90 90 90 90 90 90
Code:
Find: C7 05 6C 2E 6B 00 00 00 00 00 - Replace with: 90 90 90 90 90 90 90 90 90 90
Find: 89 0D 12 2D 6B 00 - Replace with: 90 90 90 90 90 90
Code:
Find: C7 05 8C 28 6B 00 00 00 00 00 - Replace with: 90 90 90 90 90 90 90 90 90 90
Find: 89 0D C2 27 6B 00 - Replace with: 90 90 90 90 90 90
Code:
Find: C7 05 4C 35 6B 00 00 00 00 00 - Replace with: 90 90 90 90 90 90 90 90 90 90
Find: 89 0D 82 34 6B 00 - Replace with: 90 90 90 90 90 90
Code:
Find: C7 05 CC 7D 6C 00 00 00 00 00 - Replace with: 90 90 90 90 90 90 90 90 90 90
Find: 89 0D 02 7D 6C 00 - Replace with: 90 90 90 90 90 90
Code:
Find: C7 05 6C 99 6C 00 00 00 00 00 - Replace with: 90 90 90 90 90 90 90 90 90 90
Find: 89 0D A2 98 6C 00 - Replace with: 90 90 90 90 90 90
 
Somebody cant use your patch because of their system language. I cant use it at the beginning. After I changed my Windows language from Chinese to English, its worked! Thanks for your job!
What's your OS?
If it's Win10 I'll download the Chinese language pack an try to see if I can solve that. Also, is it traditional Chinese?
 
Somebody cant use your patch because of their system language. I cant use it at the beginning. After I changed my Windows language from Chinese to English, its worked! Thanks for your job!
Thanks for bringing this to my attention - this really was not working with a Chinese Windows-environment, which explains why another user had this exact same issue a few months back but I was unable to understand why.

After a few hours I finally tracked down the issue, it wasn't easy because I was getting odd behaviors in various parts of my script when running it inside a Windows-environment with Simplified Chinese. Anyway, the problem wasn't even the script or Windows'.
One of the tools that I pack with my script, called 'sed', apparently can't handle some tasks with a Chinese version of Windows - not sure why that is the case.

'sed', being a native Linux tool, is hard to come by in a Windows built version... the one that I was using dates back to late 2010. Not that it doesn't work, it does, but as it turns out it kind of fails when handling a Chinese environment. Long story short, I found a newer build of this tool which seems to work as well as the old one, and better yet, it works within a Chinese environment.

I've updated the patch bundle and if you want to test it, just go ahead and leave some feedback.
 
Thanks for bringing this to my attention - this really was not working with a Chinese Windows-environment, which explains why another user had this exact same issue a few months back but I was unable to understand why.

After a few hours I finally tracked down the issue, it wasn't easy because I was getting odd behaviors in various parts of my script when running it inside a Windows-environment with Simplified Chinese. Anyway, the problem wasn't even the script or Windows'.
One of the tools that I pack with my script, called 'sed', apparently can't handle some tasks with a Chinese version of Windows - not sure why that is the case.

'sed', being a native Linux tool, is hard to come by in a Windows built version... the one that I was using dates back to late 2010. Not that it doesn't work, it does, but as it turns out it kind of fails when handling a Chinese environment. Long story short, I found a newer build of this tool which seems to work as well as the old one, and better yet, it works within a Chinese environment.

I've updated the patch bundle and if you want to test it, just go ahead and leave some feedback.
I have tested the lasted version of patch. It seems running on my Simplified Chinese Win10, but Shenmue2.exe hadn't been modified. It means after patching, cut-scenes still have four black borders and camera icon.
 
Last edited:
Back
Top