Skip to content

Latest commit

 

History

History
120 lines (63 loc) · 4.73 KB

README.md

File metadata and controls

120 lines (63 loc) · 4.73 KB

SSound4Val.cmd - Surround sound for Valheim & more

Choose and change Valheim's surround sound configuration to your hearts desire.

Add some GFX configuration options to VH's boot.config.

Switch VH's (keyboard) input method between 'normal' - respecting the users keyboard layout & language - and 'physical' - using Unity/hardware key-codes instead.


Features

  • Reads Valheim's current speaker/input configuration and lets you change it.
  • If it can't find the file to patch you can drag'n'drop it manually on the script file(!) instead (not on the running cmd shell window).

Usage

  • Download the latest master branch SSound4Val.cmd (right click, save as).
  • Run it & follow the instructions.

Optionally:

  • This script can download the required 3rd party program sfk.exe on its own but you can download and check/verify(v1.9.8.2) it separately if you don't trust it (save it in the same folder or anywhere in %PATH%).

How it works

This script uses Swiss File Knife to modify half-a-byte in the file ...\Valheim\valheim_Data\globalgamemanagers (no extension). It replaces Valheim's default value of "2" for Unity's AudioSpeakerMode with 4, 5, 6 or 8 for the respective number of speakers (4, 5, 5.1, 7.1). That's it.

Alternatively one can

Changing the input method is handled practically the same.


Limitations

  • only works on Windows...
  • every update to VH seems to replace the relevant file. -> need to apply the patch after every update (maybe a proper mod using BepInEx would be better?).
  • My hex search strings have worked flawlessly at least with all VH versions between January and November 2023 but there's no guaranty they will keep doing so in the future.

Notes

The script

  • may depend on the OS language to work. So far it seems to work in English and German Windows without modifications.
  • has only been tested a bit on Windows 8.1 and 10.

-> Please give feedback on that ^^.

Further reading / documentation / information:


Contributing

Step 1

  • Option 1

    • Fork this repo!
  • Option 2

    • Clone this repo to your local machine.

Step 2

  • HACK AWAY!

Step 3


FAQ

No Q&As so far.


Legal

As far as I can tell nothing in this project and nothing I did to produce it violates any law or license (copyright, IP, EULA, etc.).

And it seems to me like it would fall under "fair use" anyway because the purposes is interoperability(!) between Valheim and any setup with more than two speakers. Or to correct errors.

Provided as-is. Use at your own risk! No warranty. I disclaim any and all liability.


License

see LICENSE.md in the root folder of this repo.


Tags: mod, modification, patch, hack, 3D