Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cube2: Sauerbraten #1475

Closed
3 tasks done
2-bithacker opened this issue Feb 8, 2022 · 15 comments · May be fixed by #1875
Closed
3 tasks done

Cube2: Sauerbraten #1475

2-bithacker opened this issue Feb 8, 2022 · 15 comments · May be fixed by #1875

Comments

@2-bithacker
Copy link

2-bithacker commented Feb 8, 2022

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
Copy link

ThaPg commented Feb 16, 2022

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

@2-bithacker
Copy link
Author

2-bithacker commented Feb 16, 2022

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
Copy link

ThaPg commented Feb 16, 2022

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
Copy link
Author

2-bithacker commented Feb 16, 2022

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
Copy link

ThaPg commented Feb 16, 2022

(Optional) Where is the app hosted?

sauerbaten.org

Change to http://sauerbraten.org/

@2-bithacker
Copy link
Author

oki ty

@ThaPg
Copy link

ThaPg commented Feb 16, 2022

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
Copy link
Author

2-bithacker commented Feb 16, 2022

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
Copy link

ThaPg commented Feb 16, 2022

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
Copy link
Author

2-bithacker commented Feb 16, 2022

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
Copy link
Author

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
Copy link
Author

2-bithacker commented Feb 18, 2022

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
Copy link
Owner

Botspot commented Feb 28, 2022

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
Copy link
Author

2-bithacker commented Feb 28, 2022

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
Copy link
Collaborator

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

@theofficialgman theofficialgman closed this as not planned Won't fix, can't repro, duplicate, stale Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants