2017-01-09 04:25:19 +13:00
# OpenSpades [![Build status](https://travis-ci.org/yvt/openspades.svg?branch=master)](https://travis-ci.org/yvt/openspades) [![All releases downloads](https://img.shields.io/github/downloads/yvt/openspades/total.svg)](https://github.com/yvt/openspades/releases) [![Latest release](https://img.shields.io/github/release/yvt/openspades.svg)](https://github.com/yvt/openspades/releases)
2014-03-11 16:56:20 +09:00
2016-11-22 17:20:27 -02:00
![OpenSpades banner ](https://dl.dropboxusercontent.com/u/37804131/github/OpenSpadesBanner.jpg )
2016-11-06 20:59:15 +09:00
2016-11-22 17:20:27 -02:00
[Official website ](http://openspades.yvt.jp ) — [Download ](https://github.com/yvt/openspades/releases ) — [Community ](http://buildandshoot.com ) — [Trello board ](https://trello.com/b/3rfpvODj/openspades-roadmap )
2016-11-06 21:15:53 +09:00
2016-11-22 17:20:27 -02:00
## What is it?
2013-09-03 22:21:12 -04:00
OpenSpades is a compatible client of Ace of Spades 0.75.
2013-08-18 16:55:06 +09:00
* Can connect to a vanilla/pyspades/pysnip server.
2016-11-06 20:59:15 +09:00
* Uses OpenGL/AL for better experience.
2013-08-18 16:55:06 +09:00
* Open source, and cross platform.
2016-11-22 17:20:27 -02:00
## How to Build/Install?
2016-11-22 17:31:07 -02:00
**Before you start:** In case you're having issues to build OpenSpades, it may be because this README file is outdated, if so:
1. See the [Building Guide ](https://github.com/yvt/openspades/wiki/Building ), which may be up to date
2. Or [open an issue ](https://github.com/yvt/openspades/issues ) if the problem persists
2013-08-18 16:55:06 +09:00
### On Linux
2016-11-19 23:35:06 +09:00
GCC 4.9 / Clang 3.2 or later is recommended because OpenSpades relies on C++11 features heavily.
2014-03-22 22:43:10 +09:00
2014-03-03 19:27:28 +10:00
1. Install dependencies:
*On Debian-derived distributions* :
2016-11-06 20:59:15 +09:00
```
2017-01-08 00:03:38 +09:00
sudo apt-get install pkg-config libglew-dev libcurl3-openssl-dev libsdl2-dev \
libsdl2-image-dev libalut-dev xdg-utils libfreetype6-dev libopus-dev libopusfile-dev
2016-11-06 20:59:15 +09:00
```
(because of a bug in some distributions, you might also
have to install more packages by `sudo apt-get install libjpeg-dev libxinerama-dev libxft-dev` )
2014-03-03 19:27:28 +10:00
*On other distributions* :
Install corresponding packages from your repository (or compile from source).
2017-01-08 00:03:38 +09:00
2. Clone OpenSpades repository:
2014-03-07 00:58:43 +09:00
2016-11-06 20:59:15 +09:00
```bash
git clone https://github.com/yvt/openspades.git & & cd openspades
```
2014-03-07 00:58:43 +09:00
2017-01-08 00:03:38 +09:00
3. Create directory `openspades.mk` in cloned/downloaded openspades repo and compile:
2014-03-03 19:27:28 +10:00
2014-05-31 10:04:51 +09:00
```bash
mkdir openspades.mk
cd openspades.mk
2017-01-08 00:03:38 +09:00
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo & & make
2014-05-31 10:04:51 +09:00
```
2014-03-03 19:27:28 +10:00
2017-01-08 00:03:38 +09:00
4. Install OpenSpades (optional but recommended):
2014-03-03 19:27:28 +10:00
2016-11-06 20:59:15 +09:00
`sudo make install`
2014-03-03 19:27:28 +10:00
2016-11-12 18:24:35 +09:00
**note** : If you have a previous installation of OpenSpades, you have to uninstall it manually by `sudo rm -rf /usr/local/share/games/openspades` before installing a new one.
2014-03-03 19:27:28 +10:00
2017-01-08 00:03:38 +09:00
5. Launch:
2014-03-03 19:27:28 +10:00
2017-01-08 00:03:38 +09:00
`openspades` (if installed) or `cd $REPO_DIRECTORY/openspades.mk; bin/OpenSpades` and enjoy
2013-08-18 16:55:06 +09:00
2013-11-01 21:22:54 +01:00
2016-11-15 17:20:14 +02:00
### On Windows (with Visual Studio)
2016-12-06 00:47:55 -02:00
1. Get the required software if you haven't already:
2016-11-24 21:26:59 -02:00
* CMake 2.8+
2016-12-05 11:13:50 -08:00
* PowerShell 5.0
* Integrated with Windows 10.
* Older versions are not tested, but might work
2016-12-03 19:55:35 +09:00
* *Visual Studio 2015*
* VS2013 is no longer supported, but might work
2016-12-06 00:47:55 -02:00
* VS2017 is not yet supported, but might work
2016-11-24 21:26:59 -02:00
2. Grab the source code:
* From a release: https://github.com/yvt/openspades/releases
* Latest development version (0.1.0): https://github.com/yvt/openspades/archive/master.zip
3. Extract or checkout the source
* All examples will assume `E:/Projects/openspades` , update paths in the examples to reflect yours
2016-12-06 00:47:55 -02:00
4. Get (pre-compiled) copies of glew, curl, sdl2 and zlib, and place them in `E:/Projects/openspades/Sources/Externals`
* See the file `E:/Projects/openspades/Sources/Externals/readme.txt` for details and links to pre-compiled sets of libraries for your version of Visual Studio
5. Run CMake:
* Source: `E:/Projects/openspades`
* Binaries: `E:/Projects/openspades/OpenSpades.msvc`
* Generator: Visual Studio 14 (2015) (not Win64!)
2016-11-24 21:26:59 -02:00
6. Open `E:/Projects/openspades/OpenSpades.msvc/OpenSpades.sln` in Visual Studio.
2016-12-06 00:47:55 -02:00
7. Build the solution.
* The recommended build configuration is `MinSizeRel` or `Release` if you're not an developer
* The default build output directory is `E:/projects/OpenSpades/OpenSpades.msvc/bin/BUILD_TYPE/`
2016-11-24 21:26:59 -02:00
8. Copy all `.dll` files from `Source/Externals/lib` to the build output directory.
2016-12-09 13:27:37 -02:00
9. To get audio working, download a [Windows release of OpenSpades ](https://github.com/yvt/openspades/releases ), extract it, and copy the following dlls to the build output directory:
* For OpenAL audio: `openal32.dll`
2016-12-09 13:48:32 -02:00
* For YSR audio: `YSRSpades.dll` , `libgcc_s_dw2-1.dll` , `libstdc++-6.dll` , `pthreadGC2.dll`
2017-01-06 04:01:10 +09:00
10. Download the [Non-free pak ](https://github.com/yvt/openspades-paks/releases/download/r33/OpenSpadesDevPackage-r33.zip ) and copy it to the `Resources` folder inside your build output directory, which is probably `E:/Projects/openspades/openspades.msvc/bin/BUILD_TYPE/Resources` . You can also copy the paks contained in `Official Mods/` folder of OpenSpades 0.0.12b to add more fonts and improve localization support of your build.
2016-11-22 19:28:42 -02:00
2014-04-07 01:04:56 +09:00
### On Mac OS X (with Xcode)
1. Get the latest version of Xcode and OpenSpades source.
2016-12-25 23:59:03 +09:00
2. Get (pre-compiled) copies of libraries, and place them in `Sources/Externals`
* See the file `Sources/Externals/readme.txt` for details
4. Download [OS X release of OpenSpades ](https://github.com/yvt/openspades/releases ), show the package contents, and copy `libysrspades.dylib` to `Sources/Externals/lib` .
2017-01-06 04:01:10 +09:00
5. Download and extract the [Non-free pak ](https://github.com/yvt/openspades-paks/releases/download/r33/OpenSpadesDevPackage-r33.zip ). After that, copy `pak000-Nonfree.pak` and `font-unifont.pak` to `Resources/` .
2016-12-25 23:59:03 +09:00
6. Open `OpenSpades.xcodeproj` and build.
2014-04-07 01:04:56 +09:00
2016-11-15 17:20:14 +02:00
## Troubleshooting
For troubleshooting and common problems see [TROUBLESHOOTING ](TROUBLESHOOTING.md ).
2016-11-22 17:20:27 -02:00
## Licensing
2014-02-11 00:08:33 +09:00
Please see the file named LICENSE.