[mod] Bike for Minetest [1.1.1] [bike]

User avatar
Hume2
Member
 
Posts: 352
Joined: Tue Jun 19, 2018 08:24
Location: Czech Republic
GitHub: Hume2
In-game: Hume2

Re: [mod] Bike for Minetest [bike]

by Hume2 » Fri Aug 31, 2018 06:53

GreenDimond wrote:
Hume2 wrote:model animation if anyone is willing to do that for me

Currently working on that.

Oh, thank you very much!
If you lack the reality, go on a trip or find a job.
 

User avatar
maxx
Member
 
Posts: 43
Joined: Thu Feb 15, 2018 15:24
Location: Germany | Bavaria
GitHub: maxxmodding
In-game: maxx or MrNobody

Re: [mod] Bike for Minetest [1.0] [bike]

by maxx » Fri Aug 31, 2018 07:48

You could add a trial bike for jumping higher than 0.5 blocks (=> 1 block)
But I think it is a nice idea!
visit https://forum.minetest.net/viewtopic.php?f=9&t=19743 to get more information about trainblocks
 

User avatar
FiftySix
Member
 
Posts: 14
Joined: Sun Jan 14, 2018 10:58
Location: Scotland
GitHub: BenjieFiftysix
In-game: fiftysix or benjie

Re: [mod] Bike for Minetest [1.0] [bike]

by FiftySix » Sat Sep 01, 2018 18:03

I am having the same problem I think AspireMint had. The player model goes into the ground, so the bike looks to big. The camera is still in the right place though. I think the first size looked better, but it was a little buggy when going through 1 wide spaces. Also, bikes are quite easy to move, so I think you should be able to pick the bike up without breaking it. Maybe a stack limit of 1 though.

Image
Attachments
player too low for bike.png
(82.26 KiB) Not downloaded yet
Frustrated with formspec strings? Check my formspec editor!
 

User avatar
gpcf
Member
 
Posts: 322
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [mod] Bike for Minetest [1.0] [bike]

by gpcf » Sat Sep 01, 2018 19:14

I think this is a 0.4 vs 0.5 issue. Player models are one of the ways 0.5 breaks compatibility, so please tell your version number.
 

User avatar
GreenDimond
Member
 
Posts: 1272
Joined: Wed Oct 28, 2015 01:26
Location: SCP-3008
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: [mod] Bike for Minetest [1.0] [bike]

by GreenDimond » Sat Sep 01, 2018 19:48

gpcf wrote:I think this is a 0.4 vs 0.5 issue. Player models are one of the ways 0.5 breaks compatibility, so please tell your version number.

The first post screenshot is from 5.0, so its possible the mod was made in 5.0 and therefore breaks in stable releases.
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenDimond#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.
 

User avatar
Hume2
Member
 
Posts: 352
Joined: Tue Jun 19, 2018 08:24
Location: Czech Republic
GitHub: Hume2
In-game: Hume2

Re: [mod] Bike for Minetest [1.0] [bike]

by Hume2 » Sun Sep 02, 2018 12:22

I use 5.0 for mod development. I derived the mod from the MTG 0.4 stable release to make it compatible. MTG 0.4 doesn't have the player_api mod, which is used in MTG 5.0. However, I didn't think that this will cause issues. If you are having issues, change the player's position in init.lua at line 87, column 25-46. Play a bit with the values to find the optimal position.

For picking up bikes.
Pros:
  • Bikes aren't so heavy at all. All these stone and dirt blocks are much heavier and can be carried though.
  • Players don't need to craft a new bike each time they ride off the track.
  • Bikes can be carried by vehicles like trains or cars without the need of tweaking these mods.
Cons:
  • Bikes are getting overpowered on flatter areas because they ride fast and building a road is not as beneficial.
  • Placing vehicles into chest might look weird.
Compromise: When a standing bike is punched, it jumps 1-block-stair in 30% chance.
Pros:
  • Players don't need to craft another bike each time they ride off the track.
  • Bike can climb 1-block-stair but doing so is annoying.
Cons:
  • Bikes can be carried by vehicles like trains or cars only when the mod explicitly supports this mod.
If you lack the reality, go on a trip or find a job.
 

User avatar
gpcf
Member
 
Posts: 322
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [mod] Bike for Minetest [1.0] [bike]

by gpcf » Sun Sep 02, 2018 22:57

maybe bikes should go slower on dirt and become slow and unsteerable on sand. This would create more incentives to build roads.
 

User avatar
Hume2
Member
 
Posts: 352
Joined: Tue Jun 19, 2018 08:24
Location: Czech Republic
GitHub: Hume2
In-game: Hume2

Re: [mod] Bike for Minetest [1.0] [bike]

by Hume2 » Mon Sep 03, 2018 08:51

gpcf wrote:maybe bikes should go slower on dirt and become slow and unsteerable on sand. This would create more incentives to build roads.

Thanks for idea! The bikes could go far slower on group:crumbly, which mostly fixes all problems with bikes riding too fast in flat areas without roads. And if someone needed to override this behaviour (which is the case of field roads), there could be a group bike_friendly that overrides the group:crumbly thing.
If you lack the reality, go on a trip or find a job.
 

User avatar
Hume2
Member
 
Posts: 352
Joined: Tue Jun 19, 2018 08:24
Location: Czech Republic
GitHub: Hume2
In-game: Hume2

Re: [mod] Bike for Minetest [1.0] [bike]

by Hume2 » Fri Sep 07, 2018 16:52

Bikes now ride slower on group:crumbly, so players usually need to build a road first (unless they are on flat stone desert). Slabs work as roads too. (The minimum thickness of the road must be at least 1/20 of a blocks, so 1/16 desks from moreblocks work as well.) I'm not sure whether this should be a 1.0.1 release or not.

Now let's reconsider the pros and cons for picking up a bike.

Make bikes pickable and limit stack size to 1
Pros:
  • Bikes aren't so heavy at all. All these stone and dirt blocks are much heavier and can be carried though.
  • Players don't need to craft a new bike each time they ride off the track.
  • Bikes can be carried by vehicles like trains or cars without the need of tweaking these mods.
Cons:
  • Bikes are getting overpowered on flatter areas because they ride fast and building a road is not as beneficial.
  • Placing vehicles into chest might look weird.
Compromise: When a standing bike is punched, it jumps 1-block-stair in 30% chance. (Now it works also without the chance.)
Pros:
  • Players don't need to craft another bike each time they ride off the track.
  • Bike can climb 1-block-stair but doing so is annoying.
Cons:
  • Bikes can be carried by vehicles like trains or cars only when the mod explicitly supports this mod.
Keep it as is
Pros
  • Bikes are getting overpowered on flatter areas because they ride fast and building a road is not as beneficial.
  • Placing bikes in chests might look weird.
Cons:
  • Players need to craft a new bike each time they ride off the track.
  • Bikes can be carried by vehicles like trains or cars only when the mod explicitly supports this mod.
  • There are much heavier blocks those can be carried, so why can't Sam carry a bike?
If you lack the reality, go on a trip or find a job.
 

User avatar
voxelproof
Member
 
Posts: 903
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: [mod] Bike for Minetest [1.0] [bike]

by voxelproof » Fri Sep 07, 2018 19:01

Works fine :) Great mod. Is there a possibility to make the bike accelerate due to gravitation faster downhill on steep slopes? If so, my dream of riding down the huge mountain slopes is fulfilled at last. And I can see that now you're the most entitled modder to make the "ski" mod :)

Great thanks for your work. It opens a lot of new opportunities :)

EDIT:

The bike doesn't accelerate by itself downhill at all. It's a pity because all the joy when riding a mountain bike is that great part of biker's job is done by the gravitation :) And I think that you should definitely increase the height which makes falling off the bike.

However I simulated the more natural physics during the downhill ride using the auto-key function which allows to ride at full speed without the need of pressing the "W" key all the time. Great fun!
Game is the essence of life; therefore every good game makes life better.
 

User avatar
Lone_Wolf
Member
 
Posts: 2195
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: [mod] Bike for Minetest [1.0] [bike]

by Lone_Wolf » Fri Sep 07, 2018 20:31

You could slow the bike down every time it climbs a node and speed up when it descends a node.
Love the mod btw
 

User avatar
voxelproof
Member
 
Posts: 903
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: [mod] Bike for Minetest [1.0] [bike]

by voxelproof » Fri Sep 07, 2018 21:36

The starting point was at y>1000. I made it! I find especially amusing jumping over streams and narrow crevices. The present mechanics btw is quite realistic as far as mountain biking is concerned, it requires a lot of attention not to fall down from the bike. Many great thanks once again :)

