SUPERHOT
评价数不足
Enable Record Replay under Linux
由 djcj 制作
How to enable recording replays on Linux
   
奖励
收藏
已收藏
取消收藏
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 条留言
⚜ Gucky 2017 年 10 月 24 日 下午 12:16 
Thanks for sharing this information.

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