[Mod] Vehicles: Cart

Nemo08
Member
Posts: 132
Joined: Mon Dec 26, 2011 04:59

by Nemo08 » Post

i think cart mod dont updated to last MT build

User avatar
RabbiBob
Member
Posts: 335
Joined: Sat Jan 28, 2012 22:40
Location: /teleport 54,47,28
Contact:

by RabbiBob » Post

For the pickup/crash bug, change the line

add_item("craft vehicles:cart 1") to add_item("main" ,"vehicles:cart")

Code: Select all

function cart:on_punch(hitter)
    self.health = self.health - 1
    if self.health <= 0 then
        self.object:remove()
        --hitter:get_inventory():add_item("craft vehicles:cart 1")
        hitter:get_inventory():add_item("main" ,"vehicles:cart")
    end
end
Edit:

The 'q' drop issue looks like it was due to the on_drop call, corrected by changing to drop. Though right now I seem to be dropping all in my inventory (2) rather than 1 as depicted in the line.

Code: Select all

minetest.register_craftitem("vehicles:cart", {
    tile_images = {"vehicles_cart_top.png","vehicles_cart_top.png",
        "vehicles_cart_side.png","vehicles_cart_side.png","vehicles_cart_side.png","vehicles_cart_side.png"},
    
    inventory_image = "vehicles_cart_inventory.png",
    walkable = true,
    climbable = true,
    description = "Cart",
    --on_drop = function(item, dropper, pos)
    drop = '"vehicles:cart" 1',
        --minetest.env:add_entity({x = round(pos.x), y = round(pos.y), z = round(pos.z)}, "vehicles:cart")
        --return true
    --end
})

The facing issue only occurs with newly placed carts in 20120122. If you bring a world up from 20120106 with carts already in place, they look and function fine. I haven't been able to determine what isn't right anymore with the cart definition that is causing the placement issue. I've tried changing the _image definitions above with little success.

Off to bed...
Last edited by RabbiBob on Fri Mar 02, 2012 02:18, edited 1 time in total.

User avatar
xyz
Member
Posts: 450
Joined: Thu Nov 10, 2011 14:25

by xyz » Post

Also you may try using this mod from my repo (it got updated someday). Will update it again when have free time.

User avatar
RAPHAEL
Member
Posts: 627
Joined: Tue Nov 01, 2011 09:09
Location: Earth

by RAPHAEL » Post

xyz wrote:Also you may try using this mod from my repo (it got updated someday). Will update it again when have free time.
Well the mod from there seems to work to a degree. I crafted a cart but cant place it on the track.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)

User avatar
RabbiBob
Member
Posts: 335
Joined: Sat Jan 28, 2012 22:40
Location: /teleport 54,47,28
Contact:

by RabbiBob » Post

xyz wrote:Also you may try using this mod from my repo (it got updated someday). Will update it again when have free time.
Thanks! I updated and it works under 20120122 when placed on a track, plus the Player movement works.

In testing (see video):
If I right click to place the object, it comes out as a single pane.
Using 'q' to drop places it properly, however inventory doesn't decrement by 1.

http://www.youtube.com/watch?v=eAzWJ8XKFh8

There's a reason I've been looking at this one so much, however I think I'm trying to run before I learn to walk with Lua. If you're interested, I'll toss my idea your way as I think you'll be able to pull it off.

Utilisatrice
Member
Posts: 103
Joined: Thu Feb 16, 2012 18:04

by Utilisatrice » Post

Hi all,

Ya, i hav test this mod also and it's work 100%,

thank's that very amazing.

evildrummer
Member
Posts: 15
Joined: Sat Feb 11, 2012 13:32

by evildrummer » Post

Utilisatrice wrote:Hi all,

Ya, i hav test this mod also and it's work 100%,

thank's that very amazing.
send me the stuff in zip file


PLz

Temperest
Member
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Post

evildrummer wrote:send me the stuff in zip file


PLz
Maybe you could download it from the link in the first post?

It seems like you might want to invest in an archiver program. I recommend 7-Zip. ZIP isn't the only archive format out there and it is useful to be able to extract others yourself rather than asking that everyone use another format.
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.

MilanFIN
Member
Posts: 20
Joined: Wed Jan 25, 2012 17:23

by MilanFIN » Post

Will this work witht the newest minetest, meaning 0.4.dev-20120320?

EDIT: and do I still have to modify the mod and minetest source by hand?
Last edited by MilanFIN on Wed Mar 21, 2012 12:51, edited 1 time in total.

User avatar
bgsmithjr
Member
Posts: 436
Joined: Thu Mar 08, 2012 23:21
Location: USA,Michigan

by bgsmithjr » Post

Any progress?
Did you see my raft post?

dellodp
Member
Posts: 14
Joined: Wed Apr 04, 2012 10:14

by dellodp » Post

Is this download available for windows in zip format as i cant access the .tar format once downloaded.

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

This mod is heavily outdated anyway... Also, you should use 7-zip for extracting .tar files.

maddogg
Member
Posts: 27
Joined: Wed Dec 21, 2011 23:55

by maddogg » Post

poiuztr99 wrote:when i go to the rails and press q the minetest process is killed.
i am also gettin this

MilanFIN
Member
Posts: 20
Joined: Wed Jan 25, 2012 17:23

by MilanFIN » Post

This so should be updated and INCLUDED to Minetest by defauld before stable 0.4 release.

User avatar
Hackeridze
Member
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Post

MilanFIN wrote:This so should be updated and INCLUDED to Minetest by defauld before stable 0.4 release.
+1
My game: RTMG
GENTOO USER

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

Can you make a chest cart?

- - -
X C X
X X X

X-ingot
C-chest

So carts are still useful without player movement (delievery).
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
xyz
Member
Posts: 450
Joined: Thu Nov 10, 2011 14:25

by xyz » Post

rubenwardy wrote:Can you make a chest cart?

- - -
X C X
X X X

X-ingot
C-chest

So carts are still useful without player movement (delievery).
This mod is abandoned now.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

xyz wrote:
rubenwardy wrote:Can you make a chest cart?

- - -
X C X
X X X

X-ingot
C-chest

So carts are still useful without player movement (delievery).
This mod is abandoned now.
I will do some work on it then, when i have time :)
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Belgac
Member
Posts: 57
Joined: Wed Aug 08, 2012 15:27
Location: Brussels, Belgium

by Belgac » Post

or you could use carts by pilzadam, they transport objects.

http://minetest.net/forum/viewtopic.php?id=2451
Contributor: Plant aging library
Creator: (soon)

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

Belgac wrote:or you could use carts by pilzadam, they transport objects.

http://minetest.net/forum/viewtopic.php?id=2451
Just realised i was already using this! Thanks
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Hampa
New member
Posts: 2
Joined: Wed Apr 03, 2013 05:36

by Hampa » Post

why did you make a tar.gz link!?

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

This is an old version. The new version can be found here: http://forum.minetest.net/viewtopic.php?id=2451
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

kaeza wrote:This is an old version. The new version can be found here: http://forum.minetest.net/viewtopic.php?id=2451
Its not a new version, its a completly different mod.

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

PilzAdam wrote:
kaeza wrote:This is an old version. The new version can be found here: http://forum.minetest.net/viewtopic.php?id=2451
Its not a new version, its a completly different mod.
Ah! Sorry then :P
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

big8666
New member
Posts: 4
Joined: Fri Aug 09, 2013 18:59

by big8666 » Post

were do i put the file becouse its ot a zip its a .tar.gz

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests