[mod] Motorboat [motorboat]

Post Reply
User avatar
apercy
Member
Posts: 206
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

[mod] Motorboat [motorboat]

by apercy » Post

Hi all!

This is the "Motorboat", an hybrid of "Not So Simple Helicopter" and "Sailing Kit". It's water dynamics comes from Sailing Kit (by TheTermos). So it depends on mobkit. And It dependes on the biofuel mod for fuel making. It starts anchored, so press sneak key to remove anchor. With keyboard you can move the boat. When you press E key (aux), it starts the engine and you can navigate fast, but it consumes fuel. With engine off you use paddles. You can refuel only with the engine turned off. And you can set anchor by pressing shift key (sneak), but it only works when the boat is near completely stopped (when the anchor is sucessfull, you receive a message on chat). To center the rudder, use sneak key (shift). Space (jump) key turns the auto mode on. To deactivate, just press up or down.

It can be painted using dye of any color you want, you must punch the seat with the dye.

The mod can be found here: https://github.com/APercy/motorboat

Biofuel mod can be found here: https://github.com/APercy/minetest_biofuel

Image

Licences:
It uses some code from Sailing Kit (by TheTermos)
License of source code: MIT (see file LICENSE)
License of media (textures and sounds):
engine.ogg and collision.ogg by APercy. See License file
boat model by APercy. See License file

Credits:
TheTermos by the sailing kit code used.
Attachments
screenshot_20210506_202747.png
(586.53 KiB) Not downloaded yet
Last edited by apercy on Fri May 07, 2021 00:27, edited 3 times in total.

Gundul
Member
Posts: 1235
Joined: Thu Aug 27, 2015 10:55
GitHub: berengma
IRC: Gundul
Location: Europe/Asia
Contact:

Re: [mod] Motorboat [motorboat]

by Gundul » Post

Nice to look at and nice to drive with, too. Even the rotor blades of the engine are turning
when you start it. :)

Try it on ZombieTest. Does it have owners ?
I could put a few ones in the harbour of alain :)
My servers: Jungle, Lilly in the valley click for my mods

User avatar
apercy
Member
Posts: 206
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Motorboat [motorboat]

by apercy » Post

Thank you!!! Yes! It have owners!!!!!

User avatar
apercy
Member
Posts: 206
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Motorboat [motorboat]

by apercy » Post

Curious, I made one but the jump or sneak keys did not work on server...

User avatar
apercy
Member
Posts: 206
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Motorboat [motorboat]

by apercy » Post

Ok! I found the problem and in today I learned how to use dtime correctly! Please update it on server ;)

User avatar
apercy
Member
Posts: 206
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Motorboat [motorboat]

by apercy » Post

While playing at Zombietest, I found a bug that affects the sailing kit too. I can reproduce it on a local offline world. They stranded in flowing water:

Image
Attachments
screenshot_20200505_155055.png
(411.41 KiB) Not downloaded yet

Gundul
Member
Posts: 1235
Joined: Thu Aug 27, 2015 10:55
GitHub: berengma
IRC: Gundul
Location: Europe/Asia
Contact:

Re: [mod] Motorboat [motorboat]

by Gundul » Post

apercy wrote:
Tue May 05, 2020 18:54
While playing at Zombietest, I found a bug that affects the sailing kit too. I can reproduce it on a local offline world. They stranded in flowing water:
Did you try with the default boat already ? I think water_flowing is always a problem for any kind of boat in minetest
and also one reason why driving them on rivers is so difficult. Fish and other entities entering water_flowing also
behave differently.
My servers: Jungle, Lilly in the valley click for my mods

User avatar
apercy
Member
Posts: 206
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Motorboat [motorboat]

by apercy » Post

Gundul wrote:
Wed May 06, 2020 04:43
Did you try with the default boat already ?...
Yes, it has no problems. I believe is something in mobkit, I'll investigate this weekend.

User avatar
Codesound
Member
Posts: 342
Joined: Thu Jun 09, 2016 14:56

Re: [mod] Motorboat [motorboat]

by Codesound » Post

Hi,

this is another beautiful mod!

Is it possible to set that when the player release the "a" or "d" button (for the direction), the motor straighten automatically?

Thanks again

User avatar
apercy
Member
Posts: 206
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Motorboat [motorboat]

by apercy » Post

Codesound wrote:
Sat May 09, 2020 08:40
Hi,

this is another beautiful mod!

Is it possible to set that when the player release the "a" or "d" button (for the direction), the motor straighten automatically?

Thanks again
Is possible, but we lost the part of the diversion. But I have an idea. I can use the same key to manage anchor (sneak) to straighten the direction, cause we use anchor only when the speed is near zero. What do you think about?

User avatar
apercy
Member
Posts: 206
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Motorboat [motorboat]

by apercy » Post

Done! When the boat is at a minimum speed, you can center the rudder direction by pressing sneak. Bellow this speed, it commands the anchor

User avatar
apercy
Member
Posts: 206
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Motorboat [motorboat]

by apercy » Post

Following Termos instructions, I put a custom physics to boat to circumvent sinking at flowing water and it's working now. Get it at github ;)

User avatar
apercy
Member
Posts: 206
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Motorboat [motorboat]

by apercy » Post

(made some corrections now on global references)

User avatar
apercy
Member
Posts: 206
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Motorboat [motorboat]

by apercy » Post

Today a bug correction on object destroy was commited. Update please ;)

User avatar
Codesound
Member
Posts: 342
Joined: Thu Jun 09, 2016 14:56

Re: [mod] Motorboat [motorboat]

by Codesound » Post

Hi,

sorry for the looooooooong time response..... and thank you for your reply! Now I try to use your motorboat....

User avatar
apercy
Member
Posts: 206
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Motorboat [motorboat]

by apercy » Post

2 improvements commited today. The first is a fix when the boat entity drops the player sometimes (lag). The second, I changed the anchor key to "E". And the sneak (shift) can be used only to center the rudder.

Teen_Miner
Member
Posts: 37
Joined: Fri Jun 03, 2016 18:21
GitHub: LapisWolf
IRC: LapisWolf
In-game: LapisWolf

Re: [mod] Motorboat [motorboat]

by Teen_Miner » Post

I don't know how to apply fuel. Same with the newer helicopter mod.
cdb_yuId0gpEgnYo

Gundul
Member
Posts: 1235
Joined: Thu Aug 27, 2015 10:55
GitHub: berengma
IRC: Gundul
Location: Europe/Asia
Contact:

Re: [mod] Motorboat [motorboat]

by Gundul » Post

Teen_Miner wrote:
Tue Mar 02, 2021 00:12
I don't know how to apply fuel. Same with the newer helicopter mod.
Sit in boat or helicopter. With biofuel in your hand punch selection box and see the fuel gauge moving.
My servers: Jungle, Lilly in the valley click for my mods

User avatar
apercy
Member
Posts: 206
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] Motorboat [motorboat]

by apercy » Post

Changes made today:
controls changed - now E key turn the engine on. Shift to weight anchor. Jump to turn auto mode on
Now accepts a passenger

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest