Hypnospace Outlaw

Hypnospace Outlaw

31 ratings
Enable Hypii on Linux (Ubuntu/Linux Mint)
By Alyxx the Rat
A guide to getting Hypii speaking on Ubuntu and Linux Mint
2
   
Award
Favorite
Favorited
Unfavorite
Requirements
Thanks to Tom.K on the Hypnospace Discord for creating the original guide and discovering this to begin with!

This guide is for Ubuntu and Linux Mint and other Debian based distros.

To get Hypii working on the Linux version of Hypnospace Outlaw, you'll need to install Speech Dispatcher. If you're on Ubuntu or Linux Mint then it's most likely already installed, but on some distros you will need to add it manually.

Open a terminal and do the following commands:
sudo apt install speech-dispatcher
sudo apt install speech-dispatcher-espeak-ng
speech-dispatcher


It should tell you that Speech Dispatcher is running.

To test if it's working, type the following:
spd-say "Your text here"

To get Speech Dispatcher working with Hypnospace Outlaw, simply open Properties and go to General->Launch options.
Add "--enable-speech-dispatcher" without the quotes in the field.

By default, Hypii's voice is disabled on Linux, so you will need to install some mods to get it working.
Enabling Hypii voice [Manual way]
If you're comfortable doing a little coding, you can do the mod yourself the following way. If you'd rather download the fully modded files instead, you may skip this section.

Go to "/Steam/steamapps/common/Hypnospace Outlaw". Make a backup copy of "package.nw", then open it with an archive manager. Extract data.js and open it in a text editor. Be mindful that most text editors might crash due to the size of the file, and some may add formatting that can screw up the file and make the game unable to start. I recommend opening a terminal and using "nano data.js" to edit the file, though beware the program will be slow to respond to input.

Search for "HypiiRobot". The first result should be this:
...[3,154,null,623024275741261,false,[[1,[2,"HypiiRobot"]],[7,[0,1]]]],[80,187,null,854277302118531,false,[[10,6],[3,1]]],[81,187,null,176678765389064,false,[[10,6],[3,1]]]...

Replace "HypiiRobot" with "HypiiRobotHack"*. Then change [3.1] to [3.0] after "854277302118531", and the same after "176678765389064".

Search again for "HypiiRobot" and on the second result, it should be:
...[3,154,null,694855591259663,false,[[1,[2,"HypiiRobot"]],[7,[0,1]]]]...
Again, replace "HypiiRobot" with "HypiiRobotHack"*.

* You can use anything you want here since it's just a matter of changing the original command.

Save the file and add it back to "package.nw", replacing the original file in the archive.

If you launch the game you will be able to disable Hypii's robot voice and have it talking, though you may notice the pronunciation is wrong, so we will have to set the language in a custom file.

Go to "/usr/share/speech-dispatcher/conf/clients", open the folder as root and make a new file entitled "hypnos.conf". Add the following text:
BeginClient "*:HypnOS:*"
DefaultLanguage "en"
EndClient


Also go to "/usr/share/speech-dispatcher/conf" and open "speechd.conf".
Search for "DefaultLanguage" and remove the # before it, then set it to:
DefaultLanguage "en"
Search for "DefaultModule" and remove the # before it and set it to:
DefaultModule espeak

Save the file and restart your PC. Hypii should now be working correctly.
Enabling Hypii voice [Easy way]
Download these files:
https://www.dropbox.com/scl/fi/f14fkkvcxlb5hgfvck649/package.nw?rlkey=5hboxhpsus1pjslcw38sezdzn&dl=0
(If you get a 400 Error clicking the link, copy and paste it into your browser window as the link gets broken by Steam's forwarding)
https://www.dropbox.com/s/mbimgkybk917ajh/hypnos.conf?dl=0
https://www.dropbox.com/s/vvhmtv26wauvu2r/speechd.conf?dl=0

Go to "Steam/steamapps/common/Hypnospace Outlaw" and make a backup of "package.nw".

Download the modded package.nw file and put it in the folder.

Now you can disable the Hypii Robot Voice in Hypnospace Outlaw and get Hypii talking, however you may notice the speech is a little off and pronounciations are wrong.

To fix this, go to "/usr/share/speech-dispatcher/conf/clients" and open the folder as root. Add hypnos.conf after downloading it.

Then add speechd.conf to "/usr/share/speech-dispatcher/conf".

This should fix the problems. If it doesn't, try adding it to "/etc/speech-dispatcher/clients" as well, though this shouldn't be necessary.

Reboot your PC and Hypii should now be speaking normally. Now you can have your Hypii partner fully functional while exploring Hypnospace!
68 Comments
Alyxx the Rat  [author] Feb 6 @ 10:15am 
I have yet to actually get this working on my own OS (Garuda Linux). I will continue experimenting and seeing what I can do.
Alyxx the Rat  [author] Feb 6 @ 9:42am 
Guide updated with proper URLs to circumvent issues with Steam giving a broken link.
mikroship Jan 10 @ 12:14pm 
After following what j osh said and forcing the legacy runtime, I found that voice # 2755 was american english (the default, 0, is afrikaans. you can hear the difference running `spd-say -l af "words"` vs `spd-say -l en-US "words"`.

setting config files for speech-dispatcher did not seem to affect the game at all.
Moomoobeef Dec 25, 2024 @ 1:51am 
Josh's suggestion works! It's strange that the custom voices thing in the "bios" says 0 voices available and yet still you can select ones anyway. :P

Should see if I can list them somehow.
j osh Dec 24, 2024 @ 11:22am 
Modifying the game files does not seem to be needed. If the game still says that no TTS engine is available after adding the flag, go to the game properties, compatibility, and force the usage of the legacy 1.0 runtime. I can't get the default voice changed, but the English voices seem to start around 3150 for me.
Moomoobeef Dec 22, 2024 @ 12:30am 
Did you ever find a way to get this working in arch?
BeanLord Dec 20, 2024 @ 4:04pm 
Hey Alyxx, it looks like your package.nw link is broken already.
harold and the purple drank Dec 16, 2024 @ 3:12pm 
I'm having no issues with getting this working on the GOG release using the first steps at the top of the guide on CachyOS (also Arch). The only extra step I did was uncommenting LanguageDefaultModule "en" "espeak" (line 297 for me) in /usr/share/speech-dispatcher/conf/speechd.conf and I had to manually enable/start speech-dispatcherd.service
Alyxx the Rat  [author] Nov 16, 2024 @ 5:34pm 
I switched to Garuda Linux (Arch) a while back and now I can't get it working. I will make an update to the guide when I find a solution.
Alyxx the Rat  [author] Nov 16, 2024 @ 1:52pm 
The package.nw file has been updated with the most recent one.