[Mod] Carts [carts]

User avatar
Exilyth
Member
Posts: 73
Joined: Sun Jul 28, 2013 18:46
Location: Earth

by Exilyth » Post

Aside from carts randomly reversing direction on powered rails, it's a great mod.

Mesecon enabled track switches would be nice to have.


Edit:
Just noticed something...
When riding a cart, your head goes through nodes in a height 3 nodes above the track ;)
Last edited by Exilyth on Sun Aug 04, 2013 15:06, edited 1 time in total.
I'm running 0.4.13 stable with [technic][carts][farming_plus][biome_lib][unified_inventory] and a few other mods.

User avatar
leetelate
Member
Posts: 205
Joined: Thu Aug 29, 2013 18:07
Location: 한인 타운, Huntsville,Alabama,USA

by leetelate » Post

loving the carts mod

simple singleplayer self.driver hack:

-- ride cart hack by 1337318 (leet_elate)
-- previously should have placed cart, then right clicked it to get in
-- first see if i'm actually riding in the cart otherwise ignore the punch
if self.driver then
-- fake the direction - fwd or back on the track
-- if the track is xx then x=1, x=-1, z=0. z=0
-- if the track is zz then x=0, x=0, z=1, z=-1
-- y will always be 0 since all i have is flat tracks
-- first we must find the frigging track to set the right direction...
-- so given the cart position
local dick = self.object:getpos()
-- look x+
direction.y = 0
direction.x = 1
direction.z = 0
local sick = cart_func.v3:add(cart_func.v3:copy(dick), direction)
if cart_func:is_rail(sick) then
--rail is xx
else
direction.x = -1
direction.z = 0
local sick = cart_func.v3:add(cart_func.v3:copy(dick), direction)
if cart_func:is_rail(sick) then
--rail is -xx
else
direction.x = 0
direction.z = -1
local sick = cart_func.v3:add(cart_func.v3:copy(dick), direction)
if cart_func:is_rail(sick) then
--rail is -zz
else
direction.x = 0
direction.z = 1
--rail has to be zz
end
end
end
-- we need a way to go the other way, so use the jump buttom (which does nothing when riding)
if puncher:get_player_control().jump then
direction.x = direction.x * -1
direction.z = direction.z * -1
end
-- print ("x",direction.x,"z",direction.z)
end
-- and that's it! lay some powered rail with a brake rail at either end and enjoy the ride!!!

put it after the 'sneak if' in cart:on_punch, lay some powered rail with brake rails on the end, hop in and whack it


the biggest problem is with a laggy/slow server (slow singleplayer machine) you get multiple carts when deactivate_farobjects tries to deactivate a cart - workaround is to only use one cart and remove it before you walk away from it - the server_error is: "static data does not exist" and poof there is now a second cart

thanks for a great mod - you rock, btw!!! and thanks everybody for the whole minetest thing!!!

-- minetest master 4.7 compiled from source, linux mint 15 with qjoypad and a wired 360 controller
MT IS MC'S SMARTER BROTHER
minetest 0.4.8 compiled from latest git on linux mint 15 with qjoypad and wired 360 controller
freeminer, pilztest, buildcraft and next are the idea factories
my minetest page is http://1337318.zymichost.com if zymic isn't down - meh, it is free...

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

Could this mod be added to minetest_game in 0.4.8?
Coding;
1X coding
3X debugging
12X tweaking to be just right

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

by BrunoMine » Post

jojoa1997 wrote:Could this mod be added to minetest_game in 0.4.8?
No! This mod has several bugs. It would be a catastrophe.
Sometimes the cart is in one direction and back for no reason.
In some cases the basket teleported to another line track.
There is much to do yet.
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com

User avatar
minetestmadman
Member
Posts: 13
Joined: Thu Sep 05, 2013 16:21

by minetestmadman » Post

I downloaded the folder but don't know how to use it. can someone tell me. I tried going into configure but I duno how to do it.

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

minetestmadman wrote:
InfinityProject wrote:It works really well when it's on the rails. I blocked the corners so it stayed on. It's also difficult to put on the rails. Can you ride the cart?
How u enable mod
If you're in the minetest menu and you've selected your map you can press the "Configure" button.
Then there will appear a list of all the mods you have installed.
Select the mod you want to use and click next to "Activated" to enable it (now there's a "v" in the box).
Click on the "Save" button.
That's it.

Noob 4 life!
My stuff

User avatar
hoodedice
Member
Posts: 1374
Joined: Sat Jul 06, 2013 06:33
GitHub: hoodedice
IRC: hoodedice
In-game: hoodedice
Location: world
Contact:

by hoodedice » Post

minetestmadman wrote:I downloaded the folder but don't know how to use it. can someone tell me. I tried going into configure but I duno how to do it.
Hello. Welcome to the Minetest forums, we hope you'll enjoy your stay here =)

The steps to installing a mod are as follows:

1. Download the mod from the first post of a thread or from the official modpack site or in-game (Beta)

2. On Windows, extract the modpack to minetestdirectory/mods.
On Ubuntu, if you downloaded it from the official PPA, open nautilus, or whatever file explorer you use, open the directory with your username, then press Ctrl+H to view hidden files. Open .minetest/mods, and extract the mod there.
3. Finally rename the mod to whatever is written between [ and ] brackets on the thread title. For carts it is [ carts ]. So rename the extracted folder to just 'carts'
4. Open up minetest, select your world, click on configure, then enable the mods you want ingame. Click save. If all mod dependencies are fulfilled, it should show "Configuration saved".
5. Enjoy your game.

Have a nice day.



AND SEARCH THE DAMN FORUM AND READ THE WIKI BEFORE POSTING AGAIN, OK?
7:42 PM - Bauglio: I think if you go to staples you could steal firmware from a fax machine that would run better than win10 does on any platform
7:42 PM - Bauglio: so fudge the stable build
7:43 PM - Bauglio: get the staple build

User avatar
hoodedice
Member
Posts: 1374
Joined: Sat Jul 06, 2013 06:33
GitHub: hoodedice
IRC: hoodedice
In-game: hoodedice
Location: world
Contact:

by hoodedice » Post

Don't triple post. Log onto this http://webchat.freenode.net/?channels=#minetest

I'll try helping you there
7:42 PM - Bauglio: I think if you go to staples you could steal firmware from a fax machine that would run better than win10 does on any platform
7:42 PM - Bauglio: so fudge the stable build
7:43 PM - Bauglio: get the staple build

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

by Temperest » Post

Hi minetestmadman:

If you're running Windows, try MODSTER; it's a program that will help you install mods:

viewtopic.php?id=6497

Otherwise, you should follow the somewhat more complex steps listed above.
WorldEdit 1.0 released

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

User avatar
leetelate
Member
Posts: 205
Joined: Thu Aug 29, 2013 18:07
Location: 한인 타운, Huntsville,Alabama,USA

by leetelate » Post

>>randomly reversing direction on powered rails

found it - it's a server thing where drawn sections meet (chunks?), anyway, the second chunk or w/e hasn't loaded yet and so the cart thinks the track isn't there so it naturally goes the other way - hitting r to use all loaded chunks helps /kills the fps/, also changing the max velocity to like 2 /slower than walking lol/ will basically stop the problem of reverising for no reason

the "static data not found" error is more cunning and has eluded me so far - game and mod code is fine, but something is happening when deactivate_FarObjects goes to get it - it's in the c and not the lua maybe? - workaround is still to only use one cart and kill it when you get out of it if you are going more than a few blocks from it


--minetest 0.4.7 compiled from source on linux mint 15 with qjoypad and wired 360 controller
Last edited by leetelate on Fri Sep 06, 2013 16:51, edited 1 time in total.
MT IS MC'S SMARTER BROTHER
minetest 0.4.8 compiled from latest git on linux mint 15 with qjoypad and wired 360 controller
freeminer, pilztest, buildcraft and next are the idea factories
my minetest page is http://1337318.zymichost.com if zymic isn't down - meh, it is free...

User avatar
minetestmadman
Member
Posts: 13
Joined: Thu Sep 05, 2013 16:21

by minetestmadman » Post

Mossmanikin wrote:
minetestmadman wrote:
InfinityProject wrote:It works really well when it's on the rails. I blocked the corners so it stayed on. It's also difficult to put on the rails. Can you ride the cart?
How u enable mod
If you're in the minetest menu and you've selected your map you can press the "Configure" button.
Then there will appear a list of all the mods you have installed.
Select the mod you want to use and click next to "Activated" to enable it (now there's a "v" in the box).
Click on the "Save" button.
That's it.
I mean how u put it in folder. do u put it in mod folder

User avatar
hoodedice
Member
Posts: 1374
Joined: Sat Jul 06, 2013 06:33
GitHub: hoodedice
IRC: hoodedice
In-game: hoodedice
Location: world
Contact:

by hoodedice » Post

Yes.
7:42 PM - Bauglio: I think if you go to staples you could steal firmware from a fax machine that would run better than win10 does on any platform
7:42 PM - Bauglio: so fudge the stable build
7:43 PM - Bauglio: get the staple build

User avatar
popa999
New member
Posts: 1
Joined: Fri Oct 25, 2013 22:31

by popa999 » Post

IT won't let me craft it... please help me

User avatar
Ikishida
Member
Posts: 107
Joined: Sat Aug 17, 2013 08:02
Location: (secret)

by Ikishida » Post

uhh how can i take a cart back?
When life hands you lemons,throw it back at life saying "I don't need your goddamn lemons!" =D

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

by PilzAdam » Post

Ikishida wrote:uhh how can i take a cart back?
Shift + Leftclick IIRC.

User avatar
mmstick
New member
Posts: 9
Joined: Sun Nov 03, 2013 20:18

by mmstick » Post

I get the following output from the terminal with daily dev builds:

Could not open file of texture: pushable_block_cart_mesh.png
Loaded mesh: pushable_block_cart.b3d
Could not open file of texture: pushable_block_cart_mesh.png
Loaded mesh: pushable_block_transport_cart.b3d

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

mmstick wrote:I get the following output from the terminal with daily dev builds:

Could not open file of texture: pushable_block_cart_mesh.png
Loaded mesh: pushable_block_cart.b3d
Could not open file of texture: pushable_block_cart_mesh.png
Loaded mesh: pushable_block_transport_cart.b3d
That just means that it is using the model. You dont have to worry about it if the textures for the carts are still there.
Coding;
1X coding
3X debugging
12X tweaking to be just right

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

by PilzAdam » Post

mmstick wrote:I get the following output from the terminal with daily dev builds:

Could not open file of texture: pushable_block_cart_mesh.png
Loaded mesh: pushable_block_cart.b3d
Could not open file of texture: pushable_block_cart_mesh.png
Loaded mesh: pushable_block_transport_cart.b3d
Ummm.... what? This is not part of this mod...

User avatar
oussama
New member
Posts: 8
Joined: Sat Dec 07, 2013 08:41

by oussama » Post

you said that rail switch has been added to version 8
so can you give me the link to download version 8
Last edited by oussama on Mon Dec 09, 2013 16:54, edited 1 time in total.

sapier
Developer
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Post

pushable_block is MONORAIL not carts
DON'T mention coding style!
(c) sapier all rights reserved

User avatar
D0431791
Member
Posts: 19
Joined: Wed Nov 06, 2013 11:43

by D0431791 » Post

Exilyth wrote:Aside from carts randomly reversing direction on powered rails, it's a great mod.
Does this happens when x, y or z is closed to a multiple of 16?
Minetest can be better if
*better data structure for players and unstackable items like JSON
*multi sqlite files so that multi dimension can be easily implemented
*more convenient mob developing interface

User avatar
vk
New member
Posts: 2
Joined: Fri Jan 03, 2014 19:25

by vk » Post

Hello! Good mod, thank you.
But what about reversing bug?

User avatar
philipbenr
Member
Posts: 1708
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

by philipbenr » Post

vk wrote:Hello! Good mod, thank you.
But what about reversing bug?
I think that some other things are taking up PilzAdam's time. I have been developing two mods, two texture packs and helping make textures for another game. I have found it hard enough. Some people don't have unlimited time to develop mods

If I were to get paid flat fee of a $ a mod, I would do it.
“I'd far rather be happy than right any day.”

User avatar
vk
New member
Posts: 2
Joined: Fri Jan 03, 2014 19:25

by vk » Post

I found that this bug happens because in cart_func:is_rail(p) function minetest.env:get_node(p) sometimes returns "ignore" (as for unloaded area)

I used simple hack

Code: Select all

d.y = 0
local p = cart_func.v3:add(cart_func.v3:copy(pos), d)
if cart_func:is_rail(p) then
 return d
end
was changed to

Code: Select all

d.y = 0
local p = cart_func.v3:add(cart_func.v3:copy(pos), d)
if cart_func:is_rail(p) or minetest.env:get_node(p).name == "ignore" then
 return d
end

User avatar
Stormageton
New member
Posts: 5
Joined: Tue Dec 31, 2013 21:57
Location: Right behind you...

by Stormageton » Post

Hey, I'm running MineTest 0.4.9 Stable on Win8, and "carts" doesn't work. I've tried extracting and compressing but it keeps talking about something to do with the init.lua. Please help, I desperately want this mod?

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests