This post may be obsolete at this time.
Since I cannot update these info about LIF any more, Please check other people's great guides instead. Thanks.
----------
Finally I got it working.
So I'd like to share how to setup LiF_YO Dedicated Server on headless linux box.
I'm using CentOS6 64bit but should run on any other distributions.
-------------------------
1. Prepare the game data
Use scp(e.g.WinSCP) or steamcmd to get LiF_YO:Dedicated Server.
For example,
- Code: Select all
./steamcmd.sh +@sSteamCmdForcePlatformType windows +login HOGEHOGE +force_install_dir /PATH/TO/DATA +app_update 320850 validate +quit
cp -rf /PATH/TO/DATA /PATH/TO/SRV
2. Install MariaDB5.5 and configure it
###For CentOS6 user like me###
Edit(and backup) MariaDB config file.
- Code: Select all
vi /etc/my.cnf.d/server.conf
Merge SRV/docs/my.ini with it. I added them below [mysqld] section.
Start service and do the initial setup.
- Code: Select all
chkconfig mysql on
service mysql start
mysql_secure_installation
Create database and its user you will use. Name it like (lif_X: X=1,2,3,...).
- Code: Select all
mysql -uroot -p
MariaDB > create database lif_1;
MariaDB > grant all privileges on lif_1.* to DBUSERNAME@localhost identified by "DBPASSWD";
MariaDB > exit
##############
Unfortunately, I couldn't get the game server to create its tables(esp. procedures) in a linux environment.
Hitting a new.sql and a patch.sql in a shell may also end in failure, neither.
So, create a database on your windows machine and export these tables to the linux box.
##############
##############
This is important. First, create a database with mariaDB-server 5.5 on windows environments by simply executing dedicated-server tool available in steam.
Note that running dedi-srv-tool will create a proper database magically , if it does not already exist.
Then, export it to the designated mariaDB-server 5.5 via mysqldump, 3rd party tools, or whatever you like.
##############
3. Configure game server
config_local.cs
- Code: Select all
cp SRV/docs/config_local.cs SRV/
Then edit it so that it uses DBUSERNAME and DBPASSWD for database access.
Also tweak SRV/config/world_x.xml for server name, password, and so on.
4. Install WINE and Xvfb
Just install it.
- Code: Select all
yum install wine
yum install xorg-x11-server-Xvfb
5. RUN
Although Bobik-san mentioned that the server is already console only, it does try to create a window.
I suspect that he is planning to implement a 3D-view of the server console.
Therefore, you need to run Xvfb; otherwise you'll stuck during login process.
- Code: Select all
Xvfb :1 -screen 0 800x600x8 &
DISPLAY=127.0.0.1:1.0;export DISPLAY;
wine /PATH/TO/SRV/ddctd_yo_cm.exe "-worldID 1" &
-------------------------
This post is improvised one and not very helpful maybe. (let alone my EngRish)
So, I'll improve this instruction gradually and eager to update this OP.
Anyway, now my life is feudal. thanks everyone!
-------------------------
2014/10/10: Edited