[MOD] BasilMod::MotD

Place for sharing your game modifications for Life is Feudal: Your Own
User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::MotD

Post by Custodian » 18 Oct 2015, 13:41

Xhodan wrote:So when I go to exec the file in the command console. I get an error saying the motd.cs file is missing from BasilMod/motd/motd.cs

You have placed mod files into wrong directory, or misspelled the name of folders. Make sure you place files into server, which you will start.

Server side installation documentation describes 4 steps:
Spoiler


Xhodan
 
Posts: 15
Joined: 10 Mar 2014, 19:54

Re: [MOD] BasilMod::MotD

Post by Xhodan » 18 Oct 2015, 15:53

For clarification when you say "server" you're talking about the scripts folder, and the server folder within that? Or you talking about the root folder for all the files on the server?

I've tried both, and neither has worked. Nothing is spelt wrong and when I go in game to enter the command on the line it says the motd.cs file is missing.

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::MotD

Post by Custodian » 18 Oct 2015, 17:31

Xhodan wrote:For clarification when you say "server" you're talking about the scripts folder, and the server folder within that? Or you talking about the root folder for all the files on the server?

First instruction post, and my previous post, contains same info:
Place these 2 files (config.cs and motd.cs.dso) in "BasilMod/motd" folder of server root.

Xhodan wrote:I go in game to enter the command on the line it says the motd.cs file is missing.

This means, that your LiF server does not have file motd.cs.dso installed.

For example:
If you start your server from folder c:\games\LiF Server, then you should install mod to c:\games\LiF Server\basilmod\motd folder and full path of mod file will be c:\games\LiF Server\basilmod\motd\motd.cs.dso.


You should run "exec" command at server console, and not client console. For mod autoload, edit server main.cs file.


Xhodan
 
Posts: 15
Joined: 10 Mar 2014, 19:54

Re: [MOD] BasilMod::MotD

Post by Xhodan » 18 Oct 2015, 17:40

Currently my server is hosted by BlackBlox. So unless this process is the same on that end, then I'm lost at what to do. I have access to the file manager on my admin panel. Which is from my understanding the root server folder. Then there are all the other server files and contents within it.

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::MotD

Post by Custodian » 18 Oct 2015, 18:34

Xhodan wrote:Currently my server is hosted by BlackBlox.

You have placed files.

As I said: you should run "exec" command at server console, and not client console. For mod autoload, edit server main.cs file.


Xhodan
 
Posts: 15
Joined: 10 Mar 2014, 19:54

Re: [MOD] BasilMod::MotD

Post by Xhodan » 19 Oct 2015, 19:23

Your instructions are clear.. but the issue isn't resolved.

motd.cs is missing from the motd folder when I try running the exec. When I downloaded the files, there was no motd.cs file other then the already compiled motd.cs.dso file extension.

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::MotD

Post by Custodian » 19 Oct 2015, 21:52

Xhodan wrote:When I downloaded the files, there was no motd.cs file other then the already compiled motd.cs.dso file extension.

That is correct. you execute ".cs" file, while folder contains ".cs.dso" file.

Please provide screenshot where you execute command
Code: Select all
exec("basilmod/motd/motd.cs");

and result of this command.


Bigsteve
 
Posts: 88
Joined: 07 Feb 2014, 03:53

Re: [MOD] BasilMod::MotD

Post by Bigsteve » 06 Nov 2015, 02:44

Request:

Would it be possible to able to set messages to be sent at a certain time of the day,
we want to send message before our server auto restarts.

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::MotD

Post by Custodian » 06 Nov 2015, 10:01

Bigsteve wrote:Request:

Would it be possible to able to set messages to be sent at a certain time of the day,
we want to send message before our server auto restarts.

Your server restarts are automated with modification or external software?
You can setup motd to show messages on long intervals, i.e. every 11 housr and 55 minutes.
That will give 5 min warning before every 12 hour time restart.


Schdohni
 
Posts: 5
Joined: 20 Nov 2015, 12:19

Re: [MOD] BasilMod::MotD

Post by Schdohni » 26 Nov 2015, 12:12

hey there, nice script, but for the moment i have an Problem.

The periodic messages works fine, but the welcome message dont work, hope someone can help me.

Spoiler

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::MotD

Post by Custodian » 26 Nov 2015, 14:51

Schdohni wrote:The periodic messages works fine, but the welcome message dont work, hope someone can help me.

