Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Silent Hill 2] Porting audio from PS2 build to PC #11

Closed
elishacloud opened this issue Jul 8, 2018 · 36 comments
Closed

[Silent Hill 2] Porting audio from PS2 build to PC #11

elishacloud opened this issue Jul 8, 2018 · 36 comments

Comments

@elishacloud
Copy link
Owner

From @Polymega on August 17, 2017 22:26

Hi @elishacloud !

This is a branch/continuation of our discussion found here accompanied with input by @AeroWidescreen:
crosire/d3d8to9#24

While Silent Hill 2 for the PC is being wonderfully fixed by the fine folks over at Widescreen Fix, in addition to your's and Crosire's work with ReShade D3D8to9, there are still a few lingering issues left for the PC version that put it behind its PS2 counterpart. Most notable is the audio/sound issues and lack of soft shadows for the PC iteration.

First, if/when you have a spare 25 minutes I'd strongly recommend watching this video that breaks down the differences between the main releases of SH2 for various platforms:
https://www.youtube.com/watch?v=nna2yt1c9gI

In regards to the audio:
All versions of SH2 except for the PS2 version have compressed the audio files into a lossy format. This is further explained here:
https://www.youtube.com/watch?v=nna2yt1c9gI&t=403

And while this situation is less than ideal the tone and pitches for the audio files have also changed during the conversion. You can hear this in action here:
https://www.youtube.com/watch?v=8E5Nt8ahZRk

So while typically only audiophiles will be able to hear the reduced bitrate of the compressed audio files everyone can pick up on these tone/pitch differences. It's equal parts strange and silly this happened.

The solution-in-theory then is to somehow extract the sound libraries from the PS2 disc and convert/transpose those files to the PC version. In a perfect world the libraries would have the same naming/file structure conventions so it would hopefully be a straight-foward process of replacing the files. But I don't know if that's the case as I have yet to find a definitive piece of software to extract content like this from a PS2 disc.

But ultimately the end goal here would be to find a way to transplant the PS2 game's sound files into the PC game's folder.

From your knowledge and past experiences do you think such as task if feasible?

In regards to the shadows:
Both the PS2 and Xbox versions of the game utilize soft shadows in the game's world whereas the PC version uses simple, hard edge volumes which results in razor-sharp shadow lines. This reduction in shadow quality not only looks less than desirable but also hurts the game's atmosphere.

You can learn more about the PC's shadows vs. consoles here:
https://www.youtube.com/watch?v=nna2yt1c9gI&t=836

And in the same video they discuss more about the soft shadows being used in the PS2/Xbox versions here:
https://www.youtube.com/watch?v=nna2yt1c9gI&t=353

And here:
https://www.youtube.com/watch?v=nna2yt1c9gI&t=701

Do you think implementing soft shadows would ever be feasible for this game and something within your skill set to do? If you think it is, let me know and if you'd be interested in looking into this as I would spread the word around about what you'd be trying to do and get other fans to donate to your cause. This would probably be one of, if not the, hardest mods to do for the game so compensation is absolutely a requirement for such a major task/time commitment.

Copied from original issue: elishacloud/dxwrapper#6

@elishacloud
Copy link
Owner Author

From @Polymega on August 17, 2017 23:42

In regards to the sound files; this is all Greek to me:
https://hcs64.com/mboard/forumlong.php?showthread=36833

@elishacloud
Copy link
Owner Author

Shadows:
It looks like there are three main ways to implement soft shadows in Direct3D8/Direct3D9.

  1. Enable Anti-Aliasing:

I tried this and it does not seem to give the effect that we want. Attached is a sample dll you can try for yourself. The overall graphics does seem slightly better with this enabled but it does not give us the shadows we want.

  1. Add additional light sources:

If Silent Hill 2 uses Shadow Volumes the the only option we have is to add additional light sources. This will give us a "jittered" sample for the shadowed region, which is the best we can do if Silent Hill 2 uses Shadow Volumes. So far I don't think Silent Hill 2 is using Shadow Volumes because it does not seem to call LightEnable or any other equivalent API so this option may not work.

