MorMund / FO2-Splitscreen

A mod/hack for Flatout 2 adding splitscreen multiplayer.
48 stars 7 forks source link

No sound issue and a suggestion #35

Open ShermanHowitzer opened 1 year ago

ShermanHowitzer commented 1 year ago

Hi there, thanks for your fantastic and smoothly running mod. Just one small problem: only the one window that is activated by clicking on it will give sound, all the others are muted. This is a bit weird for the players who don't hear their engine and crash sounds.

My idea is: Set the music on all but one windows to zero, but leave the game sounds on for everyone. Win10 can give the sounds of inactive/unfocused windows, so the problem should be part of the source code of the game. Probably there's only one small command in the game's script that says something like "mute game if windows unfocused / inactive"?

See, my knowledge about scripting is really bad, but could you imagine a place in one of the game files where I could disable that mute feature? I can do the work of finding that code line myself, but a hint on where to start would be much appreciated.

Or do you have any idea how to solve that problem easier?

And a suggestion: Since it's a bit of a pain in the a** that you can only use keyboard for every player in the menu instead of controllers and have to click on every player's screen to make him active, I'd suggest to use a tool like AntiMicro to map the keyboard commands to controller buttons, e.g. "Enter", "Esc", "Right Arrow" etc. and most important "Alt+Tab" on the host's controller so he can change the player that is active. Maybe you could give that suggestion in the readme, too? Or even program it into the mod yourself?

Anyways, thanks again for making one of the best games in the world even better!

Greets, Sherman

MorMund commented 1 year ago

Hi, thanks for the suggestions. I think enabling the sound for every instance of the game should be doable, however enabling music just for the host will probably be more difficult with the current code. I'll see if I find some time to work on this.

For controller support there is this, but I haven't gotten much progress done since then. Although it is nice to hear that people still enjoy playing this game with their friends!

ShermanHowitzer commented 1 year ago

Thanks and great to hear you're still working on this. Using AntiMicro for menu controlling works fine for me. If every player will hear his sounds in the future, it's the perfect couch pvp game for me. Thanks again for your efforts.

MorMund commented 1 year ago

There is still a crash with the steam version of the game, but if you have a regular retail version you can give this a go: background-sound.zip

FrostKiwi commented 11 months ago

There is still a crash with the steam version of the game, but if you have a regular retail version you can give this a go: background-sound.zip

@MorMund Can confirm this working! 🎉

Currently setting up a LAN on a single powerful PC with tons of Screens. Works like a charm. This just qualified it for being on the games list for that event. Though I still miss the ability to set different resolutions, as Splitscreen_Settings.xml is being ignored.

FrostKiwi commented 11 months ago

There is still a crash with the steam version of the game, but if you have a regular retail version you can give this a go: background-sound.zip

@MorMund Ahh, damn. your build doesn't recognize controllers at all. I assume your build comes from the Background Sound branch of this repo, I'll try my luck with the code

Got it working 🎉 The issue is the launcher.exe. The following workflow worked: Get Controller IDs via the launcher in the steam version, copy them into the XML of @MorMund's build, problem solved.