Page 1 of 2
[Mod] Cubic microcar [0.4.0] [mesecar]

Posted:
Mon Dec 09, 2013 16:59
by paramat

^ Nyancart, Oerkka, Mesecar
A fork of
https://forum.minetest.net/viewtopic.php?id=7381 which is a fork of PilzAdam's boat mod.
Download
https://github.com/paramat/mesecar/archive/master.zip and rename folder to 'mesecar'
Browse code
https://github.com/paramat/mesecarFor Minetest 0.4.10 and later
Depends default
Licenses: code WTFPL, textures CC BY-SA
4 styles of microcar: Car55, Nyancart, Mesecar and Oerkka.
Will only turn when moving, turn speed reduces near top speed.
Dual-motor 4 wheel drive update (inspired by Tesla Model S).
By default will climb slabs but not full blocks, edit STEPH to 1.1 to climb blocks.
16 pixel textures scaled to a 1.5 node cube, the player is sitting inside and has to be hidden because scaling the car also scales the driver.
My pathv6alt mod
https://forum.minetest.net/viewtopic.php?f=11&t=10064 generates roads in mgv6 to drive on.
Noisegrid lua mapgen also has roads
https://forum.minetest.net/viewtopic.php?f=11&t=9296.
Crafting recipies.
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
-- Crafting
minetest.register_craft({
output = "mesecar:motor",
recipe = {
{"default:steel_ingot", "default:copper_ingot", "default:steel_ingot"},
{"default:copper_ingot", "default:steel_ingot", "default:copper_ingot"},
{"default:steel_ingot", "default:copper_ingot", "default:steel_ingot"},
},
})
minetest.register_craft({
output = "mesecar:battery",
recipe = {
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"default:steel_ingot", "default:mese_block", "default:steel_ingot"},
{"default:copper_ingot", "default:copper_ingot", "default:steel_ingot"},
},
})
minetest.register_craft({
output = "mesecar:mesecar1", -- Car55
recipe = {
{"default:steel_ingot", "dye:blue", "default:steel_ingot"},
{"default:steel_ingot", "group:wool", "default:glass"},
{"mesecar:motor", "mesecar:battery", "mesecar:motor"},
},
})
minetest.register_craft({
output = "mesecar:mesecar2", -- Oerkka
recipe = {
{"default:steel_ingot", "dye:magenta", "default:steel_ingot"},
{"default:steel_ingot", "group:wool", "default:glass"},
{"mesecar:motor", "mesecar:battery", "mesecar:motor"},
},
})
minetest.register_craft({
output = "mesecar:mesecar3", -- Nyancart
recipe = {
{"default:steel_ingot", "dye:pink", "default:steel_ingot"},
{"default:steel_ingot", "group:wool", "default:glass"},
{"mesecar:motor", "mesecar:battery", "mesecar:motor"},
},
})
minetest.register_craft({
output = "mesecar:mesecar4", -- Mesecar
recipe = {
{"default:steel_ingot", "dye:yellow", "default:steel_ingot"},
{"default:steel_ingot", "group:wool", "default:glass"},
{"mesecar:motor", "mesecar:battery", "mesecar:motor"},
},
})

Posted:
Mon Dec 09, 2013 17:28
by Krock
Wow, those physics are really better than the old.
The only bad thing I can find on this, is the orange color :)

Posted:
Mon Dec 09, 2013 17:50
by BrunoMine
this is really good. Perfect

Posted:
Mon Dec 09, 2013 20:59
by paramat
Krock wrote:Wow, those physics are really better than the old.
The only bad thing I can find on this, is the orange color :)
Gimp your ride... =)

Posted:
Mon Dec 09, 2013 21:36
by lightonflux
Idea: Car elevates itself if it moves on street blocks. Like
this mods blockBut please don't make it a hard dependency.
Here an illustration about the block situation:

Grey blocks are street blocks brown just dirt.

Posted:
Mon Dec 09, 2013 22:22
by Esteban
I was waiting for this! Cool! Im going to test ASAP :D
Re: [Mod] Mese power car [0.1.0] [mesecar]

Posted:
Mon Sep 01, 2014 08:49
by benjitaus
How do you go forward? I cant control the car.
Re: [Mod] Mese power car [0.1.0] [mesecar]

Posted:
Mon Sep 01, 2014 23:12
by paramat
WASD keys.
Note it won't go up full nodes, only half slabs, i have road mods: 'path' and 'noisegrid'.
EDIT
Note the car is uncontrollable and jerky while the server is busy, this is unavoidable. Best to fully generate an area of world before driving to avoid mapgen lags.
Re: [Mod] Mese power car [0.2.0] [mesecar]

Posted:
Tue Sep 02, 2014 04:33
by paramat
Version 0.2.0
-- added step height and max speed parameters
-- bugfix floating above slabs
-- resize car, collisionbox
-- new texture
-- update crafting
Re: [Mod] Cubic microcar [0.3.0] [mesecar]

Posted:
Wed Sep 03, 2014 06:21
by paramat
0.3.0
Code updated to curret 'boats' mod standard.
New cute cubic microcar.
Re: [Mod] Cubic microcar [0.3.0] [mesecar]

Posted:
Wed Sep 03, 2014 06:52
by benjitaus
Thank you. I got it to work. Sort of.
Re: [Mod] Cubic microcar [0.3.0] [mesecar]

Posted:
Wed Sep 03, 2014 18:50
by Krock
Cute microcar :)
It's like a cart, just controllable and off-rail.
Could you add a special object, like a boat, to put the car on it?
So, it would be possible to drive with that it over the sea.
Re: [Mod] Cubic microcar [0.3.0] [mesecar]

Posted:
Wed Sep 03, 2014 19:38
by balthazariv
I like it but why when I put it, it levitates one block of high.
I must put it in a hole in one block for it touches the ground.

Re: [Mod] Cubic microcar [0.3.0] [mesecar]

Posted:
Wed Sep 03, 2014 22:05
by paramat
Line 171 should be:
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
pointed_thing.under.y = pointed_thing.under.y + 1
+1 not +2, that might fix it.
I'll fix this for the next version.
Re: [Mod] Cubic microcar [0.3.1] [mesecar]

Posted:
Thu Sep 04, 2014 16:52
by paramat
0.3.1
-- Fix texture sizes, edit textures
-- Tune player attach position
-- Fix on-place postion
-- Reduce turn rate at high speeds
-- Acceleration parameter
Re: [Mod] Cubic microcar [0.3.2] [mesecar]

Posted:
Thu Sep 18, 2014 03:55
by paramat
0.3.2
New textures scaled up to 1.5 nodes wide, player hidden inside because player is unfortunately also scaled.
Player viewpoint somehow remains above the car roof, which works out well because it is like an auto-third person view.
Re: [Mod] Cubic microcar [0.3.2] [mesecar]

Posted:
Thu Sep 18, 2014 11:13
by lightonflux
It would be great if the view was farer away in third person view. Is that possible with Minetest at the moment?
Re: [Mod] Cubic microcar [0.3.2] [mesecar]

Posted:
Thu Sep 18, 2014 22:15
by paramat
Re: [Mod] Cubic microcar [0.3.2] [mesecar]

Posted:
Fri Sep 19, 2014 16:54
by lightonflux
Re: [Mod] Cubic microcar [0.3.3] [mesecar]

Posted:
Sat Nov 29, 2014 05:14
by paramat
0.3.3 has 3 styles of microcar to choose from, the new designs are nyancar and oerkka.
Re: [Mod] Cubic microcar [0.3.3] [mesecar]

Posted:
Wed Feb 11, 2015 06:20
by gameslayer
Hey where do I get the mod dependency needed to run this mod? it would be helpful if you included them in the mod zip when downloading this and explaining you need these extra mods to make it work.
Re: [Mod] Cubic microcar [0.3.3] [mesecar]

Posted:
Wed Feb 11, 2015 11:34
by paramat
Hi, the dependancy 'default' is part of Minetest Game so you already have it.
Re: [Mod] Cubic microcar [0.3.3] [mesecar]

Posted:
Sun Nov 22, 2015 12:30
by tbillion
creat mod.. seriously fun especially with the roads mod. only suggestion is maybe add the ability to detect a collision. (becasue im a bad driver) and i drove right through another car! lol... any way great job!
Re: [Mod] Cubic microcar [0.3.3] [mesecar]

Posted:
Sun Nov 22, 2015 19:28
by paramat
You can edit the 'collisionbox' for each car
https://github.com/paramat/mesecar/blob/master/init.lua#L42It's by default a little narrower than the car because it doesn't rotate with the car so is effectively wider when the car is diagonal. So yes edges of a car can sometimes pass through objects.
I should add a bright yellow mesecar.
Re: [Mod] Cubic microcar [0.3.3] [mesecar]

Posted:
Sun Nov 22, 2015 19:55
by benrob0329
Nice!!
Maybe the Mese Car could be super fast?
Also, what do you think about adding "fuel"?
Re: [Mod] Cubic microcar [0.3.3] [mesecar]

Posted:
Sun Nov 22, 2015 20:03
by paramat
I'm a busy dev so feel free to fork and edit / add whatever you want.
I should add crafting recipes, the power source / battery can be a meseblock.
Re: [Mod] Cubic microcar [0.3.3] [mesecar]

Posted:
Sun Nov 22, 2015 23:49
by mahmutelmas06
Re: [Mod] Cubic microcar [0.3.3] [mesecar]

Posted:
Wed Nov 25, 2015 13:04
by tbillion
or a pickup truck... like a morris minor pickup .. if youve ever seen them... you know mini produced a pickup truck too.. and with the truck you could give it properties of a chest so you can put you rjunk in the trunk...haha.. get the pun?
Re: [Mod] Cubic microcar [0.3.3] [mesecar]

Posted:
Wed Nov 25, 2015 13:32
by paramat
Nice idea, not sure if a vehicle can store items but if someone works out how let me know.
Minis (the original ones) are close to my heart, we had one when i was a young child. Even now small cars are my favourite, especially the cute boxy Japanese Kei cars (which would be perfect for MT).

Re: [Mod] Cubic microcar [0.3.3] [mesecar]

Posted:
Wed Nov 25, 2015 13:39
by tbillion
i will volunteer to figure out how to give it a trunk if someone else figures out how to sprite it.. i tried spriting in this before and lets just say im a coder not an artist. i am working on another mod so it could be a few days, but i will make it second priority i already have a good handle on entity inventories... maybe con VanessaE into sprtiing it .. shes a god ;)