Botspot / pi-apps

Raspberry Pi App Store for Open Source Projects
GNU General Public License v3.0
2.01k stars 205 forks source link

Cube2: Sauerbraten #1475

Closed 2-bithacker closed 1 year ago

2-bithacker commented 2 years ago

What is the name of the app?

Cube2: Sauerbraten

(Optional) Where is the app hosted?

http://sauerbaten.org/

About the app

Cube2: Sauerbraten is a fast-paced, open source first person shooter based on the cube2 game engine. It runs decently on the raspi4 (30-150 fps on low detail) And is multiplayer. It resembles quake in most ways, but has an in-game map editor and is a lot funner than quake. It uses about 1.2 gb of space when installed. Now this app can be installed with apt (sudo apt install sauerbraten) but in the raspbian release buster apt repo and older, they have the old, dead version. My Install script downloads the latest version and then builds it from source. I think this game would fill in a gap in the pi-apps software list. The list has has a first person shooter, doom3, but that is only campaign. This fps is much less popular than Id software games, due to the lack of advertizing, but it is suprisingly clean and well-designed. I bombed the last app attempt, but with this one I came ready. I already have a complete pi-app. Also, I used to use my rpi4 to play sauer before I got a better pc.

Upload file

sauerbraten_pi-apps.zip

here is the complete pi-app.

ThaPg commented 2 years ago

If you want, you can modify the App Hosted. http://sauerbraten.org/ is right (you lose "r")

2-bithacker commented 2 years ago

I do not understand. The app runs ok on raspberry pi, I mean I played it a lot on a pi, and it works better with a install script. Besides, it is a great fps.

ThaPg commented 2 years ago

My fault!!!! I'm sorry!!!!

Where is the app hosted? You added wrong webpage. I wrote you before to change it.

Also. I'm trying to run your script!!!! Thanks!!!

2-bithacker commented 2 years ago

it is hosted at sauerbraten.org! When you launch it, it says "looking up master sauerbraten.org" The webpage part was part of the script. That part downloads the source code and all that. It worked last time I ran it.

ThaPg commented 2 years ago

(Optional) Where is the app hosted?

sauerbaten.org

Change to http://sauerbraten.org/

2-bithacker commented 2 years ago

oki ty

ThaPg commented 2 years ago

The game installed successfully (using your installing script) but i can't find it in game menu or in desktop. Any idea where can I find it?

2-bithacker commented 2 years ago

Yes. The script is incomplete as I have not made a launcher. You can launch it by running cd ~/pi-apps/apps/Cube2Sauerbraten/sauerbraten, or where ever you installed it, and then running ./sauerbraten_unix. I recommend turning it all to minimum detail ESPECIALLY the option called shaders because that can cut ur fps by 90 percent. In the near future I will make a launcher file you can put on ur desktop. This only runs playably (around 40 to 60 fps) on the raspberry pi 4; on the raspberry pi 3 it is utterly unplayable.

ThaPg commented 2 years ago

I have raspberry pi 4 with 4gb ram.

Using your install script and pi-apps settings "Import App" I made install script giving credits directly to you. But if you make a launcher file and desktop icon, I'll stop my work. Do you want to upload .zip file to continue the work?

2-bithacker commented 2 years ago

https://sourceforge.net/projects/sauerbraten/files/sauerbraten/2020_11_29/sauerbraten_2020_12_29_linux.tar.bz2/download click that. That will download the zip I would have uploaded. (saving about a gigabyte of bandwidth here) I didn't make that app! It was made by many people. If you want to put me in the credits, make my nickname be Slayer as in credits: 2-bithacker "Slayer" etc... That is my name in the sauerbraten community, and they all know my by it.

2-bithacker commented 2 years ago

Using your install script and pi-apps settings "Import App" I made install script giving credits directly to you. But if you make a launcher file and desktop icon, I'll stop my work. Do you want to upload .zip file to continue the work?

I made a better install script and a launcher file. What work are you doing, and why will you stop it if I make a launcher file and Icon?

2-bithacker commented 2 years ago

sauerbraten_pi-apps.zip Here is the complete pi-app, ready for distribution. It has ALL the scripts to download, install, lauch, and remove cube2 sauerbraten. I tested it and it works.

Botspot commented 2 years ago

sauerbraten_pi-apps.zip Here is the complete pi-app, ready for distribution. It has ALL the scripts to download, install, lauch, and remove cube2 sauerbraten. I tested it and it works.

I apologize for taking so long, but your script has a few problems.

#!/bin/bash

#Be sure to use the "error" function - it will display a message if a command fails to run. Example below:
rm ~/pi-apps/apps/Cube2Sauerbraten/sauerbraten.init &>/dev/null
rm ~/Desktop/sauerbraten.init &>/dev/null
rm ~/pi-apps/apps/Cube2Sauerbraten/sauerbraten.init &>/dev/null
rm download &>/dev/null
rm ~/sauerbraten &>/dev/null
sudo apt update || warning
sudo apt install --yes zlib1g-dev libgeoip-dev build-essential libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev || error 'Install of sdl2 and opengl libraries failed!'
wget https://sourceforge.net/projects/sauerbraten/files/sauerbraten/2020_11_29/sauerbraten_2020_12_29_linux.tar.bz2/download || error 'Download failed from sourceforge.net!'
tar -xf download || error 'extract of Cube2: Sauerbraten failed!'
make install -C ~/sauerbraten/src|| error 'build failed!'
rm download &>/dev/null
cp ~/pi-apps/apps/Cube2Sauerbraten/launcher.init ~/pi-apps/apps/Cube2Sauerbraten/sauerbraten.init
mv ~/pi-apps/apps/Cube2Sauerbraten/sauerbraten.init ~/Desktop
chmod +x ~/Desktop/sauerbraten.init
chmod +x ~/sauerbraten/bin_unix/native_server
chmod +x ~/sauerbraten/bin_unix/native_client
# Install some packages that are necessary to run this app - no need for "error", as the install_packages function already handles errors.
#exit 0

First of all, why are you deleting ~/pi-apps/apps/Cube2Sauerbraten/sauerbraten.init twice, and then trying to copy it somewhere? For that matter, why are you handling any files within the pi-apps directory at all? Also, you are not installing packages correctly. Instead of sudo apt, you should be using the install_packages function. Please read the app-creation tutorial, and if you have any questions please ask them.

2-bithacker commented 2 years ago

Deleting sauerbraten.init tiwce as a mistake. sauerbraten.init is the desktop launcher. It makes a copy of the one in the pi-apps directory and moves it to the desktop. I had the sudo apt part because this was actually a script that I had made just to install sauerbraten when I realized it would work on raspberry pi with a couple mods. I fixed it though. Cube2Sauerbraten.zip

I also have made a Cube2: Sauerbraten raspberry pi edition. https://github.com/2-bithacker/Cube2-Sauerbraten-Raspberry-Pi-Edition Should I make the script install that?

theofficialgman commented 1 year ago

closing as we have a PR open but feel that performance is not satisfactory enough to merge maybe one day if the source gets updated to improve performance