I found the bug. When the server shuts down and a player is on bike, he is not dismounted. This happens mainly in singleplayer. I have partially fixed the bug. It should now work when the server shuts down regularly but there should be still something in case of crashes.voxelproof wrote:Sorry to say this, but the mod (at least the latest unstable version) has a very serious and disqualifying bug: after disabling the mod and then enabling it again you cannot not only ride the bike, but also dig or place any nodes. This should come as a warning to potential users -- do not install it in the worlds where you have some important to you ongoing building projects :-) Thankfully teached by Dreambuilder I tested it in experimental world, so it didn't cause much disappointment. Edit: after disabling the mod again the digging/placing capabilities are retrieved.
[mod] Bike for Minetest [1.2.2] [bike]
- Hume2
- Member
- Posts: 709
- Joined: Tue Jun 19, 2018 08:24
- GitHub: Hume2
- In-game: Hume2
- Location: Czech Republic
Re: [mod] Bike for Minetest [1.0] [bike]
If you lack the reality, go on a trip or find a job.
- voxelproof
- Member
- Posts: 1087
- Joined: Sat Aug 05, 2017 08:13
- Location: Europe
Re: [mod] Bike for Minetest [1.0] [bike]
Thanks for your response and great you've found it. Nevertheless the idea of the total protection of the world from the damage caused by a player is certainly worth some careful deliberation ;)Hume2 wrote:I found the bug. When the server shuts down and a player is on bike, he is not dismounted. This happens mainly in singleplayer. I have partially fixed the bug. It should now work when the server shuts down regularly but there should be still something in case of crashes.voxelproof wrote:Sorry to say this, but the mod (at least the latest unstable version) has a very serious and disqualifying bug: after disabling the mod and then enabling it again you cannot not only ride the bike, but also dig or place any nodes. This should come as a warning to potential users -- do not install it in the worlds where you have some important to you ongoing building projects :-) Thankfully teached by Dreambuilder I tested it in experimental world, so it didn't cause much disappointment. Edit: after disabling the mod again the digging/placing capabilities are retrieved.
I'll keep testing and will report any bugs I encounter. However good job so far.
To miss the joy is to miss all. Robert Louis Stevenson
Re: [mod] Bike for Minetest [1.0] [bike]
the bug with the players not getting unmounted also happens in multiplayer, btw.
Play on Linuxworks server. We have got lots of trains.
My mods (Industrial Livestock Farming, Farebox and Faregate, Moving Walkways, Atm)
My mods (Industrial Livestock Farming, Farebox and Faregate, Moving Walkways, Atm)
- Hume2
- Member
- Posts: 709
- Joined: Tue Jun 19, 2018 08:24
- GitHub: Hume2
- In-game: Hume2
- Location: Czech Republic
Re: [mod] Bike for Minetest [1.0] [bike]
Now the player's former hand is saved into a hidden slot of player's inventory. And when a player joins with bike:hand in hand, it is immediately replaced by the correct hand. Therefore the bug should be fixed.
If you lack the reality, go on a trip or find a job.
- GreenXenith
- Member
- Posts: 1356
- Joined: Wed Oct 28, 2015 01:26
- GitHub: GreenXenith
- Location: UTC-8:00
- Contact:
Re: [mod] Bike for Minetest [1.0] [bike]
The former hand was already saved. Your new method doesn't seem to be any different, and might be less efficient.Hume2 wrote:Now the player's former hand is saved into a hidden slot of player's inventory.
EDIT: While it is less efficient, it is useful for safety checks when the bike entity isn't available to check.
While this is a good check, it doesn't do much in the way of fixing the problem. The problem was the player not dismounting on shutdown. Your fix for that part is fine. Dismounting the player already replaces the hand on it's own, so as long as the player is always dismounted before joining again, this check should never be run.And when a player joins with bike:hand in hand, it is immediately replaced by the correct hand. Therefore the bug should be fixed.
Thank you for your fix though. I will submit a PR with the skin fix soon (along with code cleanup).
YouTube | Mods | Patreon | Minetest Discord @greenxenith
You should not be able to read this message.
You should not be able to read this message.
- sorcerykid
- Member
- Posts: 1841
- Joined: Fri Aug 26, 2016 15:36
- GitHub: sorcerykid
- In-game: Nemo
- Location: Illinois, USA
Re: [mod] Bike for Minetest [1.0] [bike]
This is def. one of the best new mods I've seen for Minetest, esp. with the improved player animation by GreenDimond. On servers in particular, bikes will undoubtedly encourage new players to venture beyond spawn and explore without the need for a minecart. I am tempted to add this to JT2 with a bike rental station, for environmentally friendly transportation throughout the city :D
- GreenXenith
- Member
- Posts: 1356
- Joined: Wed Oct 28, 2015 01:26
- GitHub: GreenXenith
- Location: UTC-8:00
- Contact:
Re: [mod] Bike for Minetest [1.0] [bike]
PR opened for 3d_armor and complete(?) skin support.
https://gitlab.com/h2mm/bike/merge_requests/2
https://gitlab.com/h2mm/bike/merge_requests/2
YouTube | Mods | Patreon | Minetest Discord @greenxenith
You should not be able to read this message.
You should not be able to read this message.
Re: [mod] Bike for Minetest [1.0] [bike]
The bug with the player still being attached after leaving the game is still there, the skins bug is fixed, though. I think I can submit a bugfix tomorrow.
Also, I'm going to look into the eye position and see if i can lower it a bit, so the player can see the handlebar while looking forward. This should make the bikes easier to drive.
Also, I'm going to look into the eye position and see if i can lower it a bit, so the player can see the handlebar while looking forward. This should make the bikes easier to drive.
Play on Linuxworks server. We have got lots of trains.
My mods (Industrial Livestock Farming, Farebox and Faregate, Moving Walkways, Atm)
My mods (Industrial Livestock Farming, Farebox and Faregate, Moving Walkways, Atm)
- GreenXenith
- Member
- Posts: 1356
- Joined: Wed Oct 28, 2015 01:26
- GitHub: GreenXenith
- Location: UTC-8:00
- Contact:
Re: [mod] Bike for Minetest [1.0] [bike]
I can't reproduce this. Please make sure your version is updated?gpcf wrote:The bug with the player still being attached after leaving the game is still there, the skins bug is fixed, though. I think I can submit a bugfix tomorrow.
Also make sure to use new bikes. Old ones might still break.
I tried to keep it at the best position I could where:Also, I'm going to look into the eye position and see if i can lower it a bit, so the player can see the handlebar while looking forward. This should make the bikes easier to drive.
1) Cant clip through the face when looking around
2) Cant look up and see chin
3) Needs to see arms
If you can make the view see these as well as the handlebars, please do!
YouTube | Mods | Patreon | Minetest Discord @greenxenith
You should not be able to read this message.
You should not be able to read this message.
- GreenXenith
- Member
- Posts: 1356
- Joined: Wed Oct 28, 2015 01:26
- GitHub: GreenXenith
- Location: UTC-8:00
- Contact:
Re: [mod] Bike for Minetest [1.0] [bike]
Double post but worth it
Coming soon to a pull request near you.
Coming soon to a pull request near you.
YouTube | Mods | Patreon | Minetest Discord @greenxenith
You should not be able to read this message.
You should not be able to read this message.
- Glory!
- Member
- Posts: 92
- Joined: Thu Apr 30, 2015 17:45
- GitHub: Glory7000
- In-game: Glory7000
- Location: Kernel Debugging Land <3
Re: [mod] Bike for Minetest [1.0] [bike]
^ Amazing. Vehicular paint is always good and we should cherish the mods that allow us to paint our vehicles.
Behold the Razgriz, its wings of black sheath. :: My skin A competitor that unfortunately needs attention to stay afloat.
- Hume2
- Member
- Posts: 709
- Joined: Tue Jun 19, 2018 08:24
- GitHub: Hume2
- In-game: Hume2
- Location: Czech Republic
Re: [mod] Bike for Minetest [1.0] [bike]
Oh, thank you all!
GreenDimond: Thanks for your participation! I'll look at your second merge request. I know that the bug could be fixed only by the register_on_joinplayer but I prefer dismounting the bike friendly if possible rather than fixing the consequences. Note that the on_shutdown function is not called when the server crashes. Well, there is no notable difference but I feel better like that.
EDIT: I merged your request. I found a tiny bug: Skins can't be changed while the player is on the bike and is changed after unmount. However, this is caused by lack of skinsdb's support. It's definitely not our fault.
gpcf: If you are already bugged, my fix might not do anything. However, you shouldn't get bugged again. Also check that you are up-to-date.
EDIT: If there are no other bugs, I'll release it as 1.1.
EDIT: I tested the mod on LinuxWorks server. Right turns are quite tricky and lags also play a role. I limited the speed to 25 km/h, it's still faster than boats. Also I found that players don't get dismounted when killed. This should be now fixed too.
GreenDimond: Thanks for your participation! I'll look at your second merge request. I know that the bug could be fixed only by the register_on_joinplayer but I prefer dismounting the bike friendly if possible rather than fixing the consequences. Note that the on_shutdown function is not called when the server crashes. Well, there is no notable difference but I feel better like that.
EDIT: I merged your request. I found a tiny bug: Skins can't be changed while the player is on the bike and is changed after unmount. However, this is caused by lack of skinsdb's support. It's definitely not our fault.
gpcf: If you are already bugged, my fix might not do anything. However, you shouldn't get bugged again. Also check that you are up-to-date.
EDIT: If there are no other bugs, I'll release it as 1.1.
EDIT: I tested the mod on LinuxWorks server. Right turns are quite tricky and lags also play a role. I limited the speed to 25 km/h, it's still faster than boats. Also I found that players don't get dismounted when killed. This should be now fixed too.
If you lack the reality, go on a trip or find a job.
- GreenXenith
- Member
- Posts: 1356
- Joined: Wed Oct 28, 2015 01:26
- GitHub: GreenXenith
- Location: UTC-8:00
- Contact:
Re: [mod] Bike for Minetest [1.0] [bike]
Re-placing bikes after a server crash is trivial, no need to worry about that.Hume2 wrote:GreenDimond: Thanks for your participation! I'll look at your second merge request. I know that the bug could be fixed only by the register_on_joinplayer but I prefer dismounting the bike friendly if possible rather than fixing the consequences. Note that the on_shutdown function is not called when the server crashes. Well, there is no notable difference but I feel better like that.
Doesn't matter anyway, you cant change clothes while riding a bike now can you ;)EDIT: I merged your request. I found a tiny bug: Skins can't be changed while the player is on the bike and is changed after unmount. However, this is caused by lack of skinsdb's support. It's definitely not our fault.
YouTube | Mods | Patreon | Minetest Discord @greenxenith
You should not be able to read this message.
You should not be able to read this message.
- Hume2
- Member
- Posts: 709
- Joined: Tue Jun 19, 2018 08:24
- GitHub: Hume2
- In-game: Hume2
- Location: Czech Republic
Re: [mod] Bike for Minetest [1.0] [bike]
Maybe a jester can do it but let's assume that people usually don't do it :)GreenDimond wrote:Doesn't matter anyway, you cant change clothes while riding a bike now can you ;)
I released the version 1.1 because it seems like all bugs are fixed.
Ideas for the next releases:
- Bike racks
- Bike locks
- More bike colours
If you lack the reality, go on a trip or find a job.
Re: [mod] Bike for Minetest [1.1] [bike]
I tried this out on 0.4.17 with no other mods that overrided the player, when i got on the bike my player was invisible with only the helmet being visible.
My guess you guys made a mistake and only shows the character if whatever skin mod it supports is installed.
My guess you guys made a mistake and only shows the character if whatever skin mod it supports is installed.
Hey, what can i say? I'm the bad guy.
- GreenXenith
- Member
- Posts: 1356
- Joined: Wed Oct 28, 2015 01:26
- GitHub: GreenXenith
- Location: UTC-8:00
- Contact:
Re: [mod] Bike for Minetest [1.1] [bike]
I just now tested and discovered that 3d_armor with no skin mod results in an empty skin, however I could not reproduce this with just the bike mod alone.Stix wrote:I tried this out on 0.4.17 with no other mods that overrided the player, when i got on the bike my player was invisible with only the helmet being visible.
My guess you guys made a mistake and only shows the character if whatever skin mod it supports is installed.
The armor bug will be fixed next update (the one with the colors :3)
EDIT: PR opened.
Last edited by GreenXenith on Tue Sep 11, 2018 03:52, edited 1 time in total.
YouTube | Mods | Patreon | Minetest Discord @greenxenith
You should not be able to read this message.
You should not be able to read this message.
Re: [mod] Bike for Minetest [1.1] [bike]
Ah sry, i forgot i also had 3d_armor installed...GreenDimond wrote:I just now tested and discovered that 3d_armor with no skin mod results in an empty skin, however I could not reproduce this with just the bike mod alone.Stix wrote:I tried this out on 0.4.17 with no other mods that overrided the player, when i got on the bike my player was invisible with only the helmet being visible.
My guess you guys made a mistake and only shows the character if whatever skin mod it supports is installed.
The armor bug will be fixed next update (the one with the colors :3)
Hey, what can i say? I'm the bad guy.
Re: [mod] Bike for Minetest [1.1] [bike]
Bikes also need bells :D
Play on Linuxworks server. We have got lots of trains.
My mods (Industrial Livestock Farming, Farebox and Faregate, Moving Walkways, Atm)
My mods (Industrial Livestock Farming, Farebox and Faregate, Moving Walkways, Atm)
- Hume2
- Member
- Posts: 709
- Joined: Tue Jun 19, 2018 08:24
- GitHub: Hume2
- In-game: Hume2
- Location: Czech Republic
Re: [mod] Bike for Minetest [1.1] [bike]
I'll make a 1.1.1 release because two more bugs are fixed.
For bells: All controls are already occupied. Any idea to deal with it? :D
- 3D Armour mod is now supported correctly (thanks, GreenDimond!)
- Bikes are now always placed to the player's position, not the pointed position. Former behaviour allowed the players to get to places normally unaccessible because of his long hands.
For bells: All controls are already occupied. Any idea to deal with it? :D
If you lack the reality, go on a trip or find a job.
Re: [mod] Bike for Minetest [1.1] [bike]
You can use the "E" key, like advtrains does for the train horn.
Edit: I think it should be aux1 in minetest.get_player_controls()
Edit: I think it should be aux1 in minetest.get_player_controls()
Play on Linuxworks server. We have got lots of trains.
My mods (Industrial Livestock Farming, Farebox and Faregate, Moving Walkways, Atm)
My mods (Industrial Livestock Farming, Farebox and Faregate, Moving Walkways, Atm)
- GreenXenith
- Member
- Posts: 1356
- Joined: Wed Oct 28, 2015 01:26
- GitHub: GreenXenith
- Location: UTC-8:00
- Contact:
Re: [mod] Bike for Minetest [1.1] [bike]
Aux1 is already in use.gpcf wrote:You can use the "E" key, like advtrains does for the train horn.
Edit: I think it should be aux1 in minetest.get_player_controls()
We could use rightclick or leftclick. I like the idea of rightclick.
YouTube | Mods | Patreon | Minetest Discord @greenxenith
You should not be able to read this message.
You should not be able to read this message.
- GreenXenith
- Member
- Posts: 1356
- Joined: Wed Oct 28, 2015 01:26
- GitHub: GreenXenith
- Location: UTC-8:00
- Contact:
Re: [mod] Bike for Minetest [1.1.1] [bike]
The latest update now includes a "bike painter" tool.
This allows you to choose any of 4.2 billion colors to paint your bikes :D
Color is saved when you pick up the bike.
Go crazy :D
This allows you to choose any of 4.2 billion colors to paint your bikes :D
Color is saved when you pick up the bike.
Go crazy :D
YouTube | Mods | Patreon | Minetest Discord @greenxenith
You should not be able to read this message.
You should not be able to read this message.
- voxelproof
- Member
- Posts: 1087
- Joined: Sat Aug 05, 2017 08:13
- Location: Europe
Re: [mod] Bike for Minetest [1.1.1] [bike]
The graphics is the strongest feature of this mod so far, it's really impressive. And what about improving physics of the bike movement i.e. adding gravitational acceleration/deceleration?GreenDimond wrote:The latest update now includes a "bike painter" tool.
This allows you to choose any of 4.2 billion colors to paint your bikes :D
To miss the joy is to miss all. Robert Louis Stevenson
- GreenXenith
- Member
- Posts: 1356
- Joined: Wed Oct 28, 2015 01:26
- GitHub: GreenXenith
- Location: UTC-8:00
- Contact:
Re: [mod] Bike for Minetest [1.1.1] [bike]
Next on my todo list is bike racks/locks if Hume isn't already working on it.voxelproof wrote:what about improving physics of the bike movement i.e. adding gravitational acceleration/deceleration?
After I do that I will mess around with the physics and see what I can do.
YouTube | Mods | Patreon | Minetest Discord @greenxenith
You should not be able to read this message.
You should not be able to read this message.
- voxelproof
- Member
- Posts: 1087
- Joined: Sat Aug 05, 2017 08:13
- Location: Europe
Re: [mod] Bike for Minetest [1.1.1] [bike]
Great and thanks :) When tweaking the valleys mg I had in mind making it a basis for mountain sports, skiing, wingsuit flying but never thought about biking. It's strange cause mountain biking was once the only sport I personally engaged in (not professionally, just for recreation).GreenDimond wrote:Next on my todo list is bike racks/locks if Hume isn't already working on it.voxelproof wrote:what about improving physics of the bike movement i.e. adding gravitational acceleration/deceleration?
After I do that I will mess around with the physics and see what I can do.
To miss the joy is to miss all. Robert Louis Stevenson
Who is online
Users browsing this forum: Bing [Bot] and 11 guests