[Mod] Sailory [sailory]

Eran
Member
 
Posts: 88
Joined: Fri May 03, 2019 16:46

[Mod] Sailory [sailory]

by Eran » Sun Oct 06, 2019 11:27

Image


Ahoy!
This is a makeover of the sail boat from the sailing mod. The aim of this mod was to do less than the original and be more modular, most importantly it does not override the mapgen and does not have any hard external dependencies.

I made this to be compatible with the islands mapgen by Termos.

Apart from cutting out a lot of features, this mod contains a different wind mechanic based on perlin noise. This means that wind is not the same everywhere on the map. The colours of flags and sails can also be customized with dye.



How to use

The direction of the wind is displayed by a small flag above the sail. Your speed depends on the angle of the sail to the wind.

Controls:
Jump Raise/Lower the sail
Left/Right Steer left or right
Sneak + Left/Right Turn the sail
Left and Right at the same time Do a wheely.

Dye
Right click the boat with dye to dye the flag or the sail. If the sail is up, it is dyed. Otherwise the flag is dyed.

Crafting
Image


License
Code: MIT
Media CC BY-SA 3.0

Authors
Original: cakenggt
Makeover: NetherEran

Dependencies
default, dye (both optional)

Source
https://notabug.org/NetherEran/sailory

Download
https://notabug.org/NetherEran/sailory/ ... master.zip
Attachments
boat_craft.jpg
(21.48 KiB) Not downloaded yet
screenshot_20191006_121258.jpg
(575.53 KiB) Not downloaded yet
 

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

Re: [Mod] Sailory [sailory]

by Termos » Sun Oct 06, 2019 12:07

Arr, you beat me to it ;)

However:
Code: Select all
2019-10-06 14:05:41: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'sailing_canoe' in callback luaentity_Step(): ....0.1-win64\bin\..\mods\sailory\sailing_canoe/visuals.lua:102: attempt to call field 'angle' (a nil value)
2019-10-06 14:05:41: ERROR[Main]: stack traceback:
2019-10-06 14:05:41: ERROR[Main]:    ....0.1-win64\bin\..\mods\sailory\sailing_canoe/visuals.lua:102: in function 'show_wind'
2019-10-06 14:05:41: ERROR[Main]:    ...-5.0.1-win64\bin\..\mods\sailory\sailing_canoe/canoe.lua:85: in function <...-5.0.1-win64\bin\..\mods\sailory\sailing_canoe/canoe.lua:77>
 

Eran
Member
 
Posts: 88
Joined: Fri May 03, 2019 16:46

Re: [Mod] Sailory [sailory]

by Eran » Sun Oct 06, 2019 12:35

Termos wrote:Arr, you beat me to it ;)

However:
Code: Select all
2019-10-06 14:05:41: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'sailing_canoe' in callback luaentity_Step(): ....0.1-win64\bin\..\mods\sailory\sailing_canoe/visuals.lua:102: attempt to call field 'angle' (a nil value)
2019-10-06 14:05:41: ERROR[Main]: stack traceback:
2019-10-06 14:05:41: ERROR[Main]:    ....0.1-win64\bin\..\mods\sailory\sailing_canoe/visuals.lua:102: in function 'show_wind'
2019-10-06 14:05:41: ERROR[Main]:    ...-5.0.1-win64\bin\..\mods\sailory\sailing_canoe/canoe.lua:85: in function <...-5.0.1-win64\bin\..\mods\sailory\sailing_canoe/canoe.lua:77>


I forgot that vector.angle was new in 5.1. Just pushed a fix. Hopefully it works now.
 

User avatar
Krock
Developer
 
Posts: 4395
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod] Sailory [sailory]

by Krock » Sun Oct 06, 2019 13:14

Either I cannot figure out how to sail, or the wind changes too frequently. Yet no luck to drive across a small lake (100m)..
The meshes are lovely though. Very well done!
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

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

Re: [Mod] Sailory [sailory]

by Termos » Sun Oct 06, 2019 15:18

Now:

Code: Select all
2019-10-06 17:16:10: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'sailing_canoe' in callback luaentity_Step(): ...in64\bin\..\mods\sailory\sailing_canoe/compatibility.lua:5: attempt to call field 'dot' (a nil value)
2019-10-06 17:16:10: ERROR[Main]: stack traceback:
2019-10-06 17:16:10: ERROR[Main]:    ...in64\bin\..\mods\sailory\sailing_canoe/compatibility.lua:5: in function 'angle'
2019-10-06 17:16:10: ERROR[Main]:    ....0.1-win64\bin\..\mods\sailory\sailing_canoe/visuals.lua:102: in function 'show_wind'
2019-10-06 17:16:10: ERROR[Main]:    ...-5.0.1-win64\bin\..\mods\sailory\sailing_canoe/canoe.lua:85: in function <...-5.0.1-win64\bin\..\mods\sailory\sailing_canoe/canoe.lua:77>
 