Hi there.
First of all, you syntax error at your config.cs file: you should comment or remove line with "http://my-kickass-server.earth/modpacks" text, as it is chopped, and missing "); on its end.

Also, you have configured 30 seconds delay on player spawn, before welcome messages are shown. Did you wait for that period of time?


Schdohni
 
Posts: 5
Joined: 20 Nov 2015, 12:19

Re: [MOD] BasilMod::MotD

Post by Schdohni » 27 Nov 2015, 12:41

Custodian wrote:
Schdohni wrote:The periodic messages works fine, but the welcome message dont work, hope someone can help me.

Hi there.
First of all, you syntax error at your config.cs file: you should comment or remove line with "http://my-kickass-server.earth/modpacks" text, as it is chopped, and missing "); on its end.

Also, you have configured 30 seconds delay on player spawn, before welcome messages are shown. Did you wait for that period of time?



sure, i wait for this time, it was just vor test, i also tried it with the common setting (5 seconds).

User avatar
Leaf
 
Posts: 76
Joined: 01 Feb 2014, 16:47

Re: [MOD] BasilMod::MotD

Post by Leaf » 22 Dec 2015, 23:24

My messages are not updating. I have // out a few old messages and added new ones in the basilmod/motd/config.cs, restarted a few times, even tried that exec("basilmod/motd/motd.cs"); in the console and nothing changes. How can I force the game to read and use the basilmod/motd/config.cs again?

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::MotD

Post by Custodian » 23 Dec 2015, 06:30

Leaf wrote:exec("basilmod/motd/motd.cs");

Always reloads the config.

Make sure that you dont have syntax errors in config.cs, and no error messages shown after reloading.
Also note, that all messages should be shorter than ~230 symbols.

User avatar
Leaf
 
Posts: 76
Joined: 01 Feb 2014, 16:47

Re: [MOD] BasilMod::MotD

Post by Leaf » 24 Dec 2015, 03:23

I have verified the data in Main.cs, have not touched it since I added it and it began working.

Overwrote with new downloaded vanilla files for config and motd.
Copied the overwritten files back to my computer and verified that they are still the vanilla versions and not the old versions.

Ran the command in remote server console at bluefang host.
exec("BasilMod/motd/motd.cs");

ECHO 2015-12-23 21:21:00.439 {00} # stdin:> exec(\"BasilMod/motd/motd.cs\");
ERRR 2015-12-23 21:21:00.439 {00} # syntax error

And even with new vanilla files, it is sending out the old motd messages somehow. But I also changed my world_5.xml to add decay, restarted server, closed and started LiF and decay is not showing on the server info. Think I a bigger problem somewhere.

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::MotD

Post by Custodian » 24 Dec 2015, 06:32

Leaf wrote:Ran the command in remote server console at bluefang host.
exec("BasilMod/motd/motd.cs");

ECHO 2015-12-23 21:21:00.439 {00} # stdin:> exec(\"BasilMod/motd/motd.cs\");
ERRR 2015-12-23 21:21:00.439 {00} # syntax error

As you can see here, command was not executed, because "(quote) symbol was replaced to \"
Ask bluefang support why they replace data you are typing into console.

User avatar
Osovich
Beta Tester
 
Posts: 29
Joined: 16 Dec 2015, 13:06
Location: Russia, Moscow

Re: [MOD] BasilMod::MotD

Post by Osovich » 24 Dec 2015, 11:52

Hi Basil! I have a similar problem.
Xhodan wrote:So when I go to exec the file in the command console. I get an error saying the motd.cs file is missing from BasilMod/motd/motd.cs


I tested on two different servers. An execute command under GM. Here are the screenshots folder, where is the configuration file.
(Images increase click-through.)

Server one.
Spoiler

Server two.
Spoiler


The screenshot with the GM.
Spoiler


A screenshot from the command line.
Spoiler


Screenshots of the execution result of the command line.
Server one.
Spoiler

Server two.
Spoiler


The modification itself is working, not working command execution.

p.s. Василий, большое спасибо за вашу работу! :beer:

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::MotD

Post by Custodian » 24 Dec 2015, 12:20

Osovich wrote:The modification itself is working, not working command execution.

p.s. Василий, большое спасибо за вашу работу! :beer:

This happens because you are typing command at client console.
You need to execute this command at server console, not client.

