Page 2 of 2

Re: [Mod] Beds (complete rewrite) [1.1] [beds]

PostPosted: Fri Aug 29, 2014 10:40
by twoelk
Daïmanu wrote:Hi.
I found a bug: when you click on the bed while your moving, the movement will continue in your sleep.


yay a sleepwalking mod

Re: [Mod] Beds (complete rewrite) [1.1] [beds]

PostPosted: Fri Aug 29, 2014 13:39
by Krock
Yes, I noticed this moving bug too.
A possible way to fix it, would be setting the player velocity to 0, but that's impossible with the current engine.

Re: [Mod] Beds (complete rewrite) [1.1] [beds]

PostPosted: Thu Sep 04, 2014 17:43
by Casimir
Every time I rejoin, I spawn at the bed (without dying). Is this the intended behavior or a bug?

Edit: Somehow sometimes it does not happen. Another problem, the beds do not appear in the craft guide (tested with zcg).

Re: [Mod] Beds (complete rewrite) [1.1] [beds]

PostPosted: Fri Sep 19, 2014 19:47
by BlockMen
Casimir wrote:Every time I rejoin, I spawn at the bed (without dying). Is this the intended behavior or a bug?

Edit: Somehow sometimes it does not happen. Another problem, the beds do not appear in the craft guide (tested with zcg).


No, ofc its not intended behavior. Can you give more information about the "sometimes" conditions?

Re: [Mod] Beds (complete rewrite) [1.1] [beds]

PostPosted: Fri Sep 19, 2014 19:56
by Casimir
I'm not sure why you have this line there, but removing it solved it and I don't see any problems from that change. It happened when you sleep on a server, when you log out you get teleported to the position the bed mod set.

About the thing that they don't appear in the craftguide, that is solved by changing the crafting recipe to "output = name .. "_bottom"

Re: [Mod] Beds (complete rewrite) [1.1] [beds]

PostPosted: Sun Sep 21, 2014 11:46
by PsiGuy60
Getting errors when I try to sleep in single player on MT 0.4.10...

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
13:43:39: ERROR[main]: ServerError: /home/john/.minetest/mods/beds/init.lua:86: attempt to index field 'player_attached' (a nil value)
13:43:39: ERROR[main]: stack traceback:
13:43:39: ERROR[main]:    /home/john/.minetest/mods/beds/init.lua:86: in function 'lay_down'
13:43:39: ERROR[main]:    /home/john/.minetest/mods/beds/init.lua:146: in function 'on_rightclick'
13:43:39: ERROR[main]:    /home/john/.minetest/mods/beds/nodes.lua:62: in function 'on_rightclick'
13:43:39: ERROR[main]:    /usr/share/minetest/builtin/game/item.lua:326: in function </usr/share/minetest/builtin/game/item.lua:319>
13:43:39: ERROR[main]:    (tail call): ?


I might be missing something though.

Re: [Mod] Beds (complete rewrite) [1.1] [beds]

PostPosted: Sun Sep 21, 2014 12:05
by Krock
PsiGuy60 wrote:Getting errors when I try to sleep in single player...

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
13:43:39: ERROR[main]: ServerError: /home/john/.minetest/mods/beds/init.lua:86: attempt to index field 'player_attached' (a nil value)

I might be missing something though.

You need the newest minetest version for this mod. (version 0.4.10 or 0.4.10-dev)

Re: [Mod] Beds (complete rewrite) [1.1] [beds]

PostPosted: Sun Sep 21, 2014 13:12
by PsiGuy60
Krock wrote:
PsiGuy60 wrote:Getting errors when I try to sleep in single player...

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
13:43:39: ERROR[main]: ServerError: /home/john/.minetest/mods/beds/init.lua:86: attempt to index field 'player_attached' (a nil value)

I might be missing something though.

You need the newest minetest version for this mod. (version 0.4.10 or 0.4.10-dev)

I'm on 0.4.10, still getting that error. Should have said it earlier though.

EDIT: No I'm not. It's working on regular Minetest, not on Minetest+ or any of the other games I added myself.

Re: [Mod] Beds (complete rewrite) [1.1] [beds]

PostPosted: Sun Sep 21, 2014 13:48
by Krock
PsiGuy60 wrote:I'm on 0.4.10, still getting that error. Should have said it earlier though.

EDIT: No I'm not. It's working on regular Minetest, not on Minetest+ or any of the other games I added myself.

Sorry. I meant the minetest_game.
https://github.com/minetest/minetest_ga ... er.lua#L38
You're using a (sub)game which does not contain this variable.

Re: [Mod] Beds (complete rewrite) [1.1] [beds]

PostPosted: Sun Sep 21, 2014 16:46
by PsiGuy60
Krock wrote:
PsiGuy60 wrote:I'm on 0.4.10, still getting that error. Should have said it earlier though.

EDIT: No I'm not. It's working on regular Minetest, not on Minetest+ or any of the other games I added myself.

Sorry. I meant the minetest_game.
https://github.com/minetest/minetest_ga ... er.lua#L38
You're using a (sub)game which does not contain this variable.

As I said, it's working on minetest_game, so I'm happy. I'll see about replacing the game modes without player_attached (or just using one of the other bed mods instead for those).

Re: [Mod] Beds (complete rewrite) [1.1] [beds]

PostPosted: Thu Apr 09, 2015 23:41
by afflatus
Is it possible to add a chatcommand to deregister yourself?
As admin, having tested the beds, I don't want to participate in sleeping.
Naturally I will edit the files in /worlds when I reboot, but it would be useful to be able to do this in-game.

Or deregister on_dignode would be even better.

Re: [Mod] Beds (complete rewrite) [1.1] [beds]

PostPosted: Fri Apr 10, 2015 19:06
by BlockMen
afflatus wrote:Is it possible to add a chatcommand to deregister yourself?
As admin, having tested the beds, I don't want to participate in sleeping.
Naturally I will edit the files in /worlds when I reboot, but it would be useful to be able to do this in-game.

Or deregister on_dignode would be even better.


In general, yes, i guess.
Slightly modified this mod is now part of Minetest Game (https://github.com/minetest/minetest_ga ... /mods/beds), so this mod is kinda discontinued.