Page 1 of 1

[Release] Simple timed messages plugin

Posted: Wed Jan 08, 2014 1:52 pm
by szczurcio
Hey,
since IAM is stupid and only allows one timed_messages.txt file for all your servers I've made a really simple timed messages plugin.

How this works:

1) Download and extract the zip file
2) Put TMes.dll in your scripts folder
3) Make a "tmes" folder in your scripts folder
4) In the "tmes" folder, create a plaintext (.txt) file with your timed messages. You can of course use color codes (^3 and so on)
5) Now in your server set 3 dvars: tmes_file (the file, with extensions), tmes_interval (how often the messages will be "said", in seconds) and tmes_prefix (the prefix for the messages, could be a color code or your clan name).


HOW TO SET DVARS:

in server.cfg:

seta tmes_file <filename>

same for tmes_interval and tmes_prefix.

Now reboot your server, loadScript "TMes.dll" and enjoy :).

Re: [Release] Simple timed messages plugin

Posted: Thu Jan 09, 2014 1:15 pm
by nastyboy
works grate with the rcon fix

Re: [Release] Simple timed messages plugin

Posted: Thu Jan 09, 2014 2:39 pm
by [XtrM] xilonor
Not Worked for me.

[ScriptLoader::LoadAssembly] Loading script TMes v1.0.0.0
[ScriptLoader::LoadAssembly] An error occurred during initialization of the script TMes: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Input string was not in the correct format

at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0

at TMes.TMes..ctor () [0x00000] in <filename unknown>:0

at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)

at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

--- End of inner exception stack trace ---

at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0

at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0

at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0

at InfinityScript.ScriptLoader.LoadAssembly (System.Reflection.Assembly assembly)

Re: [Release] Simple timed messages plugin

Posted: Thu Jan 09, 2014 3:36 pm
by szczurcio
[XtrM] xilonor wrote:Not Worked for me.


Just like the message says, the interval was not in a correct format. Which probably means you simply didn't set the dvar. If you did, make sure it is a positive integer

Re: [Release] Simple timed messages plugin

Posted: Thu Jan 09, 2014 3:40 pm
by nastyboy
in server.cfg add these

top of server.cfg
LoadScript "TMes.dll"

bottom of server.cfg
seta tmes_file "timedmessages.txt"
seta tmes_interval "16"
seta tmes_prefix "Console: " you can set this to what ever

in script folder make folder tmes and inside make txt file timedmessages.txt

easy as that.

Re: [Release] Simple timed messages plugin

Posted: Tue Jan 14, 2014 1:13 am
by [XtrM] xilonor
nastyboy wrote:in server.cfg add these

top of server.cfg
LoadScript "TMes.dll"

bottom of server.cfg
seta tmes_file "timedmessages.txt"
seta tmes_interval "16"
seta tmes_prefix "Console: " you can set this to what ever

in script folder make folder tmes and inside make txt file timedmessages.txt

easy as that.


Thank you Very Much :) it's worked now ^^

Re: [Release] Simple timed messages plugin

Posted: Mon Feb 24, 2020 10:46 am
by MeganMatthews
Thanks for the release!