[Mod] Write Sign [write_sign]

User avatar
muhdnurhidayat
Member
 
Posts: 295
Joined: Wed Nov 16, 2016 22:55
Location: Shah Alam, Selangor, Malaysia
GitHub: MuhdNurHidayat
IRC: muhdnurhidayat
In-game: muhdnurhidayat

[Mod] Write Sign [write_sign]

by muhdnurhidayat » Sat Aug 25, 2018 08:52

Write Sign mod



This is an extension mod of WorldEdit for Minetest, so you need WorldEdit mod to use this mod.

Image

This mod adds new handy WorldEdit command that enables writing to supported signs. Without this mod, it is already possible to write into signs with the //luatransform command but that command requires admin privilege and server owner might not want to allow full access to it just for writing signs. This mod still needs worldedit privileges just like normal WorldEdit command, so only very trusted players could use it on servers.


Use cases:

This mod could be used in two situations:
  1. When you want to set multiple signs in the region with the same text.
  2. When the signs formspec could not accept certain characters due to Minetest formspec / Minetest built / Minetest running environment limitations but the characters could be written in chat.


Usage:

  1. Select the area where the signs are situated using WorldEdit. (Don't worry for non-signs node, they will not be affected with the command even if they're in the area).
  2. Run the command //writesign <text_string> where text_string is the text to be written to the signs.
  3. Alternatively, you can use the short commands //ws <text_string>.

Note: You can put \n for new lines directly in the text_string, new lines are ignored for signs that only accepts one line and replaced with spaces. You can also use the colour notations for signs_lib, but they will appear literal for display_modpacks signs.


Supported signs:

+ All signs from these mods



Download:

For rolling releases: https://github.com/MuhdNurHidayat/write ... master.zip
For latest releases: https://github.com/MuhdNurHidayat/write ... ses/latest
For browsing the code: https://github.com/MuhdNurHidayat/write_sign
For mirror of the code: https://gitlab.com/MuhdNurHidayat/write_sign


License:

GNU AGPL v3
Basically, this means everyone is free to use, modify, and distribute the mod, as long as modifications are also licensed the same way. Most importantly, the Affero variant of the GPL requires you to publish your modifications in source form, even if the mod is run only on the server, and not distributed.

It's released the same as the original WorldEdit license because this mod contains modification of their code.


Dependencies:

  1. minetest_game/default
  2. worldedit
  3. (optional) signs_lib
  4. (optional) display_modpack


Compatibility:

This mod is coded and tested on Minetest version 0.4.17.1 and therefore supported Minetest version 0.4.17.1, however it might still work for older Minetest versions as long as it's not below 0.4.8, and might also work on newer Minetest versions. I don't provide support of this mod for other Minetest versions.


Releases Changelog:

Date and time is in UTC+8.
  • v1.2 (27 August 2018, 9:27PM) - Bugfix, changed behaviour for Poster
  • v1.1 (26 August 2018, 2:49PM) - Emergency Patch (fixed one sign missed from list: signs_road:yellow_street_sign)
  • v1.0 (25 August 2018, 6:02PM) - Initial release


Issues:

If you have any issue, please reply this topic or open an issue on GitHub.

.
Attachments
screenshot_20180825_153334.png
Screenshot
(211.98 KiB) Not downloaded yet
Last edited by muhdnurhidayat on Mon Aug 27, 2018 13:32, edited 2 times in total.
[ Full signature ] - UTC+8 here, contributing to Minetest Wiki. I'm muhdnurhidayat in IFS (mod), HOMETOWN & others. / Twitter / MT Offtopic ✂️- - - - - -

You just read my profile, right?
Because these few texts of signature only appear on profile page as the texts are cut in signature. xD
 

User avatar
gpcf
Member
 
Posts: 295
Joined: Fri May 27, 2016 10:48
In-game: gabriel
 

User avatar
muhdnurhidayat
Member
 
Posts: 295
Joined: Wed Nov 16, 2016 22:55
Location: Shah Alam, Selangor, Malaysia
GitHub: MuhdNurHidayat
IRC: muhdnurhidayat
In-game: muhdnurhidayat

Re: [Mod] Write Sign [write_sign]

by muhdnurhidayat » Sun Aug 26, 2018 07:01

I missed one sign (signs_road:yellow_street_sign) from the mod.
I've patched it to support the missed sign in latest commit and released v1.1
I've also updated the first post accordingly, and put long list into spoilers to save space of the post.
[ Full signature ] - UTC+8 here, contributing to Minetest Wiki. I'm muhdnurhidayat in IFS (mod), HOMETOWN & others. / Twitter / MT Offtopic ✂️- - - - - -

You just read my profile, right?
Because these few texts of signature only appear on profile page as the texts are cut in signature. xD
 

User avatar
muhdnurhidayat
Member
 
Posts: 295
Joined: Wed Nov 16, 2016 22:55
Location: Shah Alam, Selangor, Malaysia
GitHub: MuhdNurHidayat
IRC: muhdnurhidayat
In-game: muhdnurhidayat

Re: [Mod] Write Sign [write_sign]

by muhdnurhidayat » Mon Aug 27, 2018 13:34

New minor version released, v1.2

Bugfix, changed behaviour for Poster

  • The mod should not crashed when `worldedit_shortcommands` is not enabled now.
  • The alias `//ws` is only registered if `worldedit_shortcommands` is enabled (some server owner don't want short commands).
  • Poster from `display_modpack` now takes first line as the title of poster (instead of merging everything into the title).
  • Poster from `display_modpack` will save "Press the Edit button." in the poster content if only one line is given, that one line itself will be saved as the title.
[ Full signature ] - UTC+8 here, contributing to Minetest Wiki. I'm muhdnurhidayat in IFS (mod), HOMETOWN & others. / Twitter / MT Offtopic ✂️- - - - - -

You just read my profile, right?
Because these few texts of signature only appear on profile page as the texts are cut in signature. xD
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 6 guests