Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
games:stepmania [2018/12/03 13:55] – Sean Rhone | games:stepmania [2022/03/17 20:57] – [System FFmpeg] Sean Rhone |
---|
| |
* Store ''RandomMovies'' and ''Songs'' in ''~/.stepmania-5.1'' | * Store ''RandomMovies'' and ''Songs'' in ''~/.stepmania-5.1'' |
| * :!: As of 2020/09/05, using the ''ati'' Xorg DDX driver on openSUSE caused both exclusive and borderless fullscreen modes to crash the entire Xfce desktop; use ''modesetting'' since it works fine even with the 75Hz mod |
| |
====== Dependencies ====== | ====== Dependencies ====== |
| |
| ===== Fedora Workstation ===== |
| |
| * [[distros:fedora_workstation_gnome|Fedora]] |
| * Last tested: 2021/12/29 |
| * :!: [[notes:linux_miners#nsfminer|If using AMDGPU-PRO driver for OpenCL]], ''--disablerepo=amdgpu'' may be necessary to avoid black screens ((the mess of that install method involves using a shim to prevent AMDGPU from replacing Mesa files, and presumably the glew-devel package causes dependencies to override that)) |
| |
| sudo dnf install git-core cmake gcc-c++ libmad-devel libvorbis-devel nasm yasm bzip2-devel gtk3-devel libjpeg-turbo-devel pulseaudio-libs-devel alsa-lib-devel libva-devel glew-devel systemd-devel --disablerepo='amdgpu' |
| |
| ===== openSUSE Tumbleweed ===== |
| |
| * [[distros:opensuse_tumbleweed_gnome|openSUSE Tumbleweed]] |
| * Last tested: 2021/06/18 |
| |
| sudo zypper install git-core cmake-full gcc gcc-c++ libmad-devel libvorbis-devel libbz2-devel nasm gtk3-devel libjpeg8-devel alsa-devel libva-devel glew-devel libpulse-devel libudev-devel |
| |
===== Ubuntu ===== | ===== Ubuntu ===== |
| |
* [[distros:ubuntu_desktop|Ubuntu (desktop)]] ((18.04.1 LTS)) | * [[distros:ubuntu_desktop|Ubuntu]] |
| * Last tested: 2021/10/29 on Ubuntu 21.04 |
| |
sudo apt install git g++ cmake libmad0-dev libvorbis-dev yasm libbz2-dev libpcre++-dev zlib1g-dev libjpeg-dev libxrandr-dev libxinerama-dev pkg-config libasound2-dev libpulse-dev libjack-jackd2-dev libva-dev libgl1-mesa-dev libglew-dev libgtk2.0-dev | sudo apt install git g++ cmake libmad0-dev libvorbis-dev nasm libbz2-dev libpcre++-dev zlib1g-dev libjpeg-dev libxrandr-dev libxinerama-dev pkg-config libasound2-dev libpulse-dev libjack-jackd2-dev libva-dev libgl1-mesa-dev libglew-dev libgtk2.0-dev libxtst-dev libudev-dev |
| |
====== Download/Update Source ====== | ====== Download/Update Source ====== |
====== Compile and Install ====== | ====== Compile and Install ====== |
| |
**** | * :!: If more or less than 4 CPU cores should be used when compiling FFMPEG, change ''DWITH_FFMPEG_JOBS'' |
| |
cd ~ && rm -Rf ~/'Projects/stepmania/build' ~/'Projects/stepmania/run' && mkdir -p ~/'Projects/stepmania/build' ~/'Projects/stepmania/run' && cd ~/'Projects/stepmania/build' && cmake ~/'Projects/stepmania/src' -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE='Release' && cmake ~/'Projects/stepmania/src' -DCMAKE_INSTALL_PREFIX=~/'Projects/stepmania/run' -DCMAKE_CXX_FLAGS='-Ofast -pipe -march=native' -DCMAKE_C_FLAGS='-Ofast -pipe -march=native' -DWITH_FFMPEG_JOBS='3' -DWITH_MINIMAID='0' && sync && make -j3 install && sync | cd ~ && rm -Rf ~/'Projects/stepmania/build' ~/'Projects/stepmania/run' && mkdir -p ~/'Projects/stepmania/build' ~/'Projects/stepmania/run' && cd ~/'Projects/stepmania/build' && cmake ~/'Projects/stepmania/src' -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE='Release' && cmake ~/'Projects/stepmania/src' -DCMAKE_INSTALL_PREFIX=~/'Projects/stepmania/run' -DCMAKE_CXX_FLAGS='-Ofast -pipe -march=native' -DCMAKE_C_FLAGS='-Ofast -pipe -march=native' -DWITH_FFMPEG_JOBS='4' -DWITH_MINIMAID='0' && sync && make -j$(nproc) install && sync |
| |
====== Simply Love ====== | ===== System FFmpeg ===== |
| |
* https://github.com/dguzek/Simply-Love-SM5 | * https://github.com/stepmania/stepmania/issues/2197 |
| * This was attempted instead of working around the authentication issue |
| * :!: As of 2022/03/17 on Fedora 35, this is untested with gameplay, but StepMania compiles fine |
| |
rm -Rf ~/'.stepmania-5.1/Themes/Simply Love' && mkdir -p ~/'.stepmania-5.1/Themes' && git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/dguzek/Simply-Love-SM5.git' ~/'.stepmania-5.1/Themes/Simply Love' | sudo dnf install 'ffmpeg-devel' |
| |
====== Restore Content ====== | cd ~ && rm -Rf ~/'Projects/stepmania/build' ~/'Projects/stepmania/run' && mkdir -p ~/'Projects/stepmania/build' ~/'Projects/stepmania/run' && cd ~/'Projects/stepmania/build' && cmake ~/'Projects/stepmania/src' -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE='Release' && cmake ~/'Projects/stepmania/src' -DCMAKE_INSTALL_PREFIX=~/'Projects/stepmania/run' -DCMAKE_CXX_FLAGS='-Ofast -pipe -march=native' -DCMAKE_C_FLAGS='-Ofast -pipe -march=native' -DWITH_FFMPEG_JOBS='4' -DWITH_MINIMAID='0' -DWITH_SYSTEM_FFMPEG='1' && sync && make -j$(nproc) install && sync |
| |
**** | ====== Simply Love ====== |
| |
mkdir -p ~/'.stepmania-5.1' && gio open ~/'.stepmania-5.1' | * [[https://github.com/dguzek/Simply-Love-SM5|GitHub]] |
| * Uses ''beta'' branch |
| |
====== Settings ====== | rm -Rf ~/'.stepmania-5.1/Themes/Simply Love' && mkdir -p ~/'.stepmania-5.1/Themes' && git clone --branch 'beta' --depth '1' --recurse-submodules 'https://github.com/dguzek/Simply-Love-SM5.git' ~/'.stepmania-5.1/Themes/Simply Love' |
| |
* Requires StepMania to be started once | ====== Unlimited Stepman Works ====== |
| |
gio open ~/'.stepmania-5.1/Save/Preferences.ini' | * http://jousway.co.uk |
| |
===== Global Offset ===== | ===== USWMetal3DSM5+ Noteskin ===== |
| |
* This magic number comes from the Linux version of OpenITG ((no idea why it works well, but it does)) | * Expects ''~/.stepmania-5.1'' as the StepMania home directory |
* This works best on a PSX-to-USB adapter | * Requires ''7z'' |
* This does not work well at all when using an Arduino Leonardo R3 | |
| |
GlobalOffsetSeconds=-0.065612 | rm -Rf ~/'.stepmania-5.1/NoteSkins/dance/USWMetal3DSM5+' '/tmp/USWMetal3DSM5+.7z' && mkdir -p ~/'.stepmania-5.1/NoteSkins/dance' && wget -O '/tmp/USWMetal3DSM5+.7z' 'http://jousway.co.uk/Unlimited_Stepman_Works/_Noteskin/SM5/Dance/USWMetal3DSM5+.7z' && cd ~ && 7z x -o'.stepmania-5.1/NoteSkins/dance' -y '/tmp/USWMetal3DSM5+.7z' && ls ~/'.stepmania-5.1/NoteSkins/dance/USWMetal3DSM5+/NoteSkin.lua' && rm -f '/tmp/USWMetal3DSM5+.7z' && sync |
| |
===== Machine Name ===== | ====== Restore Content ====== |
| |
**** | mkdir -p ~/'.stepmania-5.1' ~/'.stepmania-5.1/NoteSkins/dance' |
| |
MachineName=Hatebeat | gio open ~/'.stepmania-5.1' |
| |
===== No Mouse Cursor ===== | ====== Settings ====== |
| |
**** | * :!: Requires StepMania to be started once |
| |
ShowMouseCursor=0 | gio open ~/'.stepmania-5.1/Save/Preferences.ini' |
| |
===== No Update Check ===== | ===== Global Offset ===== |
| |
**** | * This magic number comes from the Linux version of OpenITG ((no idea why it works well, but it does)) |
| * This works best on a PSX-to-USB adapter |
| * :!: This does not work well at all when using an Arduino Leonardo R3 |
| |
UpdateCheckEnable=0 | GlobalOffsetSeconds=-0.065612 |
| |
====== Desktop Launcher ====== | ====== Desktop Launcher ====== |
mkdir -p ~/'.local/share/applications/StepMania' && nano ~/'.local/share/applications/StepMania/StepMania.desktop' | mkdir -p ~/'.local/share/applications/StepMania' && nano ~/'.local/share/applications/StepMania/StepMania.desktop' |
| |
[Desktop Entry] | <code> |
Name=StepMania | [Desktop Entry] |
Categories=Game; | Name=StepMania |
Exec='/usr/bin/env' vblank_mode='0' '/home/CHANGEME/Projects/stepmania/run/stepmania-5.1/stepmania' | Categories=Game; |
Type=Application | Exec='/home/CHANGEME/Projects/stepmania/run/stepmania-5.1/stepmania' |
StartupNotify=true | Type=Application |
Path=/home/CHANGEME/Projects/stepmania/run/stepmania-5.1 | StartupNotify=true |
Icon=stepmania-ssc | Path=/home/CHANGEME/Projects/stepmania/run/stepmania-5.1 |
| Icon=stepmania-ssc</code> |
| |
sed -i 's/CHANGEME/'$USER'/g' ~/'.local/share/applications/StepMania/StepMania.desktop' | sed -i 's/CHANGEME/'$USER'/g' ~/'.local/share/applications/StepMania/StepMania.desktop' |
| |
gio open ~/'.stepmania-5.1' | gio open ~/'.stepmania-5.1' |
| |