[mod] Sailing Kit [sailing_kit]

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

[mod] Sailing Kit [sailing_kit]

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
Last edited by Termos on Sun Jan 10, 2021 15:41, edited 1 time in total.

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

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

by runs » Post

Great! :-)
🤑 Patreon |Minetest Chat | 👧 Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
v-rob
Developer
Posts: 830
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).
GUI Core Developer | My Best Mods: Bridger - Slats - Stained Glass | To contact me, send a PM

Termos
Member
Posts: 399
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: 399
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: 2148
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
🤑 Patreon |Minetest Chat | 👧 Samantha | ⛏️ Juanchi Game | 🐱 Petz

Termos
Member
Posts: 399
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: 6425
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: 399
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: 399
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: 371
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: 399
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: 406
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: 399
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: 371
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: 399
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

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

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

by Termos » Post

Update 210110

changes:
  • Fix possible crash related to first level attachments detaching spontaneously (MT 5.3)

ksandr
New member
Posts: 4
Joined: Thu Jan 14, 2021 18:27
GitHub: ksandronline
In-game: ksandr

Re: [mod] Sailing Kit [sailing_kit]

by ksandr » Post

Hello Termos. Very cool mod. Im have question: how do rudder more fast? Im have problem when turn.
rudder work with more jitter.
cdb_zgumfh673Gjy

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

Re: [mod] Sailing Kit [sailing_kit]

by Termos » Post

Hi,
The jitter is mosty caused by server lag so little can be done about it. In singleplayer this is mostly caused by map generation, so once you've mapped out the area you're sailing in things should improve.

Some tips as to turn rate, the boat is designed to handle similarly to a real boat, so you won't be able to turn on a dime. Turning is the result of water pressure on the rudder, so the slower you go the slower the turn, and you can't turn at all if stationary. Be sure to operate the sail so you get decent speed and plan your actions ahead.
If you find yourself in a tight spot lower the sail [space] - handling is different with the sail down and you can turn in place (think of it as you're using a paddle)

The boat is designed to be slightly challenging to operate, there's a bit of a learning curve, I'm sure you can get the hang of this if you give it time.

Post Reply

Who is online

Users browsing this forum: insomniac and 3 guests