2013-08-17 23:56:25 -07:00
openspades
2013-09-03 22:21:12 -04:00
====================================================================================================
2013-08-18 16:55:06 +09:00
2014-03-11 16:56:20 +09:00
[![Build Status ](https://travis-ci.org/yvt/openspades.png?branch=master )](https://travis-ci.org/yvt/openspades)
2013-08-18 16:55:06 +09:00
What is it?
2013-09-03 22:21:12 -04:00
----------------------------------------------------------------------------------------------------
2013-08-18 16:55:06 +09:00
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.
* Uses OpenGL/AL for better visuals.
* Open source, and cross platform.
Installation
2013-09-03 22:21:12 -04:00
----------------------------------------------------------------------------------------------------
2013-08-18 16:55:06 +09:00
### On Linux
2014-03-22 22:43:10 +09:00
GCC 4.8 / Clang 3.2 or later is recommended because OpenSpades relies on C++11 features heavily.
2014-03-03 19:27:28 +10:00
1. Install dependencies:
*On Debian-derived distributions* :
```sudo apt-get install pkg-config libfltk1.3-dev
2014-01-09 00:17:50 +01:00
libglew-dev libcurl3-openssl-dev``` (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).
2014-03-08 03:31:47 +10:00
2. Download & install SDL-2.0.2 from trunk
2014-03-03 19:27:28 +10:00
```
2014-03-08 03:31:47 +10:00
hg clone http://hg.libsdl.org/SDL
cd SDL/
2014-03-03 19:27:28 +10:00
./configure & & make & & sudo make install
2014-03-18 01:37:39 +10:00
cd ../
2014-03-03 19:27:28 +10:00
```
Additional dependencies may be required.
3. Download & install SDL2_image
```
wget https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz
tar xvf SDL2_image-2.0.0.tar.gz
cd SDL2_image-2.0.0
./configure & & make & & sudo make install
2014-03-18 01:37:39 +10:00
cd ../
2014-03-03 19:27:28 +10:00
```
Additional dependencies may be required.
2014-03-07 00:58:43 +09:00
4. Clone OpenSpades repository:
```git clone https://github.com/yvt/openspades.git && cd openspades` ``
5. Create directory `openspades.mk` in cloned/downloaded openspades repo and compile:
2014-03-03 19:27:28 +10:00
2014-01-09 19:52:05 +01:00
```mkdir openspades.mk && cd openspades.mk && cmake .. && make OpenSpades` ``
2014-03-03 19:27:28 +10:00
2014-03-07 00:58:43 +09:00
6. Install openspades:
2014-03-03 19:27:28 +10:00
```sudo make install` ``
**note** : the make install seems broken atm (it puts all files in /urs/local/bin)
2014-01-09 19:35:39 +01:00
some linux guru / expert (or really, just anyone that used linux more than once) should either fix the
2014-01-09 00:17:50 +01:00
cmake script, or explain to someone how the build should be installed (what files go where)
2014-03-03 19:27:28 +10:00
2014-03-07 00:58:43 +09:00
7. Get shared files:
2014-03-03 19:27:28 +10:00
* If you compiling certain release (0.0.10 for example):
Download windows binary of OpenSpades from
https://sites.google.com/a/yvt.jp/openspades/downloads, extract it, and copy the .pak files
inside Resources directory into `/usr/local/share/openspades/Resources` or
`~/.openspades/Resources`
* If you compiling straight from source (git clone):
See `Resources/PakLocation.txt` to find out where get latest shared files.
Download, extract, and place them into `/usr/local/share/openspades/Resources` or
`~/.openspades/Resources`
2014-03-07 00:58:43 +09:00
8. Launch:
2014-03-03 19:27:28 +10:00
`openspades` 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
### On Windows (with visual studio)
2014-03-22 22:43:10 +09:00
1. Get CMake, Visual Studio 2013 (Express), and the OpenSpades source.
2013-11-01 21:22:54 +01:00
Official: https://github.com/yvt/openspades
Unofficial: https://github.com/learn-more/openspades
2013-11-02 04:01:48 +01:00
2. Extract or checkout the source (all examples will assume ```E:/Projects/openspades` ``, update paths in the examples to reflect yours)
2014-01-09 00:17:50 +01:00
3. Get (pre-compiled) copies of fltk, glew, curl, sdl2 and zlib, and place them in ```E:/Projects/openspades/Sources/Externals` ``.
2013-11-02 04:01:48 +01:00
See the file ```E:/Projects/openspades/Sources/Externals/readme.txt` `` for details (and a pre-compiled set of libraries).
2013-11-01 21:22:54 +01:00
4. Run CMake, using the paths:
2013-11-02 04:01:48 +01:00
```Source: E:/Projects/openspades` ``
```Binaries: E:/Projects/openspades/OpenSpades.msvc` ``
For your convenience, create the directory: ```E:/Projects/openspades/OpenSpades.msvc/os.Resources` ``, extract the resources (.pak files) to this dir,
set ```OPENSPADES_RESDIR` `` to point to this directory. (Run CMake again, now when running debug builds openspades will also read resources from this dir)
5. Open ```E:/Projects/openspades/OpenSpades.msvc/OpenSpades.sln` `` in visual studio.
2013-11-01 21:22:54 +01:00
2013-08-18 16:55:06 +09:00
Licensing
2013-09-03 22:21:12 -04:00
----------------------------------------------------------------------------------------------------
2014-02-11 00:08:33 +09:00
Please see the file named LICENSE.
2013-08-18 16:58:10 +09:00
Note that other assets including sounds and models are not open source.