There's a bug which makes impossible to catch the bike when it's submerged in water. I littered a few beautiful mountain streams with at least five bikes ;) And surprisingly the performance is much better in valleys mg than in flat -- in the latter I experienced serious troubles with "A" and "D" keys. The bike responded to the change of movement direction much too slowly up to the point of becoming not steerable.

Image
Attachments
extreme.jpg
(59.16 KiB) Not downloaded yet
Game is the essence of life; therefore every good game makes life better.
 

User avatar
GreenDimond
Member
 
Posts: 1272
Joined: Wed Oct 28, 2015 01:26
Location: SCP-3008
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: [mod] Bike for Minetest [1.0] [bike]

by GreenDimond » Sat Sep 08, 2018 00:40

Bike animation (and other changes) demo:
Image
https://www.youtube.com/watch?v=vts05XmOTr8
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenDimond#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.
 

User avatar
Stix
Member
 
Posts: 1379
Joined: Fri Aug 04, 2017 14:19
Location: USA
IRC: nil
In-game: Stix [+alts]

Re: [mod] Bike for Minetest [1.0] [bike]

by Stix » Sat Sep 08, 2018 00:43

GreenDimond wrote:Bike animation (and other changes) demo:
Image
https://www.youtube.com/watch?v=vts05XmOTr8

Oh man we need this! I've always wanted to see smooth fancy animations in minetest!
Hey, what can i say? I'm the bad guy.
Next release of your favorite game? "Bugfixes" --Wuzzy
[OLD]The new Minetest-offtopic can be found here: https://minetestoftopic.createaforum.com/index.php
 

User avatar
GreenDimond
Member
 
Posts: 1272
Joined: Wed Oct 28, 2015 01:26
Location: SCP-3008
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: [mod] Bike for Minetest [1.0] [bike]

by GreenDimond » Sat Sep 08, 2018 03:25

Stix wrote:
GreenDimond wrote:Bike animation (and other changes) demo:
https://www.youtube.com/watch?v=vts05XmOTr8

Oh man we need this! I've always wanted to see smooth fancy animations in minetest!

https://gitlab.com/h2mm/bike/merge_requests/1
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenDimond#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.
 

User avatar
Hume2
Member
 
Posts: 352
Joined: Tue Jun 19, 2018 08:24
Location: Czech Republic
GitHub: Hume2
In-game: Hume2

Re: [mod] Bike for Minetest [1.0] [bike]

by Hume2 » Sat Sep 08, 2018 11:21

Thank you very much, GreenDimond! That looks really nice. I'll test it a bit and merge.

voxelproof: Thank you for response! I'll look at that bug.
If you lack the reality, go on a trip or find a job.
 

User avatar
Hume2
Member
 
Posts: 352
Joined: Tue Jun 19, 2018 08:24
Location: Czech Republic
GitHub: Hume2
In-game: Hume2

Re: [mod] Bike for Minetest [1.0] [bike]

by Hume2 » Sat Sep 08, 2018 18:29

I merged your merge request, thank you again! Maybe this will be the 1.1 release, I need to think a little.
For block-friendly-detection, there was a magic number that relied on the collisionbox. I fixed that, there is no magic number anymore.
For bike not mountable in water: I forgot to remove one artifact that allowed placing bikes on liquids. Note that the bike could be still mounted in water when not holding a bike. I removed this artifact, so it works fine now.
Image
Attachments
screenshot_20180908_201339.jpg
(118.24 KiB) Not downloaded yet
If you lack the reality, go on a trip or find a job.
 

User avatar
voxelproof
Member
 
Posts: 903
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: [mod] Bike for Minetest [1.0] [bike]

by voxelproof » Sat Sep 08, 2018 20:13

Hume2 wrote:I merged your merge request, thank you again! Maybe this will be the 1.1 release, I need to think a little.
For block-friendly-detection, there was a magic number that relied on the collisionbox. I fixed that, there is no magic number anymore.
For bike not mountable in water: I forgot to remove one artifact that allowed placing bikes on liquids. Note that the bike could be still mounted in water when not holding a bike. I removed this artifact, so it works fine now.


