If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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).

We would also be interested in learning your opinion on JRE distribution for Linux. For the Windows version of the various games we are including a re-distributable JRE, so players do not have to install any extra software manually. As a Linux user, do you want us to try to distribute a Linux JRE in some way as well, or do you prefer to handle it yourself as admin?

In OA DLC was not to be put on the server. Probably true for TKOH as well. The standard TKOH files should have everything the server needs.

Well, I made a MP mission that apparently requires DLC content to be on the server as well. Without it the mission won't load and the server logs an appropriate error message ("You cannot play this mission ... content has been deleted.hsim_characters_h_dlc1.")

The following are the addOns[]- and addOnsAuto[]-sections of my mission.sqm as generated by the mission editor where you can see that 2 DLC pbo's are required (marked red):Spoiler:

Also, I found out that my server crashes about 2-3 min into any mission. This is even without addons and also happens with the stock missions. Looks like a Java related problem (core is dumped and the following hs_err_pid*****.log is written):