[Mod] Write on Paper [0.1.1] [memorandum]

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Actually if you just use nodebox + facedir, you can rotate it to sit against the wall OR floor (or ceiling) quite easily. Facedir/param2 values go from 0 to 23, just experiment until you find the right values.

The Lua API tries to explain it, but look at the dirs1{} and dirs2{} tables used by the rotate_and_place() function in builtin/misc_helpers.lua for hints on how it *really* works.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

VanessaE wrote:Actually if you just use nodebox + facedir, you can rotate it to sit against the wall OR floor (or ceiling) quite easily. Facedir/param2 values go from 0 to 23, just experiment until you find the right values.

The Lua API tries to explain it, but look at the dirs1{} and dirs2{} tables used by the rotate_and_place() function in builtin/misc_helpers.lua for hints on how it *really* works.
Thank you, Vanessa. :)
I'll experiment with it.

Noob 4 life!
My stuff

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

Write on Paper 0.1.1
- Removed 2 nodes
- Letters can be pinned to a wall below eye level

Messages aren't lost, but some old letters are rotated incorrectly.
Spoiler
Image
Image
This can be "easily" fixed by picking them up and placing them again (hope nobody used letters as wallpapers).

Noob 4 life!
My stuff

User avatar
DaN
Member
Posts: 82
Joined: Sat Apr 06, 2013 19:09
Location: Silicon Valley
Contact:

by DaN » Post

Mossmanikin wrote:Write on Paper 0.1.1
- Removed 2 nodes
- Letters can be pinned to a wall below eye level

Messages aren't lost, but some old letters are rotated incorrectly.
Spoiler
This can be "easily" fixed by picking them up and placing them again (hope nobody used letters as wallpapers).
Wallpapers... hmm... nah.
DaN H.

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

by philipbenr » Post

DaN wrote:
Mossmanikin wrote:Write on Paper 0.1.1
- Removed 2 nodes
- Letters can be pinned to a wall below eye level

Messages aren't lost, but some old letters are rotated incorrectly.
Spoiler
This can be "easily" fixed by picking them up and placing them again (hope nobody used letters as wallpapers).
Wallpapers... hmm... nah.
Doesn't quite fit my style...

vitaminx
Member
Posts: 49
Joined: Tue Dec 30, 2014 15:08

.

by vitaminx » Post

.
Last edited by vitaminx on Sun Sep 23, 2018 15:51, edited 1 time in total.

User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Write on Paper [0.1.1] [memorandum]

by Krock » Post

vitaminx wrote:Could anyone please look at it?
Just extend the following lines:

Code: Select all

63	on_receive_fields = function(pos, formname, fields, sender)
+			if not (fields.text and fields.signed) then
+				return
+			end
64		local meta = minetest.get_meta(pos)
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

vitaminx
Member
Posts: 49
Joined: Tue Dec 30, 2014 15:08

.

by vitaminx » Post

.
Last edited by vitaminx on Sun Sep 23, 2018 15:51, edited 1 time in total.

amadin
Member
Posts: 549
Joined: Tue Jun 16, 2015 16:23

Re: [Mod] Write on Paper [0.1.1] [memorandum]

by amadin » Post

vitaminx wrote:Hi, thanks for the fix, I've opened a pull request for the author.
Meanwhile you can get the fixed repository here:
https://github.com/vitaminx/memorandum
Your fix work but:
01:41:05: WARNING: Assignment to undeclared global "mssg" inside a function at .../games/minetest_game/mods/memorandum/memorandum/init.lua:126.
01:41:05: WARNING: Assignment to undeclared global "sgnd" inside a function at .../games/minetest_game/mods/memorandum/memorandum/init.lua:127.
And server was crashed then player used lastic (eraser).

User avatar
theFox
Member
Posts: 192
Joined: Sun Feb 12, 2017 14:08
GitHub: theFox6
In-game: theFox
Location: Germany

Re: [Mod] Write on Paper [0.1.1] [memorandum]

by theFox » Post

Could someone please unify the existing forks? It would be awesome if one working version with all features would exist...
my mods and subgames (ง'̀-'́)ง

User avatar
theFox
Member
Posts: 192
Joined: Sun Feb 12, 2017 14:08
GitHub: theFox6
In-game: theFox
Location: Germany

Re: [Mod] Write on Paper [0.1.1] [memorandum]

by theFox » Post

I would like to have a repository I can contribute to because I would like to make floating message bottles that will disappear and reappear somewhere else.
my mods and subgames (ง'̀-'́)ง

User avatar
Wuzzy
Member
Posts: 4788
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Recipe collision found!

by Wuzzy » Post

There is a recipe collision with the mod “sandwiches”.

viewtopic.php?t=20353
https://notabug.org/Annalysa/sandwiches ... r/init.lua

The “memorandum” mod makes eraser craftable from bread.
However, the “sandwiches” mod makes bread slices craftable from bread, too.
It's the same recipe, but different output. This is a conflict, and only one mod can “win” (because that's how the crafting grid works).

I strongly suggest to either change the bread → eraser recipe to something that will likely not have collisions, or to remove it.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests