Guide: dedicated server setup

Want to learn or teach others some of the finer details of Life is Feudal? This section is for the game guides, tutorials and FAQ's.

Prolasis
 
Posts: 6
Joined: 21 Sep 2014, 04:36

Guide: dedicated server setup

Post by Prolasis » 21 Sep 2014, 11:08

http://youtu.be/if51XIP7jts
[youtube]if51XIP7jts[/youtube]

Made a video for dedicated server setup. Please keep in mind I am assuming you have some SQL knowledge or experience with Databases and batch files. With that said i will make another video soon that is geared towards Beginners
:beer:


Another Video about GM Commands and How to get Spawned Items working till HotFix. Credits to TorZar for orginal Post :Yahoo!:
http://youtu.be/2l5KW6BSlNg
Add GM Commands
[youtube]2l5KW6BSlNg[/youtube]
Last edited by Prolasis on 26 Sep 2014, 03:17, edited 6 times in total.


TommygunCo
 
Posts: 4
Joined: 17 Sep 2014, 11:39

Re: Guide: dedicated server setup

Post by TommygunCo » 21 Sep 2014, 11:10

#2003 - Can't connect to MySQL server on 'localhost' (10060)
^ That is an error I get when trying to host; I followed the video and other guides to the book


Prolasis
 
Posts: 6
Joined: 21 Sep 2014, 04:36

Re: Guide: dedicated server setup

Post by Prolasis » 21 Sep 2014, 11:12

Is your MySQL service running. Try restarting the service also may want to start fresh with new game tools download

User avatar
Arrakis
 
Posts: 5455
Joined: 25 Oct 2013, 14:11
Location: Space

Re: Guide: dedicated server setup

Post by Arrakis » 21 Sep 2014, 11:15

Nice guide, moved to tutorials section.


TommygunCo
 
Posts: 4
Joined: 17 Sep 2014, 11:39

Re: Guide: dedicated server setup

Post by TommygunCo » 21 Sep 2014, 11:17

I pretty much followed the Video to the book, how can I tell if the MySQL service is running? I have the command Prompt running, at the same time HeidiSQL is running


Prolasis
 
Posts: 6
Joined: 21 Sep 2014, 04:36

Re: Guide: dedicated server setup

Post by Prolasis » 21 Sep 2014, 11:29

You will need to open your task manager and look at running pid aka processes


TommygunCo
 
Posts: 4
Joined: 17 Sep 2014, 11:39

Re: Guide: dedicated server setup

Post by TommygunCo » 21 Sep 2014, 11:32

Yep its running, I just try to run a server and got "Program is not responding"

Any Ideas?


Prolasis
 
Posts: 6
Joined: 21 Sep 2014, 04:36

Re: Guide: dedicated server setup

Post by Prolasis » 21 Sep 2014, 11:36

Send me a pm and I'll give you our teamspeak. I. Can't help till later tonight


Vireya
True Believer
 
Posts: 10
Joined: 23 Mar 2014, 11:56

Re: Guide: dedicated server setup

Post by Vireya » 21 Sep 2014, 12:58

