[Mod] Beds [beds]
- thefamilygrog66
- Member
- Posts: 170
- Joined: Mon Jul 09, 2012 19:08
- Location: Ontario, Canada
PilzAdam: I see that you've added a couple of lines (62 and 63) to remove the bottom of the bed if the player tries to place it too close to an object. The only problem with this is that the player loses the bed. Is it possible to have the bed added to the player's inventory when this happens?
My Mods: Living Room Furniture [lrfurn] / Lava Lamps / Mob Spawn Eggs [spawneggs] / Bring Me The Head [heads] / Hedge Maze [maze] / Magic Beans / Coloured Beds [Beds fork]
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
Fixed, thanks for reporting.thefamilygrog66 wrote:PilzAdam: I see that you've added a couple of lines (62 and 63) to remove the bottom of the bed if the player tries to place it too close to an object. The only problem with this is that the player loses the bed. Is it possible to have the bed added to the player's inventory when this happens?
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
Update!
The player now really lays in the bed now and cant move away. You have to rightclick to get up.
Note: this requires latest dev version of Minetest, so dont update if you run 0.4.6 stable. It should work for everyone if 0.4.7 comes out.
The player now really lays in the bed now and cant move away. You have to rightclick to get up.
Note: this requires latest dev version of Minetest, so dont update if you run 0.4.6 stable. It should work for everyone if 0.4.7 comes out.
Last edited by PilzAdam on Tue Apr 23, 2013 12:17, edited 1 time in total.
Umm...really lays? I would like to quote you:PilzAdam wrote:Update!
The player now really lays in the bed now and cant move away. You have to rightclick to get up.
Note: this requires latest dev version of Minetest, so dont update if you run 0.4.6 stable. It should work for everyone if 0.4.7 comes out.
(http://forum.minetest.net/viewtopic.php ... 955#p83955)PilzAdam wrote:... is fake (you just change the pitch of the camera, if people move the camera they will notice that they still stand inside the bed).
But nice to use set_physics_override() to stop moving.
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
Well, I really change the position of the camera and not just the pitch (in fact I dont change the pitch at all). I also disallow moving away, so it isnt real fake laying.BlockMen wrote:Umm...really lays? I would like to quote you:PilzAdam wrote:Update!
The player now really lays in the bed now and cant move away. You have to rightclick to get up.
Note: this requires latest dev version of Minetest, so dont update if you run 0.4.6 stable. It should work for everyone if 0.4.7 comes out.(http://forum.minetest.net/viewtopic.php ... 955#p83955)PilzAdam wrote:... is fake (you just change the pitch of the camera, if people move the camera they will notice that they still stand inside the bed).
But nice to use set_physics_override() to stop moving.
How do you change the camera position?
My Essential Server Modpack: ServerExtended
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
You change the position of the player (which sometimes falls down when using bed in second floor) So its also no real lying, its fake too, but maybe a better one.PilzAdam wrote: Well, I really change the position of the camera and not just the pitch (in fact I dont change the pitch at all). I also disallow moving away, so it isnt real fake laying.
Oh, I thought you actually set the camera position. As opposed to player position.
My Essential Server Modpack: ServerExtended
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
Ehm.... I do set the camera position.Traxie21 wrote:Oh, I thought you actually set the camera position. As opposed to player position.
I have no idea how the player can fall down when the gravity is set to 0. Maybe network latency :-/BlockMen wrote:You change the position of the player (which sometimes falls down when using bed in second floor) So its also no real lying, its fake too, but maybe a better one.PilzAdam wrote: Well, I really change the position of the camera and not just the pitch (in fact I dont change the pitch at all). I also disallow moving away, so it isnt real fake laying.
No it has nothing to do with network latency. I tried this placing a bed on the 2nd floor and I fell through the floor and then have to log out and in again to be able to move :-) Something is not quite right in the code. This is on latest git on local machine.PilzAdam wrote:Ehm.... I do set the camera position.Traxie21 wrote:Oh, I thought you actually set the camera position. As opposed to player position.
I have no idea how the player can fall down when the gravity is set to 0. Maybe network latency :-/BlockMen wrote:You change the position of the player (which sometimes falls down when using bed in second floor) So its also no real lying, its fake too, but maybe a better one.PilzAdam wrote: Well, I really change the position of the camera and not just the pitch (in fact I dont change the pitch at all). I also disallow moving away, so it isnt real fake laying.
To me it really looks like the player is moved 1block or ½ a block down, then falls through the floor.
- onpon4
- Member
- Posts: 518
- Joined: Thu Mar 21, 2013 01:54
- GitHub: onpon4
- In-game: diligentcircle
- Contact:
Is there any way you could add a link to download the latest version that worked with 0.4.6 until 0.4.7 comes out? Would that be http://github.com/PilzAdam/beds/archive ... 1dbe9b.zip (4cf28c00dc)?
My website: https://onpon4.github.io
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
Done.onpon4 wrote:Is there any way you could add a link to download the latest version that worked with 0.4.6 until 0.4.7 comes out? Would that be http://github.com/PilzAdam/beds/archive ... 1dbe9b.zip (4cf28c00dc)?
I'm having some problems with this mod and I'm wondering if you could help. The first problem is that when lying in the bed, the camera is actually inside the bed itself. Also when leaving the bed, if there is a wall on the right hand side I get stuck in it. How can I have beds only accessible from the left? Thanks!
-
- New member
- Posts: 3
- Joined: Sat Jun 29, 2013 12:47
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Try renaming the folder to 'beds'.CrafterZ123 wrote:it does not work for me my minetest version is 0.4.7
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated! PayPal
Check out my stuff! | Donations greatly appreciated! PayPal
-
- New member
- Posts: 5
- Joined: Fri Jun 21, 2013 15:56
BUG: I slept in my bed a couple times. Now, whever the sun is about to set, even if I'm not in my bed, the time skips over the night and resets to morning. This is terrible!
Last edited by ak399g on Tue Aug 06, 2013 22:20, edited 1 time in total.
aka SAFR
- thefamilygrog66
- Member
- Posts: 170
- Joined: Mon Jul 09, 2012 19:08
- Location: Ontario, Canada
You can reset the beds if you go to the folder for your world (i.e. minetestpath\worlds\worldname\) and delete the file named:ak399g wrote:BUG: I slept in my bed a couple times. Now, whever the sun is about to set, even if I'm not in my bed, the time skips over the night and resets to morning. This is terrible!
beds_player_spawns
After that, you will spawn at spawn, as opposed to your bed, until you sleep in a bed at night time.
My Mods: Living Room Furniture [lrfurn] / Lava Lamps / Mob Spawn Eggs [spawneggs] / Bring Me The Head [heads] / Hedge Maze [maze] / Magic Beans / Coloured Beds [Beds fork]
- Silent-Hunter
- Member
- Posts: 30
- Joined: Wed Nov 06, 2013 20:06
I have the same problem! I don't know LUA, but I might look over the code and see if I can fix it.kpo wrote:I tried this placing a bed on the 2nd floor and I fell through the floor and then have to log out and in again to be able to move :-) Something is not quite right in the code. This is on latest git on local machine. To me it really looks like the player is moved 1block or ½ a block down, then falls through the floor.
Who is online
Users browsing this forum: Dmax_05 and 28 guests