Ref: https://www.gamedev.net/articles/programming/graphics/an-example-of-shadow-rendering-in-direct3d-9-r2019/

  1. Using Pixel and Vertex Shaders:

If Silent Hill 2 is using PixelShaders and/or VertexShaders for the lighting then the only way to make the edges soft is to update the shader code. Most likely we would need to add all new shaders into the game for this. From my tests so far I think this may be what we need to do. The good news is that this option can give us the best looking shadow effect but it is also likely the hardest to implement (without the original source code).

Ref: https://www.gamedev.net/articles/programming/graphics/soft-edged-shadows-r2193
Ref: http://developer.download.nvidia.com/whitepapers/2008/PCSS_Integration.pdf

Audio:
Updating the audio may not be as easy as it sounds. From the HCS Forum it appears that Silent Hill 2 uses dynamic tracks so it is likely not as simple as replacing the PC tracks with the PS2 tracks (re-encoded for the PC). We might also need to update how Silent Hill 2 chooses the tracks. I will need to look at this in more detail.

@elishacloud
Copy link
Owner Author

From @Polymega on August 20, 2017 18:42

  1. Enable Anti-Aliasing:

You're right it doesn't enhance the shadows in any way but you may have stumbled across a big deal for something else, Elisha: If you refer to my Installation Guide for SH2 PC with enhancements you'll find that Nvidia users CANNOT have anti-aliasing while using the enhancements. This is because WineD3D For Windows prevents GPUs from using forced AA through their GPU control panel (the game will crash if they try to do so when WineD3D is in use).

For AMD users this isn't an issue: They can use injectSMAA instead of WineD3D (refer to the "Troubleshooting" portion of my installation guide) to achieve AA while fixing the universal "black lines of faces" issue because they do not experience all the other issues Nvidia cards have.