I've just checked out the version downloaded from Gitlab. The animation is perfect, that's all that I can say. (I'm a little surprised by this cause frankly I didn't believe that this sort of quality is achievable in Minetest). But there's apparently a serious bug: I got stuck on a snowy slope when hit the block of snow and I couldn't dismount the bike. Then I left the world to the main menu and returned to the world to find that my character didn't sit on bike anymore; however the bike was floating one node above the ground in the air with its wheels and pedals still rotating :D I realized the horror in full only when I unsuccesfully tried to destroy the bike (of course with the Shift key pressed). The prospect of leaving such a weird artifact in wonderful heavenly surroundings was so terrifying that I decided to take radical measures to fix this little disaster -- I disabled the bike mod and only then I could erase the "unknown block" from the landscape.

But aside this, the bike seems to be more steerable now than in previous version. Keep on, it's amazing and very promising mod and I will certainly play it even in its present state. And I hope that you'll add in the future versions downhill acceleration, it would really make it yet better :)
Game is the essence of life; therefore every good game makes life better.
 

User avatar
GreenDimond
Member
 
Posts: 1272
Joined: Wed Oct 28, 2015 01:26
Location: SCP-3008
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: [mod] Bike for Minetest [1.0] [bike]

by GreenDimond » Sat Sep 08, 2018 20:49

voxelproof wrote:But there's apparently a serious bug: I got stuck on a snowy slope when hit the block of snow and I couldn't dismount the bike.

Dismount has changed to shift.
Here are the changes I made:
Image
(screenshot of pull request)
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenDimond#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.
 

User avatar
gpcf
Member
 
Posts: 322
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [mod] Bike for Minetest [1.0] [bike]

by gpcf » Sun Sep 09, 2018 11:22

One small bug: The bike should not be able to turn while stopped.
 

User avatar
gpcf
Member
 
Posts: 322
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [mod] Bike for Minetest [1.0] [bike]

by gpcf » Sun Sep 09, 2018 11:48

Just installed this mod on linuxworks, there are several bugs. Player skins get switched after riding, also, the bikes seem to be very hard to control.
 

User avatar
voxelproof
Member
 
Posts: 903
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: [mod] Bike for Minetest [1.0] [bike]

by voxelproof » Sun Sep 09, 2018 12:52

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 taught 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.
Last edited by voxelproof on Mon Sep 10, 2018 03:43, edited 1 time in total.
Game is the essence of life; therefore every good game makes life better.
 

User avatar
GreenDimond
Member
 
Posts: 1272
Joined: Wed Oct 28, 2015 01:26
Location: SCP-3008
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: [mod] Bike for Minetest [1.0] [bike]

by GreenDimond » Sun Sep 09, 2018 15:05

gpcf wrote:One small bug: The bike should not be able to turn while stopped.

Bikes in real life can turn when stopped.

gpcf wrote:Just installed this mod on linuxworks, there are several bugs. Player skins get switched after riding, also, the bikes seem to be very hard to control.

The skins should be fine, what skin mod are you using? I will test to see what's going on.
EDIT: I have found a fix for this, I will be submitting a PR for this and other bug fixes later today.
The "hard to control" doesn't make sense, no one else has complained about that yet. More info please.

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.

This is an odd bug.
When you mount the bike, your hand is replaced with a 0 range hand so you cant interact with things while you are riding (realistic).
On dismount it is supposed to give your original hand back. I am unsure why this is affecting your digging abilities when disabled.
Last edited by GreenDimond on Sun Sep 09, 2018 15:21, edited 2 times in total.
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenDimond#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.
 

User avatar
gpcf
Member
 
Posts: 322
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [mod] Bike for Minetest [1.0] [bike]

by gpcf » Sun Sep 09, 2018 15:16

We're using skinsdb. Maybe the hard to control happens due to lag, maybe the bike is just too fast for our narrow turns.
 

User avatar
GreenDimond
Member
 
Posts: 1272
Joined: Wed Oct 28, 2015 01:26
Location: SCP-3008
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: [mod] Bike for Minetest [1.0] [bike]

by GreenDimond » Sun Sep 09, 2018 15:23

gpcf wrote:We're using skinsdb. Maybe the hard to control happens due to lag, maybe the bike is just too fast for our narrow turns.

Hmm.
I might adjust the speed and see if I can get it a bit more controllable.

The skin bug I have tested and confirmed, it's the same thing that happens with 3d_armor. I have found a fix that works, but I will improve on later. I'll get a bug fix PR for this stuff submitted later today.
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenDimond#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.
 

PreviousNext

Return to Mod Releases



Who is online

Users browsing this forum: MSN [Bot] and 9 guests