Package Details: spacecadetpinball-git 2.0.1.r5.g8f34829-4

Git Clone URL: https://aur.archlinux.org/spacecadetpinball-git.git (read-only, click to copy)
Package Base: spacecadetpinball-git
Description: Reverse engineered port of "3D Pinball for Windows – Space Cadet" to Linux
Upstream URL: https://github.com/k4zmu2a/SpaceCadetPinball
Keywords: game mspinball pinball
Licenses: MIT, proprietary
Conflicts: spacecadetpinball
Provides: spacecadetpinball
Submitter: nulldev
Maintainer: nulldev
Last Packager: nulldev
Votes: 7
Popularity: 2.52
First Submitted: 2021-09-30 16:58
Last Updated: 2022-01-17 01:34

Pinned Comments

nulldev commented on 2022-01-17 01:40

This package now installs both the low-res graphics used in "3D Pinball for Windows" as well as the high-res graphics used in "Full Tilt! Pinball".

The full tilt graphics are used by default, however you can switch to the low-res graphics by selecting Options > Game Data > Prefer 3DPB Data in game.

Thank you @lightspot21 and @afontenot for the help! I've also included your soundfont fixes afontenot, thanks for those as well.

Latest Comments

nulldev commented on 2022-01-17 01:40

This package now installs both the low-res graphics used in "3D Pinball for Windows" as well as the high-res graphics used in "Full Tilt! Pinball".

The full tilt graphics are used by default, however you can switch to the low-res graphics by selecting Options > Game Data > Prefer 3DPB Data in game.

Thank you @lightspot21 and @afontenot for the help! I've also included your soundfont fixes afontenot, thanks for those as well.

lightspot21 commented on 2022-01-16 19:24

@afontenot @nulldev here's a patch I made to include hi-res graphics from Full Tilt if you're still interested

https://gist.github.com/lightspot21/94b66cb0bd447870526bc97525fc5c6e

Am thinking to make a PKGBUILD for MS's soundfont in sf2 if I can find a reliable (like e.g. archive.org) source, to get original sounds directly.

afontenot commented on 2022-01-16 11:59

Few suggestions:

  1. You could also include the Full Tilt version for higher res graphics (this version allows switching between them). At least one source is here: https://archive.org/details/full-tilt-pinball

  2. You could use /usr/share/soundfonts/default.sf2 if it is available instead of just taking the first one found in that directory.

  3. You could use -type f,l to also include symbolic links in the search. The Wiki recommends using a symbolic link to add sound fonts to this directory: https://wiki.archlinux.org/title/FluidSynth

nulldev commented on 2022-01-15 01:06

@database64128 That makes sense, thanks, I've added the fix.

@Koppajin This was probably caused by a combination of no midi soundfonts being on your system + the program not searching the correct location for midi soundfonts.

The newest version of the package now includes an optional dependency on freepats-general-midi to encourage users to install a soundfont. It also will now search the proper directory for soundfonts.

For a more authentic experience, you can also find the "Microsoft GS Wavetable Synth" soundfont (the soundfont originally used by the game) converted to the .sf2 format online. Then run the following to start the game with the correct soundfont file:

SDL_SOUNDFONTS=/path/to/soundfont.sf2 spacecadetpinball

database64128 commented on 2022-01-14 21:06

  1. You should append -DNDEBUG to the existing LDFLAGS and CXFLAGS environment variables, not replace them.
  2. -DCMAKE_C_FLAGS="$CFLAGS" and -DCMAKE_CXX_FLAGS="$CXXFLAGS" are not needed. CMake automatically initializes these flags from the corresponding environment variables.

Koppajin commented on 2021-12-23 19:30

Is music disabled in this? The option does nothing. Gotta listen to that classic tune..

nulldev commented on 2021-12-13 00:10

@HurricanePootis Nice catch, I've added your changes.

HurricanePootis commented on 2021-12-08 16:47

Your PKGBUILD, with the release type set to none is not respecting the C++ and C flags listed in my /etc/makepkg.conf.

Therefore, I propose the following change

 _pkgname=spacecadetpinball
 pkgname=$_pkgname-git
 pkgdesc='Reverse engineered port of "3D Pinball for Windows – Space Cadet" to Linux
-pkgver=1.1.1.r45.g5947727
+pkgver=2.0.r21.g3400ea4
 pkgrel=1
 arch=('x86_64' 'i686' 'pentium4' 'aarch64' 'armv7h' 'armv6h')
 depends=('sdl2' 'sdl2_mixer')
@@ -37,7 +37,9 @@ build() {
   LDFLAGS="-DNDEBUG" CXXFLAGS="-DNDEBUG" cmake -B "$pkgname/build" -S "$pkgname" \
       -Wno-dev \
       -DCMAKE_BUILD_TYPE=None \
-      -DCMAKE_INSTALL_PREFIX=/usr
+      -DCMAKE_INSTALL_PREFIX=/usr \
+      -DCMAKE_C_FLAGS="$CFLAGS" \
+      -DCMAKE_CXX_FLAGS="$CXXFLAGS"
   make -C "$pkgname/build"
 }

We can still keep the release type to none, but respect the flags set by the user in /etc/makepkg.conf by setting -DCMAKE_C_FLAGS="$CFLAGS" and -DCMAKE_CXX_FLAGS="$CXXFLAGS"

nulldev commented on 2021-10-13 14:55

@katt Thanks for the advice, fixed!

katt commented on 2021-10-13 12:19

Needs git as makedepend:

==> ERROR: Cannot find the git package needed to handle git sources.

Also should provide and conflict with spacecadetpinball