[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 » 26 Jun 2016, 09:07

BladeRavinger wrote:Hey Fella, i keep getting the no motd.cs file error,

You haven't completed the installation process.
BladeRavinger wrote: and it would seem the DL dosent contain a motd.cs, mistake?

No.
basilmod-motd-t14543/page10/#p61683


BladeRavinger
 
Posts: 8
Joined: 05 Jun 2015, 21:03

Re: [MOD] BasilMod::MotD

Post by BladeRavinger » 27 Jun 2016, 23:10

Custodian wrote:
BladeRavinger wrote:Hey Fella, i keep getting the no motd.cs file error,

You haven't completed the installation process.
BladeRavinger wrote: and it would seem the DL dosent contain a motd.cs, mistake?

No.
basilmod-motd-t14543/page10/#p61683


it keeps returning "file dosen't exist"

il make sure my command is pointing to the correct dir, but im sure i havent made a mistake

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

Re: [MOD] BasilMod::MotD

Post by Custodian » 27 Jun 2016, 23:14

BladeRavinger wrote:it keeps returning "file dosen't exist"

Verify, that you have installed mod to your server, and you entering command at server console. This is not ctrl+~ console at LiF:Yo game client.


BladeRavinger
 
Posts: 8
Joined: 05 Jun 2015, 21:03

Re: [MOD] BasilMod::MotD

Post by BladeRavinger » 28 Jun 2016, 00:52

Custodian wrote:
BladeRavinger wrote:it keeps returning "file dosen't exist"

Verify, that you have installed mod to your server, and you entering command at server console. This is not ctrl+~ console at LiF:Yo game client.


Hmmm dont have access to that panel, had to remove the mod and re-add it, there may have been an issue with the initial upload, its working now, thank you


Ozzie88
 
Posts: 2
Joined: 05 Jul 2016, 18:10

Re: [MOD] BasilMod::MotD

Post by Ozzie88 » 05 Jul 2016, 18:15

Hi There mate,

Im trying to add the mod but striking a few problems. (im noob)

I have installed it correctly (have done a few times) but i dont see the messages come up. i have read what other people have had problems with and tried resolving but not been able to do so.

I think it could be that im not too sure where to put it in the main.cs file?

could you provide a screen shot of where to put it the exec code and also a screen shot of the config.cs too?

Thanks greatly and keep up the great work!

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

Re: [MOD] BasilMod::MotD

Post by Custodian » 05 Jul 2016, 18:32

Ozzie88 wrote:I think it could be that im not too sure where to put it in the main.cs file?

At the end of main.cs file, after all default content.
Spoiler


Ozzie88 wrote:and also a screen shot of the config.cs too?

Example config.cs file is available for download with the mod, follow the download link at head post.


Ozzie88
 
Posts: 2
Joined: 05 Jul 2016, 18:10

Re: [MOD] BasilMod::MotD

Post by Ozzie88 » 05 Jul 2016, 18:54

Great Got it working Now :Yahoo!:

Next problem > My server rules are not showing in any chat. I set it to show in system chat. what could cause this issue? :Search:

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

Re: [MOD] BasilMod::MotD

Post by Custodian » 05 Jul 2016, 22:58

Ozzie88 wrote: My server rules are not showing in any chat. I set it to show in system chat. what could cause this issue?

Your configuration is wrong, or config.cs contain syntax errors after your edits.
You may want to use example config.cs and check how it works.


K475u
 
Posts: 10
Joined: 14 Jun 2016, 19:02

Re: [MOD] BasilMod::MotD

Post by K475u » 06 Jul 2016, 03:01

hey some wierd stuff going on

installed MoTD on my Testserver included exec.. Command in main.cs Server Loades it everything iss fine.

Installed MotD on my Live Server Same way..

Server dont Load it from my main.cs

Code: Select all
// Process command line arguments
exec("core/parseArgs.cs");
exec("BasilMod/pack/pack.cs");
exec("BasilMod/gmannounce/gmannounce.cs");
exec("BasilMod/ravens/ravens.cs");
exec("BasilMod/chats/chats.cs");
exec("fix/playersave.cs");



// Parse the executable arguments with the standard
// function from core/main.cs
defaultParseArgs();

function compileFiles(%pattern)

   %path = filePath(%pattern);

   %saveDSO    = $Scripts::OverrideDSOPath;
   %saveIgnore = $Scripts::ignoreDSOs;
   
   $Scripts::OverrideDSOPath  = %path;
   $Scripts::ignoreDSOs       = false;
   %mainCsFile = "main.cs";//makeFullPath("main.cs");
   %localConfigFile = "config_local.cs";
   %ddctdConfigFile = "ddctd_config.cs";

   for (%file = findFirstFileMultiExpr(%pattern); %file !$= ""; %file = findNextFileMultiExpr(%pattern))
   {
      // we don't want to try and compile the primary main.cs
      if(%mainCsFile !$= %file && %localConfigFile !$= %file && %ddctdConfigFile !$= %file)     
         compile(%file, true);
   }

   $Scripts::OverrideDSOPath  = %saveDSO;
   $Scripts::ignoreDSOs       = %saveIgnore;
}

if($compileAll)
{
   echo(" --- Compiling all files ---");
   compileFiles("*.cs");
   compileFiles("*.gui");
   compileFiles("*.ts"); 
   echo(" --- Exiting after compile ---");
   quit();
}
else
{
   exec("scripts/root.cs");
}
exec("BasilMod/MotD/motd.cs");


my main.cs
Other Mods work well and if i load the mod via Server Console

exec("BasilMod/MotD/motd.cs");

its loaded and works.

my motD config.cs

Code: Select all
/*
   BasilMod::motd mod
   2015 Basil Semuonov
   

   Configure messages for MotD greetings when player joins server.
   Add periodic messages to be sended by the server to the players.
   
   Current version (standalone BasilMod::motd) limits message length to 230 letters.
   
   Example:

   Add message to be shown when player joins server.
   BasilMod::motd_registerWelcome(
      true,      //Show message in "System" channel. Message is shown if value is "true".
      false,      //Show message in "Local" channel. Message is shown if value is "true".
      "message"   //Message text to be shown. Message support default coloring.
   );
   
   Add periodic message to be shown to players.
   BasilMod::motd_registerPeriodic(
      1,          //Interval of message display, in minutes.
      false,      //Show message in "System" channel. Message is shown if value is "true".
      true,      //Show message in "Local" channel. Message is shown if value is "true".
      "message"   //Message text to be shown. Message support default coloring.
   );
*/

//Delay in seconds after player spawn before sending messages
$BasilMod::motd::welcome_delay = 60;

//Example setup of greetings messages, and samples for messages with timeouts
//Welcome Massage System & Local Chanel
BasilMod::motd_registerWelcome(false, true, "Willkommen in der <spush><color:EE8607>Ruhmeshalle<spop>");
BasilMod::motd_registerWelcome(false, true, "Unseren TS³ findet ihr unter <spush><color:07ACEE>ts3.ruhmeshalle.de<spop>");
BasilMod::motd_registerWelcome(false, true, "<color:EE1A07>Die Server Regeln findet Ihr im Forum!");
BasilMod::motd_registerWelcome(false, true, "<color:158B1B>Der Server startet jeden Morgen um 5:00 Uhr neu!");
//Zeitgesteuerte Anzeigen 1=true->Systemn & 2=true->Local
BasilMod::motd_registerPeriodic(180, false, true, "<spush><color:07ACEE>Der Tägliche Server Neustart findet um 5:00 Uhr Morgens statt.<spop>");

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

Re: [MOD] BasilMod::MotD

Post by Custodian » 06 Jul 2016, 06:08

K475u wrote:hey some wierd stuff going on

installed MoTD on my Testserver included exec.. Command in main.cs Server Loades it everything iss fine.

Server dont Load it from my main.cs

Please read mods description carefully.

Why you had added all other mods exec lines to the begin of the main.cs file?
Each mod cleary says, that you must add mod loading exec lines to the end of main.cs.

Check mod directory name, and make sure that command you are entering in the console is the same as in the main.cs file.
If you think everything is correct, search latest server log for "motd" and check for loading errors around, or share your server latest log with me.


Gms0012
 
Posts: 166
Joined: 23 Feb 2015, 08:49

Re: [MOD] BasilMod::MotD

Post by Gms0012 » 06 Jul 2016, 11:48

