-
-
Notifications
You must be signed in to change notification settings - Fork 239
add Cube 2 Sauerbraten #1875
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
Open
theofficialgman
wants to merge
4
commits into
Botspot:master
Choose a base branch
from
theofficialgman:cube2sauerbraten
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
add Cube 2 Sauerbraten #1875
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| 2-bithacker for making the app request | ||
| theofficialgman who re-wrote the scripts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| Cube 2: Sauerbraten is a free multiplayer & singleplayer first person shooter, the successor of the Cube FPS. | ||
| Much like the original Cube, the aim of this game is fun, old school deathmatch gameplay and also to allow map/geometry editing to be done cooperatively in-game. | ||
| The engine supporting the game is entirely original in code & design, and its code is Open Source (ZLIB license, read the docs for more on how you can use the engine). | ||
|
|
||
| To run: Menu -> Games -> Cube 2 Sauerbraten | ||
| To run in terminal: ~/sauerbraten/sauerbraten_unix |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| #!/bin/bash | ||
|
|
||
| cd ~ | ||
| rm -rf download | ||
| rm -rf sauerbraten | ||
|
|
||
| install_packages zlib1g-dev libgeoip-dev build-essential libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev || exit 1 | ||
| # as strang as it is, downloading from the 'download' name directs to a faster download server | ||
| # downloading the game code and assets | ||
| 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!' | ||
theofficialgman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| status "Extracting Code and Game Assets" | ||
| status "This may take a while and may not look like anything is happening" | ||
| tar -xf download || error 'Extract of Cube2: Sauerbraten failed!' | ||
theofficialgman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| rm -f download | ||
theofficialgman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| cd sauerbraten/src || error "Could not move to directory" | ||
| # building the game and server | ||
| make -j$(nproc) || error "Build failed" | ||
| rm -rf ../bin_unix/* | ||
| make install || error "Installation failed" | ||
|
|
||
| status "Creating Menu launchers... " | ||
| mkdir -p ~/.local/share/applications | ||
| echo "[Desktop Entry] | ||
| Version=1.0 | ||
| Name=Cube 2 Sauerbraten | ||
| Exec=$HOME/sauerbraten/sauerbraten_unix %u | ||
| Path=$HOME/sauerbraten | ||
| Icon=$(dirname "$0")/icon-64.png | ||
| Terminal=false | ||
| Type=Application | ||
| Categories=Game;" > ~/.local/share/applications/cube_2_sauerbraten.desktop | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| #!/bin/bash | ||
|
|
||
| purge_packages || exit 1 | ||
|
|
||
| rm -rf ~/sauerbraten ~/.local/share/applications/cube_2_sauerbraten.desktop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| sauerbraten.org |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.