Jump to content
Sign in to follow this  
Dwarden

Take On Helicopters - Linux server beta 1.06.97220

Recommended Posts

ftp://downloads.bistudio.com/takeonhelicopters.com/update/toh-server-1.06.97220.tar.bz2

ftp://downloads.bistudio.com/takeonhelicopters.com/update/toh-server-1.06.97220.tar.bz2

CRC32: B7AC60B0

MD5: F0DFA307067C6F0BC7559FCD18EE6793

SHA-1: 99D3B6F42A9D0E58B17DF72559EFB8EB96DD5AB3

Note that it requires TOH data to be updated to version 1.06 first in order to run properly.

Warning: LD_LIBRARY_PATH to the JAVA JDK folder must be defined

example:

export LD_LIBRARY_PATH=/usr/java/jdk1.7.0/jre/lib/i386/client

Please provide us with feedback to this topic.

Take on Helicopters - Linux Standalone Server 1.06

===============================================================

Copyrigt © 2011 Bohemia Interactive Studio. All rights reserved.

For more information please visit

http://community.bistudio.com/wiki/ArmA:_Dedicated_Server

Installation instructions:

==========================

1. Following programs must have been installed on your Linux-box:

tar, gcc. Optional: md5sum (for setup integrity check)

1a. On some verions of Linux (this was reported for RedHat 9

and Gentoo linux 2.4.20) the NSCD deamon must be installed to

run TOH server successfully. Caching of DNS would be sufficient.

2. Copy the whole "Take on Helicopters" directory from Windows

to some Linux-directory (takeonh). DON'T DO ANY DATA CONVERSIONS

(even "dos2unix" translation of text files is not necessary).

Example: you can use PKZIP (WinZip, PowerArchiver, etc.) on

Windows and "unzip" on Linux.

Don't use upper case letters in the takeonh directory name

(/home/bob/takeonh will be good, /home/bob/TakeOnH

may cause some troubles).

takeonh directory should contain subdirectories "Addons", "Bin", etc.

3. Copy the "server-x.xx.tar.gz" (x.xx is version number) file into

the takeonh directory. Unpack and install it with commands:

takeonh$ tar -xjf server-x.xx.tar.bz2

takeonh$ ./install

Watch the messages - they will inform you whether your installation

is successful.

4. Dedicated server can be started in foreground:

takeonh$ ./server

Or in background:

takeonh$ nohup ./server > out.txt 2> err.txt &

[1] <pid>

5. Running server can be stopped by executing:

$ kill -s SIGINT <pid>

Where <pid> is process-id of mother server thread (printed out in

"nohup" command).

6. Take on Helicopters server has a feature: command-line parameter

"-pid=<pid_file>". It causes creation of <pid_file> with

PID of root TOH process. If IP port specified in "-port=<nn>"

parameter is busy (in usage), TOH will terminate immediately

and <pid_file> won't be written..

7. The "tohserver" script is provided for automatic server

start/restart/status query/etc. Please be sure to edit

CONFIGURATION PARAMETERS in lines 12 to 18 !

After this is done, install (hard-link?) the script into

"/etc/rc.d/init.d/tohserver" file. After that it can be managed

by "chkconfig" (see info/man).

previous thread about 1.05 beta linux :

Share this post


Link to post
Share on other sites

First of all, thanks for this beta!

However, I'm running into some dependency trouble when starting:

WATCHDOG (22233): [sat Sep 22 11:49:41 CEST 2012] Starting server (port 2302)...
/home/toh/server/server: /usr/lib32/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/toh/server/server)

Furthermore:

$ strings /usr/lib32/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH

This is on Debian Squeeze. I guess GLIBCXX_3.4.15 lives in the libstdc++6-4.6-dev package which AFAIK is only available in Testing (Wheezy). So how am I supposed to run this under Squeeze?

Share this post


Link to post
Share on other sites

Did you check the linux server threads for OA yet?

Share this post


Link to post
Share on other sites

Yes I did. In fact there is one other dude reporting the same error but no solution posted so far.

I'm currently trying to do a distro upgrade hoping that it will go smooth and solve that error...

Share this post


Link to post
Share on other sites

Okay, after upgrading to Wheezy the error is gone.

But there still appears to be a problem with Rearmed:

Include file home/toh/server/rearmed\mod.cpp not found.
Cannot include file /home/toh/server/rearmed\mod.cpp
Warning Message: Preprocessor failed on file /home/toh/server/rearmed\mod.cpp - error 1.

And yes, I made sure the file is there and can be accessed by the user. After this error nothing happens, the server just hangs and is neither reachable directly (via IP + Port) nor appears in the game browser. I used the following mod line:

-mod=@cba_toh;@cba_oa;@cba_a2;@cba;@a2;@a2oa;@a2oa_expansion;rearmed

If I start without Rearmed the error disappears and the server is reachable, although with tons of warnings of the type:

Warning Message: No entry 'config.bin/xxxx.
Warning Message: '/' is not a value

Also, loading of Hinds DLC is still not supported:

Data file too short '/home/toh/server/@hinds\addons\weapons_h_dlc1.pbo'. Expected 866899780 B, got 77608507 B

This makes running any missions that use Hinds content impossible (error message "Missing addons detected" in the server log). On the Windows DS this works without problem, even under Wine (I tried it on the same server using the same data).

Share this post


Link to post
Share on other sites

In you rearmed modline your missing the path to TKOH itself.

Try to remove the mod.cpp from Rearmed and other locations.

Can you upload the rpt/log from launching without Rearmed please.

Hinds would need an unencrypted (light) version to work with a dedicated server..

Share this post


Link to post
Share on other sites

As I recall (well this is what I have done with certain missions), just spawn any Hinds in, and the server will still run the mission, you cant have them placed in the editor, as it makes it Hinds dependant, but spawning them in later will make it Hinds compatible (Look at the newest version of operation seagul on the Madsin server)

Share this post


Link to post
Share on other sites

Thanks guys, you are both absolutely right!

Renaming rearmed/mod.cpp fixed the problem with the server hanging.

Hinds would need an unencrypted (light) version to work with a dedicated server..

Not true, as I said, it works perfectly with the Windows DS. Therefore this is only a limitation of the Linux version.... which sucks.

Regarding the DLC problem: I realized that all you need is to manually edit the mission.sqm to make sure no Hinds content is listed in the init of addOns[] and addOnsAuto[] to make any mission run on the server. However, people with no DLC installed will also be able to run it but they will probably experience errors and/or weird effects (invisible choppers and the such...)

Edited by daikan

Share this post


Link to post
Share on other sites

Yes, invisible Hinds does happen, we spawned a HIND and the guy couldn't see it, nor could he see us flying right behind him before shooting him down. But at least it prevents the player base being divided (although pilots do have to be even more careful and communitive in order for it to work, which is a good thing)

Share this post


Link to post
Share on other sites

Just a heads-up: If you're planning to use Rearmed content on a Linux server don't specify absolute paths for the addons (using non-registry-based config method as suggested in the Rearmed Wiki).

Instead use relative paths in the startup-script, i.e.:

OTHERPARAMS="-mod=@a2;@a2oa;@a2oa_expansion;.;rearmed"

It seems as if the server has trouble with forward slashes, even though the whole modline is put in double-quotes. In my case I created softlinks to the Arma2 / OA content inside the TOH directory itself. Of course, this assumes the start-script is located inside the TOH home directory.

Caused me a lot of headache as content wouldn't load properly...

Edited by daikan

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×