• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

OpenSpades.xcodeproj/H04-Jan-2019-2,5212,507

Resources/H03-May-2022-50,85041,451

Sources/H03-May-2022-188,339134,969

XSpades/H04-Jan-2019-5350

cmake/H04-Jan-2019-354320

snap/H04-Jan-2019-139103

.clang-formatH A D04-Jan-2019407 2117

.editorconfigH A D04-Jan-2019263 1814

.gitignoreH A D04-Jan-20191.4 KiB126103

.travis.ymlH A D04-Jan-2019866 3224

AUTHORSH A D04-Jan-20191 KiB3630

LICENSEH A D04-Jan-201934.3 KiB675553

OpenSpades.hH A D04-Jan-2019475 187

OpenSpades.h.inH A D04-Jan-20191.1 KiB2618

OpenSpades.rc.inH A D04-Jan-20191.1 KiB3530

README.mdH A D04-Jan-20196.2 KiB12090

TROUBLESHOOTING.mdH A D04-Jan-2019779 2311

crowdin-download.shH A D04-Jan-2019855 3726

crowdin.ymlH A D04-Jan-20192.9 KiB139119

update-pot.shH A D04-Jan-20191 KiB3020

README.md

1# 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) [![Crowdin](https://d322cqt584bo4o.cloudfront.net/openspades/localized.svg)](https://crowdin.com/project/openspades)
2
3
4![OpenSpades banner](https://openspadesmedia.yvt.jp/brand/OpenSpadesBanner.jpg)
5
6[Official website](https://openspades.yvt.jp) — [Download](https://github.com/yvt/openspades/releases) — [Community](https://buildandshoot.com) — [Trello board](https://trello.com/b/3rfpvODj/openspades-roadmap)
7
8## What is it?
9OpenSpades is a compatible client of Ace of Spades 0.75.
10
11* Can connect to a vanilla/pyspades/pysnip server.
12* Uses OpenGL/AL for better experience.
13* Open source, and cross platform.
14
15## How to Build/Install?
16**Before you start:** In case you're having issues to build OpenSpades, it may be because this README file is outdated, if so:
17
18 1. See the [Building Guide](https://github.com/yvt/openspades/wiki/Building), which may be up to date
19 2. Or [open an issue](https://github.com/yvt/openspades/issues) if the problem persists
20
21### On Linux
22#### Snap package
23On [snap enabled](https://snapcraft.io/docs/core/install) systems, the latest pre-built stable release of OpenSpades can be installed with:
24
25```bash
26sudo snap install openspades
27```
28
29Once installed, you'll be able to launch OpenSpades from inside the desktop menu or from your terminal with the `openspades` command.
30
31#### Building and installing from source
32GCC 4.9 / Clang 3.2 or later is recommended because OpenSpades relies on C++11 features heavily.
33
341. Install dependencies:
35
36   *On Debian-derived distributions*:
37   ```
38   sudo apt-get install pkg-config libglew-dev libcurl3-openssl-dev libsdl2-dev \
39     libsdl2-image-dev libalut-dev xdg-utils libfreetype6-dev libopus-dev \
40     libopusfile-dev cmake imagemagick
41   ```
42   (because of a bug in some distributions, you might also
43   have to install more packages by `sudo apt-get install libjpeg-dev libxinerama-dev libxft-dev`)
44
45   *On other distributions*:
46   Install corresponding packages from your repository (or compile from source).
47
482. Clone OpenSpades repository:
49
50   ```bash
51   git clone https://github.com/yvt/openspades.git && cd openspades
52   ```
53
543. Create directory `openspades.mk` in cloned/downloaded openspades repo and compile:
55
56   ```bash
57   mkdir openspades.mk
58   cd openspades.mk
59   cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo && make
60   ```
61
624. Install OpenSpades (optional but recommended):
63
64   `sudo make install`
65
66   **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.
67
685. Launch:
69
70   `openspades` (if installed) or `cd $REPO_DIRECTORY/openspades.mk; bin/OpenSpades` and enjoy
71
72
73### On Windows (with Visual Studio)
741. Get the required software if you haven't already:
75  * CMake 2.8+
76  * PowerShell 5.0
77    * Integrated with Windows 10.
78    * Older versions are not tested, but might work
79  * *Visual Studio 2017*
80    * VS2015 is also supported, but VS2017 is more recommended
81    * VS2013 is no longer supported, but might work
822. Grab the source code:
83  * Stable version: https://github.com/yvt/openspades/releases
84  * Latest development version (0.1.x): https://github.com/yvt/openspades/archive/master.zip
853. Extract or checkout the source
86  * All examples will assume `E:/Projects/openspades`, update paths in the examples to reflect yours
874. Get (pre-compiled) copies of glew, curl, sdl2 and zlib, and place them in `E:/Projects/openspades/Sources/Externals`
88  * 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
895. Run CMake:
90  * Source: `E:/Projects/openspades`
91  * Binaries: `E:/Projects/openspades/OpenSpades.msvc`
92  * Generator:
93    * For VS2017: `Visual Studio 15 (2017)` (not Win64!)
94    * For VS2015: `Visual Studio 14 (2015)` (not Win64!)
95
966. Open `E:/Projects/openspades/OpenSpades.msvc/OpenSpades.sln` in Visual Studio.
977. Build the solution.
98 * The recommended build configuration is `MinSizeRel` or `Release` if you're not an developer
99 * The default build output directory is `E:/projects/OpenSpades/OpenSpades.msvc/bin/BUILD_TYPE/`
1008. Copy all `.dll` files from `Source/Externals/lib` to the build output directory.
1019. 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:
102 * For OpenAL audio: `openal32.dll`
103 * For YSR audio: `YSRSpades.dll`, `libgcc_s_dw2-1.dll`, `libstdc++-6.dll`, `pthreadGC2.dll`
10410. Download the [Non-free pak](https://github.com/yvt/openspades-paks/releases/download/r33/OpenSpadesDevPackage-r33.zip), extract it, and copy `Nonfree/pak000-Nonfree.pak` 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.
10511. Copy `Resources/PackageInfo.json` to the `Resources` folder inside your build output directory.
106
107### On macOS (with Xcode)
1081. Get the latest version of Xcode and OpenSpades source.
1092. Get (pre-compiled) copies of libraries, and place them in `Sources/Externals`
110  * See the file `Sources/Externals/readme.txt` for details
1114. Download [macOS release of OpenSpades](https://github.com/yvt/openspades/releases), show the package contents, and copy `libysrspades.dylib` to `Sources/Externals/lib`.
1125. Download and extract the [Non-free pak](https://github.com/yvt/openspades-paks/releases/download/r33/OpenSpadesDevPackage-r33.zip). After that, copy `Nonfree/pak000-Nonfree.pak` and `font-unifont.pak` to `Resources/`.
1136. Open `OpenSpades.xcodeproj` and build.
114
115## Troubleshooting
116For troubleshooting and common problems see [TROUBLESHOOTING](TROUBLESHOOTING.md).
117
118## Licensing
119Please see the file named LICENSE.
120