Server console window example (random image from the internet)
Spoiler


MasterChief
True Believer
 
Posts: 55
Joined: 04 Oct 2014, 11:11

Re: [MOD] BasilMod::MotD

Post by MasterChief » 24 Dec 2015, 12:30

lol, yea, made the same mistake often, and restarted the server all the time, typing the line to server console works works fine, client just have to relog to read the new messages

User avatar
Leaf
 
Posts: 76
Joined: 01 Feb 2014, 16:47

Re: [MOD] BasilMod::MotD

Post by Leaf » 24 Dec 2015, 12:37

Figured out my problem. You'll love this noob mistake.

I recently changed hosting locations from GE to US. My server dashboard, console, etc were for the new host. I didn't change my ftp settings and it was still connecting to the old hosting location so naturally I could change the files to anything I wanted and they wouldn't do anything....

Doh!

User avatar
Osovich
Beta Tester
 
Posts: 29
Joined: 16 Dec 2015, 13:06
Location: Russia, Moscow

Re: [MOD] BasilMod::MotD

Post by Osovich » 24 Dec 2015, 14:06

Custodian wrote:Server console window example (random image from the internet)

Thank You, Vasily! That's the only problem. We lease the server. There is a way to access the console server on a rented server? :)

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::MotD

Post by Custodian » 24 Dec 2015, 15:17

Osovich wrote:We lease the server. There is a way to access the console server on a rented server? :)

Ask your hosting provider.


Dealtime
 
Posts: 4
Joined: 30 Oct 2014, 15:54

Re: [MOD] BasilMod::MotD

Post by Dealtime » 25 Dec 2015, 23:04

any possibility to put a message interval in the global chat? or limited to system and local?

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::MotD

Post by Custodian » 26 Dec 2015, 12:03

Dealtime wrote:any possibility to put a message interval in the global chat? or limited to system and local?

Global chat cannot be accessed without client mod.

User avatar
Leaf
 
Posts: 76
Joined: 01 Feb 2014, 16:47

Re: [MOD] BasilMod::MotD

Post by Leaf » 31 Dec 2015, 05:30

The 12/29/15 update will require editing your main.cs again.


Genhis
 
Posts: 8
Joined: 27 Sep 2014, 17:34
Location: Slovakia

Re: [MOD] BasilMod::MotD

Post by Genhis » 02 Jan 2016, 10:55

Hello!

Is it possible to put messages in a queue and pop a single message after the time set in config? The order of messages should be preserved, of course.

I'd like to do that, because I think periodic messages are showing in chat too often and irregularly.

By the way, thanks for this mod. :)

Genhis.
Image

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::MotD

Post by Custodian » 02 Jan 2016, 15:27

Genhis wrote:Is it possible to put messages in a queue and pop a single message after the time set in config? The order of messages should be preserved, of course.

Nice idea. Will see what I can do about it.

Genhis wrote:I'd like to do that, because I think periodic messages are showing in chat too often and irregularly.

Periodic messages appears at exact time as you configure them.


Genhis
 
Posts: 8
Joined: 27 Sep 2014, 17:34
Location: Slovakia

Re: [MOD] BasilMod::MotD

Post by Genhis » 02 Jan 2016, 16:37

Custodian wrote:Periodic messages appears at exact time as you configure them.

Yes, I know. I asked you if it is possible to make a queue and configure time for it - for a group of messages - instead of setting time for every single message.

I would do it myself if your code wasn't being compiled, but, unfortunately, it is. So I'll be happy to see this feature in your mod. :)

Thanks,
Genhis.
Image

User avatar
Osovich
Beta Tester
 
Posts: 29
Joined: 16 Dec 2015, 13:06
Location: Russia, Moscow

Re: [MOD] BasilMod::MotD

Post by Osovich » 05 Jan 2016, 19:01

Custodian wrote:Ask your hosting provider.

Asked. Got such a great response.
Unfortunately we are unable to provide any type of access to the database the server uses, or the server's command line. Additionally, I do not believe Life is Feudal supports rcon at this time. You can view GM commands at the following URL: http://lifeisfeudal.gamepedia.com/Game_Master_mode Your GM password can be found at my.gameservers.com > Config.

All this is not happy. :(

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::MotD

Post by Custodian » 06 Jan 2016, 11:57

Osovich wrote:All this is not happy. :(

Change your hosting provider.

Return to Game mods