But your attached D3D8 file? This is something special... When I used it (in conjunction with the WSF + WineD3D For Windows' D3D9 files) on my Nvidia PC it not only allowed WineD3D's D3D9 files to still work (thus fixing all of Nvidia's visual problems) but ALSO allowed AA.

And while I haven't done a full play through to test your attached D3D8 file thoroughly I did find one immediate bug:
https://youtu.be/UKQLmj9jdZo

This happens whenever you pause the game.

But in a nutshell: In order to use WineD3D's D3D9 fixes (for Nvidia users) they have to rename the WSF's dinput8.dll file to d3d8.dll then activate ReShade's D3D8to9 converter within it to use WineD3D's D3D9 files. Problem is injectSMAA also requires itself to be named d3d9.dll and you can't have two d3d9.dll files in the same directory. But your attached D3D8 file seems to achieve AA while also putting the game in a D3D9 wrapper? This new way I renamed WSF's dinput8.dll file to dsound.dll, used your attached d3d8.dll, and used WineD3D's d3d9.dll + wine3d.dll + libwine.dll with it.

  1. Using Pixel and Vertex Shaders: [...] From my tests so far I think this may be what we need to do.

After some more continued research you just let me know if this seems like a viable undertaking and I will help you through other means the best of my ability. :)

PS - I have both a Win 7/Nvidia and Win 10/AMD computer if you ever need me to test things on certain OS' or GPUs.

@elishacloud
Copy link
Owner Author

From @Polymega on August 20, 2017 19:23

Looks like cutscenes that use depth-of-field have the same issue with the AA d3d8.dll file:
https://www.youtube.com/watch?v=Lavp1cyA8PU

Anyway, this AA revelation for Nvidia users--and the issues I've recorded--are low priority. The thought of achieving soft shadows in the game is so high on the list it's not even funny; it's been one of the longest requested enhancements for the game by so many.

@elishacloud
Copy link
Owner Author

From @RenoFriends on August 20, 2017 20:50

This thread is so interesting... In SH2 and SH3 the shadows are so hard and would be great to have softer ones, as well as the audio in SH2, that as I read is more difficult to acomplish that it sounds in first place...

@elishacloud
Copy link
Owner Author

From @mirh on August 20, 2017 21:5

Post-processing AA isn't true AA.
And wineD3D's D3D9 fixes is quite possibly related to #5

@elishacloud
Copy link
Owner Author

From @AeroWidescreen on August 20, 2017 21:21

@jdkubiak I don't have any problems with the d3d8.dll anti-aliasing, but I don't use wineD3D or d3d8to9. Maybe there's a conflict with one of those.

@RenoFriends In SH3 they look hard because of shadow resolution. Use a lower value and it'll look soft like the PS2 version, although more pixelated.

@elishacloud
Copy link
Owner Author

From @Polymega on August 20, 2017 21:23

To be honest I've never been invested in the debate of "true" vs. post-processing AA. So long as the results look good/comparable and don't greatly impact performance that's all that really matters at the end of the day.

@AeroWidescreen yeah WineD3D does wonders for fixing the Nvidia bugs but apparently does not play nice with other fixes.

But again this is low priority compared to implementing soft shadows in the game.

@elishacloud
Copy link
Owner Author

From @mirh on August 20, 2017 23:57

To be honest I've never been invested in the debate of "true" vs. post-processing AA.

The thing is, there might be some specific incompatibility here or there, but there's really no reason at all why post-processing AA should require special attention by anyone.
You could literally just apply it to an already rendered picture, and the result would be the same.
If, on the other hand, you are calling for "technical expertise" and all, proper one has to be the point.

@elishacloud
Copy link
Owner Author

And while I haven't done a full play through to test your attached D3D8 file thoroughly I did find one immediate bug:
https://youtu.be/UKQLmj9jdZo

This only happens when you use the "No CD" Version. I am using a different version here (requires a CD or a mounted ISO) and this issue does not happen. I might be able to just create a new "No CD" Version. I have created several "No CD" patches for other games (see here and here). Looks like who ever created this version did more than was intended.

Also, I am using the "North American PC" version without any issues. So we may be able to fix several of these issues at once by creating a new "No CD" Version and adding anti-aliasing directly into d3d8to9.

One more item I noticed is that WineD3D only allows for MultiSampling level 1, whereas without WineD3D I can get MultiSampling up to level 8, which is much better quality. It would be really nice to fix the issues directly in d3d8to9 so that WineD3D is no longer needed.

I realize the soft shadows item is the highest priority. However, I need more time to continue my research. I never even knew about PixelSaders or VertexShaders before a few months ago.

Edit: I was able to get MultiSampling to work pretty good with WineD3D (once I removed some of the old WineD3D registry keys I added a long time ago). It seems like we just need an updated "No CD" Version to fix the issue with anti-aliasing.

Edit 2: Once I removed the WineD3D registry keys I see the same issue with the version I am using. I must be getting tired!

@elishacloud
Copy link
Owner Author

From @mirh on August 21, 2017 11:27

SecuROM isn't exactly the same cakewalk that a stupid cd check is (speaking of which, I have always wondered the address to tinker with for Omikron retail exe)
[gamecopyworld reports drm might have been removed with 1.1 patch though then..]

UnSecuromNT might do it anyway.

@elishacloud
Copy link
Owner Author

From @Polymega on August 21, 2017 12:30

Looks like who ever created this version did more than was intended.

Very true. Funny timing as someone had an issue with another version of a No CD exe found here:
ThirteenAG/WidescreenFixesPack#316 (comment)

It would be nice to have a "definitive" No CD exe to use as there are several of them floating around.

But that brings up a question/concern:
For our European friends (and American folks like myself who are using the Director's Cut version) would there be any issue with installing the Director's Cut version but then using a North American No CD exe? (I'd be happy to test this out in the future.)

Edit: I also have my original, unmodified Director's Cut exe I can send you as well?

Also, I am using the "North American PC" version without any issues.

Interesting. To confirm: Are you also using the Widescreen Fix package with it? And still no issues (such as, you can still see the intro screen/menu)?

creating a new "No CD" Version and adding anti-aliasing directly into d3d8to9.

That's an excellent idea. The only thing I'd recommend is having a customizable option in an ini or similar so people can choose what level of MSAA they'd like to use? (Such as 0, 1, 2, 4, 8.) User-selected configuration is always welcomed and appreciated by the player.

It would be really nice to fix the issues directly in d3d8to9 so that WineD3D is no longer needed.

That would be pretty cool! As mentioned WineD3D For Windows is the only fix package discovered that alleviates all of the Nvidia bugs but it can also not play nice with other packages.

Here are a list of bugs that WineD3D fixes. If anyone can think of other bugs I missed/forgot please chime in:

Nvidia-specific bugs:

Universal bugs (not GPU specific):

Bonus add-ons:

  • A form of anti-aliasing?

Here is a list of bugs that ReShade D3D8to9 causes:

Integrated GPU-specific bugs:

@elishacloud
Copy link
Owner Author

@jdkubiak, I created a simple ASI file that loads the WineD3D dll's from the 'scripts' folder. This way you can load a different d3d9.dll file (or no d3d9.dll file) from the Silent Hill 2 folder. This allows injectSMAA to work on any graphics card (even Nvidia) while still taking advantage of the WineD3D fixes.

How to install:

  1. Download the ASI file here and unzip it into the 'scripts' folder.
  2. Move the WineD3D dll's (d3d9.dll + wine3d.dll + libwine.dll) into the 'scripts' folder.
  3. Now you can add the injectSMAA files into the Silent Hill 2 folder.

This is not quite as good as eliminating the need for WineD3D but it is the next best thing.

Are you also using the Widescreen Fix package with it? And still no issues (such as, you can still see the intro screen/menu)?

Yes. I am using the "North American PC" version with the Widescreen Fix package and all the other fixes in the Installation Guide (including injectSMAA and WineD3D) on an Nvidia video card without any issues. The intro screen and menu works fine. However I did notice two things:

  1. The one thing I did notice is that one of the movies had a different name compared with what was in the Installation Guide. "ending.bik" was called "end.bik" on my install.
  2. After copying the "No CD" version from the Installation Guide the intro screen and menu looks different than it did.

Here is the North American patched version I am running:

north american

Here is the No CD version from the Installation Guide:

no cd version

@elishacloud
Copy link
Owner Author

From @Polymega on August 23, 2017 12:39

How awesome! I can't wait to give this a try tonight after work!! Thank you!

This is not quite as good as eliminating the need for WineD3D but it is the next best thing.

But no need to completely re-invent the wheel if the wheel can be slightly adjusted as you've done to roll along nicely with the other wheels. :) (Horrible analogy, I know...)

Here is the North American patched version I am running:

I may be missing something but that's the Director's Cut (European) exe? Or I believe you're saying you installed the NA version then used a patched EU exe and are showing it working here without issue?

The one thing I did notice is that one of the movies had a different name compared with what was in the Installation Guide. "ending.bik" was called "end.bik" on my install.

Probably not related but I wonder if that's a difference between the NA and EU versions when it installs?
https://pcgamingwiki.com/wiki/Silent_Hill_2:_Director's_Cut#.22Insert_a_disc.22_message_in_the_ending
If both NA and EU versions will work I can simply make a note to rename that file in the guide for its next update.

I have a NA copy of SH2 PC myself somewhere and ought to install it on my laptop to also help compare these things...

After copying the "No CD" version from the Installation Guide the intro screen and menu looks different than it did.

Someone had text/visual issues with their EU exe version (seen here, notice how razor sharp their text is) and said the exe from the Installation Guide fixed that problem.

Now, as you said, whoever made the No CD exe found on the guide probably modified who knows what else in it. But I'm curious if this person also modified the menu fonts as well or if there are truly two different retail exe's with the different font styles as shown in your image above for the Director's Cut version.

If there really are two default, vanilla versions out there it may be worth patching the one that uses the "thicker" fonts as it seems to also alleviate the razor sharp fonts in the menus and such?

I'll boot up my original exe tonight with disc inside and see if I may have the "thicker font" version. But there's always the chance this was something modified by the guy who made the No CD hack...

^ Ignore the strikethrough, Aero confirmed the person had his example shots mixed up. The PS2 version has the razor-sharp text, not the PC version.

@elishacloud
Copy link
Owner Author

From @Saavas on August 23, 2017 15:2

That's great news, although I'd like to point out that unfortunately while WineD3D fixes some issues, it also introduces others and I know of at least one that happened to me and one user in the youtube comment section (https://www.youtube.com/watch?v=JTKaWGpZg14) - the flashlight bug returns but only during the turning on/off of the flashlight. I wonder if it would be possible to eliminate the need for WineD3D or if I should try to report this to WidescreenPatch guys and hope for a fix for users of both packages.

@elishacloud
Copy link
Owner Author

From @Polymega on August 23, 2017 15:13

@elishacloud fixed this issue and it should be implemented into the Widescreen Fix once @crosire updates ReShade then @ThirteenAG over at the Widescreen Fix updates the submodule for ReShade in his Ultimate ASI Loader.

(They may have already updated their respective projects at the time of this posting.)

@elishacloud
Copy link
Owner Author

From @Saavas on August 23, 2017 15:14

That's amazing, thanks for the info, I really hope the SH2 PC port can become the ultimate version of the game with all those seemingly impossible fixes being made.

@elishacloud
Copy link
Owner Author

From @Polymega on August 23, 2017 15:16

There are a lot of wonderful and smart people on these GitHub boards who can do some serious magic.

Once I've confirmed ReShade/UAL has been updated, along with the current anti-aliasing/patched EXE work done by Elisha here, I'll update the Installation Guide accordingly. Just holding off until all the packages are updated and I can run a few tests myself first.

@elishacloud
Copy link
Owner Author

From @AeroWidescreen on August 23, 2017 15:46

@jdkubiak

Someone had text/visual issues with their EU exe version (seen here, notice how razor sharp their text is) and said the exe from the Installation Guide fixed that problem.

I think @RenoFriends mixed up the screenshots. The first one (sharp text) is the PS2 version, and the second one is the PC version. I can tell because I can see soft shadows from the status screen, the brighter inventory icons, and the fact that the options menu is labeled as "option", not "options". I'm not sure what his problem with the text was, but he claims the new exe is somehow better. We'd need comparison screenshots between the old and new exe he's using to be sure.

@elishacloud
Copy link
Owner Author

From @Polymega on August 23, 2017 15:54

I envy your eagle eyes, sir. So probably scratch my early statement then Elisha; it seems just the fonts for the main menu/pause screen are different which isn't a big deal then.

I'll still boot up my original Director's Cut exe (CD required) tonight and see if I have the skinnier fonts on the title screen. If so, I can probably tell you if the fonts within the game are still the same or not.

@AeroWidescreen and/or @elishacloud : I'm trying to get better/more familiarized with GitHub and its interface/terms. What is a sure-fire way to know when a project has been updated?

Let's use this as an example: If something has been "commited" does that mean it's now been implemented into the master project/file(s)? Or does it need to say, "_____ merged commit # into ___:master" for it to then be implemented?

@elishacloud
Copy link
Owner Author

From @mirh on August 23, 2017 15:56

Just Watch it.
And "merged" commits have no functional value.

And I'll stress again that all this specific SH2-internal breakage should have its own project home.

@elishacloud
Copy link
Owner Author

From @Polymega on August 23, 2017 16:12

Just Watch it.

But doesn't Watch notify you of all conversations/issues/etc and not just when releases come out?

@elishacloud
Copy link
Owner Author

From @mirh on August 23, 2017 17:43

Well, not like projects have a rss feed

...

MFW they actually have
https://github.com/crosire/d3d8to9/commits/master.atom

@elishacloud
Copy link
Owner Author

From @Saavas on August 23, 2017 17:50

@jdkubiak I'm not exactly familiar with all the technical details, but the .dll in the post you linked fixes the issue only partially for me - now the 3d models are NOT lighting up until the flashlight reaches full light power. If the problem will be solved after all the remaining packages get updated, then disregard this post, but I'm just pointing it out in case the problem still persists. Unless it works this way on PS2 as well, I have no clue because PC version is sadly the only one I had opportunity to play

@elishacloud
Copy link
Owner Author

From @Polymega on August 23, 2017 18:3

Try this in the meantime:

  • Rename Widescreen Fix's dinput8.dll to dsound.dll. This file may have been renamed to d3d8.dll from the Installation Guide. If so, still rename it to dsound.dll.
  • In the scripts\ folder remove the global.ini file if you have one there. (I just rename it global.ini.bak)
  • Back in the game's main directory use Elisha's d3d8.dll file here.
  • Keep the WineD3D For Windows files in the game's directory.

That should work. And if not, yes, please hold tight until these fine folks make further progress with edits.

@elishacloud
Copy link
Owner Author

From @Saavas on August 23, 2017 18:17

My folder has a bit different structure, it's due to me following pcgamingwiki instructions rather than your guide that I had no knowledge of when I was installing the game. My dinput.dll seems to be from xinputplus. Regardless, I don't need the fix right now - I finished the game earlier today and I'm done with it until the town calls for me again :) I just want to help fix the game to make it definitive version since I admire Team Silent's work and a gem like this cannot be allowed to be lost in the past. Thanks for the tip though :)

@elishacloud
Copy link
Owner Author

From @Polymega on August 23, 2017 22:55

Alright, I used the CD + original exe and have the same looking intro screen as your's. I never used the original exe before for the Director's Cut version so I believe the only visual change is the font for the main menu. Fonts elsewhere (inventory, pause, options, etc.) appear to be the same as the North American version.

image

And as @AeroWidescreen wagered and was correct with: The menu fonts are nice and pseudo-anti-aliased for a more pleasing look. So all is good with the vanilla exe in that regard.

I created a simple ASI file that loads the WineD3D dll's from the 'scripts' folder. This way you can load a different d3d9.dll file (or no d3d9.dll file) from the Silent Hill 2 folder. This allows injectSMAA to work on any graphics card (even Nvidia) while still taking advantage of the WineD3D fixes.

Great stuff! All files worked together without issue. The only thing I noticed is injectSMAA doesn't anti-alias as strong when working alongside WineD3D. Check out the top-right of James' hair for a good example. The AA was set to "ultra" for both shots. (Click to make bigger.)

image

This way you can load a different d3d9.dll file (or no d3d9.dll file) from the Silent Hill 2 folder.

Nothing critical but I couldn't get WineD3D's files to work without another d3d9.dll file in the main directory. I had WSF's dinput8.dll file renamed to d3d8.dll, activated ReShade D3D8to9 within it (via global.ini in the "scripts" folder), then placed WineD3D's files + your WineD3D Loader in the "scripts" folder and didn't use any injectSMAA files for this test.

@elishacloud
Copy link
Owner Author

The only thing I noticed is injectSMAA doesn't anti-alias as strong when working alongside WineD3D.

This is likely to do with how WineD3D interprets the calls from injectSMAA. Not much we can do about this as long as we continue use WineD3D. Anyways the difference is minor and we can probably live with it for now. I would like to remove our dependency on WineD3D at some point, but that is a long way down the road.

Nothing critical but I couldn't get WineD3D's files to work without another d3d9.dll file in the main directory.

I fixed this already. The download I gave you above was just a really quick program I whipped up to prove it out. Now that is looks good I have created a whole new project for this. It supports all the WineD3D dll's (not just d3d9.dll) and I fixed the issue you mentioned as well.

Other comments from this thread:

1. LoadWineD3D ASI

Please check out the new LoadWineD3D ASI project. I uploaded my code and created a new release there.

2. No CD Version

I am not completely sure what version I am using (North American, European or some other version). However when I read the Installation Guide I notice that the startup screen on my version looks like the image of the "North American PC" version. So I assume it is that one.

As far as the menu I like the menu from the original exe better than the No CD one from the Installation Guide. When I get a little time I will try and create a new No CD version for you. I think it will be better than the one you have now.

3. FMV Enhancement Pack

As I mentioned above my copy has a different name for one of the FMV files ("ending.bik" vs. "end.bik"). I recommend you include both files in the "FMV Enhancement Pack" so that the movies work no matter which version of the game the user has. Since the files are zipped it should not take much more space.

4. Porting Audio from PS2

I was able to get virtually all of the audio files from the PS2 disk from this link here. Based on information from the forum I should be able to convert them into a usable format for the PC. I may need a bit of hand holding on this since I have never played Silent Hill 2 and have no idea where to go to hear the audio.

5. Soft Shadows

This one is certainly the hardest thing to do here (at least for me). I need to spend time to understand each of the shaders in Silent Hill 2 and what they do before I will be able to implement new code to make the shadows soft. There are over 80 shaders and it could take me a day or two for each one. My knowledge of shaders is very rudimentary. I will keep you posted on my progress.

BTW: If there is anyone around here with good knowledge of shaders I would love to talk to you! :-)

@elishacloud
Copy link
Owner Author

From @mirh on August 24, 2017 9:5

Showerthought: if wined3d code is subpar.. Why not contributing to it? 😄

Also, at this point why not making the game able to also load the original FMVs in the first place (so, no need for the conversion - for as much well-done)? Or if not any the perfect originals, a remuxed file.

@elishacloud
Copy link
Owner Author

From @Polymega on August 24, 2017 12:22

1. LoadWineD3D ASI: Please check out the new LoadWineD3D ASI project. I uploaded my code and created a new release there

Excellent. Bookmarked and will do!

3. FMV Enhancement Pack: I recommend you include both files in the "FMV Enhancement Pack" so that the movies work no matter which version of the game the user has.

Not a problem. I'll have that video saved twice as "end" and "ending" and load up a save file at the final boss to trigger the ending. If nothing acts weird/crashes from doing that (it shouldn't) I'll update my guide's packaged file for this and also the PC Gaming Wiki link for it.

4. Porting Audio from PS2: I was able to get virtually all of the audio files from the PS2 disk from this link here. Based on information from the forum I should be able to convert them into a usable format for the PC. I may need a bit of hand holding on this since I have never played Silent Hill 2 and have no idea where to go to hear the audio.

Which PS2 version did you rip from? SH2 or SH2 Greatest Hits? I ask because the Greatest Hits version includes all the bonus content that is also found in the PC version. I'd only be fearful that ripping from the original run of SH2 PS2 will have you missing many audio files which could run you into a snag down the line.

These PS2 versions all include the bonus content also found in the PC version:

image

I'm not sure if this would help/be specifically relevant to what we're trying to accomplish but you can try this out:
http://alchemillahospital.net/silent-hill-resource-editor/

I haven't used it in a while so I don't know if it will open all audio files/formats but you can use it to preview audio/sound from the PC version. Just click the AFS or AIX Explorer tabs and go from there.

And yes, if you're comfortable with the idea, let us help you in any way we can with this task. It's the least any of us can do to help with what you're doing.

5. Soft Shadows: This one is certainly the hardest thing to do here (at least for me). I need to spend time to understand each of the shaders in Silent Hill 2 and what they do before I will be able to implement new code to make the shadows soft. There are over 80 shaders and it could take me a day or two for each one. My knowledge of shaders is very rudimentary. I will keep you posted on my progress.

Please consider sharing your PayPal address or making a PayPal donation link. Or, at the very least, your email for me to send you a gift card?

2. No CD Version: I notice that the startup screen on my version looks like the image of the "North American PC" version. So I assume it is that one.

Ah, I see. The splash screen (below) is on both (NA & EU) PC versions.

image

So I believe you're also using the European version then if your vanilla exe looks like the one on the right:

image

As we progress further I'll install my NA copy on my laptop to see if all these packages will work with that version.

@elishacloud
Copy link
Owner Author

From @mirh on August 24, 2017 14:27

I'll update my guide's packaged file for this and also the PC Gaming Wiki link for it.

Trivia: the file linked on PCGW is half-assed because we have problems with IP Board.
I have it wasting space on my hdd (and taken down on MEGA) since almost 3 years.
SHA-1 for contents (not the file itself, since I prefer my repackaged 7z) is BF3B2CBE07453C67DAAA13DBDD22A49295C78369
Then, for as much as good is the conversion made by angular graphics, originals would be top notch.

@elishacloud
Copy link
Owner Author

From @AeroWidescreen on August 24, 2017 17:27

@elishacloud

Please consider sharing your PayPal address or making a PayPal donation link. Or, at the very least, your email for me to send you a gift card?

I'm willing to donate a few bucks too. What you're doing for SH2 is huge for many of us. The PC port could truly be the new definitive version by the end of all this; no one could say otherwise. Thank you again.

@elishacloud
Copy link
Owner Author

From @RenoFriends on August 24, 2017 20:23

Wow, so much new thing to read about!

I think @RenoFriends mixed up the screenshots. The first one (sharp text) is the PS2 version, and the second one is the PC version. I can tell because I can see soft shadows from the status screen, the brighter inventory icons, and the fact that the options menu is labeled as "option", not "options". I'm not sure what his problem with the text was, but he claims the new exe is somehow better. We'd need comparison screenshots between the old and new exe he's using to be sure.

Yes, I was mistaken, it's totally the opposite in my screenshot, the bottom one is from PC instead of PS2... sorry!

@elishacloud
Copy link
Owner Author

if wined3d code is subpar.. Why not contributing to it?

I don't know if WineD3D is subpar or not. But I think that most of the folks working on that project are coding at a level far above me. But I have leveraged code from WineD3D in DxWrapper.

at this point why not making the game able to also load the original FMVs in the first place

We are already using higher quality FMVs. I am not sure why anyone would want to use the lower quality ones shipped with the PC. The higher quality ones we have in the FMV Enhancement Pack are taken from the original FMVs in PS2. PS2 is the only platform with the original FMVs unless you use the FMV Enhancement Pack, which gives you access to the original FMVs even on the PC

Which PS2 version did you rip from? SH2 or SH2 Greatest Hits?

I did not actually do the porting. But it appears to be taken from this version:

silent hill 2

So I believe you're also using the European version then if your vanilla exe looks like the one on the right

Yes, it looks like I am using the European version on my PC.

at the very least, your email

It may be good to communicate offline in email because I will need help testing each audio file one-by-one. I will need to communicate with you to figure out where each (or at least a good number) of the audio files can be found in the game.

If I am able to get some of the larger issues complete (Enhanced Audio Pack or soft shadows) we can talk about me posting my PayPal account. Until then I would feel bad to get any donations in case I find out later that I cannot actually complete the work.

@elishacloud
Copy link
Owner Author

From @Polymega on August 24, 2017 20:43

We are already using higher quality FMVs. I am not sure why anyone would want to use the lower quality ones shipped with the PC. The higher quality ones we have in the FMV Enhancement Pack are taken from the original FMVs in PS2. PS2 is the only platform with the original FMVs unless you use the FMV Enhancement Pack, which gives you access to the original FMVs even on the PC

I wrote about this too in my previous response and removed it. @mirh wants to use the actual PS2 movie file formats (directly ripped from the PS2 disc), or remux its format, and able to be played on the PC version. I also don't see the purpose of this as angular graphic's Enhanced FMVs look virtually indistinguishable from the PS2's version (because he directly recorded the PS2's version in a digital (not analog), loseless format and converted them to the PC's format).

I won't disclose which one's which in the examples below:

image
image

It may be good to communicate offline in email because I will need help testing each audio file one-by-one. I will need to communicate with you to figure out where each (or at least a good number) of the audio files can be found in the game.

Absolutely.

Until then I would feel bad to get any donations in case I find out later that I cannot actually complete the work.

You shouldn't feel bad! Even if we hit an inpassable road block it doesn't negate the time, work, and research you've already put into it!

@elishacloud
Copy link
Owner Author

Error in opening issue ... Closing ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant