Page 1 of 3

[Mod] Boost cart [boost_cart]

PostPosted: Sun Sep 21, 2014 09:04
by Krock
Boost cart
This is a "lighter" version of the carts mod with some new features.

Image
Showing the item transport, one of the less interesting things.

Positive things about this mod:
  • Faster and less CPU intensive
  • 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

Negative:

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 source | Download *.zip (always up-to-date!)

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sun Sep 21, 2014 11:10
by rubenwardy
oooh. Nice.

/me tests

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sun Sep 21, 2014 16:06
by Sokomine
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.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Wed Sep 24, 2014 00:36
by lightonflux
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.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Wed Sep 24, 2014 18:01
by cx384
Cool mod. It would be nice to have adjustable points/switches.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sun Sep 28, 2014 16:51
by 4aiman
/me likes :)
Already in Magichet instead of carts :)
Any plans on cart_with_chest (to transport items) or wagons?

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sat Oct 04, 2014 14:33
by Daïmanu
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.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sat Oct 04, 2014 14:37
by Krock
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.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sat Oct 04, 2014 14:55
by Daïmanu


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.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Wed Jan 14, 2015 17:35
by Krock
The latest update improves the cart speedup (punching).
Commit link: Allow to stop cart by punching against the moving direction
Please report bugs.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sun Mar 15, 2015 14:05
by Krock
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.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Mon Mar 16, 2015 00:41
by Kilarin
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?

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sun Mar 22, 2015 06:11
by wappo
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

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sun Mar 22, 2015 09:57
by Krock
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.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sun Mar 22, 2015 13:01
by wappo
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.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sat Mar 28, 2015 01:12
by wappo
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.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Mon Mar 30, 2015 18:14
by Badake
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?

Re: [Mod] Boost cart [boost_cart]

PostPosted: Mon Mar 30, 2015 18:21
by Krock
Badake wrote:However, now he cant seem to remove it, any ideas?

Hold shift and punch/left click on the cart to take it.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Tue Mar 31, 2015 10:15
by Badake
Thankyou Krock, worked a treat he's happy again.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Thu Apr 02, 2015 17:13
by ABJ
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!

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sat Apr 04, 2015 07:30
by graag
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

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sat Apr 04, 2015 08:56
by ABJ
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

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sat Apr 04, 2015 21:11
by graag
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.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sat Apr 04, 2015 21:57
by rubenwardy
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. **

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sun Apr 05, 2015 15:59
by ABJ
That said, what about my second question?

Re: [Mod] Boost cart [boost_cart]

PostPosted: Thu Apr 16, 2015 12:45
by ABJ
Krock, I want to contribute to this mod. I'm planning to add more rail types. How do I make the mod work with the rails?

Re: [Mod] Boost cart [boost_cart]

PostPosted: Thu Apr 16, 2015 15:56
by Krock
ABJ wrote:Krock, I want to contribute to this mod. I'm planning to add more rail types. How do I make the mod work with the rails?

I do not plan to add more rails to this mod. Create a new mod and add there all your new rails.
To get different types (wide- or narrow-gauge), simply set the group "connect_to_raillike" to 2, 3 or something else.

If you have a rail with multiple acceleration states, use the function
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
boost_cart:boost_rail(node position, acceleration)

to push the cart after switching the rail to an "On"-state.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Thu Apr 16, 2015 16:07
by ABJ
What is the "node position" and how many nodes per number does the cart accelerate?
And how about brake rails? Do you simply set the "acceleration" value to a minus one?

Re: [Mod] Boost cart [boost_cart]

PostPosted: Thu Apr 16, 2015 16:45
by lightonflux
ABJ wrote:That said, what about my second question?


First click at commits at the upper bar:

Image

Then select the commit you want to download/view/browse:

Image

When you are in the browse view and the branch button should look like this:

Image

Then press the download button and you get the content of the repo at that commit.

http://a.pomf.se/eabnya.png

Re: [Mod] Boost cart [boost_cart]

PostPosted: Thu Apr 23, 2015 22:28
by Splizard
We need upside down rails so we can make rollercoasters!