[Mod] Cubic microcar [0.4.0] [mesecar]

User avatar
paramat
Developer
Posts: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

[Mod] Cubic microcar [0.4.0] [mesecar]

by paramat » Post

Image

^ Nyancart, Oerkka, Mesecar

A fork of 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/mesecar

For 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 viewtopic.php?f=11&t=10064 generates roads in mgv6 to drive on.
Noisegrid lua mapgen also has roads viewtopic.php?f=11&t=9296.

Crafting recipies.

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"},
	},
})
Last edited by paramat on Mon Feb 08, 2016 07:56, edited 24 times in total.
I rely on donations for basic income. PayPal viewtopic.php?f=3&t=14935 Patreon https://www.patreon.com/paramat

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

by Krock » Post

Wow, those physics are really better than the old.
The only bad thing I can find on this, is the orange color :)
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
BrunoMine
Member
Posts: 1073
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

by BrunoMine » Post

this is really good. Perfect
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com

User avatar
paramat
Developer
Posts: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

by paramat » Post

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... =)
I rely on donations for basic income. PayPal viewtopic.php?f=3&t=14935 Patreon https://www.patreon.com/paramat

User avatar
lightonflux
Member
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof
Location: Germany

by lightonflux » Post

Idea: Car elevates itself if it moves on street blocks. Like this mods block

But please don't make it a hard dependency.

Here an illustration about the block situation:

Image

Grey blocks are street blocks brown just dirt.

Esteban
Member
Posts: 873
Joined: Sun Sep 08, 2013 13:26
GitHub: Esteban-
IRC: Esteban
In-game: Esteban
Location: Somewhere in the Caribbean...

by Esteban » Post

I was waiting for this! Cool! Im going to test ASAP :D

benjitaus
New member
Posts: 3
Joined: Sat Aug 30, 2014 02:51

Re: [Mod] Mese power car [0.1.0] [mesecar]

by benjitaus » Post

How do you go forward? I cant control the car.

User avatar
paramat
Developer
Posts: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: [Mod] Mese power car [0.1.0] [mesecar]

by paramat » Post

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.
Last edited by paramat on Tue Sep 02, 2014 04:36, edited 1 time in total.

User avatar
paramat
Developer
Posts: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: [Mod] Mese power car [0.2.0] [mesecar]

by paramat » Post

Version 0.2.0
-- added step height and max speed parameters
-- bugfix floating above slabs
-- resize car, collisionbox
-- new texture
-- update crafting
Last edited by paramat on Thu Sep 18, 2014 03:50, edited 1 time in total.

User avatar
paramat
Developer
Posts: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

0.3.0
Code updated to curret 'boats' mod standard.
New cute cubic microcar.
Last edited by paramat on Thu Sep 04, 2014 16:48, edited 1 time in total.

benjitaus
New member
Posts: 3
Joined: Sat Aug 30, 2014 02:51

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

by benjitaus » Post

Thank you. I got it to work. Sort of.

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

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

by Krock » Post

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.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
balthazariv
Member
Posts: 214
Joined: Mon Apr 07, 2014 15:48
Contact:

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

by balthazariv » Post

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.

Image

User avatar
paramat
Developer
Posts: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

Line 171 should be:

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.

User avatar
paramat
Developer
Posts: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

0.3.1
-- Fix texture sizes, edit textures
-- Tune player attach position
-- Fix on-place postion
-- Reduce turn rate at high speeds
-- Acceleration parameter

User avatar
paramat
Developer
Posts: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

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.
Last edited by paramat on Wed Feb 11, 2015 18:26, edited 1 time in total.

User avatar
lightonflux
Member
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof
Location: Germany

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

by lightonflux » Post

It would be great if the view was farer away in third person view. Is that possible with Minetest at the moment?

User avatar
paramat
Developer
Posts: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post


User avatar
lightonflux
Member
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof
Location: Germany

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

by lightonflux » Post


User avatar
paramat
Developer
Posts: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

0.3.3 has 3 styles of microcar to choose from, the new designs are nyancar and oerkka.

gameslayer
New member
Posts: 3
Joined: Sat May 31, 2014 10:47
In-game: Gameslayer

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

by gameslayer » Post

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.

User avatar
paramat
Developer
Posts: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

Hi, the dependancy 'default' is part of Minetest Game so you already have it.

User avatar
tbillion
Member
Posts: 190
Joined: Wed Apr 03, 2013 16:07
Location: 38381, US, TN, Toone
Contact:

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

by tbillion » Post

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!

User avatar
paramat
Developer
Posts: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

You can edit the 'collisionbox' for each car https://github.com/paramat/mesecar/blob ... it.lua#L42
It'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.

User avatar
benrob0329
Member
Posts: 1321
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

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

by benrob0329 » Post

Nice!!

Maybe the Mese Car could be super fast?

Also, what do you think about adding "fuel"?
Social: YouTube Peertube Matrix Room: #minetest:matrix.org | Games: The Infinite IKEA

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 6 guests