Thank you for the guide Prolasis, you are clearly awesome. Me and my husband got this working on his PC thanks to your guide and we can both join no problems (using the hack which forces it to connect to a particular ip, which is I guess how anyone else can join it) - we are about to test if someone from outside our IP can join it, so I will keep you posted. Fingers crossed. :) (edit: no they cant, I think it could be a router problem not allowing access from outside our ip so trying to work out how to fix that now :( )


Corelegend
 
Posts: 19
Joined: 20 Sep 2014, 16:52

Re: Guide: dedicated server setup

Post by Corelegend » 21 Sep 2014, 13:41

Great guide! The critical information is the import of sql with the batch option.

In my server log, there is a failure that animals.cs are not there, does anyone else noticed this error?


Prolasis
 
Posts: 6
Joined: 21 Sep 2014, 04:36

Re: Guide: dedicated server setup

Post by Prolasis » 21 Sep 2014, 22:46

Vireya wrote:Thank you for the guide Prolasis, you are clearly awesome. Me and my husband got this working on his PC thanks to your guide and we can both join no problems (using the hack which forces it to connect to a particular ip, which is I guess how anyone else can join it) - we are about to test if someone from outside our IP can join it, so I will keep you posted. Fingers crossed. :) (edit: no they cant, I think it could be a router problem not allowing access from outside our ip so trying to work out how to fix that now :( )


Np glad to help, If your hosting from your house, your going to need to setup port forwarding from your router. Port 28000 will need to be forwared to the pc's IP thats hosting the server.


Prolasis
 
Posts: 6
Joined: 21 Sep 2014, 04:36

Re: Guide: dedicated server setup

Post by Prolasis » 26 Sep 2014, 03:18

I updated the Post and added a video on how to get GM commands working with spawning items etc.


CatoNik
 
Posts: 5
Joined: 24 Sep 2014, 21:49

Re: Guide: dedicated server setup

Post by CatoNik » 26 Sep 2014, 15:37

Heya,

I am one of those guys you mentioned. Best title is usually "xxxSQL Database administrator", or perhaps "egnineer" - depending on what exactly needs to be done.

Forgive me if I come across blunt, my technical skills are far better than my social skills :pardon:

I have a few questions

1) Why this 3rd party mirandadb software, specifically?
2) Why MySQL, on a Windows only app? MSSQL seems more logical.
3) Is there any interest on a tutorial using native My/MSSQL software? I'd be happy to make one, if it will be useful.

... and please, for any dev who may read this, PLEASE make a version of the server software to run on *nix. PLEASE, PLEASE... I'll buy you a coffee! :D


CatoNik
 
Posts: 5
Joined: 24 Sep 2014, 21:49

Re: Guide: dedicated server setup

Post by CatoNik » 26 Sep 2014, 16:53

Seems something is broken, or I'm missing a step.

I changed the connection information in ./docs/my.ini to point to an external host, and server fails to start with error "Could not connect to mysql on localhost".

Is anyone aware of a fix for this, before I go digging for hours? :)

Cheers!


Bautista
 
Posts: 19
Joined: 23 Sep 2014, 17:59

Re: Guide: dedicated server setup

Post by Bautista » 26 Sep 2014, 21:06

Prolasis wrote:http://youtu.be/if51XIP7jts
[youtube]if51XIP7jts[/youtube]

Made a video for dedicated server setup. Please keep in mind I am assuming you have some SQL knowledge or experience with Databases and batch files. With that said i will make another video soon that is geared towards Beginners
:beer:


Another Video about GM Commands and How to get Spawned Items working till HotFix. Credits to TorZar for orginal Post :Yahoo!:
http://youtu.be/2l5KW6BSlNg
Add GM Commands
[youtube]2l5KW6BSlNg[/youtube]



Sorry, but this is the worse tutorial i have seen in the history of helping..

go here.. go there.. ok go here.. now go there.. ok do this.. now do that.. ok go here.. a tutorial is created for people who does not know how to do this.. not for someone who knows how to do it and just wants to watch a video of you doing it..

you cant even see what he is doing or where to put what.. you keep flipping screens and dont even explain yourself..

At the end you mention firedemon but you dont show or tell what to even put..

Sorry for the rage man.. but for a person who is new to this stuff.. this only loads our computers up with junk and makes us more confused than what we have started out with.. we dont know what go here and go there is.. even when you posted the stuff with mysql you went so fast i literally had to pause it a few times to even strain with my eyeballs to figure out what you were doing..


CatoNik
 
Posts: 5
Joined: 24 Sep 2014, 21:49

Re: Guide: dedicated server setup

Post by CatoNik » 26 Sep 2014, 23:04

I understand your frustration, but your criticism seems harsh. For an install tutorial, this isn't that bad. It's not an IT course. The only thing not explained was the process manager used at the end. Hopefully you read the video description which says specifically it is not for beginners.

That said, feel free to PM me any questions about using databases. (PLEASE BE SPECIFIC), and I can help you out.

I'll upload another video soon, hopefully this weekend.


Bautista
 
Posts: 19
Joined: 23 Sep 2014, 17:59

Re: Guide: dedicated server setup

Post by Bautista » 27 Sep 2014, 14:08

I didnt mean to sound too harsh, at the time i wrote this.. I was so frustrated because I still dont have this running at all... I apologize


Ladyhawke76
 
Posts: 2
Joined: 22 Sep 2014, 17:44

Re: Guide: dedicated server setup

Post by Ladyhawke76 » 28 Sep 2014, 17:49

Hi,

thanks to you I've managed to set up a dedicated server, and it runs smoothly and fine for now, many, many thanks!

I know a bit about batch and this stuff, but nothing of mysql, and I was glad to find such a precise tutorial. Ive posted already in your YT-Channel, but maybe here is a better place:

- When I want to run the server from now on, I have to start
- Steam of course, then

- MariaDB
- HeidiSQL
- start.bat

Is this right?

What should I backup to avoid DB_Internal_Errors and just be able to jump back to a functional version?

Many thanks for any further advise!

Ladyhawke


Vindaloo
 
Posts: 1
Joined: 20 Sep 2014, 16:49

Re: Guide: dedicated server setup

Post by Vindaloo » 31 Oct 2014, 17:20

LadyHawks,

Hope you have fixed it by now.

With Maria DB you do not need to start anything other than your

"ddctd_cm_yo_server" just create a shortcut of this and edit the

Target to include -world 1

eg

"C:\Program Files (x86)\Steam\SteamApps\common\Life is Feudal Your Own Dedicated Server\ddctd_cm_yo_server.exe" -world 1

What I would like to know is how to get a second world to run on the same server. Seems to default to -world 1 whenever I launch it.

Thanks and hope this helps someone. :shock: :crazy:

User avatar
Vamyan
 
Posts: 198
Joined: 23 Oct 2014, 22:29

Re: Guide: dedicated server setup

Post by Vamyan » 31 Oct 2014, 19:03

Vindaloo wrote:LadyHawks,

Hope you have fixed it by now.

With Maria DB you do not need to start anything other than your

"ddctd_cm_yo_server" just create a shortcut of this and edit the

Target to include -world 1

eg

"C:\Program Files (x86)\Steam\SteamApps\common\Life is Feudal Your Own Dedicated Server\ddctd_cm_yo_server.exe" -world 1

What I would like to know is how to get a second world to run on the same server. Seems to default to -world 1 whenever I launch it.

Thanks and hope this helps someone. :shock: :crazy:



Well, mostly right. The argument is correctly -worldID 1 and using the correct argument will indeed allow you to run multiple servers.


SashaBrno
 
Posts: 4
Joined: 18 Nov 2014, 13:52

Re: Guide: dedicated server setup

Post by SashaBrno » 18 Nov 2014, 14:18

And how to update the server after a patch?

User avatar
YellzBellz
 
Posts: 4
Joined: 06 Jun 2015, 04:39

Re: Guide: dedicated server setup

Post by YellzBellz » 06 Jun 2015, 04:54

lol,
I tried renting a LIF server, but got the DB internal error and got sick of the hosting company saying the DB is corrupted

I went the VPS route and am trying to get the LIF server going there. Followed the 2nd video tutorial but when I try to copy the New.sql into the query window I get an out of memory error from HeidiSQL.

A few times it did paste and I tried running as a single batch and line by line, but those times I got the ...
SQL Error (1064): You have an error in your SQL syntax; Check the manual that correspond to your MariaDB server version for the right syntax to use near " at line 3. Notice: You can disable the "Stop on erros in batch mode" option to ignore such errors.

I tried this on my VPS and on my home desktop, 2 different environments both using MariaDB 5.5.43 and HeidiSQL.

Any info or help would be greatly appreciated!

User avatar
volkofff961
True Believer
 
Posts: 10
Joined: 23 Jun 2015, 00:03

Re: Guide: dedicated server setup

Post by volkofff961 » 01 Jul 2015, 22:18

Do not rent LiF server, unless they are going to take care about all settings for you. It is better to run server from you local computer, because you have full control on all software. In your case there is some problem in MySql settings and no one will tell you whats wrong.

Use your own computer to host the server... Install everything you need according to a guide above.

Everything should work. Good guide. Just installed my dedicated LiF server. It runs perfectly.
Image

User avatar
teiubescmicutzamea
 
Posts: 14
Joined: 07 Aug 2015, 16:39
Location: Romania

I have this Log error

Post by teiubescmicutzamea » 21 Aug 2015, 11:58

//-------------------------- 8/21/2015 -- 14:35:06 -- v0.7.0.5 --
ECHO 2015-08-21 14:35:06.159 {00} <NOSCOPE> --------- Loading DIRS ---------
HACK 2015-08-21 14:35:06.159 {00} <NOSCOPE> v0.7.0.5
ECHO 2015-08-21 14:35:06.159 {00} <NOSCOPE>
ECHO 2015-08-21 14:35:06.237 {01} <onStart>
--------- Initializing Directory: scripts ---------
ECHO 2015-08-21 14:35:06.237 {02} <initServer>
--------- Initializing LiF Server: Server Scripts ---------
ECHO 2015-08-21 14:35:06.237 {02} <initServer> Loading CmConfiguration
ECHO 2015-08-21 14:35:06.253 {02} <initServer> Init of DB interface
ERRR 2015-08-21 14:35:06.300 {02} <initServer> CmDb::_connect() - connection error #1045: Access denied for user 'xxxxxx'@'localhost' (using password: NO)
ERRR 2015-08-21 14:35:06.300 {02} <initServer> CmServerInfoManager::processLocalWorlds() - can't connect to MySQL!
ERRR 2015-08-21 14:35:06.300 {02} <initServer> Fatal: Can't init local world (id=). Terminating.
ECHO 2015-08-21 14:35:06.300 {00} <NOSCOPE> Engine initialized...
core/scripts/server/server.cs (78): Unable to find function destroyWorld
Sorry! I don't speak verry good english!


Archaismic
 
Posts: 9
Joined: 16 Oct 2015, 21:59

Re: Guide: dedicated server setup

Post by Archaismic » 16 Oct 2015, 22:02

So I have a server set up all fine a dandy, but are there any server tools? I.e. a gui or the like that displays things like how many players are on, log in and log off times of different players, latency monitoring, etc?


Archaismic
 
Posts: 9
Joined: 16 Oct 2015, 21:59

Re: I have this Log error

Post by Archaismic » 16 Oct 2015, 22:05

Industrial wrote://-------------------------- 8/21/2015 -- 14:35:06 -- v0.7.0.5 --
ECHO 2015-08-21 14:35:06.159 {00} <NOSCOPE> --------- Loading DIRS ---------
HACK 2015-08-21 14:35:06.159 {00} <NOSCOPE> v0.7.0.5
ECHO 2015-08-21 14:35:06.159 {00} <NOSCOPE>
ECHO 2015-08-21 14:35:06.237 {01} <onStart>
--------- Initializing Directory: scripts ---------
ECHO 2015-08-21 14:35:06.237 {02} <initServer>
--------- Initializing LiF Server: Server Scripts ---------
ECHO 2015-08-21 14:35:06.237 {02} <initServer> Loading CmConfiguration
ECHO 2015-08-21 14:35:06.253 {02} <initServer> Init of DB interface
ERRR 2015-08-21 14:35:06.300 {02} <initServer> CmDb::_connect() - connection error #1045: Access denied for user 'xxxxxx'@'localhost' (using password: NO)
ERRR 2015-08-21 14:35:06.300 {02} <initServer> CmServerInfoManager::processLocalWorlds() - can't connect to MySQL!
ERRR 2015-08-21 14:35:06.300 {02} <initServer> Fatal: Can't init local world (id=). Terminating.
ECHO 2015-08-21 14:35:06.300 {00} <NOSCOPE> Engine initialized...
core/scripts/server/server.cs (78): Unable to find function destroyWorld



you didn't set up the username and password for your database (the one you used with mariadb) probably root and a password


Jaymunnie
 
Posts: 1
Joined: 19 Aug 2019, 06:07

Re: Guide: dedicated server setup

Post by Jaymunnie » 19 Aug 2019, 06:35

Is this guide still relevant? I just recently bought LIFYO and I'd like to set up a server for myself and the guys, which I know nothing about, but this guide is about 5yrs old now.

Return to Guides and Tutorials

cron