Page 2 of 6

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
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!

Re: [Mod] Boost cart [boost_cart]

PostPosted: Fri Apr 24, 2015 08:52
by ABJ
Thank you very much lightonflux :)
Only problem? The commits needed for CiaranG's railcarts mod has mysteriously disappeared :'( But that's not your fault tho :)

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sun May 17, 2015 06:49
by ABJ
I am making my own version of this. Is it OK if I release? And what else do I have to do?

Image
Image
Image

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sun May 17, 2015 07:25
by Krock
Splizard wrote:We need upside down rails so we can make rollercoasters!

That would require a rotation function for the vertical axis.

ABJ wrote:I am making my own version of this. Is it OK if I release? And what else do I have to do?

You can release it whenever you want but I suggest to change more things. It's nonsense to have +/- the same mod 3 times on this forum.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sun May 17, 2015 08:53
by ABJ
Yes Krock that is just a small demo of what I'm planning for. And is it OK if I keep the same name? I want this mod to replace the default one and the crafting recipes are also same as I don't want to change.

TODO:
-Fancy gold/silver/glowing rails
-Maybe giving the cart a makeover?
-Changing this mod A LOT.

EDIT: And what do you think of this mod's current progress? Is it looking better or worse?

Re: [Mod] Boost cart [boost_cart]

PostPosted: Mon May 18, 2015 08:38
by ABJ
Here it is!
Hicarts
It's very different from this mod. Notably in that it has collision detection :)

Re: [Mod] Boost cart [boost_cart]

PostPosted: Mon May 18, 2015 20:49
by arifsaha
Unfortunately I consistently experience server crashing whenever I right-click the cart. The log shows this:

Code: Select all
May 18 14:34:20 2013lr minetestserver[11467]: 14:34:20: ACTION[ServerThread]: MYUSER right-clicks object 2: LuaEntitySAO at (-14,19,-64)
May 18 14:34:21 2013lr minetestserver[11467]: 14:34:21: ERROR[main]: ERROR: An unhandled exception occurred: /var/lib/minetest/.minetest/mods/boost_cart/init.lua:47: attempt to index field 'player_attached' (a nil value)
May 18 14:34:21 2013lr minetestserver[11467]: 14:34:21: ERROR[main]: stack traceback:
May 18 14:34:21 2013lr minetestserver[11467]: 14:34:21: ERROR[main]: #011/var/lib/minetest/.minetest/mods/boost_cart/init.lua:47: in function </var/lib/minetest/.minetest/mods/boost_cart/init.lua:37>
May 18 14:34:21 2013lr minetestserver[11467]: In thread 7f7b8d498880:
May 18 14:34:21 2013lr minetestserver[11467]: /builddir/build/BUILD/minetest-0.4.9/src/main.cpp:1860: int main(int, char**): Assertion '0' failed.
May 18 14:34:21 2013lr minetestserver[11467]: Debug stacks:
May 18 14:34:21 2013lr minetestserver[11467]: DEBUG STACK FOR THREAD 7f7b8d498880:
May 18 14:34:21 2013lr minetestserver[11467]: #0  int main(int, char**)
May 18 14:34:21 2013lr minetestserver[11467]: (Leftover data: #1  Dedicated server branch)
May 18 14:34:21 2013lr minetestserver[11467]: (Leftover data: #2  virtual void ServerMap::save(ModifiedState))
May 18 14:34:21 2013lr minetestserver[11467]: (Leftover data: #3  virtual void Database_SQLite3::saveBlock(MapBlock*))


Any thought?

Thanks!

Re: [Mod] Boost cart [boost_cart]

PostPosted: Fri Jun 05, 2015 18:36
by Krock
Today is an update day!

arifsaha wrote:Unfortunately I consistently experience server crashing whenever I right-click the cart. The log shows this:
<snip>

Fixed.

New detector rails for mesecons, added by numberZero:

Image

Re: [Mod] Boost cart [boost_cart]

PostPosted: Tue Sep 29, 2015 11:12
by uind_w
I read "detector.lua" and find...
Code: Select all
minetest.register_craft({
   output = "boost_cart:detectorrail 6",
   recipe = {
      {"default:steel_ingot", "mesecon:mesecon", "default:steel_ingot"},
      {"default:steel_ingot", "group:stick", "default:steel_ingot"},
      {"default:steel_ingot", "mesecon:mesecon", "default:steel_ingot"},
   },

(Line 43-49)
"mesecon:mesecon" is should be "mesecons:mesecon"?

Re: [Mod] Boost cart [boost_cart]

PostPosted: Tue Sep 29, 2015 16:22
by Krock
uind_w wrote:"mesecon:mesecon" is should be "mesecons:mesecon"?

Thanks for pointing this out. I shouldn't use creative mode to test the new features :)
https://github.com/SmallJoker/boost_cart/commit/ddb6
The recipe will also work when "mesecons_alias" isn't activated.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sat Oct 17, 2015 15:16
by tomlukeywood
i get the error /home/tom/MinetestGame/bin../mods/carts_mod/init.lua:2: attempt to concatenate a nil value

:(

any ideas?

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sat Oct 17, 2015 17:03
by TenPlus1
tomlukeywood: rename carts_mod directory to just carts.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Wed Nov 11, 2015 23:58
by katsukitty
TenPlus1 wrote:tomlukeywood: rename carts_mod directory to just carts.


"2015-11-11 18:57:11: ERROR[Main]: ...e/katsu/Programs/minetest/bin/../mods/carts/init.lua:16: attempt to concatenate field 'modpath' (a nil value)"

I get the same error when it's named "carts". Possible bug?

Re: [Mod] Boost cart [boost_cart]

PostPosted: Thu Nov 12, 2015 09:08
by IvĂ 
katsukitty wrote:"2015-11-11 18:57:11: ERROR[Main]: ...e/katsu/Programs/minetest/bin/../mods/carts/init.lua:16: attempt to concatenate field 'modpath' (a nil value)"

I get the same error when it's named "carts". Possible bug?


It should be boost_cart, as the title says.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Fri Nov 13, 2015 22:13
by Krock
katsukitty wrote:I get the same error when it's named "carts". Possible bug?

Here's the early XMAS gift for everybody who can't rename mod directories correctly.
I hope this is an understandable error for everybody with this problem.

EDIT: Post #3100

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sat Nov 14, 2015 07:51
by TenPlus1
Nicely done Krock... btw sorry for typing wrong folder name folks.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Sun Nov 29, 2015 19:15
by Alienant1
is the power rail/mesecons compatibility now part of the standard download or do I still need to download separately?

Re: [Mod] Boost cart [boost_cart]

PostPosted: Mon Dec 21, 2015 13:36
by amadin
Can you add stop cart by punching against the moving direction to last commit? I saw it in old commit.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Mon Dec 21, 2015 16:40
by Krock
Alienant1 wrote:is the power rail/mesecons compatibility now part of the standard download or do I still need to download separately?

Sorry for the late reply. The mesecons compatibility is there with the standard download.

amadin wrote:Can you add stop cart by punching against the moving direction to last commit? I saw it in old commit.

It's already now possible to slow down the cart by punching in the opposite direction. Just move slowly (or press the back/down key) to make it stop.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Mon Dec 21, 2015 17:56
by amadin
It's already now possible to slow down the cart by punching in the opposite direction. Just move slowly (or press the back/down key) to make it stop.

If cart drive on power rails only it don't stop by punching in the opposite direction or pressing back key.

Can you add different texture inside and outside cart? I want replace texture with wheels like in minecart.
Can you set contorl by keys (up, down), like in minecraft, or how can i do this by itself?.

Re: [Mod] Boost cart [boost_cart]

PostPosted: Mon Dec 21, 2015 18:24
by Laudrin
Thank you Krock, for your awesome addition to the carts mod. It eliminates some of the restrictions. Now I can build a rail network in my world. :-)

I recognized that boost_cart rails have a slightly brighter texture then the original cart mod rails I build before installing your mod. Nothing serious, but is that an intentional choice?

Some suggestions if you should plan to develop more features: It would be great to have the ability to switch railroad junctions i. e. via mesecon singnal or digiline bus or something like that. And signals would be great, when the signal is red, a brake rail would stop the cart (not only decelerate) independent of its speed.