Difference between revisions of "Server (UFO2000)"

From UFOpaedia
Jump to navigation Jump to search
 
(22 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
==The server connecting screen==
 
==The server connecting screen==
 
Pressing "connect to internet server" will take you to the server connection screen. In this screen you will see a login box with three lines:
 
Pressing "connect to internet server" will take you to the server connection screen. In this screen you will see a login box with three lines:
 +
 
[[Image:Serverconnect.jpg]]
 
[[Image:Serverconnect.jpg]]
  
==The Official server==
+
===Your player name for your account===
The first is the server location line.
+
In the second line »Login:« you have to enter your desired player name. In the picture above this is Mister Kill. A maximum of 16 characters is set for your player name. Player names are case sensitive. So it makes a difference, if you login as killah or Killah.
It should say: '''ufo2000.net:2000''' if you want to login to the official UFO2000 game server. All players should log into this server, if available.
 
 
 
===Error trying to connect===
 
If you receive this message:
 
[[Image:Failconnect.jpg]]
 
It may be so that the official server can't be reached currently. <del>There is a back-up server which you can play on.</del>
 
  
==Back-up Servers==
+
===The password for your player name account===
Change the first line of the login box to one of the following servers:
+
The third line is the password line. Enter your desired password here. '''BEWARE!''' There is '''NO WAY OF RETREIVING a lost password''' so write it down! Also be sure not to use any valuable passwords with this service, as they are only saved as a plain MD5-hash. Techniques such as [http://en.wikipedia.org/wiki/Salt_%28cryptography%29 salt] are not being used!
* <del>ufo2000.kostax.cz:2000</del>
 
* ufo2000.openxcom.com
 
* mobile-infanterie.gamersunitonline.net (will only be online on request for a shot period of time, contact: [mailto:7saturn@gmx.de 7saturn@gmx.de]
 
to play on the back-up server.
 
  
==Your player name for your account==
+
Player names are only protected by this password. For each player name there is also an elo-score, which is used to create a ranking. So essentially, it's in your own interest, to not give others the opportunity to play in your name, if you take an interest in this ranking system. On the public server, you can find the current ranking of the [[#Offical_server]] here: http://ufo2000.net/results.php.
In the second line you have to enter your desired player name: In the picture this is Mister Kill. A maximum of 16 characters is set for your player name
 
  
==The password for your player name account==
+
===The Auto-login box===
The third line is the password line. Enter your desired password here. '''BEWARE!! There is NO WAY OF RETREIVING a lost password so WRITE DOWN YOUR PASSWORD!!'''
+
Leave the autologin box emty. If you have autologin turned on, you can't change your name or the server-adress, unless you disable this first. Do this in the <code>ufo2000.ini</code> file in the ufo2000 game folder.
  
Also be sure not to use any valuable passwords with this service.
+
===Connecting to the server===
==The Auto-login box==
 
Leave the autologin box emty. (if you have autologin on you can't change your name unless you disable it first. Do this in the ufo2000.ini file in the ufo2000 folder)
 
 
 
==Connecting to the server==
 
 
To login to the server press OK!
 
To login to the server press OK!
  
=Setting up your own game server=
+
== Official server==
In principle, for playing online, you ''do need'' an online server. Usually the public <code>ufo2000.net</code> server should do just fine. But maybe you want to set up a private server or a backup server. In order to do so, you can either use the supplied [http://prdownloads.sourceforge.net/ufo2000/ufo2000-0.9.1176-beta.exe?download precompiled ufo2000.exe] from the [http://ufo2000.sourceforge.net project page], or for linux, you will need to compile it yourself. Don't worry, the latter is no big deal.
+
The first is the server location line.
 +
It should say: '''ufo2000.net:2000''' if you want to login to the official UFO2000 game server. All players should log into this server, if available.
  
==Compiliation requirements==
+
If you receive this message:
First, you will need the following to libraries (names are from Ubuntu repositories, but you will find them under similar names for other distributions, as well):
 
  
* <code>libhawknl-dev</code>
+
[[Image:Failconnect.jpg]]
* <code>libsqlite3-dev</code>
 
  
If you have never before compiled anything, it might be necessary, to also install the Build essentials. Here's an example for installing these libraries on an ubuntu 14.04:
+
it may be the case that the official server can't be reached currently. There might also be back-up [http://ufopaedia.org/index.php?title=Server_%28UFO2000%29#Back-up_Servers servers which you can play on].
  
  sudo apt-get install libhawknl-dev libsqlite3-dev build-essential
+
==Backup Servers==
 
+
Change the first line of the login box to one of the following servers:
After that, you will need the source files of UFO2000. To obtain them, you can use the svn-repository:
+
* <del>ufo2000.kostax.cz:2000</del>
 
+
* <del>ufo2000.openxcom.com</del>
==Getting the sources==
+
* www.mobile-infanterie.de:2000 (contact: [mailto:7saturn@gmx.de 7saturn@gmx.de]), statistics: https://www.mobile-infanterie.de/ufo2000results.php
 
+
* ufosrv.minecraft-today.ru:2000 , statistics: http://ufo2000.8fly.ru/
svn checkout svn://svn.code.sf.net/p/ufo2000/code/trunk ufo2000-code
 
cd ufo2000-code
 
 
 
This downloads the current svn-version of UFO2000 into the directory <code>ufo2000-code</code> and switches into that new directory. You can as well get that with the <code>.tar.bz2</code>-file from the project site.
 
 
 
==Compiling the server==
 
 
 
After that, you only need to compile it with
 
 
 
make server
 
 
 
That's it. You then should find a binary named <code>ufo2000-srv</code>.
 
 
 
==Running the server==
 
 
 
===Starting and stopping===
 
You can either start it manually (stopping with CTRL+C) or let it be done by an init-script. For the moment, it is not recommended, to use the ''demonized''-mode, as there have been [http://openxcom.org/forum/index.php/topic,1799.msg40898.html#msg40898 reports of problems with that]. On piece of advice at this point: If you choose to run the server on a regular basis, e. g. on a root-server, you really ''should'' not run the server as root. Better use an init-script, running it as a limited user. That way, it's far less dangerous, running the ufo2000-server. There are no known security issues, but the problem usually are the not known one. If somebody may find any, the service run as root is ''a big security risk''. So keep that in mind, when running ufo2000 servers, or any other gaming server for that matter.
 
 
 
If you want the server to be a backup-server, don't forget to add it to [http://ufopaedia.org/index.php?title=Server_%28UFO2000%29#The_Back-up_Server this list]!
 
 
 
===Ports and routers===
 
When running, the server automatically opens up a tiny web server, showing the current players on the server. You can reach it via <code>http://<server-adress>:2000</code>. The Port 2000 (TCP) is also the port, where the server listens for connections of the game. If you run it behind a NAT (e. g. used by most home routers), you will also need to forward that port to the computer, running the service.
 
 
 
===Configuration===
 
The file <code>ufo2000-srv.conf</code> contains a few options for configuration:
 
 
 
daemonize              = 0
 
tcp_port                = 2000
 
players_count_limit    = 32
 
connections_count_limit = 64
 
login_time_limit        = 10000
 
username_size_limit    = 25
 
packet_size_limit      = 65536
 
 
 
Most of it should be rather self explaining. As said before, for the moment better not use the <code>deamonize</code>-option.
 
  
===Stats and passwords===
+
to play on the back-up server. If you wanna setup your own server (for private use or as backup server for the community) have a look at [[Setting up an UFO2000 server]].
For all games, there is a function for recording of results. These results are saved in the file <code>ufo2000.db</code>. All users connecting to the server, will have the opportunity to choose a password, when connecting the first time with a certain user name. This password will remain! It's saved as a MD5-hash, and can only be changed by manipulating the database-table <code>ufo2000_users</code>. You can either delete a user completely, or let him give you a new password-hash. The user has no way of changing it himself and you won't have any means of recovering a lost password, as there are only hashes in the table.
 
  
===Logs===
+
== Third Party chat program ==
The file <code>ufo2000-srv.log</code> contains server logs. If you experience problems, first look there, to further isolate the problem.
+
There's also a third party software, that enables you, to be on the server for chatting, even during a match, called [http://www.7kplay.net/phpBB3/utto.php?sid=a7e3660e08227b95f9ea16791e64c36e UTTO].
  
 
[[Category:UFO2000]]
 
[[Category:UFO2000]]

Latest revision as of 21:29, 10 December 2019

Logging in to the game server

The server connecting screen

Pressing "connect to internet server" will take you to the server connection screen. In this screen you will see a login box with three lines:

Serverconnect.jpg

Your player name for your account

In the second line »Login:« you have to enter your desired player name. In the picture above this is Mister Kill. A maximum of 16 characters is set for your player name. Player names are case sensitive. So it makes a difference, if you login as killah or Killah.

The password for your player name account

The third line is the password line. Enter your desired password here. BEWARE! There is NO WAY OF RETREIVING a lost password so write it down! Also be sure not to use any valuable passwords with this service, as they are only saved as a plain MD5-hash. Techniques such as salt are not being used!

Player names are only protected by this password. For each player name there is also an elo-score, which is used to create a ranking. So essentially, it's in your own interest, to not give others the opportunity to play in your name, if you take an interest in this ranking system. On the public server, you can find the current ranking of the #Offical_server here: http://ufo2000.net/results.php.

The Auto-login box

Leave the autologin box emty. If you have autologin turned on, you can't change your name or the server-adress, unless you disable this first. Do this in the ufo2000.ini file in the ufo2000 game folder.

Connecting to the server

To login to the server press OK!

Official server

The first is the server location line. It should say: ufo2000.net:2000 if you want to login to the official UFO2000 game server. All players should log into this server, if available.

If you receive this message:

Failconnect.jpg

it may be the case that the official server can't be reached currently. There might also be back-up servers which you can play on.

Backup Servers

Change the first line of the login box to one of the following servers:

to play on the back-up server. If you wanna setup your own server (for private use or as backup server for the community) have a look at Setting up an UFO2000 server.

Third Party chat program

There's also a third party software, that enables you, to be on the server for chatting, even during a match, called UTTO.