Installation guide: Multiplayer, Addons => Ubuntu 16.04 LTS

Here you may talk about Warzone's Gameplay, Strategy & Tactics
Jogi129
Greenhorn
Posts: 15
Joined: 06 Apr 2016, 15:46

Installation guide: Multiplayer, Addons => Ubuntu 16.04 LTS

Post by Jogi129 » 04 Feb 2018, 08:27

Hey folks,

I need guidance in reinstalling warzone 2100 - this time 3.1 - on Ubuntu 16.04 LTS. When I tried to enter multiplayer-mode, they told me, that I would need this version because the latest I had wasn't working with theirs. Having looked into the addons this made even more sense, as they almost all are dedicated to Version 3.1.

I removed warzone2100 completely from my computer and I would very much like to do this in one go now. As a noob when it comes to programming it was very frustrating when I first asked for help: I had played since several months and couldn't find the files anymore so when someone told me where I should extract some files I was lost. But not this time!

So here is what I need:

1. Installation guide for Warzone2100 3.1 on ubuntu 16.04 LTS
2. Installation guide for addons - especially those to fix bugs.

thanks for your help,

Kreeetz, Jogi

User avatar
Berg
Regular
Regular
Posts: 2025
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Berg » 04 Feb 2018, 10:00

look here for the guide to compile 3.1.5 http://developer.wz2100.net/wiki/Compil ... version=80
also you will need the source code found here https://sourceforge.net/projects/warzon ... ses/3.1.5/
Follow the guide

Regards Berg

Jogi129
Greenhorn
Posts: 15
Joined: 06 Apr 2016, 15:46

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Jogi129 » 04 Feb 2018, 14:27

Berg wrote:look here for the guide to compile 3.1.5 http://developer.wz2100.net/wiki/Compil ... version=80
ok, I copy-pasted the first line in my terminal. in the 2nd task it says: "Extract the downloaded file and enter the main folder"

which file? the sourcecode?

Forgon
Code contributor
Code contributor
Posts: 141
Joined: 07 Dec 2016, 22:23

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Forgon » 04 Feb 2018, 18:15

Instructions to follow:

0. To install all necessary dependencies, open a terminal and execute:

Code: Select all

sudo apt-get install --yes build-essential automake xz-utils g++ libqt4-dev libsdl-dev libtheora-dev libfribidi-dev libopenal-dev libvorbis-dev libxrandr-dev libfontconfig-dev wget cmake wkhtmltopdf libglew-dev libphysfs-dev
1. Download Warzone 2100 3.1.5 here.
2. Open a terminal and extract files from the archive you just downloaded:

Code: Select all

cd ~/Downloads
tar xvJf warzone2100-3.1.5.tar.xz
3. Open a terminal and compile Warzone 2100 3.1.5:

Code: Select all

cd ~/Downloads/warzone2100-3.1.5
./autogen.sh && ./configure --disable-debug CFLAGS="-O2 -gstabs -g -g3 -pipe" CXXFLAGS="-O2 -gstabs -g -g3 -pipe" && make
4. To launch the game, open a terminal and execute:

Code: Select all

~/Downloads/warzone2100-3.1.5/src/warzone2100

Jogi129
Greenhorn
Posts: 15
Joined: 06 Apr 2016, 15:46

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Jogi129 » 04 Feb 2018, 19:01

sweet :) thank you very much!!!

now about the addons:

for starters I'd like to have:

Art Revolution mod beta 1
Propulsion
Ultimate Scavenger AI
Contingency (Beta)

How's that working?

Forgon
Code contributor
Code contributor
Posts: 141
Joined: 07 Dec 2016, 22:23

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Forgon » 04 Feb 2018, 19:29

After you downloaded the mods in question, they should be placed in a subfolder of the 'mods' directory inside your configuration directory.

You can read more on this topic here.

Jogi129
Greenhorn
Posts: 15
Joined: 06 Apr 2016, 15:46

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Jogi129 » 04 Feb 2018, 20:06

Ok, now its getting complicated:

first on the options this "What is a "mod" and how do I install it?" gives me:

1."One is to put the mod .wz file into the mods/autoload folder inside your config folder. To remove the mod you would need to delete the file. You will not be able to join regular multiplayer games until you remove it! "

well, I had to search a bit until I found one of my many configs-folders:

1st home/Downloads/warzone2100-3.1.5/tools/map/configs (no mods/autoload folder)
2nd home/Downloads/warzone2100-3.1.5/tools/image/configs (no mods/autoload folder)
3rd home/Downloads/warzone2100-3.1.5/tests/configs (no mods/autoload folder)
4th home/Downloads/warzone2100-3.1.5/macosx/configs (no mods/autoload folder)

so there is that.


2nd option: "Another way is to put the mod into one of the following folders: mods/global for the mods that affect everything, mods/campaign for mods that only affect campaign, or mods/multiplay for mods that affect only skirmish or multiplayer games; mods from these folders are not auto-loaded, and you would need to specify them on the command line to make sure they are enabled. With this method you can create multiple desktop shortcuts for running Warzone 2100 with different mods."

now it doesn't say whether these folders are supposed to be already there or need to be created - where they are supposed to be remains a secret - for now I hope

then comes: "The location of the config folder depends on your operating system, see File Locations (Link) for more details."

When I follow the link, it tells me that in Linux my config-folder is supposed to be in:

" ~/.warzone2100-<version> (~ is /home/<username>) "

well, as you could see above "warzone2100-3.1.5" is not in "/home/<username>" but in "home/downloads"


so I'm lost.

Forgon
Code contributor
Code contributor
Posts: 141
Joined: 07 Dec 2016, 22:23

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Forgon » 04 Feb 2018, 21:05

Your config folder is supposed to be inside your home directory, but created inside your working directory if it cannot be created there. That failure may be a bug, and will thus have to be investigated by developers. The directory is not called 'configs' (unless you create such a folder and use its location as argument to '--config-directory'), but does contain the file 'config'.

Missing folders for mods currently need to be created by the user. This will change with the next release (see #4664).

Do this:

0. Create the 'autoload' and 'global' mod folders by opening a terminal and executing:

Code: Select all

mkdir -p ~/Downloads/.warzone2100-3.1.5/mods/{autoload,global}
1. Put all mods you want to start every time you launch Warzone2100 3.1.5 inside the 'autoload' folder.

2. Put all mods you want to start optionally inside the 'global' folder. To use these mods, open a terminal and execute:

Code: Select all

~/Downloads/warzone2100-3.1.5/src/warzone2100 --mod=<name of mod>
Note that <name of mod> is meant to be replaced with the literal filename for your mod, e.g. 'ultimatescavs-1-17-RC4.wz'. You can use the '--mod' option several times to enable multiple mods simultaneously.
Last edited by Forgon on 04 Feb 2018, 21:35, edited 2 times in total.

Jogi129
Greenhorn
Posts: 15
Joined: 06 Apr 2016, 15:46

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Jogi129 » 04 Feb 2018, 21:19

on 0.: which directory do I have to type in?

Jogi129
Greenhorn
Posts: 15
Joined: 06 Apr 2016, 15:46

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Jogi129 » 04 Feb 2018, 21:23

about "configs" that was all I could find which came closest to "config"

Forgon
Code contributor
Code contributor
Posts: 141
Joined: 07 Dec 2016, 22:23

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Forgon » 04 Feb 2018, 21:28

Jogi129 wrote:on 0.: which directory do I have to type in?
That does not matter, because the mkdir command I suggest uses absolute, not relative paths.
Jogi129 wrote:[...] Then I noticed, that in your line it is "warzone2100-master" not warzone2100-3.1.5. [...]
Bad mistake of mine, which is now corrected.
But since you corrected it yourself, it puzzles me that you nevertheless don't succeed.

What exact error messages did you get?
Last edited by Forgon on 04 Feb 2018, 21:31, edited 1 time in total.

Jogi129
Greenhorn
Posts: 15
Joined: 06 Apr 2016, 15:46

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Jogi129 » 04 Feb 2018, 21:29

the terminal tells me: "»/home/katapemba/Downloads/.warzone2100-3.1.5/mods/autoload“ cannot be created: file or directory not found

katapemba is my username

Forgon
Code contributor
Code contributor
Posts: 141
Joined: 07 Dec 2016, 22:23

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Forgon » 04 Feb 2018, 21:34

Jogi129 wrote:the terminal tells me: "»/home/katapemba/Downloads/.warzone2100-3.1.5/mods/autoload“ cannot be created: file or directory not found [...]
That is due to another mistake I made, which I apologize for. Instead of executing `mkdir [...]`, you should execute `mkdir -p [...]`.

Jogi129
Greenhorn
Posts: 15
Joined: 06 Apr 2016, 15:46

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Jogi129 » 04 Feb 2018, 21:39

this just happened:

cd ~/Downloads/.warzone2100-3.1.5
bash: cd: /home/katapemba/Downloads/.warzone2100-3.1.5: file or directory not found

and with:

mkdir -p ~/Downloads/.warzone2100-3.1.5/mods/{autoload,global}

nothing happened

Forgon
Code contributor
Code contributor
Posts: 141
Joined: 07 Dec 2016, 22:23

Re: Installation guide: Multiplayer, Addons => Ubuntu 16.04

Post by Forgon » 04 Feb 2018, 21:45

Jogi129 wrote:this just happened:

cd ~/Downloads/.warzone2100-3.1.5
bash: cd: /home/katapemba/Downloads/.warzone2100-3.1.5: file or directory not found

and with:

mkdir -p ~/Downloads/.warzone2100-3.1.5/mods/{autoload,global}

nothing happened
I thought your configuration directory was inside '~/Downloads' based on this previous statement of yours:
Jogi129 wrote:well, as you could see above "warzone2100-3.1.5" is not in "/home/<username>" but in "home/downloads"
Try:

Code: Select all

mkdir -p ~/.warzone2100-3.1.5/mods/{autoload,global}

Post Reply