Eran
Member
 
Posts: 88
Joined: Fri May 03, 2019 16:46

Re: [Mod] Sailory [sailory]

by Eran » Sun Oct 06, 2019 15:36

Krock wrote:Either I cannot figure out how to sail, or the wind changes too frequently. Yet no luck to drive across a small lake (100m)..
The meshes are lovely though. Very well done!


It works best on bigger water bodies since you need room for maneuvering. Sailing is fairly hard intentionally if you're not going whereever the wind is taking you. I recommend a mapgen with lots of water to get used to it. The boat doesn't react to the wind direction 100% how i'd like it currently, so it's hopefully going to be a bit more intuitive.

Termos wrote:Now:

Code: Select all
2019-10-06 17:16:10: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'sailing_canoe' in callback luaentity_Step(): ...in64\bin\..\mods\sailory\sailing_canoe/compatibility.lua:5: attempt to call field 'dot' (a nil value)
2019-10-06 17:16:10: ERROR[Main]: stack traceback:
2019-10-06 17:16:10: ERROR[Main]:    ...in64\bin\..\mods\sailory\sailing_canoe/compatibility.lua:5: in function 'angle'
2019-10-06 17:16:10: ERROR[Main]:    ....0.1-win64\bin\..\mods\sailory\sailing_canoe/visuals.lua:102: in function 'show_wind'
2019-10-06 17:16:10: ERROR[Main]:    ...-5.0.1-win64\bin\..\mods\sailory\sailing_canoe/canoe.lua:85: in function <...-5.0.1-win64\bin\..\mods\sailory\sailing_canoe/canoe.lua:77>


oof, the fix used other functions that weren't available before 5.1.
I've pushed a fix for the fix.
 

User avatar
Krock
Developer
 
Posts: 4395
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod] Sailory [sailory]

by Krock » Sun Oct 06, 2019 15:37

Simple fix for any upcoming issues:
Code: Select all
if not vector.angle then
    error("Please use Minetest version 5.1.0-dev or newer")
end
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

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

Re: [Mod] Sailory [sailory]

by Termos » Sun Oct 06, 2019 17:03

Thanks, it doesn't crash now.
I'm so glad you didn't heed Krock's advice ;)

Looks like physics needs some work though, sometimes the boat goes in the opposite direction to what it should according to wind and the sail position. Like in the shot below - it should go forward.
Image
Attachments
sailboat001.jpg
(35.17 KiB) Not downloaded yet
 

Eran
Member
 
Posts: 88
Joined: Fri May 03, 2019 16:46

Re: [Mod] Sailory [sailory]

by Eran » Wed Oct 09, 2019 07:35

I have fixed the physics. The flag now shows the wind properly and the sail's rotation is a bit more constrained to disallow sailing against the wind.
 

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

Re: [Mod] Sailory [sailory]

by voxelproof » Wed Oct 09, 2019 15:10

Thanks, setting sail for the next journey :)
Game is the essence of life; therefore every good game makes life better.
 

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

Re: [Mod] Sailory [sailory]

by Termos » Wed Oct 09, 2019 15:52

Eran wrote:I have fixed the physics. The flag now shows the wind properly and the sail's rotation is a bit more constrained to disallow sailing against the wind.

Sailing upwind should still be possible, by means of tacking.

Physics is still off, when the sail is parallel to the hull longitudinal axis it should never propel the boat regardless the wind direction, yet it does.
Are you sure the sail is correctly attached to the mast? It moves on the mast's right side, yet it would make more sense if it moved on the back side.

Still, sailing is fun and trying to sail through a narrow strait was probably the most difficult thing I tried in MT. It's just totally counter-intuitive to anyone who's ever sailed ;)
 

Eran
Member
 
Posts: 88
Joined: Fri May 03, 2019 16:46

Re: [Mod] Sailory [sailory]

by Eran » Wed Oct 09, 2019 16:05

Sailing upwind is possible, just not directly.
I'm not really concerned with realism, I just wanted it to be fun. Feel free to make a more realistic fork though :)
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 11 guests

cron