[mod] Sailing Kit [sailing_kit][wip]

Post Reply
Termos
Member
Posts: 322
Joined: Sun Dec 16, 2018 12:50

[mod] Sailing Kit [sailing_kit][wip]

by Termos » Post

Image

Sailing Kit

This is my take on sailing, it requires mobkit to work, also it depends on default because recipes n' all.

features:
  • physics, simplified but should work in the proper direction for the most part.
    indirect control - instead of controlling the boat directly, you control the sail and the rudder which exert forces on the hull.
controls:
  • left/right: rudder left/right
    space: raise/lower the sail
    up/down:
    • sail raised: loosen/tighten the sheet
      sail lowered: row forward/backwards
recipes:
  • Image
wind:
  • very basic implementation, constant 10 m/s, direction changes slightly every 1 to 5 minutes.
    there's no dedicated wind indicator, just observe the sail and the boat.

License: code: MIT | media: CC-BY-SA
MT version: 0.5.0 or later
Depends: mobkit, default
Download: github
Attachments
sailboat_craft.jpg
(25.51 KiB) Not downloaded yet
sailingkit01bar.jpg
(59.2 KiB) Not downloaded yet

User avatar
runs
Member
Posts: 1781
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: [mod] Sailing Kit [sailing_kit][wip]

by runs » Post

Great! :-)
Day 42 of the quarantine

User avatar
v-rob
Member
Posts: 765
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
IRC: v-rob
Location: Right behind you.

Re: [mod] Sailing Kit [sailing_kit][wip]

by v-rob » Post

Very cool, but immensely hard to control. Rowing is really slow, so when you crash into a cliff/beach, you aren't getting out of it any time soon. Turning is also really slow. But when you get sailing, it's really fun (until you inevitably crash or nearly do).
Minetest Core Developer | My Best Mods: Bridger - Slats - Stained Glass

Termos
Member
Posts: 322
Joined: Sun Dec 16, 2018 12:50

Re: [mod] Sailing Kit [sailing_kit][wip]

by Termos » Post

v-rob wrote:Very cool, but immensely hard to control.
Actually i was afraid it was too easy. There's definitely a learning curve, but after some practice I'm not bumping into terrain anymore and can navigate narrow straits most of the time.

The goal is to keep it only as difficult for it to be viable to hold online races, so different players come to the finish line in significantly different time. I'll be tweaking it according to user input.

I'm also adding capsizing as an option, because the prospect of falling in water when sharks are about is just too much fun.
v-rob wrote:Rowing is really slow, so when you crash into a cliff/beach, you aren't getting out of it any time soon. Turning is also really slow.
The purpose of rowing is to reposition the boat to the wind should it find itself in the dead zone, so velocity is probably close to optimal, but turn rate is too slow when it's slow and too fast when it's fast, so it looks like I won't get away with the linear function, I need something more curvy, the patch is on the way.

Termos
Member
Posts: 322
Joined: Sun Dec 16, 2018 12:50

Re: [mod] Sailing Kit [sailing_kit][wip]

by Termos » Post

Update 191020

changes:
  • * adjusted turn rate to be nonlinear.
    rowing should now be faster, tacking should be easier.

    * easier sail control
    when pulling on the sheet you don't get to wait for excess rope length, you pull the sail immediately.

    * added heaving and pitching
    now it rocks!

User avatar
runs
Member
Posts: 1781
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: [mod] Sailing Kit [sailing_kit][wip]

by runs » Post

When I put a ship, no sail and the cabin is flooded. But I can navigate.

Image
Day 42 of the quarantine

Termos
Member
Posts: 322
Joined: Sun Dec 16, 2018 12:50

Re: [mod] Sailing Kit [sailing_kit][wip]

by Termos » Post

runs wrote:When I put a ship, no sail and the cabin is flooded. But I can navigate.
Boat spawns with the sail lowered, just get in and raise the sail by pressing space.
Please let me now if it worked - there are also bugs in the engine related to attachments.

If the cabin is flooded, you've probably changed buoyancy to something around 0.8 by the looks of it. The original value is 0.45, but anything below 0.55 should more or less work. If you really want it submerged that deep, then the hull needs to be redesigned.
... or maybe you're using modified mobkit - the api isn't intended to be modified,

User avatar
rubenwardy
Moderator
Posts: 6244
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: [mod] Sailing Kit [sailing_kit][wip]

by rubenwardy » Post

Oh wow, this looks really cool!

Termos
Member
Posts: 322
Joined: Sun Dec 16, 2018 12:50

Re: [mod] Sailing Kit [sailing_kit][wip]

by Termos » Post

rubenwardy wrote:Oh wow, this looks really cool!
Thanks!
Actually I just had a simple but cool idea, an update's coming soon.

Termos
Member
Posts: 322
Joined: Sun Dec 16, 2018 12:50

Re: [mod] Sailing Kit [sailing_kit][wip]

by Termos » Post

Update 191022
  • When racing, some way of telling apart the participants is needed.
    Image

    Just smash the boat with some dye to color the sail.

User avatar
Imk
Member
Posts: 364
Joined: Mon Nov 05, 2018 19:15
In-game: Imk
Location: Crimea, Russia
Contact:

Re: [mod] Sailing Kit [sailing_kit][wip]

by Imk » Post

how do you put the boat in the inventory?

Termos
Member
Posts: 322
Joined: Sun Dec 16, 2018 12:50

Re: [mod] Sailing Kit [sailing_kit][wip]

by Termos » Post

Imk wrote:how do you put the boat in the inventory?
You can't, once the boat is deployed it won't fit back into your pocket.
But it looks like I forgot about a way of getting rid of it, so

Update 191026
  • Hit the boat a few times with something harder than hand to destroy it and reclaim some material.

User avatar
BuckarooBanzay
Member
Posts: 381
Joined: Tue Apr 24, 2018 05:58
GitHub: BuckarooBanzay
IRC: BuckarooBanzai
In-game: BuckarooBanzai

Re: [mod] Sailing Kit [sailing_kit][wip]

by BuckarooBanzay » Post

Thank you for this awesome mod! The boat is pretty good steerable if you get the hang of it... :)

Termos
Member
Posts: 322
Joined: Sun Dec 16, 2018 12:50

Re: [mod] Sailing Kit [sailing_kit][wip]

by Termos » Post

BuckarooBanzay wrote:Thank you for this awesome mod! The boat is pretty good steerable if you get the hang of it... :)
Thanks,
although it's best used with mapgens that generate sizable bodies of water, because the boat though small can be as fast as a grown up yacht and easily makes over 16 knots, that can be a bit too fast for small inland lakes.

User avatar
Imk
Member
Posts: 364
Joined: Mon Nov 05, 2018 19:15
In-game: Imk
Location: Crimea, Russia
Contact:

Re: [mod] Sailing Kit [sailing_kit][wip]

by Imk » Post

Thank you, were taken to us viewtopic.php?p=360393#p360393
Image

Termos
Member
Posts: 322
Joined: Sun Dec 16, 2018 12:50

Re: [mod] Sailing Kit [sailing_kit][wip]

by Termos » Post

Update 191116

changes:
  • fixed turn rate
    previously due to certain operations on dtime turn rate on some servers could be slower than intended, now it should be consistent regardless of server performance.

    fixed undeclared global variable warning
This update requires latest mobkit as well

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests