Code Monkey home page Code Monkey logo

tx00100xt / serioussamclassic Goto Github PK

View Code? Open in Web Editor NEW
103.0 8.0 15.0 29.34 MB

Open source game engine version developed by Croteam for Serious Sam Classic (Windows, Linux, FreeBSD, OpenBSD, NetBSD, macOS, Raspberry Pi OS). Based on https://github.com/Croteam-official/Serious-Engine and linux port https://github.com/icculus/Serious-Engine

License: GNU General Public License v2.0

Python 0.02% Shell 0.03% CMake 0.36% C++ 71.82% C 24.71% Yacc 0.55% Lex 0.15% Assembly 0.06% Clarion 1.03% Batchfile 0.01% Rich Text Format 0.85% Perl 0.03% HTML 0.01% Visual Basic 6.0 0.37% Makefile 0.01%
fps-engine fps-game games linux serious-engine serious-sam freebsd raspberry raspberry-pi raspberry-pi-3

serioussamclassic's Introduction

Serious Sam Classic

Build status License: GPL v2 GitHub release (latest by date) Github downloads

This is the source code for Serious Engine v.1.10, including the following projects:

  • DedicatedServer
  • Ecc The Entity Class Compiler, a custom build tool used to compile *.es files
  • Engine Serious Engine 1.10
  • EngineGUI Common GUI things for game tools
  • EntitiesMP All the entity logic
  • GameGUIMP Common GUI things for game tools
  • GameMP All the game logic
  • Modeler Serious Modeler
  • RCon Used to connect to servers using an admin password
  • SeriousSam The main game executable
  • SeriousSkaStudio Serious Ska Studio
  • WorldEditor Serious Editor
  • DecodeReport Used to decode crash *.rpt files
  • Depend Used to build a list of dependency files based on a list of root files
  • LWSkaExporter Exporter for use in LightWave
  • MakeFONT Used for generating *.fnt files
  • TexConv Used for converting *.tex files to *.tga images
  • Shaders Compiled shaders
  • GameAgent The serverlist masterserver written in Python
  • libogg, libvorbis Third party libraries used for playing OGG-encoded ingame music (see http://www.vorbis.com/ for more information)

Building

More detailed information about building the game for different operating systems and different platforms can be found on the SeriousSamClassic wiki.

There are still many asserts in the engine. Most of them are irrelevant and should be removed, but while it's not done, the asserts will effectively kill the engine when triggered in the Debug build. Use Release or RelWithDebInfo build if you intend to play (automatically set as RelWithDebInfo in the build scripts).

Linux

Setting up the repository

Type this in your terminal:

git clone https://github.com/tx00100xt/SeriousSamClassic.git

Copy official game data (optional)

If you have access to a copy of the game (either by CD or through Steam), you can copy the *.gro files from the game directory to the repository. (SeriousSamClassic/SamTFE is the directory of the game Serious Sam Classic The First Encounter, SeriousSamClassic/SamTSE is the directory of the game Serious Sam Classic The Second Encounter)

Building (for SS:TFE and SS:TSE)

Type this in your terminal:

cd SeriousSamClassic
mkdir build
cd build
cmake ..
make -j4
make install

If you prefer ninja, then add key -GNinja to the cmake. And replace the make command with ninja.

Ubuntu

Instead of building you can install packages from ppa by adding ppa:tx00100xt/serioussam to your system's Software Sources.

sudo add-apt-repository ppa:tx00100xt/serioussam
sudo apt update

This PPA can be added to your system manually by copying the lines below and adding them to your system's software sources.

deb https://ppa.launchpadcontent.net/tx00100xt/serioussam/ubuntu YOUR_UBUNTU_VERSION_HERE main 
deb-src https://ppa.launchpadcontent.net/tx00100xt/serioussam/ubuntu YOUR_UBUNTU_VERSION_HERE main 

After adding ppa, run the commands:

sudo apt install serioussamclassic serioussamclassic-xplus

Gentoo

To build the game, use the ebuild included in the official Gentoo repository.
https://packages.gentoo.org/packages/games-fps/serioussam
This ebuild uses the repo https://github.com/tx00100xt/SeriousSamClassic-VK which
additionally contains the Vulkan render. Everything else is identical to this repository.

You will also need CD images of the games Serious Sam Classic The First Encounter and
Serious Sam Classic The First Encounter.

Type this in your terminal:

echo "games-fps/serioussam -vulkan" >> /etc/portage/package.use/serioussam
emerge -av serioussam --autounmask=y

For game add-ons, use a serioussam-overlay containing ready-made ebuilds for building the add-ons.

Type this in your terminal:

emerge eselect-repository
eselect repository enable serioussam
emaint sync --repo serioussam

The list of add-ons can be found in README

Arch Linux

To build a game under Arch Linux you can use the package from AUR: https://aur.archlinux.org/packages/serioussam

Raspberry Pi

The build for raspberry pi is similar to the build for Linux, you just need to add an additional build key.

cd SeriousSamClassic
mkdir build
cd build
cmake -DRPI4=TRUE ..
make -j4
make install

FreeBSD

Setting up the repository

Type this in your terminal:

git clone https://github.com/tx00100xt/SeriousSamClassic.git

Copy official game data (optional)

If you have access to a copy of the game (either by CD or through Steam), you can copy the *.gro files from the game directory to the repository. (SeriousSamClassic/SamTFE is the directory of the game Serious Sam Classic The First Encounter, SeriousSamClassic/SamTSE is the directory of the game Serious Sam Classic The Second Encounter)

Building (for SS:TFE and SS:TSE)

Type this in your terminal:

cd SeriousSamClassic
mkdir build
cd build
cmake ..
make -j4
make install

If you prefer ninja, then add key -GNinja to the cmake. And replace the make command with ninja. For i386 architecture, add key -DUSE_ASM=OFF to cmake. To build a binary package for installation on the system, you can use the template: https://github.com/tx00100xt/SeriousSamClassic/tree/main/templates

OpenBSD

Install the required packages

doas pkg_add bison cmake ninja git sdl2 libogg libvorbis

Setting up the repository

git clone https://github.com/jasperla/openbsd-wip.git

Add the path to openbsd-wip to PORTSDIR_PATH in /etc/mk.conf Type this in your terminal:

cd openbsd-wip/games/serioussam
make install

Copy official game data

Copy all content of the original game to the appropriate directories:

~/.local/share/Serious-Engine/serioussam/ - for Serious Sam Classic The First Encounter
~/.local/share/Serious-Engine/serioussamse/ - for Serious Sam Classic The Second Encounter

To start the game type in console: serioussam or serioussamse. You can also use the launch of the game through the menu. For more information, type in the console: man serioussam

NetBSD

Install required dependencies:

sudo pkgin install cmake nasm bison SDL2 libogg libvorbis

Copy official game data

If you have access to a copy of the game (either by CD or through Steam), you can copy the *.gro files from the game directory to the repository. (SeriousSamClassic/SamTFE is the directory of the game Serious Sam Classic The First Encounter, SeriousSamClassic/SamTSE is the directory of the game Serious Sam Classic The Second Encounter)

Type this in your terminal:

cd SeriousSamClassic
mkdir build
cd build
cmake ..
make -j4
make install

For i386 use cmake .. -DUSE_ASM=OFF To build a binary package for installation on the system, you can use the template: https://github.com/tx00100xt/SeriousSamClassic/tree/main/templates

macOS

Install dependes

brew install bison flex sdl2 libogg libvorbis zlib-ng cmake git

Setting up the repository

Type this in your terminal:

git clone https://github.com/tx00100xt/SeriousSamClassic.git

Copy official game data (optional)

If you have access to a copy of the game (either by CD or through Steam), you can copy the *.gro files from the game directory to the repository. (SeriousSamClassic/SamTFE is the directory of the game Serious Sam Classic The First Encounter, SeriousSamClassic/SamTSE is the directory of the game Serious Sam Classic The Second Encounter)

Building (for SS:TFE and SS:TSE)

Type this in your terminal:

cd SeriousSamClassic
mkdir build
cd build
cmake ..
make -j4
make install

Flatpak

Serious Sam Classic on flathub
You can also install the game using flatpak from the flathub repository. When you first start the game,
you will be asked to place your game data along the following paths:

~/.var/app/io.itch.tx00100xt.SeriousSamClassic/data/Serious-Engine/serioussam
~/.var/app/io.itch.tx00100xt.SeriousSamClassic/data/Serious-Engine/serioussamse

You can place game data in these paths before starting the game. Then the game will start immediately.
To start the game, use the application menu. More detailed information about flatpak on the SeriousSamClassic Flatpak wiki.

Snap

Get it from the Snap Store
You can also install the game using snap from the snapcraft. When you first start the game,
you will be asked to place your game data along the following paths:

~/snap/serioussam/current/.local/share/Serious-Engine/serioussam
~/snap/serioussam/current/.local/share/Serious-Engine/serioussamse

You can place game data in these paths before starting the game. Then the game will start immediately.
To start the game, use the application menu. More detailed information about snap on the SeriousSamClassic Snap wiki.

AppImage

Get Appimage

You can also run the game using AppImage. When you first start the game,
you will be asked to place your game data along the following paths:

~/.local/share/Serious-Engine/serioussam
~/.local/share/Serious-Engine/serioussamse

You can place game data in these paths before starting the game. Then the game will start immediately.
You can also place your game data anywhere in your home directory. The first time you start the game, it will find it itself. AppImage also contains libraries for the modification of XPLUS. Download:

wget https://archive.org/download/sam-tfe-xplus/SamTFE-XPLUS.tar.xz
wget https://archive.org/download/sam-tse-xplus/SamTSE-XPLUS.tar.xz

And unpack it to the root directory of game resources. After unpacking the archives for the XPLUS mod, simply select this mod in the game menu. You can build your AppImage using the build script. Type this in your terminal:

./build-appimage.sh

Running

You can buy the original games on Steam, as a part of a bundle with Serious Sam Revolution ( http://store.steampowered.com/app/227780 )

Serious Sam Classic The First Encounter

Running the game

  1. Locate the game directory for "Serious Sam Classic The First Encounter" (steam)
  2. Build game from source code or Download latest release and copy the latest files from the game directory to SamTFE/Bin
  3. Copy all *.gro files, Help folder and Levels folder from the game directory to SamTFE directory. At the current time the files are:
    • Help (folder)
    • Levels (folder)
    • 1_00_ExtraTools.gro
    • 1_00_music.gro
    • 1_00c.gro
    • 1_00c_Logo.gro
    • 1_00c_scripts.gro
    • 1_04_patch.gro
  4. Start the game
    • ./run_game.sh or ./run_game_hud.sh (for start game with MangoHUD)

Serious Sam Classic The Second Encounter

Running the game

  1. Locate the game directory for "Serious Sam Classic The Second Encounter" (steam)
  2. Build game from source code or Download latest release and copy the latest files from the game directory to SamTSE/Bin
  3. Copy all *.gro files and Help folder from the game directory to SamTSE directory. At the current time the files are:
    • Help (folder)
    • SE1_00.gro
    • SE1_00_Extra.gro
    • SE1_00_ExtraTools.gro
    • SE1_00_Levels.gro
    • SE1_00_Logo.gro
    • SE1_00_Music.gro
    • 1_04_patch.gro
    • 1_07_tools.gro
  4. Start the game
    • ./run_game.sh or ./run_game_hud.sh (for start game with MangoHUD)

Install the game in system (/usr/bin;/usr/lib/;/usr/share)

  1. Just add string for cmake command:
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr 
  1. Build game from source code.
  2. Install the game:
cd build
sudo make install
  1. Put game data in (Recommended):
/usr/share/serioussam/ - for TFE
/usr/share/serioussamse/ - for TSE

or

~/.local/share/Serious-Engine/serioussam/ - for TFE
~/.local/share/Serious-Engine/serioussamse/ - for TSE
  1. Type in console:
serioussam       	# for run Serious Sam Classic The First Encounter

or

serioussamse       	# for run Serious Sam Classic The Second Encounter

Note: If the game does not find the data on the recommended paths, then it will independently perform a search. Please note that when installing the game on a system, all content of the original game is required (including directories: Controls, Data, Demos, Help, and so on) in directories /usr/share/serioussam(se) or ~/.local/share/Serious-Engine/serioussam(se), depending on the directory you select. You can see a more detailed description in the Wiki.

Serious Sam Classic XPLUS

What is XPLUS? XPLUS is a global modification that changes effects, models, weapons, textures to high definition. XPLUS was created by fans of the game Serious Sam and is distributed for free. Remark: -JD- and VITEK is author this mod for windows.

XPLUS Oasis

XPLUS Dunes

XPLUS Sacred Yards

Linux, FreeBSD, macOS, Raspberry PI OS

Building XPLUS (for SS:TFE and SS:TSE)

Type this in your terminal:

cd SeriousSamClassic
mkdir build-xplus
cd build-xplus
cmake -DXPLUS=TRUE ..
make -j4
make install

Note: for Raspberry Pi4 just add -DRPI4=TRUE for cmake command.

Download: Xplus TFE from Google Drive or Xplus TFE from pCloud, and unpack to SeriousSamClassic/SamTFE/Mods directory. Xplus TSE from Google Drive or Xplus TSE from pCloud,, and unpack to SeriousSamClassic/SamTSE/Mods directory. You can also download the archive using curl or wget:

cd SeriousSamClassic
wget https://archive.org/download/sam-tfe-xplus/SamTFE-XPLUS.tar.xz
wget https://archive.org/download/sam-tse-xplus/SamTSE-XPLUS.tar.xz
tar -xJvpf SamTFE-XPLUS.tar.xz -C SamTFE
tar -xJvpf SamTSE-XPLUS.tar.xz -C SamTSE

or

cd SeriousSamClassic
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
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 SamTFE-XPLUS.tar.xz -C SamTFE
tar -xJvpf SamTSE-XPLUS.tar.xz -C SamTSE

To start the modification, use the game menu - item Modification.

Building demo version of the game

To build the demo version of the game, official demo files for Windows and official patches for the game from Croteam are used. These files are automatically downloaded and unpacked in demo build scripts.

Type this in your terminal:

git clone https://github.com/tx00100xt/SeriousSamClassic.git SeriousSamClassic
cd SeriousSamClassic
./build-linux64demo.sh        	    # use build-linux32demo.sh for 32-bits

Windows

  • This project can be compiled starting from Windows 7 and higher.
  1. Download and Install Visual Studio 2015 Community Edition or higher.
  2. Download and Install Windows 10 SDK 10.0.14393.795 or other.
  3. Open the solution in the Sources folder, select Release x64 or Release Win32 and compile it.

Supported Architectures

  • x86
  • aarch64
  • e2k (elbrus)

Supported OS

  • Linux
  • FreeBSD
  • OpenBSD
  • NetBSD
  • Windows
  • Raspberry PI OS
  • macOS

Build status

CI Platform Compiler Configurations Platforms Status
GitHub Actions Windows, Ubuntu, FreeBSD, Alpine, Raspberry PI OS Lite, macOS MSVC, GCC, Clang Release x86, x64, armv7l, aarch64, riscv64, ppc64le, s390x, mipsel, loongarch64 GitHub Actions Build Status

You can download a the automatically build based on the latest commit.
To do this, go to the Actions tab, select the top workflows, and then Artifacts.

License

  • Serious Engine is licensed under the GNU GPL v2 (see LICENSE file).
  • amp11lib is licensed under the GNU GPL v2 (see amp11lib/COPYING file).

Note:

The following applies only to the for Windows build. Because none of the following is used when building under (Linux, *BSD, macOS) systems.

Some of the code included with the engine sources is not licensed under the GNU GPL v2:
  • zlib (located in Sources/Engine/zlib) by Jean-loup Gailly and Mark Adler
  • LightWave SDK (located in Sources/LWSkaExporter/SDK) by NewTek Inc.
  • libogg/libvorbis (located in Sources/libogg and Sources/libvorbis) by Xiph.Org Foundation

serioussamclassic's People

Contributors

tx00100xt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

serioussamclassic's Issues

Игра зависает при некоторых обстоятельствах

Добрый вечер.

Собрал игру на OrangePI5. Может Вы сможете подсказать в чем дело.

Скопировал все требуемые файлы из папки с установленной игрой в SamTSE.
Наблюдения следующие:
При выборе пункта Single Player -> New game -> Уровень сложности начинается загрузка уровня, но потом внезапно - черный экран и игра зависла.
В то же время, если выбирать Custom Level -> Sierra de Chiapas все запускается, уровень загружается нормально, можно играть. Судя по всему, при загрузке "In the last episode" происходит зависание, так как это условно "первый уровень", который загружается при выборе Single Player -> New game.

Если выбирать в Demo какой-то эпизод, то некоторые виснут, некоторые нет.

Technology test виснет так же с черным экраном.

Может кто-то подсказать в чем дело ? Возможно следует мне выгрузить какие-то логи ? Но где их взять ? В папках полазал и не увидел.

Win64 full screen broken, same as VK version

Edit TLDR: The problem was refresh rate settings (120) on my end mismatching with my monitor's 144Hz. Setting refresh rate to "default" or "gap_iRefreshRate=(INDEX)0" fixes the full screen problem. Working settings follow:
persistent extern user INDEX gap_iRefreshRate=(INDEX)0;
persistent extern user INDEX sam_iMaxFPSActive=(INDEX)120;
persistent extern user INDEX sam_iMaxFPSInactive=(INDEX)60;

Don't sweat my whining too much because I favor the Linux VK version, but just FYI, I get the same problem with this version as the VK version. Full screen doesn't work on the Win64 version. Was going to compare performance and see if one (vulkan vs opengl vs directx) was "smoother" than another (it looks a bit choppy at times, even at capped 120 FPS), but had the same issue with full screen refusing to work.

Ryzen 5 5600, Radeon RX 6600 (drivers: 23.10.1, 23.10.2, and 23.11.1) @ 1920x1080 144hz. Pretty standard stuff. I don't O/C, multi monitor complexity, or do any weird settings...that I can think of.

Problems with RPi4

The Raspberry Pi 4 build seems to have some problems... I'm on official RPiOS x64, the newest version.

First one if with the compiling itself - a line 'cat /proc/cpuinfo |grep vendor_id |wc -l' returns 0 which throws the project out of the window after compiling ECC. This can be however easily fixed by changing the number there manually to '4', still, maybe worth of changing for RPI itself?

Second problem is when launching the compiled project, after execution of the compiled binary, terminal shows two lines and program ends:
STUBBED: load window icon in /home/dragon99919/git/SeriousSamClassic/SamTSE/Sources/SeriousSam/MainWindow.cpp, line 167. STUBBED: Need SDL invisible window or something in /home/dragon99919/git/SeriousSamClassic/SamTSE/Sources/SeriousSam/MainWindow.cpp, line 328.

Any idea how to fix it by any chance?

Can't start Serious Sam TSE, fatal error

First Encounter windows binaries works just fine but every time I start second encounter it gives me a fatal error with the following message:

Cannot initialize classes:

Cannot load DLL file 'Entities.dll'

Fails to build on Pi4

i follow the commands that are on your readme
Im running debian Buster 10

cd SeriousSamClassic/SamTFE/Sources
./build-linux64.sh -DTFE=TRUE -DRPI4=TRUE	# use build-linux32.sh for 32-bits

and i get this

Will build with 'make -j4' ... please edit this script if incorrect.
+ rm -rf cmake-build
+ mkdir cmake-build
+ cd cmake-build
+ cp -vfr ../Entities/PlayerWeapons_old.es ../Entities/PlayerWeapons.es
'../Entities/PlayerWeapons_old.es' -> '../Entities/PlayerWeapons.es'
+ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_FLAGS=-mmmx -DCMAKE_CXX_FLAGS=-mmmx -DUSE_I386_NASM_ASM=TRUE .. -DTFE=TRUE -DRPI4=TRUE
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "/usr/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/pi/SeriousSamClassic/SamTFE/Sources/cmake-build/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/make cmTC_90c3e/fast && /usr/bin/make -f CMakeFiles/cmTC_90c3e.dir/build.make CMakeFiles/cmTC_90c3e.dir/build
    make[1]: Entering directory '/home/pi/SeriousSamClassic/SamTFE/Sources/cmake-build/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_90c3e.dir/testCCompiler.c.o
    /usr/bin/cc   -mmmx    -o CMakeFiles/cmTC_90c3e.dir/testCCompiler.c.o   -c /home/pi/SeriousSamClassic/SamTFE/Sources/cmake-build/CMakeFiles/CMakeTmp/testCCompiler.c
    cc: error: unrecognized command line option ‘-mmmx’
    make[1]: *** [CMakeFiles/cmTC_90c3e.dir/build.make:66: CMakeFiles/cmTC_90c3e.dir/testCCompiler.c.o] Error 1
    make[1]: Leaving directory '/home/pi/SeriousSamClassic/SamTFE/Sources/cmake-build/CMakeFiles/CMakeTmp'
    make: *** [Makefile:121: cmTC_90c3e/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
See also "/home/pi/SeriousSamClassic/SamTFE/Sources/cmake-build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/SeriousSamClassic/SamTFE/Sources/cmake-build/CMakeFiles/CMakeError.log".

here is the CMakeError.log

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc 
Build flags: -mmmx
Id flags:  

The output was:
1
cc: error: unrecognized command line option ‘-mmmx’


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc 
Build flags: -mmmx
Id flags: -c 

The output was:
1
cc: error: unrecognized command line option ‘-mmmx’


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc 
Build flags: -mmmx
Id flags: -Aa 

The output was:
1
cc: error: unrecognized command line option ‘-mmmx’


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc 
Build flags: -mmmx
Id flags: -D__CLASSIC_C__ 

The output was:
1
cc: error: unrecognized command line option ‘-mmmx’


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc 
Build flags: -mmmx
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3 

The output was:
1
cc: error: unrecognized command line option ‘-mmmx’
cc: error: unrecognized command line option ‘--target=arm-arm-none-eabi’


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/bin/c++ 
Build flags: -mmmx
Id flags:  

The output was:
1
c++: error: unrecognized command line option ‘-mmmx’


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/bin/c++ 
Build flags: -mmmx
Id flags: -c 

The output was:
1
c++: error: unrecognized command line option ‘-mmmx’


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/bin/c++ 
Build flags: -mmmx
Id flags: --c++ 

The output was:
1
c++: error: unrecognized command line option ‘-mmmx’
c++: error: unrecognized command line option ‘--c++’


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/bin/c++ 
Build flags: -mmmx
Id flags: --ec++ 

The output was:
1
c++: error: unrecognized command line option ‘-mmmx’
c++: error: unrecognized command line option ‘--ec++’; did you mean ‘-Weffc++’?


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/bin/c++ 
Build flags: -mmmx
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3 

The output was:
1
c++: error: unrecognized command line option ‘-mmmx’
c++: error: unrecognized command line option ‘--target=arm-arm-none-eabi’


Determining if the C compiler works failed with the following output:
Change Dir: /home/pi/RetroPie-Setup/tmp/build/samtfe/SamTFE/Sources/cmake-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_69832/fast && /usr/bin/make -f CMakeFiles/cmTC_69832.dir/build.make CMakeFiles/cmTC_69832.dir/build
make[1]: Entering directory '/home/pi/RetroPie-Setup/tmp/build/samtfe/SamTFE/Sources/cmake-build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_69832.dir/testCCompiler.c.o
/usr/bin/cc   -mmmx    -o CMakeFiles/cmTC_69832.dir/testCCompiler.c.o   -c /home/pi/RetroPie-Setup/tmp/build/samtfe/SamTFE/Sources/cmake-build/CMakeFiles/CMakeTmp/testCCompiler.c
cc: error: unrecognized command line option ‘-mmmx’
make[1]: *** [CMakeFiles/cmTC_69832.dir/build.make:66: CMakeFiles/cmTC_69832.dir/testCCompiler.c.o] Error 1
make[1]: Leaving directory '/home/pi/RetroPie-Setup/tmp/build/samtfe/SamTFE/Sources/cmake-build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_69832/fast] Error 2

Question

What is the relation of this repository to https://github.com/ptitSeb/Serious-Engine?
I see that both can be built and are reciving new commits but development seems to be separate and this one seems more regularly updated.
Is there an intention to merge the two?

Graphics are messed up

serioussam-screwed

Basically this.

Here are the logs: SeriousSam.log

An interesting line in here could be this one:

unable to setup OpenGL settings list: Cannot open file `/home/user/.local/share/Serious-Engine/serioussam/Scripts/GLSettings/GLSettings.lst' (No such file or directory) ()

Don't know if it's related, and don't know how I'm supposed to have this file.

To give more context to it, I am trying to port Serious Sam to NixOS. I don't know if this graphic mess is caused by that or if it is related to my computer.

NixOS is speclal in that there are no global paths like /usr/bin or /usr/lib to put binaries and libraries, instead they are all in their own folders. SDL2 libs for example are in /nix/store/ys75kpw9nn0ydbxm2w7wi1gd0bl1s0cv-SDL2-2.28.1/lib for me.

ls /nix/store/ys75kpw9nn0ydbxm2w7wi1gd0bl1s0cv-SDL2-2.28.1/lib
libSDL2-2.0.so.0  libSDL2-2.0.so.0.2800.1  libSDL2.la  libSDL2main.la  libSDL2.so  libSDL2_test.la

Since your CMakeFile and the code assumed global paths for a system install it was a bit painful but I patched around.

Here is my nix file for building it and patches it needed. The nix file explains how to build the package from source, it's like a PKGBUILD for Arch Linux.
serioussam.tgz

If you want to reproduce this, Nix is a cross-platform package manager, you can check out https://nixos.org/download.

To build it with Nix, put the files from serioussam.tgz in some directory, cd into this directory and do this:
nix-build -E 'with import <nixpkgs> {}; callPackage ./serioussam.nix {}'

If you need more info please tell me.

Problems attempting to load Serious Sam: The First Encounter (RetroPie - Ports section)

Hello everyone. I'm using a Pi 4B with 4 GB of ram (64 bit) and the OS is Linux 5.10.17-v8+ aarch64 Raspbian. I just tried Serious Sam: The First Encounter. It shows the loading progress at the bottom of the screen, leads into the introduction showing the Croteam logo, the Egyptian terrain, and the Serious Sam animation, but when I hit the left mouse button it only loads up this routine again. In the samtfe folder (/home/pi/RetroPie/roms/ports) I have the Bin, Controls, Data, Demos, Locales, Mods, Players, SaveGame, Scripts, Temp, and VirtualTrees folders. There is also a tfe shortcut folder that leads to /opt/retropie/ports/samtfe. Inside, I have the Bin folder that has nine files generated when I installed from source. I moved the Help and Levels folders inside here as well. This also has the six necessary .gro files, along with SE_10b.gro.

My runcommand.log shows the following:

Parameters:
Executing: xinit /dev/shm/retropie_xinitrc -- vt1 -keeptty

X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System: Linux 5.10.17-v8+ aarch64 Raspbian
Current Operating System: Linux retropie 5.10.52-v7l+ #1441 SMP Tue Aug 3 18:11:56 BST 2021 armv7l
Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1280x720M@60,margin_left=48,margin_right=48,margin_top=48,margin_bottom=48 smsc95xx.macaddr=DC:A6:32:03:C2:0A vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=a373f3d2-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait loglevel=3 consoleblank=0 plymouth.enable=0
Build Date: 19 April 2021 03:23:36PM
xorg-server 2:1.20.4-1+rpt3+deb10u3 (https://www.debian.org/support)
Current version of pixman: 0.36.0
Before reporting problems, check http://wiki.x.org/
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/pi/.local/share/xorg/Xorg.0.log", Time: Wed Oct 25 00:13:24 2023
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
Set mode 1024x768@60Hz on HDMI-1

Executing (via xinit): SDL_VIDEO_KMSDRM_CRTCID=87 SDL_VIDEO_KMSDRM_MODEID=0 /opt/retropie/ports/samtfe/samtfe.sh

STUBBED: load window icon in /home/pi/RetroPie-Setup/tmp/build/samtfe/SamTFE/Sources/SeriousSam/MainWindow.cpp, line 169.
STUBBED: Need SDL invisible window or something in /home/pi/RetroPie-Setup/tmp/build/samtfe/SamTFE/Sources/SeriousSam/MainWindow.cpp, line 330.
STUBBED: !!! FIXME: get the code back in from Ryan's original port. in /home/pi/RetroPie-Setup/tmp/build/samtfe/SamTFE/Sources/Engine/Base/Stream.cpp, line 995.
STUBBED: Report actual SDL device name? in /home/pi/RetroPie-Setup/tmp/build/samtfe/SamTFE/Sources/Engine/Sound/SoundLibrary.cpp, line 270.
STUBBED: co-opt the existing T-buffer support for multisampling? in /home/pi/RetroPie-Setup/tmp/build/samtfe/SamTFE/Sources/Engine/Graphics/SDL/SDLOpenGL.cpp, line 113.
STUBBED: this can't possibly be right, yeah? in /home/pi/RetroPie-Setup/tmp/build/samtfe/SamTFE/Sources/Engine/Base/SDL/SDLEvents.cpp, line 147.
STUBBED: SDL2 can handle these events in /home/pi/RetroPie-Setup/tmp/build/samtfe/SamTFE/Sources/SeriousSam/SeriousSam.cpp, line 1250.

I'm trying to see what I did wrong. If anyone has an idea, please let me know. I'm asking because once I figure out exactly where each file/folder goes, I think I might be able to do the same for Serious Sam: The Second Encounter. I may also be missing some commands that will add files that may be missing. Thanks for your assistance.

RPM for Alt Sisyphus build fails

Hello! One small trouble...

I'm trying to build an RPM package for ALT Sisyphus (cheers from @mshigorin!). And in the end I got this:

verify-elf: ERROR: ./usr/lib64/libEntities.so: undefined symbol: _ZTI19CMovableModelEntity
verify-elf: ERROR: ./usr/lib64/libEntities.so: undefined symbol: _ZN7CEntity21SetPlacement_internalERK12CPlacement3DRK6MatrixIfLi3ELi3EEi
verify-elf: ERROR: ./usr/lib64/libEntities.so: undefined symbol: _ZN14CMovableEntity4CopyER7CEntityj
verify-elf: ERROR: ./usr/lib64/libEntities.so: undefined symbol: _ZN19CMovableModelEntity6Read_tEP8CTStream
And this error for all libraries of game.

And one more type of error igot in the end of packaging:
verify-elf: WARNING: ./usr/bin/DedicatedServer: RPATH entry found: $ORIGIN
verify-elf: WARNING: ./usr/bin/SeriousSamTFE: RPATH entry found: $ORIGIN

Repo with project: https://git.altlinux.org/people/arbars/packages/eriousSamClassic.git

Until now I trying to build TFE
P.S. Если можно, объясни на пальцах, что не так.

cross-multiplayer not work

I can`t cross-connecting with a Linux system and FreeBSD it a not possible !

response from my server

Server: Sent initialization info to '192.168.0.3' (2k)
Sending statedelta response
Server: Sent connection data to '192.168.0.3' (2406k->758k->95k)
Server: Sent initialization info to '192.168.0.3' (2k)
Sending statedelta response
Server: Sent connection data to '192.168.0.3' (2406k->758k->95k)

response from my client

joining session at '192.168.0.8'
sending statestate delta request
Cannot join game:
CRC error in DIFF!

unable to adjust gamma brightness and contrast

First of all let me say thanks for this project, it's running great and everything seems to work fine so far. The only issue I've run across is that I'm unable to adjust gamma brightness and contrast in the settings. It happens both on the OpenGL as Vulkan binaries. So I'm not sure if it's unimplemented as of yet or bugged.

Running on Arch with GOG SS TFE. If you need additional information let me know.

No music

I downloaded ready-made binaries, copied the game files there. No music only, other sound effects are present.

How to fix this?

Windows builds, please!

Could it be possible to provide and Windows builds of SeriousSamClassic either, 32 and 64 bits, please!
It could get much more popularity to the game!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.