the mod it working perfectly!

just read the description and you will have fun with it.

it it is not working , you do stuff which is not described!
Image


K475u
 
Posts: 10
Joined: 14 Jun 2016, 19:02

Re: [MOD] BasilMod::MotD

Post by K475u » 06 Jul 2016, 15:22

Custodian wrote:
K475u wrote:hey some wierd stuff going on

installed MoTD on my Testserver included exec.. Command in main.cs Server Loades it everything iss fine.

Server dont Load it from my main.cs

Please read mods description carefully.

Why you had added all other mods exec lines to the begin of the main.cs file?
Each mod cleary says, that you must add mod loading exec lines to the end of main.cs.

Check mod directory name, and make sure that command you are entering in the console is the same as in the main.cs file.
If you think everything is correct, search latest server log for "motd" and check for loading errors around, or share your server latest log with me.



All mods running with exec.. commands at the beginning.
As i said on my Test Server all mods and the MotD running perfect but if i set the mods up on my life server the MotD does not load, no errors at the Log -> Nothing about MotD at the log.

The exec command which i use to load it manually is exactly the same (triple checked it)

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

Re: [MOD] BasilMod::MotD

Post by Custodian » 07 Jul 2016, 11:40

K475u wrote:All mods running with exec.. commands at the beginning.

Please, carefully read mods descriptions, and my previous post:
All exec commands must be placed at the end of the main.cs.

K475u wrote:no errors at the Log -> Nothing about MotD at the log.

Share your log file.


Kisan
Beta Tester
 
Posts: 4
Joined: 10 Oct 2016, 08:17

Re: [MOD] BasilMod::MotD

Post by Kisan » 14 Nov 2016, 19:33

Для глобального чата нельзя сделать да? Я просто видел на серверах)

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

Re: [MOD] BasilMod::MotD

Post by Custodian » 05 Feb 2017, 19:07

BasilMod::Motd has been updated to v2 and now compatible with LiF 64bit.


Schwimmmaus88
 
Posts: 3
Joined: 14 Apr 2017, 09:32

Re: [MOD] BasilMod::MotD

Post by Schwimmmaus88 » 14 Apr 2017, 10:10

Hello,

can you speak german? if not i will try to explain my problem.

First thing im totaly new to this.

I have a Server hostet by g-portal with FileZilla i followed youre instructions.

Now i join the game but i see nothing.

It would be really great if you coud help me, please. (Sorry for the english)
Attachments
ServerScreenFileZilla2.PNG
Where i put my Folder and Files
ServerScreenFileZilla2.PNG (45 KiB) Viewed 19086 times
config_cs.png
config_cs.png (53.04 KiB) Viewed 19086 times
mainFileScreen.PNG
configurated main.cs
mainFileScreen.PNG (41.66 KiB) Viewed 19086 times

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

Re: [MOD] BasilMod::MotD

Post by Custodian » 14 Apr 2017, 14:30

Schwimmmaus88 wrote:can you speak german?

I cannot.

Schwimmmaus88 wrote:It would be really great if you coud help me, please. (Sorry for the english)

Your setup seems valid at this point.
You can try to register periodic messages, to see if they work.

Meanwhile, share your latest server log with me.


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

Re: [MOD] BasilMod::MotD

Post by MasterChief » 14 Apr 2017, 15:17

as Custodian said, setup looks fine, but since you use a hosted Gameserver and you not have access to the server console, you allready restarted your server?
its needed reload the changed main.cs to start the mod (exec command)


Schwimmmaus88
 
Posts: 3
Joined: 14 Apr 2017, 09:32

Re: [MOD] BasilMod::MotD

Post by Schwimmmaus88 » 15 Apr 2017, 06:06

Hello,
thx for the fast reply.

It's mysterious, :crazy: now it works. :shock: :oops:
I joined in the morning and now it's there. :Yahoo!: Yesterday i looked at it (after i did the configuration) there was nothing. :fool:

So thanks and have nice easter. :beer:

User avatar
JohnValentine
Zealous Believer
 
Posts: 213
Joined: 19 Dec 2016, 00:33

Re: [MOD] BasilMod::MotD

Post by JohnValentine » 16 May 2017, 09:23

Wonderful Mod; hit a snag and wondering if you have any thoughts on what I'm doing wrong.

1. Created BasilMod folder
2. Created MotD folder
3. uploaded config[1].cs
4. uploaded motd.cs[1].dso

Spoiler



5. Edited main.cs; added exec command
Spoiler


6. Edited Config
Spoiler
Image

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

Re: [MOD] BasilMod::MotD

Post by Custodian » 16 May 2017, 17:35

JohnValentine wrote:3. uploaded config[1].cs
4. uploaded motd.cs[1].dso

Carefully read the installation description.
File names are config.cs and motd.cs.dso.
Do not alter file names.

User avatar
JohnValentine
Zealous Believer
 
Posts: 213
Joined: 19 Dec 2016, 00:33

Re: [MOD] BasilMod::MotD

Post by JohnValentine » 17 May 2017, 00:17

While following your instructions and tinkering with another mod, it's now working. Thank you! =)
Image


Trade.by
 
Posts: 22
Joined: 05 Jan 2017, 23:44

Re: [MOD] BasilMod::MotD

Post by Trade.by » 08 Jul 2017, 23:59

Никак не пойму как делать цветной текст или слово в тексте. Напишите пример пожалуйста.

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

Re: [MOD] BasilMod::MotD

Post by Custodian » 09 Jul 2017, 20:24

Trade.by wrote:Никак не пойму как делать цветной текст или слово в тексте. Напишите пример пожалуйста.

Example: basilmod-motd-t14543/#p59162
Text formatting is part of Torque Markup Language.


Trade.by
 
Posts: 22
Joined: 05 Jan 2017, 23:44

Re: [MOD] BasilMod::MotD

Post by Trade.by » 15 Jul 2017, 14:10

BasilMod::motd_registerWelcome(true, false, "This server supports BasilMod::Pack. To enable TradeWindow and other mods, visit <spush><color:C65F5F> http://my-kickass-server.earth/modpacks.);<spop>

не работает

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

Re: [MOD] BasilMod::MotD

Post by Custodian » 15 Jul 2017, 15:54

Trade.by wrote:BasilMod::motd_registerWelcome(true, false, "This server supports BasilMod::Pack. To enable TradeWindow and other mods, visit <spush><color:C65F5F> http://my-kickass-server.earth/modpacks.);<spop>

не работает

Please, read following-up comment
basilmod-motd-t14543/#p59166
Code: Select all
BasilMod::motd_registerWelcome(true, false, "This server supports BasilMod::Pack. To enable TradeWindow and other mods, visit <spush><color:C65F5F>http://my-kickass-server.earth/modpacks.<spop>");


You can also use yours preffered web-search engine to find the details:
http://vauxel.github.io/Unofficial-Bloc ... /site/tml/


Stealthinger
 
Posts: 11
Joined: 02 Sep 2017, 18:05

Re: [MOD] BasilMod::MotD

Post by Stealthinger » 03 Oct 2017, 10:19

Mod problem after latest patch(((
Loaded by server, but not see messages on logon(


Numynex
 
Posts: 1
Joined: 03 Oct 2017, 16:30

Re: [MOD] BasilMod::MotD

Post by Numynex » 03 Oct 2017, 16:32

Messages does not work for me to. I reinstalled first. But nothing changed.

User avatar
S1l3N7671
 
Posts: 10
Joined: 14 Jun 2015, 11:43

Re: [MOD] BasilMod::MotD

Post by S1l3N7671 » 16 Nov 2017, 04:05

Hey Custodian, I've used your motd mod for as long as I can remember now, I would really love to see it back up and working again when you get the chance. Thank you :D
Image
Server Website: https://gglif.enjin.com


Jor.hudson
 
Posts: 2
Joined: 01 Jan 2018, 11:38

Re: [MOD] BasilMod::MotD

Post by Jor.hudson » 08 Jan 2018, 19:51

Hi everyone. I installed mod in my server, but not working function motd_registerWelcome.
I've seen other people with the same problem.

my log server is load mod - ECHO 2018-01-08 17:02:07.338 {} <> [0] BasilMod::motd v2 loaded, no errors.

motd_registerWelcome not working
motd_registerPeriodic is working

Please, help. :cry:

Return to Game mods