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

twoelk
Member
 
Posts: 1092
Joined: Fri Apr 19, 2013 16:19

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

by twoelk » Fri Aug 29, 2014 10:40

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
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

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

by Krock » Fri Aug 29, 2014 13:39

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.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Casimir
Member
 
Posts: 1101
Joined: Fri Aug 03, 2012 16:59

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

by Casimir » Thu Sep 04, 2014 17:43

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).
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

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

by BlockMen » Fri Sep 19, 2014 19:47

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?
 

User avatar
Casimir
Member
 
Posts: 1101
Joined: Fri Aug 03, 2012 16:59

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

by Casimir » Fri Sep 19, 2014 19:56

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"
 

PsiGuy60
New member
 
Posts: 3
Joined: Tue Sep 16, 2014 13:16

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

by PsiGuy60 » Sun Sep 21, 2014 11:46

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.
Last edited by PsiGuy60 on Sun Sep 21, 2014 13:14, edited 1 time in total.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

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

by Krock » Sun Sep 21, 2014 12:05

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)
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

PsiGuy60
New member
 
Posts: 3
Joined: Tue Sep 16, 2014 13:16

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

by PsiGuy60 » Sun Sep 21, 2014 13:12

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.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

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

by Krock » Sun Sep 21, 2014 13:48

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.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

PsiGuy60
New member
 
Posts: 3
Joined: Tue Sep 16, 2014 13:16

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

by PsiGuy60 » Sun Sep 21, 2014 16:46

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).
 

User avatar
afflatus
Member
 
Posts: 302
Joined: Tue Apr 01, 2014 19:47
GitHub: 0-afflatus
IRC: afflatus
In-game: afflatus

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

by afflatus » Thu Apr 09, 2015 23:41

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.
Grailtest is sleeping ...
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

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

by BlockMen » Fri Apr 10, 2015 19:06

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.
 

Previous

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 11 guests

cron