|
|
| (111 intermediate revisions by 26 users not shown) |
| Line 1: |
Line 1: |
| '''Fully updated for 0.76b1'''
| | =Linux/Unix Setup Guide= |
|
| |
|
| = Install =
| | {{#css: |
| | | table.glossy { |
| == Version ==
| | margin: 4px; padding:10px; |
| | | border: 1px solid rgba(0,0,0,0.5); |
| '''The guide is fully up to date with release 0.76b1.'''
| | border-radius: 10px 10px 10px 10px; |
| | | box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3); |
| To play online, you must have the same version as everyone else in the game.
| | text-align: center; |
| | |
| Most people should get the current release, version 0.76b1. There are usually
| |
| between 100 and 200 people online in the lobby, and if you want to play with
| |
| them, you need this.
| |
| | |
| '''Do not use older than current release version''', unless you really know what you are doing.
| |
| | |
| If you want to see the bleeding edge, you can checkout svn head of spring, but
| |
| it can not be used to play with people who have the release, so you are
| |
| practically limited to playing against nemo. This is mainly interesting for
| |
| people who want to contribute to the project, for testing, finding bugs and
| |
| fixing them, and implementing new features. Head can be seriously broken from
| |
| time to time, or not even compile.
| |
| | |
| == Packages ==
| |
| | |
| If there is a package for your distributions preferred package manager, it is
| |
| recommended to use it instead of compiling the program yourself from sources.
| |
| | |
| === http://www.springlobby.info/images/debian-small.png Debian Etch ===
| |
| | |
| This is not updated for 0.76b1. Somebody check if the install succeeds for the new release this way?
| |
| | |
| This is for version 0.75b2.
| |
| | |
| We need to use Yokozar's Ubuntu package, so we need some tricks.
| |
| | |
| The --build step will take about 15 minutes. Hopefully we have precompiled binaries for etch soon too.
| |
| | |
| <code><pre>
| |
| wget -q http://buildbot.no-ip.org/~yokozar/apt/387EE263.gpg -O- | \
| |
| sudo apt-key add -
| |
| | |
| wget http://buildbot.no-ip.org/~yokozar/apt/sources.list.d/gutsy.list \
| |
| -O /etc/apt/sources.list.d/springproject.list | |
| | |
| sudo apt-get update
| |
| sudo apt-get build-dep spring -y
| |
| sudo apt-get --build source spring -y
| |
| sudo dpkg -i spring_0.75~b2-1_i386.deb spring-data_0.75~b2-1_all.deb
| |
| </pre></code>
| |
| | |
| If you want to install SpringLobby also, follow the instructions in http://trac.springlobby.info/wiki/Install#Debian
| |
| | |
| Your paths are: Spring executable in <code>/usr/games/spring </code> and
| |
| read-only data in <code>/usr/share/games/spring</code>.
| |
| | |
| === http://www.springlobby.info/images/debian-small.png Debian Unstable ===
| |
| | |
| This is for version 0.76b1
| |
| | |
| Ubuntu instructions work for debian unstable as is at the moment.
| |
| Except two extra steps:
| |
| <code><pre>
| |
| wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -
| |
| | |
| echo "deb http://apt.wxwidgets.org/ etch-wx main" >> /etc/apt/sources.list
| |
| </pre></code>
| |
| The rest is right below.
| |
| | |
| === http://www.springlobby.info/images/ubuntu-small.png Ubuntu ===
| |
| | |
| This is for version 0.76b1.
| |
| | |
| We now have a maintained and up to date APT repository for Ubuntu 7.10 (Gutsy)
| |
| | |
| If you have some older version of ubuntu, you can easily upgrade to Gutsy with these instructions: http://www.ubuntu.com/getubuntu/upgrading
| |
| | |
| Do the following:
| |
| | |
| '''Those lines are long and split to fit on this page, you can copy-paste this to your terminal as is, as long as you copy all lines and not just one.'''
| |
| <code><pre>
| |
| wget -q http://buildbot.no-ip.org/~yokozar/apt/387EE263.gpg -O- | \
| |
| sudo apt-key add - | |
| | |
| sudo wget http://buildbot.no-ip.org/~yokozar/apt/sources.list.d/gutsy.list \
| |
| -O /etc/apt/sources.list.d/springproject.list | |
| | |
| sudo apt-get update
| |
| sudo apt-get install spring spring-lobby-springlobby spring-maps-default -y
| |
| </pre></code>
| |
| Also, if you want to download a few large maps you can do following:
| |
| | |
| <code>sudo apt-get install spring-maps-hunterw spring-maps-deltasiege spring-maps-smallsupreme spring-maps-teamplay</code>
| |
| | |
| If you own the original Total Annihilation and want to use mods that require the original TA content, you can do:
| |
| | |
| <code>sudo apt-get install spring-data-nonfree</code>
| |
| | |
| For configuring the lobbies, you can note that the package installs the Spring executable at <code>/usr/games/spring</code> and
| |
| read-only data in <code>/usr/share/games/spring</code>.
| |
| | |
| === http://www.springlobby.info/images/gentoo-small.png Gentoo ===
| |
| | |
| This is for version 0.76b1.
| |
| | |
| '''The location of the overlay will change as soon as we get this in official portage.'''
| |
| | |
| An overlay to use with layman is provided. If gentoo overlays and/or layman are new to you, [http://overlays.gentoo.org/ read about them], as they are an essential part of gentoo.
| |
| | |
| This example assumes you never used layman before. If it's not your first time, you hopefully know what to do.
| |
| | |
| <code><pre>
| |
| emerge layman
| |
| layman -f -a spring-unofficial \
| |
| -o http://svn.springlobby.info/trunk/gentoo/overlays.xml
| |
| echo "source /usr/portage/local/layman/make.conf" >> /etc/make.conf
| |
| echo "games-strategy/spring ~x86" >> /etc/portage/package.keywords
| |
| emerge spring
| |
| </pre></code>
| |
| | |
| Layman makes upgrading really easy too:
| |
| | |
| <code><pre>
| |
| layman --sync ALL
| |
| emerge spring
| |
| </pre></code>
| |
| | |
| Your paths are: Spring executable in <code>/usr/games/bin/spring</code> and
| |
| read-only data in <code>/usr/share/games/spring</code>.
| |
| | |
| == Build From Source ==
| |
| | |
| '''You might encounter sync errors in online play if you are not using the exact same version of the compiler and same compiler settings as used for prebuilt packages!'''
| |
| | |
| For 0.76b1 these are: TODO add them here.
| |
| | |
| If there is no package tailored for your distribution, you have to install from sources manually. Doing this for distributions where packages are available is not recommended.
| |
| | |
| === Get Source ===
| |
| | |
| You can either download the source as a 3.9MB tarball (recommended; v. 0.75b2) or get it from the subversion repository. Either way, the result is the same.
| |
| | |
| ==== Tarball ====
| |
| | |
| <code><pre>
| |
| cd /usr/local/src # or /var/tmp, or whatever
| |
| wget http://spring.clan-sy.com/dl/spring_0.76b1_src.tar.bz2
| |
| tar xjf spring_0.76b1_src.tar.bz2
| |
| cd spring_0.76b1
| |
| </pre></code>
| |
| | |
| '''NOTE: The .zip release is for windows only. Linux users have to get .bz2 like shown above.'''
| |
| | |
| ==== Subversion ====
| |
| | |
| <code><pre>
| |
| aptitude install subversion # if you are not on debian, figure it out
| |
| svn co https://spring.clan-sy.com/svn/spring/tags/spring_0.76b1 /usr/local/src/spring_0.76b1
| |
| cd /usr/local/src/spring_0.76b1
| |
| </pre></code>
| |
| | |
| === Dependencies ===
| |
| | |
| For Etch (debian 4.0 stable) and Sid (debian unstable), I've confirmed the
| |
| following to be the minimal set that is necessary to get. I have not tested
| |
| with any version of Ubuntu, but the line is probably almost identical if not
| |
| the same. Quilted tested with ubuntu fiesty fawn on july 28 2007 WORKS. Note
| |
| that Spring 0.75b2 depends on the boost libraries version 1.34.* and won't
| |
| work on lower versions. (updated libboost-serialization-dev, and libvorbis-dev dependencies for 0.76b1)
| |
| | |
| Also, on 64-bit be sure to build against devIl 1.6.8-rc2 or higher, 1.6.7 has a bug in the PNG loading code that causes issues.
| |
| | |
| <code><pre>
| |
| aptitude install scons build-essential zlib1g-dev libfreetype6-dev
| |
| aptitude install libsdl1.2-dev libopenal-dev libglew-dev libboost-dev
| |
| aptitude install libboost-thread-dev libboost-regex-dev libdevil-dev
| |
| aptitude install libboost-serialization-dev python2.5-dev zip
| |
| aptitude install sun-java6-jdk libvorbis-dev
| |
| </pre></code>
| |
| | |
| This has been tested to work with a clean install of gentoo 2007.0:
| |
| | |
| <code><pre>
| |
| emerge dev-util/scons \>=media-libs/freetype-2.0.0 \>=media-libs/libsdl-1.2.0
| |
| emerge media-libs/openal =dev-lang/python-2.4\* media-libs/glew dev-libs/boost
| |
| emerge media-libs/devil app-arch/zip media-libs/libogg
| |
| </pre></code>
| |
| | |
| Users of other distributions should be able to figure out the correct package
| |
| names from this. The scons configure will whine if you forget something, but it
| |
| does not check if you remembered to install zip, even though you still need it.
| |
| | |
| === Build And Install ===
| |
| | |
| The build will spew out warnings like the following, which you can safely ignore:
| |
| | |
| <code><pre>
| |
| warning: division by zero
| |
| warning: 'q' may be used uninitialized in this function
| |
| </pre></code>
| |
| | |
| Configure and build:
| |
| | |
| <code><pre>
| |
| scons configure
| |
| scons
| |
| </pre></code>
| |
| | |
| Install:
| |
| | |
| <code><pre>
| |
| scons install
| |
| mkdir -p /etc/spring
| |
| echo '$HOME/.spring' > /etc/spring/datadir
| |
| </pre></code>
| |
| | |
| Your paths are: Spring executable in <code>/usr/local/games/spring</code> and
| |
| read-only data in <code>/usr/local/share/games/spring</code>.
| |
| | |
| == Network ==
| |
| | |
| If you have a public ip and no firewall, then you don't need to do anything.
| |
| | |
| If you don't want to host any games, just join them, you shouldn't need to do anything.
| |
| | |
| If you have a firewall, to be able to host, you must enable incoming udp to port 8452. If you are behind a NAT, to be able to host you must either use nat traversal / hole punching feature in your lobby client, OR port forward that port from your public ip to your gaming machine.
| |
| | |
| = Finalizing installation =
| |
| | |
| Now all the things you needed to run as root have been done. Some stuff needs to be done by the user who is going to play spring.
| |
| | |
| I'm assuming bash here, but you can use anything you like to do it of course.
| |
| | |
| == Data Directories ==
| |
| | |
| Do this to create your per-user data directories. You will be downloading maps and mods etc to these dirs later.
| |
| | |
| <code><pre>
| |
| mkdir -p ~/.spring/{base,maps,mods}
| |
| </pre></code>
| |
| | |
| If the above did not work for you, then you can try:
| |
| | |
| <code><pre>
| |
| mkdir ~/.spring ~/.spring/base ~/.spring/maps ~/.spring/mods
| |
| </pre></code>
| |
| | |
| == Maps ==
| |
| | |
| You need at least one map to succesfully run spring.
| |
| | |
| Go to [http://www.unknown-files.net/spring/category/13/Maps/ Unknown Files, Map Section] and download at least one map. Save it under ~/.spring/maps/ without unpacking the file in any way.
| |
| | |
| Hint: If you know the map name you want, there is a Quick Search in the top right corner of the page. Just write a part of the name, like one word, and you'll easily find what you were looking for.
| |
| | |
| == Mods ==
| |
| | |
| You need at least one mod to successfully run spring.
| |
| | |
| Go to [http://www.unknown-files.net/spring/category/14/Mods/ Unknown Files, Mod Section] and download at least one mod. Save it under ~/.spring/mods/ without unpacking the file in any way.
| |
| | |
| Hint: If you know the mod name you want, there is a Quick Search in the top right corner of the page. Just write a part of the name, like one word, and you'll easily find what you were looking for.
| |
| | |
| If you want to view unit stats of mods, [http://modinfo.unknown-files.net/modit/modit.php this] is the site for you.
| |
| | |
| == OTA Content ==
| |
| | |
| If you want to play mods based on Total Annihilation, for example XTA, AA, BA, then you have to do the following:
| |
| | |
| <code><pre>
| |
| wget http://ipxserver.dyndns.org/games/spring/mods/xta/base-ota-content.zip
| |
| unzip -d ~/.spring/base base-ota-content.zip
| |
| </pre></code>
| |
| | |
| Note that you need to own a copy of Total Annihilation, to download this file legally.
| |
| | |
| Mods that do not require this file are at least NanoBlobs, TODO list other mods that don't need it.
| |
| | |
| == Settings ==
| |
| | |
| Defaults should be usable, so you can ignore this until you want to maximize your eye candy or fps :)
| |
| | |
| When you run spring the first time, it creates ~/.springrc which contains all the settings. It is a simple text file with name=value lines, most of which are pretty obvious and can be edited by hand.
| |
| | |
| If you want a tool for editing the file, you can use [http://trac.springlobby.info/wiki/SpringSettings SpringSettings] ([http://springlobby.info SpringLobby] has this integrated).
| |
| | |
| === Dual Head ===
| |
| | |
| Automatic: if you are using [http://trac.springlobby.info/wiki/SpringSettings SpringSettings] you can select a dual screen resolution in simple mode and the rest is done automatically.
| |
| | |
| Manual: to make Dual Monitors work add/change these settings in your .springrc file.
| |
| "DualScreenMiniMapOnLeft=1,
| |
| DualScreenMode=1,
| |
| XResolution=2560,
| |
| YResolution=1024"
| |
| | |
| Make sure to use your own resolution for the X,Y resolutions. For example: you have two monitors configured for 1280x1024, the X,Y is 2560x1024.
| |
| | |
| Save then restart Spring.
| |
| | |
| == LuaUI ==
| |
| | |
| Spring UI is scriptable with Lua. This is called LuaUI, and it is not enabled per default.
| |
| | |
| Replace LuaUI=0 with LuaUI=1 in your ~/.springrc to use LuaUI.
| |
| | |
| To install some LuaUI scripts, start by copying LuaUI folder from you read-only data directory to your read-write data directory.
| |
| | |
| <code><pre>
| |
| rm -r ~/.spring/LuaUI
| |
| cp -r /usr/share/games/spring/LuaUI ~/.spring/LuaUI
| |
| </pre></code>
| |
| | |
| Then go find the LuaUI scripts you need from [http://spring.unknown-files.net/category/19/Lua_Scripts/ Unknown Files LuaUI Section]. All LuaUI scripts are released there, so if you make good ones yourself, make sure to upload them.
| |
| | |
| The scripts can come in any setup, so prepare to decompress them if they are compressed. They might have a whole directory structure, and they should have their own instructions on how to install them. Check which directory you need to extract them to. Most likely it is ~/.spring/LuaUI but it might be a directory inside this directory too for some script.
| |
| | |
| Once you have copied the script into place, when you start spring next time, you can press F11 to enable/disable anything from your list of installed LuaUI scripts. If your new script is not there, you copied it wrong.
| |
| | |
| == Lobby Client ==
| |
| | |
| To setup online games, you need a lobby client. There are several options to choose from.
| |
| | |
| You can also use lobby client to setup single player matches against the AI. TODO more information about setting up tasclient to play against AI.
| |
| | |
| Recommended lobby client for linux is either SpringLobby or AFLobby. You can use them in windows and mac too.
| |
| | |
| === Omni ===
| |
| | |
| This project has been abandoned, and you should not use it.
| |
| | |
| === UnityLobby ===
| |
| | |
| UnityLobby has been abandoned since april 2007, and you should not use it.
| |
| | |
| === [http://springlobby.info SpringLobby] ===
| |
| | |
| SpringLobby is for (at least) Windows, Linux and Mac. It's now in a usable state and has a feature set close to that of TASClient for windows. Try it out! Bug reports and feature requests are very much welcome.
| |
| | |
| Visit http://springlobby.info for all things SpringLobby.
| |
| | |
| === AFLobby ===
| |
| | |
| This project is very promising, and is usable for online multi player. Its the oldest lobby still actively maintained.
| |
| | |
| Official webpage for the project is http://www.darkstars.co.uk which should always have the latest release for download.
| |
| | |
| === TASClient ===
| |
| | |
| I used to recommend wine+TASClient solution before, but now you should try SpringLobby or AFLobby first, before you go this route.
| |
| | |
| Certain newish version of wine fails with tasclient, TODO can't remember which one. It should be fixed in the very latest version of wine.
| |
| | |
| This is a windows program, but it works just fine under wine in linux, and can be used together with native linux spring. I used it myself before moving to SpringLobby.
| |
| | |
| The only two downsides in using this are that you have to use wine (which should not be a big problem) and your rank won't increase as long as you use it (also because of win-linux binary interaction).
| |
| | |
| TODO there is a way to make it support rank increases too, using trepans cool proxy, add info.
| |
| | |
| Download the installer of Spring for Windows, and run it in wine:
| |
| | |
| <code><pre>
| |
| wget http://spring.clan-sy.com/dl/spring_0.76b1.exe
| |
| wine spring_0.76b1.exe
| |
| </pre></code>
| |
| | |
| No configuration of wine should be needed, if your distribution is sane.
| |
| | |
| Complete the install, and let it install to the default location, which is Program Files\Spring.
| |
| | |
| Assuming you completed the earlier step of creating the data directories, now we need to link the windows and linux data together:
| |
| | |
| <code><pre>
| |
| WINESPRING=~/.wine/drive_c/Program\ Files/Spring
| |
| NATIVE=~/.spring
| |
| | |
| touch "${WINESPRING}/script.txt"
| |
| ln -s "${WINESPRING}/script.txt" "${NATIVE}/script.txt"
| |
| | |
| rm -r "${WINESPRING}/maps"
| |
| ln -s "${NATIVE}/maps" "${WINESPRING}/maps"
| |
| | |
| rm -r "${WINESPRING}/mods"
| |
| ln -s "${NATIVE}/mods" "${WINESPRING}/mods"
| |
| | |
| rm -r "${WINESPRING}/base"
| |
| ln -s "${NATIVE}/base" "${WINESPRING}/base"
| |
| | |
| rm -r "${WINESPRING}/demos"
| |
| ln -s "${NATIVE}/demos" "${WINESPRING}/demos"
| |
| </pre></code>
| |
| | |
| For the windows-TASClient to be able to launch native linux spring, we need a wrapper exe in between them. Source code for wrapper exe is:
| |
| | |
| <code><pre>
| |
| #include <windows.h>
| |
| #include <stdio.h>
| |
| #include <tchar.h>
| |
| | |
| #define NATIVE_SPRING_LOCATION TEXT("/usr/games/spring")
| |
| #define SPRING_VERSION_REPLY "Spring 0.76b1"
| |
| | |
| int main (int argc, char **argv)
| |
| {
| |
| if (argc > 1 && !strcmp(argv[1], "/V"))
| |
| {
| |
| puts(SPRING_VERSION_REPLY);
| |
| return 0;
| |
| } | | } |
| | /*table.glossy:hover { |
| | background: rgba(160,160,220,0.4); |
| | }*/ |
| | }} |
|
| |
|
| STARTUPINFO si;
| |
| ZeroMemory( &si, sizeof(si) );
| |
| si.cb = sizeof(si);
| |
|
| |
| PROCESS_INFORMATION pi;
| |
| ZeroMemory( &pi, sizeof(pi) );
| |
|
| |
| // Start the child process.
| |
| if (!CreateProcess(
| |
| _tcsdup(NATIVE_SPRING_LOCATION), // No module name (use command line)
| |
| GetCommandLine(), // Command line
| |
| NULL, // Process handle not inheritable
| |
| NULL, // Thread handle not inheritable
| |
| FALSE, // Set handle inheritance to FALSE
| |
| 0, // No creation flags
| |
| NULL, // Use parent's environment block
| |
| NULL, // Use parent's starting directory
| |
| &si, // Pointer to STARTUPINFO structure
| |
| &pi)) // Pointer to PROCESS_INFORMATION structure
| |
| {
| |
| printf( "CreateProcess failed (%d).\n", GetLastError() );
| |
| return 1;
| |
| }
| |
|
| |
| // Wait until child process exits. Wine actually does not know how to wait
| |
| // for native linux process, so this will return instantly and your gametime
| |
| // counter does not increase so you don't get any rank.
| |
| WaitForSingleObject( pi.hProcess, INFINITE );
| |
|
| |
| // Close process and thread handles.
| |
| CloseHandle( pi.hProcess );
| |
| CloseHandle( pi.hThread );
| |
|
| |
| return 0;
| |
| }
| |
| </pre></code>
| |
|
| |
| You might need to modify the define-lines in the beginning to match your location and version. Remember, the version reply must be exactly right, or your game just breaks totally in multiplayer or you can't even login to lobby server.
| |
|
| |
| Save this code to spring.cc for example, and then we need to install a windows-crosscompiler and compile a windows binary from it inside our linux box like this:
| |
|
| |
| <code><pre>
| |
| aptitude install mingw32
| |
| i586-mingw32msvc-g++ spring.cc -o ~/.wine/drive_c/Program\ Files/Spring/spring.exe
| |
| </pre></code>
| |
|
| |
| This assumed debian for installing the crosscompiler, but mingw32 is probably simple to install on other distributions as well.
| |
|
| |
| TODO should provide binary packages for this launcher, as all people don't have the possibility to set up cross compiler.
| |
|
| |
| Then you should make a script for launching TASClient. The script can be named tasclient for example, and just put it somewhere in your path and make it executable. The script code is:
| |
|
| |
| <code><pre>
| |
| #!/usr/bin/env sh
| |
| cd ~/.wine/drive_c/Program\ Files/Spring
| |
| wine TASClient.exe
| |
| </pre></code>
| |
|
| |
| Now you should be able to type tasclient on the command line, and the lobby appears. '''This cd operation is necessary. If your working directory is not the same as TASClient.exe's location, it will just give access violations to you.'''
| |
|
| |
| Note that every time when you have added new maps, the lobby client caches them and this will take some time, or a long time if you downloaded many maps since last time. Just wait patiently.
| |
|
| |
| Then you should register an account and login with it, and you should be ready to join an online multiplayer game from the list that appears.
| |
|
| |
| It's likely that you don't have the correct map or mod at this point, so just get them and join the game. You don't need to restart your lobby client after downloading the files.
| |
|
| |
| It's recommended that you spectate a couple of high rank games first, to get some idea of how the game should be played. Some hosts don't allow spectators, but most do.
| |
|
| |
| = Troubleshooting =
| |
|
| |
| == Ingame ==
| |
|
| |
| === LuaUI Crash Ingame ===
| |
|
| |
| LuaUI can crash during game, because some lua script you use has a bug. 0.75 should be resistant to this problem, but 0.74b3 is not. After crash, you won't see the bottom left tooltip box and top right resource bar anymore. Fear not, help is near:
| |
|
| |
| <code><pre>
| |
| /resbar 1
| |
| /tooltip 1
| |
| </pre></code>
| |
|
| |
| These might not be necessary in 0.75 anymore at all.
| |
|
| |
| Also, you won't be able to change the build menu page with mouse anymore, but keys , and . do the trick.
| |
|
| |
| === Mouse is slow in fullscreen mode ===
| |
|
| |
| Run:
| |
| <code><pre>
| |
| echo 'export SDL_MOUSE_RELATIVE=0' >> ~/.bash_profile
| |
| </pre></code>
| |
| And log out and log in again.
| |
|
| |
| The mouse should now be as fast as in windowed mode.
| |
|
| |
| === Rotating Buildings Ingame ===
| |
|
| |
| You can rotate a building before you give the build order, but the keys that do this don't work in linux by default for some users. Issue the following commands in the beginning of the game:
| |
|
| |
| <code><pre>
| |
| /bind keycodex buildfacing inc
| |
| /bind keycodey buildfacing dec
| |
| </pre></code>
| |
|
| |
| Keycodex and keycodey above are just placeholders. What you want to write depends on which key you want to use. To see what keycodes any keys have, do:
| |
|
| |
| <code><pre>
| |
| /keydebug yes
| |
| </pre></code>
| |
|
| |
| And then hit the keys you want to use, and spring prints the keycodes in the message buffer.
| |
|
| |
| TODO: add information on how to save the settings so that they work the next time you start spring.
| |
|
| |
| === Map is White ===
| |
|
| |
| If the whole map is only shades of white and grey, there is a problem with your display driver. Maybe your gpu is very old and does not support some needed opengl feature. For example I had this problem with matrox g550 but not with some very old geforce.
| |
|
| |
| == Startup ==
| |
|
| |
| === Missing Default Cursor ===
| |
|
| |
| This or any similar error of not being able to find a specific file are usually because the mod you are using needs ota content, download & install as explained [[SetupGuide#OTA_Content|earlier in this document]].
| |
|
| |
| === sounds/button9.wav "cant find wav file" ===
| |
|
| |
| Same problem as above.
| |
|
| |
| === Couldnt find matching GLX visual ===
| |
|
| |
| Reduce anti aliasing.
| |
|
| |
| === GL_ARB_texture_compression not found ===
| |
|
| |
| This can be an issue with your gpu drivers. The drivers you are using do not support a feature that is required to run spring. You might have better luck with the closed source official drivers of nvidia or amd cards. If your gpu itself is really old, this might not help.
| |
|
| |
| If you use the fglrx ati-graphics driver and you are getting this error there might be a chance that still spring work (I use this with ubuntu gusty).
| |
| At first we must check that fglrx is installed correctly:
| |
|
| |
| <code><pre>
| |
| ~$ fglrxinfo
| |
| display: :0.0 screen: 0
| |
| OpenGL vendor string: ATI Technologies Inc.
| |
| OpenGL renderer string: ATI Mobility Radeon X1400
| |
| OpenGL version string: 2.0.6747 (8.40.4)
| |
| </pre></code>
| |
|
| |
| Then lets check the glx-extention.
| |
|
| |
| <code><pre>
| |
| ~$ glxinfo | grep direct
| |
| Xlib: extension "XFree86-DRI" missing on display ":1.0".
| |
| direct rendering: No
| |
| </pre></code>
| |
|
| |
| If you get this message, notice that glxinfo releates to display ':1' and fglrxinfo to display ':0'!! Lets check the glx-extention on display :0 now.
| |
|
| |
| <code><pre>
| |
| ~$ DISPLAY=:0 glxinfo | grep direct
| |
| direct rendering: Yes
| |
| </pre></code>
| |
|
| |
| This message mean that you can start spring by typing (in a terminal)
| |
|
| |
| <code><pre>
| |
| ~$ DISPLAY=:0 spring
| |
| </pre></code>
| |
|
| |
| If you use the TASclient with wine and the native linux spring. Start the whole TASclient-start-script by typing.
| |
|
| |
| <code><pre>
| |
| DISPLAY=:0 TASCLIENT-start-script
| |
| </pre></code>
| |
|
| |
| But Notice under circumstances is no windowmanager running on screen :0! This means there are NO windowframes at the TASClient window! You can't move it or close it by clicking the closebutton (unless you click at the close button on the terminal-window in witch you startet TAS). You can although close TAS with the keys ALT-F4
| |
|
| |
| === OpenAL Segfault ===
| |
|
| |
| If spring crashes with this output:
| |
|
| |
| <code><pre>
| |
| OpenAL: ALC_EXT_capture AL_EXT_capture AL_EXT_vorbis AL_EXT_MP3
| |
| AL_LOKI_quadriphonic AL_LOKI_play_position AL_LOKI_WAVE_format
| |
| AL_LOKI_IMA_ADPCM_format AL_LOKI_buffer_data_callback ALC_LOKI_audio_channel
| |
| Segmentation fault (core dumped)
| |
| </pre></code>
| |
|
| |
| Look into this thread on the forums for a fix: http://spring.clan-sy.com/phpbb/viewtopic.php?f=20&t=12568
| |
|
| |
| Then bug nemo in #taspring to finish this troubleshooting entry. He knows how to fix it.
| |
|
| |
| This is mod-related, ie. it only happens on some mods. Please list here the mod versions that give this error for you.
| |
|
| |
| - Star Wars mod, unknown version, by user report
| |
|
| |
| The problematic mod contains a sound file that crashes openal. You can try to unzip the mod file that crashed for you, and play each sound file. Please report any sound files that fail to play right, just list them here.
| |
|
| |
| - unknown file
| |
|
| |
| == Compiletime ==
| |
|
| |
| === make_gamedata_arch.sh not found ===
| |
|
| |
| The .zip you downloaded is for windows, you must download a .bz2, instructions [[SetupGuide#Downloading_A_Tarball|earlier in this document]].
| |
|
| |
| === invalid use of ILvoid ===
| |
|
| |
| During compiling, if you get a lot of the following errors:
| |
|
| |
| <code><pre>
| |
| /usr/include/IL/il.h:497: error: '<anonymous>' has incomplete type
| |
| /usr/include/IL/il.h:497: error: invalid use of 'ILvoid'
| |
| </pre></code>
| |
|
| |
| This happens because the version of libdevil-dev you have installed is not compatible with gcc version 4.2 and newer.
| |
|
| |
| You should upgrade your libdevil-dev to fix this issue. However, in some distributions (at least gentoo), the fixed package has the SAME version number as the older unfixed package, so you might actually need to remove your current libdevil-dev package completely and reinstall it.
| |
|
| |
| TODO: add critical version numbers of libdevil.
| |
|
| |
| == Network Setup ==
| |
|
| |
| Usually you don't need to do any network setup whatsoever, because the lobbies take care of nat traversal with firewall hole punching, but if you need to know the topology, it goes like this:
| |
|
| |
| Host needs to enable incoming udp to port 8452, and outgoing replies to those.
| |
| Non-host players need to enable outgoing udp, and incoming replies to those.
| |
| So basically only non-host players initiate "connections", and only the server listens on a well-known port.
| |
|
| |
| == If You Still Have Problems ==
| |
|
| |
| Join to #taspring on Freenode and tell me (semi_) that you have problems with installing, and I'll try to improve this guide to solve your problem, if I have time.
| |
|
| |
| However, generic linux problems not really related to installing this should be asked elsewhere.
| |
|
| |
| Prepare to tell me your distribution, which installation method you used, and what exactly is the error. Don't ask if I'm here or not, just state your problem there and I'll look into it when I come back.
| |
|
| |
| Other common problems and solutions coming soon.
| |
|
| |
| == IRC ==
| |
|
| |
| # #taspring @ FreeNode
| |
| # #sy @ QuakeNet
| |
|
| |
| == Asking For Help ==
| |
|
| |
| Ok so you need human help. This is how '''NOT''' to do it:
| |
|
| |
| <code><pre>
| |
| 15:54 -!- **** [n=****@*] has joined #taspring
| |
| 15:54 < ****> Hi, i have a problem with compiling spring on debian
| |
| 15:54 < ****> can anyone help me?
| |
| 15:57 -!- **** [n=****@*] has quit [Client Quit]
| |
| </pre></code>
| |
|
| |
| Don't ask to ask, instead go straight to business by stating the exact problem you have, and giving all necessary information. What you were trying to achieve, how did you try to do it, what happened and what did you expect to happen.
| |
|
| |
| Then WAIT for someone to notice you.
| |
|
| |
| == Configure Options ==
| |
|
| |
| This might not be up to date for 0.76b1.
| |
|
| |
| If you want to see the configure options, because of a bug in the buildsystem you have to have spring configured first. But if configure fails, you are out of luck. So I have listed the options here:
| |
|
| |
| <code><pre>
| |
| $ scons --help
| |
| scons: Reading SConscript files ...
| |
| make: Nothing to be done for `all'.
| |
| Succes building streflop!
| |
| Updating bitmaps.sdz
| |
| Updating springcontent.sdz
| |
| scons: done reading SConscript files.
| |
|
| |
| platform: Set to linux, freebsd or windows
| |
| default: None
| |
| actual: linux
| |
|
| |
| debug: Set to yes to produce a binary with debug information
| |
| default: 0
| |
| actual: 0
| |
|
| |
| syncdebug: Set to yes to enable the sync debugger
| |
| default: False
| |
| actual: False
| |
|
| |
| optimize: Enable processor optimizations during compilation
| |
| default: 1
| |
| actual: 2
| |
|
| |
| profile: Set to yes to produce a binary with profiling information
| |
| default: False
| |
| actual: False
| |
|
| |
| cpppath: Set path to extra header files
| |
| default: []
| |
| actual:
| |
|
| |
| libpath: Set path to extra libraries
| |
| default: []
| |
| actual:
| |
|
| |
| fpmath: Set to 387 or SSE on i386 and AMD64 architectures
| |
| default: 387
| |
| actual: 387
| |
|
| |
| prefix: Install prefix used at runtime
| |
| default: /usr/local
| |
| actual: /usr/local
| |
|
| |
|
| installprefix: Install prefix used for installion
| |
| default: /usr/local
| |
| actual: /usr/local
| |
|
| |
|
| datadir: Data directory (relative to prefix)
| | {| style="width:70%; margin-left:15%; margin-right:15%;" | |
| default: share/games/spring
| |
| actual: share/games/spring
| |
|
| |
|
| bindir: Directory for executables (rel. to prefix)
| | |{{Template:LinuxSetupGuideButton|name=From Source|link=Build_from_source|icon=Git.png}} |
| default: games
| |
| actual: games
| |
|
| |
|
| libdir: Directory for AI plugin modules (rel. to prefix)
| | |{{Template:LinuxSetupGuideButton|name=Snaps|link=Snaps_install }} |
| default: lib/spring
| |
| actual: lib/spring
| |
|
| |
|
| strip: Discard symbols from the executable
| | |{{Template:LinuxSetupGuideButton|name=Ubuntu|link=Ubuntu_install|icon=Distributions-ubuntu.png}} |
| (only when neither debugging nor profiling)
| |
| default: True
| |
| actual: True
| |
|
| |
|
| disable_avi: Set to no to turn on avi support
| | |{{Template:LinuxSetupGuideButton|name=Gentoo|link=Gentoo_install|icon=Distributions-gentoo.png}} |
| default: False on windows, True otherwise
| |
| actual: True
| |
|
| |
|
| use_tcmalloc: Use tcmalloc from goog-perftools for memory allocation
| | |- |
| default: False
| |
| actual: False
| |
|
| |
|
| use_mmgr: Use memory manager
| | |{{Template:LinuxSetupGuideButton|name=Slackware|link=Slackware12_install|icon=Distributions-slackware.png}} |
| default: False
| |
| actual: False
| |
|
| |
|
| cachedir: Cache directory (see scons manual)
| | |{{Template:LinuxSetupGuideButton|name=Debian|link=Debian_install|icon=Distributions-debian.png}} |
| default: None
| |
| actual:
| |
|
| |
|
| Use scons -H for help about command-line options.
| | |{{Template:LinuxSetupGuideButton|name=Mandriva|link=Mandriva_install|icon=Distributions-mandriva_linux.png}} |
| </pre></code>
| |
|
| |
|
| = Tips =
| | |- |
|
| |
|
| '''This section contains just some old crap I didn't write, and shouldn't be necessary.'''
| | |{{Template:LinuxSetupGuideButton|name=openSUSE|link=openSUSE_install|icon=Distributions-opensuse_linux.png}} |
|
| |
|
| * If spring hangs/crashes while in full screen mode, you can press ctrl+alt+backspace to restart X, so no need for a reboot.
| | |{{Template:LinuxSetupGuideButton|name=Fedora|extlink=http://projects.springlobby.info/projects/springlobby/wiki/Install#Fedora-10|icon=Distributions-fedora.png}} |
|
| |
|
| * Spring uses OpenAL for sound, Config your sound output i.e esd / arts / oss / alsa by editing /etc/openalrc or ~/.openalrc, example: ("'(" is not a typo)<br><br><code>(define devices '(alsa))<br>(define speaker-num 2)<br><br>(define alsa-out-device "hw:0,0")<br>(define alsa-in-device "hw:0,0")</code><br><br>Adventurous people with an emu10k1 based card (sblive) can try the accelerated openal version. http://www.lost.org.uk/openal.html , don't submit audiobugs if you do.
| | |{{Template:LinuxSetupGuideButton|name=FreeBSD|link=FreeBSD_install|icon=Distributions-freebsd.png}} |
| | |} |
|
| |
|
| * If you really can't figure out how to get spring compiled, or you think there's a bug in the code or the buildsystem...
| |
| :* Just poke any developer on IRC:
| |
| ::* channel <code>#taspring</code> on [http://freenode.net/ FreeNode]
| |
| ::* or channel <code>#sy</code> on [http://www.quakenet.org/ QuakeNet]
| |
| :* Post it on [http://taspring.clan-sy.com/phpbb/ the forum]
| |
| :* or file a bug in our [http://taspring.clan-sy.com/mantis/ bug tracking system].
| |
|
| |
|
| ''' [[Main_Page|<- Back to Main page]]'''
| | <span style="float:right">[[Linux:Packaging | Package Maintainers]]</span> |
|
| |
|
| [[Category:Linux Port]][[Category:Playing]] | | [[Category:Linux]] |