[mod] Sailing Kit [sailing_kit][wip]

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

[mod] Sailing Kit [sailing_kit][wip]

by Termos » Thu Oct 17, 2019 13:59

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: 884
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy
 

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

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

by v-rob » Fri Oct 18, 2019 00:47

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).
 

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

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

by Termos » Fri Oct 18, 2019 12:15

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: 224
Joined: Sun Dec 16, 2018 12:50

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

by Termos » Sun Oct 20, 2019 08:13

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: 884
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

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

by runs » Sun Oct 20, 2019 13:17

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

Image
 

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

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

by Termos » Sun Oct 20, 2019 13:58

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: 5858
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
 

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

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

by Termos » Mon Oct 21, 2019 19:17

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: 224
Joined: Sun Dec 16, 2018 12:50

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

by Termos » Tue Oct 22, 2019 17:29

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: 206
Joined: Mon Nov 05, 2018 19:15
Location: Crimea, Russia
In-game: Imk
 

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

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

by Termos » Sat Oct 26, 2019 12:36

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.
 

BuckarooBanzay
Member
 
Posts: 305
Joined: Tue Apr 24, 2018 05:58
Location: Switzerland
GitHub: thomasrudin-mt
In-game: BuckarooBanzai

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

by BuckarooBanzay » Sat Oct 26, 2019 12:43

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

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

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

by Termos » Sat Oct 26, 2019 17:50

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: 206
Joined: Mon Nov 05, 2018 19:15
Location: Crimea, Russia
In-game: Imk
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 7 guests