elishacloud / dxwrapper

Fixes compatibility issues with older games running on Windows 10/11 by wrapping DirectX dlls. Also allows loading custom libraries with the file extension .asi into game processes.
zlib License
1.16k stars 83 forks source link

WarGames music & resolution #119

Open Scarthcaroth opened 3 years ago

Scarthcaroth commented 3 years ago

Hi there, fantastic fix for WarGames, I finally have it running of Windows 10!! However the no-CD fix doesn't work. That's a minor issue, but even when I play the game (using mounted ISO) there's no music.

Also I was wondering if it's possible to force the game to a higher resolution?

Cheers :)

mirh commented 3 years ago

Yes it's possible, though idk with dxwrapper. Also, missing audio from the iso sounds like having ripped CD-A tracks badly (which I guess the game was using)

Scarthcaroth commented 3 years ago

Ty for the reply. Putting graphics/resolution aside, and the fact the no-CD patch also doesn't work for me: I am just trying to get the music to work here.

I tried with my real CD and the music plays fine. It is using CD-A/Redbook, because when I try a normal music CD it will play those tracks too.

But no matter how I seem to rip the CD image, trying bin/cue files and other formats, using PowerISO and IMGBurn and DaemonTools, I just can't get the game to play audio when mounting the image.

I suspect I can fix this by editing the CUE file somehow, but I'm clueless to do that. I did manage to extract the game's music tracks (into WAV format) and from what I understand, I can point the CUE file to those files, I just don't know how.

It would be great to get this game fully working again, since we'll never see it on GoG (MGM Interactive apparently hate videogames)

Scarthcaroth commented 3 years ago

I should add, the contents on my CUE file:

FILE "WarGames.bin" BINARY TRACK 01 MODE1/2352 INDEX 01 00:00:00 TRACK 02 AUDIO PREGAP 00:02:00 INDEX 01 28:44:06 TRACK 03 AUDIO INDEX 00 31:49:43 INDEX 01 31:51:43 TRACK 04 AUDIO INDEX 00 35:55:65 INDEX 01 35:57:65 TRACK 05 AUDIO INDEX 00 40:01:27 INDEX 01 40:03:27 TRACK 06 AUDIO INDEX 00 44:05:69 INDEX 01 44:07:69 TRACK 07 AUDIO INDEX 00 48:19:27 INDEX 01 48:21:27 TRACK 08 AUDIO INDEX 00 52:23:34 INDEX 01 52:25:34 TRACK 09 AUDIO INDEX 00 56:28:49 INDEX 01 56:30:49 TRACK 10 AUDIO INDEX 00 60:37:15 INDEX 01 60:39:15

mirh commented 3 years ago

https://github.com/bangstk/ogg-winmm https://community.pcgamingwiki.com/files/file/107-patched-_inmmdll/ .. or maybe try your ISO mounting program? Can you open the tracks with a normal audio player?

Scarthcaroth commented 3 years ago

I can't load the bin/cue files into my media player to play as audio CD tracks. As soon as I mount them it seems to detect the image as a mixed audio/data type at first, but 1 second later it just sees it as a data disc. I have no idea why. I just can't seem to get a normal working image file from my physical disc no matter what I try.

I will try this winmm thing, I just hope that by doing that the game won't ask me to insert the CD to play it...

mirh commented 3 years ago

Sounds like you aren't ripping the Mixed Mode CD properly. Btw, those dll hacks assume that there isn't other data to be read from the original cd, other than music.

Scarthcaroth commented 3 years ago

I am really trying, all this stuff is really complicated. Not sure about this winmm thing, just getting to the DLL file download was really hard for me >_< I am trying to install it now to play the ogg files I managed to extract from the CD image

Scarthcaroth commented 3 years ago

By the way, what is the _inmm.dll program for? I installed it but no idea what it's for. And I tried following the instructions for winmm.dll to play ogg files for the game exactly, it doesn't work though :/

Scarthcaroth commented 3 years ago

I have reached the point where not even my official, retail CD is recognised anymore as containing playable audio files in media player, or having an autoplay setup. It's just generic storage now :/ But it still works to play the game and the music works in-game too. I guess I just need help in how to properly rip the image from it. I've tried many programs, ISOBuster being the most recent, to get bin and cue files - still no luck

Scarthcaroth commented 3 years ago

Nevermind, I've basically given up. Fixed my CD drive not recognising CDs by reinstalling the CD-ROM driver. Uninstalled all the above stuff. I can still play the game with music only by using my physical CD, or I can play the game using an image and for music I have to just play the wav/ogg files in the background. Even using the real CD, the tracks never advance or loop anyway.

I just wish there was better treatment for this game. It's got hardly any love. I'd love to see it with better graphics (just higher res) and proper working music and no-CD capability. Cheers for the help

mirh commented 3 years ago

Mixed is a mess.. But did you try CD BurnerXP, ImgBurn or DiscImageCreator? Also see this, I have never heard of drive drivers.

elishacloud commented 9 months ago

The CD fix is specific to the exact exe file used for the game. Can you upload you exe file and I will check it out?