-
Notifications
You must be signed in to change notification settings - Fork 11
How to build and setup on Ubuntu.md
sudo apt-get install build-essential libsdl2-dev cmake libvorbis-dev flex bison nasm git libxxhash-dev
sudo apt-get install libvulkan1 libvulkan-dev vulkan-validationlayers vulkan-validationlayers-dev
git clone https://github.com/tx00100xt/SeriousSamClassic-VK.git
git clone https://github.com/tx00100xt/SeriousSamAlphaRemake.git
wget https://archive.org/download/serious-sam-alpha-remake-mod-data/SeriousSamAlphaRemake_v1.5.7z
7z x -oSeriousSamClassic-VK/SamTFE SeriousSamAlphaRemake_v1.5.7z
or
for var in a b c d; do wget https://github.com/tx00100xt/serioussam-mods/raw/main/SamTFE-SSA/SeriousSamAlphaRemake_v1.5.tar.xz.parta$var; done; cat SeriousSamAlphaRemake_v1.5.tar.xz.part* > SeriousSamAlphaRemake_v1.5.tar.xz
tar -xJvpf SeriousSamAlphaRemake_v1.5.tar.xz -C SeriousSamClassic-VK/SamTFE
rm SeriousSamClassic-VK/SamTFE/Mods/SSA/Bin/libEntities.so
rm SeriousSamClassic-VK/SamTFE/Mods/SSA/Bin/libGame.so
wget https://archive.org/download/sam-tfe-xplus/SamTFE-XPLUS.tar.xz
tar -xJvpf SamTFE-XPLUS.tar.xz -C SeriousSamClassic-VK/SamTFE
wget https://archive.org/download/sam-tse-xplus/SamTSE-XPLUS.tar.xz
tar -xJvpf SamTSE-XPLUS.tar.xz -C SeriousSamClassic-VK/SamTSE
or
for var in a b c; do wget https://github.com/tx00100xt/serioussam-mods/raw/main/SamTFE-XPLUS/SamTFE-XPLUS.tar.xz.parta$var; done; cat SamTFE-XPLUS.tar.xz.part* > SamTFE-XPLUS.tar.xz
tar -xJvpf SamTFE-XPLUS.tar.xz -C SeriousSamClassic-VK/SamTFE
for var in a b c; do wget https://github.com/tx00100xt/serioussam-mods/raw/main/SamTSE-XPLUS/SamTSE-XPLUS.tar.xz.parta$var; done; cat SamTSE-XPLUS.tar.xz.part* > SamTSE-XPLUS.tar.xz
tar -xJvpf SamTSE-XPLUS.tar.xz -C SeriousSamClassic-VK/SamTSE
If you are building for everyone, then you need to replace -march=native to mtune=generis in the CMakeLists.txt file
cd SeriousSamClassic-VK
find . -name "CMakeLists.txt" -exec sed -i 's/-march=native/-mtune=generic/g' {} +
cd ..
cd SeriousSamAlphaRemake
find . -name "CMakeLists.txt" -exec sed -i 's/-march=native/-mtune=generic/g' {} +
cd ..
cd SeriousSamClassic-VK/SamTFE/Sources
mkdir build
mkdir build-xplus
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DTFE=TRUE ..
make ecc
make -j8
cd ..
cp -vfr Entities/PlayerWeaponsHD.es Entities/PlayerWeapons.es
cd build-xplus
cmake -DCMAKE_BUILD_TYPE=Release -DTFE=TRUE ..
make ecc
make -j8
Place the resulting binaries and libraries from build and build/Debug into the SamTFE/Bin folder
cd ..
cd build
cp -vfr Debug/*.so ../../Bin
cp -vfr {SeriousSam,DedicatedServer,MakeFONT} ../../Bin
Place the resulting libraries libEntities.so and libGame.so from build-xplus/Debug into the SamTFE/Mods/XPLUS/Bin folder
cd ..
cd build-xplus
cp -vfr Debug/libEntities.so ../../Mods/XPLUS/Bin
cp -vfr Debug/libGame.so ../../Mods/XPLUS/Bin
cd ../../../../
cd SeriousSamClassic-VK/SamTFE/Sources
mkdir build
mkdir build-xplus
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DTFE=TRUE -DCMAKE_C_FLAGS=-mmmx -DCMAKE_CXX_FLAGS=-mmmx -DUSE_I386_NASM_ASM=TRUE ..
make ecc
make -j8
cd ..
cp -vfr Entities/PlayerWeaponsHD.es Entities/PlayerWeapons.es
cd build-xplus
cmake -DCMAKE_BUILD_TYPE=Release -DTFE=TRUE -DCMAKE_C_FLAGS=-mmmx -DCMAKE_CXX_FLAGS=-mmmx -DUSE_I386_NASM_ASM=TRUE ..
make ecc
make -j8
Place the resulting binaries and libraries from build and build/Debug into the SamTFE/Bin folder
cd ..
cd build
cp -vfr Debug/*.so ../../Bin
cp -vfr {SeriousSam,DedicatedServer,MakeFONT} ../../Bin
Place the resulting libraries libEntities.so and libGame.so from build-xplus/Debug into the SamTFE/Mods/XPLUS/Bin folder
cd ..
cd build-xplus
cp -vfr Debug/libEntities.so ../../Mods/XPLUS/Bin
cp -vfr Debug/libGame.so ../../Mods/XPLUS/Bin
cd ../../../../
cd SeriousSamClassic-VK/SamTSE/Sources
mkdir build
mkdir build-xplus
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make ecc
make -j8
cd ..
cp -vfr EntitiesMP/PlayerWeaponsHD.es EntitiesMP/PlayerWeapons.es
cd build-xplus
cmake -DCMAKE_BUILD_TYPE=Release ..
make ecc
make -j8
Place the resulting binaries and libraries from build and build/Debug into the SamTFE/Bin folder
cd ..
cd build
cp -vfr Debug/*.so ../../Bin
cp -vfr {SeriousSam,DedicatedServer,MakeFONT} ../../Bin
Place the resulting libraries libEntitiesMP.so and libGameMP.so from build-xplus/Debug into the SamTFE/Mods/XPLUS/Bin folder
cd ..
cd build-xplus
cp -vfr Debug/libEntitiesMP.so ../../Mods/XPLUS/Bin
cp -vfr Debug/libGameMP.so ../../Mods/XPLUS/Bin
cd ../../../../
cd SeriousSamClassic-VK/SamTSE/Sources
mkdir build
mkdir build-xplus
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-mmmx -DCMAKE_CXX_FLAGS=-mmmx -DUSE_I386_NASM_ASM=TRUE ..
make ecc
make -j8
cd ..
cp -vfr EntitiesMP/PlayerWeaponsHD.es EntitiesMP/PlayerWeapons.es
cd build-xplus
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-mmmx -DCMAKE_CXX_FLAGS=-mmmx -DUSE_I386_NASM_ASM=TRUE ..
make ecc
make -j8
Place the resulting binaries and libraries from build and build/Debug into the SamTFE/Bin folder
cd ..
cd build
cp -vfr Debug/*.so ../../Bin
cp -vfr {SeriousSam,DedicatedServer,MakeFONT} ../../Bin
Place the resulting libraries libEntitiesMP.so and libGameMP.so from build-xplus/Debug into the SamTFE/Mods/XPLUS/Bin folder
cd ..
cd build-xplus
cp -vfr Debug/libEntitiesMP.so ../../Mods/XPLUS/Bin
cp -vfr Debug/libGameMP.so ../../Mods/XPLUS/Bin
cd ../../../../
cd SeriousSamAlphaRemake/Sources
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DTFE=TRUE ..
make ecc
make -j8
Place the resulting libraries libEntities.so and libGame.so from build/Debug into the SamTFE/Mods/SSA/Bin folder
cp -vfr Debug/libEntities.so ../../Mods/SSA/Bin
cp -vfr Debug/libGame.so ../../Mods/SSA/Bin
cd ../../../../
To start the game, you'll need the original resurces of a licensed copy of Serious Sam: The First Encounter and Serious Sam: The Second Encounter.
If you have a digital copy of the game on Steam then the resources can be found in ~/.local/share/Steam/SteamApps/common/Serious Sam Classic The Second Encounter/ (the default Steam game installation directory on Linux).
cd SeriousSamClassic-VK
cp -vfr "~/.local/share/Steam/SteamApps/common/Serious Sam Classic The First Encounter/"{*.gro,Levels,Help} SamTFE
cp -vfr "~/.local/share/Steam/SteamApps/common/Serious Sam Classic The Second Encounter/"{*.gro,Levels,Help} SamTSE
If you bought a digital on GOG, you can unpack the resources with the innoextract CLI tool. To install innoextract via your package manager, run:
sudo apt-get install innoextract
Copy files "setup_serious_sam_the_first_encounter_2.0.0.10.exe" and "setup_serious_sam_the_second_encounter_2.1.0.8.exe" to a directory SeriousSamClassic-VK and run the following commands:
cd SeriousSamClassic-VK
innoextract --gog setup_serious_sam_the_first_encounter_2.0.0.10.exe
cp -vfr "app/"{*.gro,Levels,Help} SamTFE
rm setup_serious_sam_the_first_encounter_2.0.0.10.exe
rm -rf app
rm -rf tmp
innoextract --gog setup_serious_sam_the_second_encounter_2.1.0.8.exe
cp -vfr "app/"{*.gro,Levels,Help} SamTSE
rm setup_serious_sam_the_first_encounter_2.0.0.10.exe
rm -rf app
rm -rf tmp
rm -rf commonappdata
If you bought a physical copy of the game and you have an ISO of your disk, you can unpack the resources with the any archive manager. Game resources are located in the Install directory of the disk. Just copy all the *.gro files from there, as well as the Levels directory to directories SeriousSamClassic-VK/SamTFE and SeriousSamClassic-VK/SamTSE, respectively, for games Serious Sam: The First Encounter and Serious Sam: The Second Encounter.
To start the game, use the script:
run_game.sh
or
run_game_hud.sh
if you need to monitor MangoHUD.