[Mod] Boost cart [boost_cart]

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

[Mod] Boost cart [boost_cart]

by Krock » Post

Boost cart

This is a "lighter" version of the carts mod with some new features.

Image
Showing the item transport and mesecons support. Power and brake rails must only be enabled by a mesecons signal if that mod is enabled.

Features:
  • Faster and less CPU intensive
  • Configurable maximal cart speed
  • Pathfinder for automatic position correction
  • Switch the direction on crossings (by pressing the movement keys)
  • Fully backwards compatible with the original carts mod by PilzAdam
  • Copper rails (gives copper an use) - moreblocks equivalent
  • Drop items inside the cart and punch it to transport them
  • Different rail type support
  • Handbrake with the 'down' key
News - MTG carts:
Since version 0.4.15 there are now carts in the official subgame minetest_game. That version of carts is based on boost_cart but does not support mesecons. You can still use boost_cart as before, it will simply overwrite the other mod.

Depends: default, mesecons (optional)
License: CC0
Code: View sauce | *.zip | .git clone
Attachments
preview_boost_cart.png
(315 KiB) Not downloaded yet
Last edited by Krock on Mon Oct 09, 2017 11:08, edited 5 times in total.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

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

Re: [Mod] Boost cart [boost_cart]

by rubenwardy » Post

oooh. Nice.

/me tests

Sokomine
Member
Posts: 4070
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] Boost cart [boost_cart]

by Sokomine » Post

Nice. I still hope there will be client-side support for carts and other entities players might get attached to. That could save a bunch of problems which can't be solved server-side.
A list of my mods can be found here.

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

Re: [Mod] Boost cart [boost_cart]

by lightonflux » Post

Great mod. Would be nice if you can press a direction key and the mod applies it to the next junction. So you don't miss a junction when you travel with great speed. A window of 2-3 seconds should be good, after 3sec the keypress should expire, so you don't take the wrong turn.

User avatar
cx384
Member
Posts: 499
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] Boost cart [boost_cart]

by cx384 » Post

Cool mod. It would be nice to have adjustable points/switches.
Can your read this?

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

Re: [Mod] Boost cart [boost_cart]

by 4aiman » Post

/me likes :)
Already in Magichet instead of carts :)
Any plans on cart_with_chest (to transport items) or wagons?

User avatar
Daïmanu
Member
Posts: 12
Joined: Tue Feb 04, 2014 21:48

Re: [Mod] Boost cart [boost_cart]

by Daïmanu » Post

Krock wrote:Switch the direction on crossings (by pressing keys)
Could you secify which key?

Why not using a rail switch item to switch a direction?
You place it near to a junction and you can hit it or activate it with a mesecon circuit.

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

Re: [Mod] Boost cart [boost_cart]

by Krock » Post

Daïmanu wrote:Could you secify which key?

Why not using a rail switch item to switch a direction?
You place it near to a junction and you can hit it or activate it with a mesecon circuit.
Just the left and right movement key

That's a nice idea to switch them with mesecons but not every cart driver has the same target.
Therefore it might be better as it currently is.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Daïmanu
Member
Posts: 12
Joined: Tue Feb 04, 2014 21:48

Re: [Mod] Boost cart [boost_cart]

by Daïmanu » Post

How didn't I guess it... Thanks.
Krock wrote:That's a nice idea to switch them with mesecons but not every cart driver has the same target.
Therefore it might be better as it currently is.
I was thinking to a network with a start, and you can select a destination with mesecons buttons.

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

Re: [Mod] Boost cart [boost_cart]

by Krock » Post

The latest update improves the cart speedup (punching).
Commit link: Allow to stop cart by punching against the moving direction
Please report bugs.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

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

Re: [Mod] Boost cart [boost_cart]

by Krock » Post

Update!
Image

The carts now only run on the type of rails it got placed on.
You can define more rails and change the group connect_to_raillike to 2 to separate them from the other rails.
The current master branch doen't display those correctly.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Kilarin
Member
Posts: 779
Joined: Mon Mar 10, 2014 00:36

Re: [Mod] Boost cart [boost_cart]

by Kilarin » Post

Krock wrote:The carts now only run on the type of rails it got placed on
How is that and advantage? Or am I misunderstanding?

wappo
New member
Posts: 5
Joined: Sun Mar 22, 2015 02:29
Location: Japan

Re: [Mod] Boost cart [boost_cart]

by wappo » Post

I like boost cart mod.
But, I can not start cart on the power rail connect mesecon switch.
PilzAdam's cart mod is work.

Image

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

Re: [Mod] Boost cart [boost_cart]

by Krock » Post

wappo wrote:I like boost cart mod.
But, I can not start cart on the power rail connect mesecon switch.
PilzAdam's cart mod is work.

http://i.imgur.com/aiVEZd9.jpg
No problem, I added that feature right now.
https://github.com/SmallJoker/boost_cart/commit/159d
I haven't tested all possibilities but it seems to work correctly.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

wappo
New member
Posts: 5
Joined: Sun Mar 22, 2015 02:29
Location: Japan

Re: [Mod] Boost cart [boost_cart]

by wappo » Post

Krock wrote:
wappo wrote:I like boost cart mod.
But, I can not start cart on the power rail connect mesecon switch.
PilzAdam's cart mod is work.

http://i.imgur.com/aiVEZd9.jpg
No problem, I added that feature right now.
https://github.com/SmallJoker/boost_cart/commit/159d
I haven't tested all possibilities but it seems to work correctly.
Thanks Krock.
mesecon switch is working.

wappo
New member
Posts: 5
Joined: Sun Mar 22, 2015 02:29
Location: Japan

Re: [Mod] Boost cart [boost_cart]

by wappo » Post

bugs?
When the cart that was moving, I exited the game.
Next the game, this cart does not work.

Empty cart stop in the very long rail.


Sorry, I can not English.

Badake
New member
Posts: 4
Joined: Wed Mar 25, 2015 16:36
In-game: Badake

Re: [Mod] Boost cart [boost_cart]

by Badake » Post

Have this mod on my family server tho i've not used it personally yet.
My son placed a cart high up in one of his buildings! Dont ask me why, given up trying to understand 7 year olds lol. However, now he cant seem to remove it, any ideas?

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

Re: [Mod] Boost cart [boost_cart]

by Krock » Post

Badake wrote:However, now he cant seem to remove it, any ideas?
Hold shift and punch/left click on the cart to take it.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

Badake
New member
Posts: 4
Joined: Wed Mar 25, 2015 16:36
In-game: Badake

Re: [Mod] Boost cart [boost_cart]

by Badake » Post

Thankyou Krock, worked a treat he's happy again.

ABJ
Member
Posts: 3015
Joined: Sun Jan 18, 2015 13:02
GitHub: ABJ-MV
In-game: ABJ
Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.

Re: [Mod] Boost cart [boost_cart]

by ABJ » Post

Now for the collision detection!
Oh and by the way the item cart download link says not found

EDIT: Wait I forgot! Cart trains! Made up of multiple coupled carts!

graag
New member
Posts: 2
Joined: Sat Apr 04, 2015 07:20
GitHub: graag
In-game: graag

Re: [Mod] Boost cart [boost_cart]

by graag » Post

I made a small steering modification for this mod.
When riding inside a cart pressing up will accelerate the cart - similar to how one steers in the boat mod.
My son likes this better then the frantic punching ;)

If anyone is interested here's the commit: https://github.com/graag/boost_cart/com ... 9a937df065

ABJ
Member
Posts: 3015
Joined: Sun Jan 18, 2015 13:02
GitHub: ABJ-MV
In-game: ABJ
Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.

Re: [Mod] Boost cart [boost_cart]

by ABJ » Post

graag wrote:I made a small steering modification for this mod.
When riding inside a cart pressing up will accelerate the cart - similar to how one steers in the boat mod.
My son likes this better then the frantic punching ;)

If anyone is interested here's the commit: https://github.com/graag/boost_cart/com ... 9a937df065
Wow..........your first post on the MT forums was about a contribution to a mod many like :thumbup: :D
Back to the topic. I'm a total n00b at github. How do I download commits?
EDIT: I totally forgot to say that I ABSOLUTELY NEED THIS!!!!!! :D

graag
New member
Posts: 2
Joined: Sat Apr 04, 2015 07:20
GitHub: graag
In-game: graag

Re: [Mod] Boost cart [boost_cart]

by graag » Post

Just use my fork to give it a try: https://github.com/graag/boost_cart and click "download zip".
Probably you'll have to rename it to boost_cart after unzipping.

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

Re: [Mod] Boost cart [boost_cart]

by rubenwardy » Post

ABJ wrote:
graag wrote:...
Wow..........your first post on the MT forums was about a contribution to a mod many like :thumbup: :D
Back to the topic. I'm a total n00b at github. How do I download commits?
EDIT: I totally forgot to say that I ABSOLUTELY NEED THIS!!!!!! :D
PilzAdam's first post WAS a mod. It was carts, July 2012. The good old days. ** stares off into the distance. **

ABJ
Member
Posts: 3015
Joined: Sun Jan 18, 2015 13:02
GitHub: ABJ-MV
In-game: ABJ
Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.

Re: [Mod] Boost cart [boost_cart]

by ABJ » Post

That said, what about my second question?

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests