SUPERHOT

SUPERHOT

Not enough ratings
Enable Record Replay under Linux
By djcj
How to enable recording replays on Linux
   
Award
Favorite
Favorited
Unfavorite
How to
It turns out that recording replays works well on Linux, it was just disabled for some reason.

You can enable it on Linux by replacing Assembly-CSharp.dll and Assembly-CSharp-firstpass.dll inside the SUPERHOT_Data/Managed/ directory with their counterparts from the Windows build (tip: keep a backup of the Windows and Linux DLLs, just in case). You need to install and use steamcmd to download the Windows build of SUPERHOT:
sudo apt install steamcmd steamcmd +login USERNAME PASSWORD +@sSteamCmdForcePlatformType windows +force_install_dir /tmp/SUPERHOT_windows +app_update 322500 validate +quit
Replace USERNAME and PASSWORD with your actual Steam account name and password.

Then you need to download a static FFmpeg build from https://www.johnvansickle.com/ffmpeg/ and save the ffmpeg binary as SUPERHOT_Data/FFMPEGEncoding/ffmpeg.exe (you can also build it from source, just be sure that it's built with libx264 enabled).

You can now start recording a replay with F5 after you finished a level, just like you would on Windows. The videos will be saved in ~/.config/unity3d/SUPERHOT_Team/SUPERHOT/Screenshots/Replays
All steps
Everything step by step to copy and paste into your favorite terminal:
# install steamcmd sudo apt install steamcmd # download SUPERHOT for Windows: # USERNAME = Steam username; PASSWORD = Steam password steamcmd +login USERNAME PASSWORD +@sSteamCmdForcePlatformType windows +force_install_dir /tmp/SUPERHOT_windows +app_update 322500 validate +quit # move into Linux's SUPERHOT "Data" directory cd ~/.local/share/Steam/steamapps/common/SUPERHOT/SUPERHOT_Data # backup DLLs mkdir -p Managed/backup/linux Managed/backup/windows cp Managed/Assembly-CSharp* Managed/backup/linux cp /tmp/SUPERHOT_windows/SH_Data/Managed/Assembly-CSharp* Managed/backup/windows # replace Linux DLLs cp -f Managed/backup/windows/* Managed # remove "SUPERHOT_windows" directory rm -rf /tmp/SUPERHOT_windows # download FFmpeg mkdir FFMPEGEncoding cd FFMPEGEncoding wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz tar xf ffmpeg-release-64bit-static.tar.xz cp ffmpeg-*/ffmpeg ffmpeg.exe rm -rf ffmpeg-release-64bit-static.tar.xz ffmpeg-*/

And if you want a shortcut to the "replays" directory:
mkdir -p ~/.config/unity3d/SUPERHOT_Team/SUPERHOT/Screenshots/Replays ln -s ~/.config/unity3d/SUPERHOT_Team/SUPERHOT/Screenshots/Replays ~/"SUPERHOT Replays"
Problems
The videos that are uploaded aren't processed. I guess they aren't uploaded correctly or something.
1 Comments
⚜ Gucky 24 Oct, 2017 @ 12:16pm 
Thanks for sharing this information.

That is a neat little trick, which might be usefull for other games as well *thumps up*