Page 1 of 3

[Mod] Boats [boats]

PostPosted: Sun Dec 09, 2012 19:10
by PilzAdam
Hello everyone!
This is mod adds boats to Minetest. Craft a boat like this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
wood      wood
wood wood wood

place it on water and jump in with a rightclick. Turn the boat with A and D and accelerate and decelerate with W and S.
Have Fun!

If anyone can provide new textures I will gladly take them.

License:
WTFPL

Depends:
default

GitHub:
https://github.com/PilzAdam/boats

Download:
https://github.com/PilzAdam/boats/archive/master.zip

PostPosted: Sun Dec 09, 2012 19:15
by Jeija
Great mod!

PostPosted: Sun Dec 09, 2012 19:28
by Zeg9
o_O Great mod again PilzAdam !

PostPosted: Sun Dec 09, 2012 19:58
by babe223
very good mod ^ ^ boat, the question will be what to do with a car that your mod?

PostPosted: Sun Dec 09, 2012 20:05
by Zeg9
A question: where does the power come from ? ;)

PostPosted: Sun Dec 09, 2012 20:06
by PilzAdam
Zeg9 wrote:A question: where does the power come from ? ;)

IDK, ask the Minetest god.

PostPosted: Sun Dec 09, 2012 20:42
by Mito551
is this strange that these boats work better than minecraft ones?

PostPosted: Sun Dec 09, 2012 21:05
by jordan4ibanez
These boats work better than minecraft boats

PostPosted: Sun Dec 09, 2012 23:02
by jordan4ibanez
You should give them a fancy drawtype :D

PostPosted: Sun Dec 09, 2012 23:24
by Topywo
Great!

PostPosted: Mon Dec 10, 2012 02:02
by Josh
Epic! Im gonna try this out :)

PostPosted: Mon Dec 10, 2012 02:27
by leo_rockway
Awesome. Thank you!

PostPosted: Mon Dec 10, 2012 02:31
by Josh
Josh wrote:Epic! Im gonna try this out :)


Really good! But riding the boat is buggy.

PostPosted: Mon Dec 10, 2012 21:28
by InfinityProject
This truly is amazing. Could you use a 3d mesh (Taoki) for this?

PostPosted: Tue Dec 11, 2012 06:12
by tinoesroho
Awesome stuff - loving it!

PostPosted: Tue Dec 11, 2012 10:45
by PilzAdam
InfinityProject wrote:This truly is amazing. Could you use a 3d mesh (Taoki) for this?

As I mentioned in the first post the graphics are just dummy images/models. If anyone can provide better graphics or an model I will add them. Also nodeboxes are welcome.

PostPosted: Tue Dec 11, 2012 13:00
by thetoon
Ok, here is a naïve contribution : http://dl.free.fr/khCLm1Iv6 (put all the files in /mods/minetest/boat/models, create it before)

And here is how the boat definition (in init.lua) should be modified :

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local boat = {
    physical = true,
    collisionbox = {-0.5,-0.4,-0.5, 0.5,0.4,0.5},
    visual = "mesh",
    mesh = "boat.x",
    -- visual_size = {x=1.2, y=0.8},
    textures = {"boat.png"},
    driver = nil,
    v = 0,
}


Maybe two animation frames should be defined : one with the boat higher than the other (for when it's empty).

PostPosted: Tue Dec 11, 2012 14:39
by PilzAdam
thetoon wrote:Ok, here is a naïve contribution : http://dl.free.fr/khCLm1Iv6 (put all the files in /mods/minetest/boat/models, create it before)

And here is how the boat definition (in init.lua) should be modified :

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local boat = {
    physical = true,
    collisionbox = {-0.5,-0.4,-0.5, 0.5,0.4,0.5},
    visual = "mesh",
    mesh = "boat.x",
    -- visual_size = {x=1.2, y=0.8},
    textures = {"boat.png"},
    driver = nil,
    v = 0,
}


Maybe two animation frames should be defined : one with the boat higher than the other (for when it's empty).

Thank you!
But I think its a bit too... big. Maybe create something smaller (maybe you can look at the Minecraft ones to get inspiration).
But anyway, thanks a lot for trying!
Here is a picture how it looks in-game:
Image
If people like this I will add it, but I think some smaller model would fit better.

PostPosted: Tue Dec 11, 2012 14:54
by thetoon
PilzAdam wrote:But I think its a bit too... big. Maybe create something smaller (maybe you can look at the Minecraft ones to get inspiration).


(Thanks for adding the screenshot, btw)

Well, it's far from perfect or finished. Took me a couple minutes on my lunch break. I'd like to try something more "rafty", as soon as I have time to.

Regarding its size, I'm not too sure. After all, the player should fit. I'll see what I can do.

Now, when it comes to Minecraft inspiration, I try to forget I ever played this game (as good as it is) when modelling. :]

PostPosted: Tue Dec 11, 2012 14:57
by PilzAdam
I created a branch for the model. Download:
https://github.com/PilzAdam/boats/archive/model.zip

PostPosted: Tue Dec 11, 2012 16:21
by Comp52
I get an error from line 53: on_rightclick, or something like that. Do I need the latest version? i'm using 4.3

PostPosted: Tue Dec 11, 2012 16:30
by PilzAdam
Comp52 wrote:I get an error from line 53: on_rightclick, or something like that. Do I need the latest version? i'm using 4.3

Sure you get an error when the mod tries to attach the player with a function that is added in 0.4.4

PostPosted: Tue Dec 11, 2012 16:38
by 0gb.us
Oh, nice. I forget who I was talking to the other day, but they were telling me that Minetest should have boats added to it.

PostPosted: Tue Dec 11, 2012 16:53
by thetoon
Ok, here is a whole other take on the matter : http://dl.free.fr/fHqvYJm3h

This is also my first try at UV texturing under Blender, so it's a bit rough.

Image

PostPosted: Tue Dec 11, 2012 16:56
by PilzAdam
thetoon wrote:Ok, here is a whole other take on the matter : http://dl.free.fr/fHqvYJm3h

This is also my first try at UV texturing under Blender, so it's a bit rough.

Image

This looks better, but is too small. If you make this one bigger and remove the thing at the back of it its fine.

PostPosted: Tue Dec 11, 2012 16:58
by thetoon
Ok, I'll work around those lines then. Though I kinda like the rear-piece (or, more precisely, being able to tell its front from its rear)

PostPosted: Tue Dec 11, 2012 17:51
by PilzAdam
thetoon wrote:Ok, I'll work around those lines then. Though I kinda like the rear-piece (or, more precisely, being able to tell its front from its rear)

Something to see what is front and whats back is cool, but not this thing ;-)

PostPosted: Tue Dec 11, 2012 20:37
by irksomeduck
Doesn't run. Running 0.4.4, I have had this problem with many of your mods before and it is incredibly annoying. Any ideas at all? I was really looking forward to actually having boats, but it doesn't work.

PostPosted: Tue Dec 11, 2012 20:44
by Calinou
You have to rename the "boats-master" folder to "boats". ;)

PostPosted: Wed Dec 12, 2012 02:40
by Sokomine
The thing on the back looks like a rudder! It's a nice addition to a boat. Perhaps there can be diffrent models? The larger one isn't bad either. Plus the smaller one as a raft. Or - for those people who don't want to build a boat - floating horizontal trees.