Space Engineers

Space Engineers

Not enough ratings
MessagePlay2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script, Other
File Size
Posted
Updated
137.476 KB
1 Jul, 2017 @ 4:06am
2 Jul, 2017 @ 8:30pm
28 Change Notes ( view )

Subscribe to download
MessagePlay2

Description
Version 2.1 (2017-7-2) Release

Features
  • Welcome screen (MOTD) using mission screen.
  • Help system using mission screen.
  • Timed chat messages
  • Sending notification from outside game.
  • Macros enable live server information in MOTD and help system.
  • Editing of motd and help text files is easy and immediately available in-game.
  • Works in single-player mode too for testing your screens.
  • For both major and minor SE releases.

Getting Started
Install MessagePlay2 and then launch the game. The mod will create a storage folder (960943569.sbm_MessagePlay2) and help.txt file.

MOTD
MOTD and help files have the same format. The first line is the title. The second line is the subtitle and may be left blank for a blank subtitle. The third line to the end of the file is the MOTD or help text body.

Example:
Title (Second Line) Subtitle Message body that can span multiple lines ... ...

Help Files
The default 'help.txt' file is created when the mod is first run. The content of this file is shown in a mission screen when the '/help' command is used in chat. This screen can be used to list other help screens and mod help commands. Help files have the same format as MOTD files as explained above.

Additional help topics can be added by creating a text file having the name of the help topic in the mod's storage folder. For example, a file named 'newbie.txt' would be accessible by the player typing '/help newbie' in chat.

MOTD
The motd.txt file is not automatically generated. It has the same format as help files. When enabled, MOTD is displayed in a mission screen when a player joins the game. The MOTD can be later viewed by typing '/motd' or '/help motd' in chat. To enable MOTD, create a file named 'motd.txt' in the mod's storage folder.

Macros
Macros are key words preceeded with an at symbol (@). When used in help and MOTD texts, they are replaced by game property values. To escape the conversion of a macro, use @@.

@PlayerID
@PlayerName
@ServerID
@AssemblerEfficiencyMultiplier
@AssemblerSpeedMultiplier
@AutoHealing
@CargoShipsEnabled
@CreativeMode
@Description
@ElapsedPlayTime
@EnvironmentHostility
@GameDateTime
@GrinderSpeedMultiplier
@HackSpeedMultiplier
@InventoryMultiplier
@MaxFloatingObjects
@MaxPlayers
@WorldName
@IsDedicated
@AutoSaveInMinutes
@RefinerySpeedMultiplier
@TimeOnBigShip
@TimeOnFoot
@TimeOnJetpack
@TimeOnSmallShip
@WeaponsEnabled
@WelderSpeedMultiplier

Timed Messages
Timed messages are displayed in chat at a regular interval. The display of messages begins 1 minute after the server starts this mod. By default, messages are displayed consecutively every 7 minutes.

To enable timed messages, create a file in the mod's local storage folder named "!messages.txt". Note the exclaimation mark (!) preceding the file name. The exclaimation mark causes the file to be listed near the top of the folder.

Enter each message on a seperate line in the '!messages.txt' file. Empty lines and lines that begin with an astrisk (*) will be ignored. If you wish to specify a time between messages different from the default time of 7 minutes, enter it as the first line of the file. Values from 5 to 60 are allowed.

By default, messages are displayed as from 'Server'. You can change this to your preference by preceding a message line with your custom sender name and appending a semicolon (;) to it, e.g. "Space Master;".

A message can be marked to be skipped by prepending an astrisk (*) to the line. This is useful in hiding a message you may want to enable later without having to delete it.

Changes to '!messages.txt' are checked when the current message cycle times out.

Example:

5 The line above this message sets the time between messages to 5 minutes. This message is displayed with 'Server' as the sender by default, Space Master;This message is displayed with 'Space Master' as the sender. *This message is never displayed because it is prepended with an astrisk. ... ...

Annoucement
Sometimes you need to send an annoucement to players in the game without logging into it. For example, you just received an update to your game client and cannot connect to the game to inform players that you want to restart the server.

To send an announcement, create a file in the mod's local storage folder named "!announcement.txt". Note the exclaimation mark (!) preceding the file name. The exclaimation mark causes the file to be listed near the top of the folder.

An announcement has the follwing format: [seconds;[color;]]message

In its simplest form, an announcement is a line of text that will be displayed for two seconds. To change the duration the message is displayed, prepend the duration in seconds followed by a semicolon (;), e.g. "10;This message will display for ten seconds." Additionally, you can specify the color of the announcement, e.g. "5;Green;This message is green and lasts five seconds." To specify color, you must also specify a duration.

After the announcement has been displayed, the '!announcement.txt' file will be deleted.

Announcements are checked for once per minute.

Valid color names are: Red, Green, Blue, White, & DarkBlue.

Examples:
Simple: A simple announcement displayed in white for two secconds. Custom Duration: 10;This announcement is displayed in white for ten seconds. Custom Color and Duration: 10;red;This announcement is displayed in red for ten secconds.
51 Comments
Deathstriker 12 Feb @ 1:54am 
Is this mod still working or has the broken part mentioned previously been fixed? I am asking as we need something like this for our server but not willing to struggle with mods known to be broken? Thanks in advance
Danny Wilkerson 4 May, 2022 @ 1:44am 
MOTD: Works as advertised
Timed Messages: Broken, nothing is displayed
Annoucement: Broken, file is read and deleted but nothing displayed
Kosmos^.^ 22 Feb, 2021 @ 12:25pm 
the file is not creating in my dedicated server for me to edit
Chrisbot  [author] 31 Dec, 2020 @ 2:26am 
I will look into the macros.
van Legne 30 Dec, 2020 @ 10:23am 
Nice Mod,
This is what i was searching for. Thank you.:steamthumbsup:
Unfortunately some macros don't work like @PlayerName and @WorldName. I have even tried a compled new-installation of the dedicated server. /help is also not working, but no big issue.
Fenix 12 Dec, 2020 @ 1:13am 
! Messages.txt - works?
danz0l99 3 Jul, 2020 @ 2:39am 
is /help working ? I created a hangars.txt and neither /help or /help hangars shows via chat ? But being an admin i think something might be overriding it ?
zatrix 18 Apr, 2020 @ 7:30am 
It all works just fine! The colors for timed messages to emulate foe/friendly would be an awesome add
Chrisbot  [author] 30 Mar, 2020 @ 3:30pm 
I think I may totally revamp this. Not sure what is working.
alfawolf 30 Mar, 2020 @ 8:41am 
Those timed chat messages, does it still work? Empty world no mods, no scripts, default time 5, been waiting for 30 mins no messages appears. Only thing that works are the motd and help file.