bergerhealer / TrainCarts

Minecarts redefined
MIT License
206 stars 64 forks source link

Launcher does not working? #456

Closed niwatori-chicken closed 2 years ago

bergerkiller commented 2 years ago

Still not working with https://ci.mg-dev.eu/job/TrainCarts/1254/ ?

Did you power the sign, or use [+train]?

niwatori-chicken commented 2 years ago

Unfortunately, it does not work.

niwatori-chicken commented 2 years ago

@1.18.2

bergerkiller commented 2 years ago

Can you give me more information to work with? Screenshot where the launch sign and rails are both visible? Make sure placement is correct. See:

niwatori-chicken commented 2 years ago

Placement is correct, sign is next to power rail.

bergerkiller commented 2 years ago

does it work on normal rails? And it should be attached to a block below the rails. For sign posts, below the rail.

Verify correct placement with a [+train] destroy sign

niwatori-chicken commented 2 years ago

also not working on normal rail

bergerkiller commented 2 years ago

Can you please make a screenshot? Im not seeing what youre seeing at all. Also, make sure traincarts is at all enabled. Check /train version.

niwatori-chicken commented 2 years ago

2022-10-25_19 55 36

bergerkiller commented 2 years ago

What is the output of /train version and /version ? Sign setup looks correct. But it's possible that minecart isn't even handled by traincarts. Can you select it by looking at it and doing /train edit ?

It should also be noted, without specifying a distance time or acceleration after launch itll launch to the end of the rail, which can take a while. Instantaneous launch would be:

[+train]
launch 2
1
continue
bergerkiller commented 2 years ago

Oh hold on, I got something. Destroying the sign and placing it again broke it.

Does /train debug fix signs fix this on your end as well? I'll look into this.

niwatori-chicken commented 2 years ago

image Unfortunately, the problem was not resolved. :(

bergerkiller commented 2 years ago

Can you see if this build helps resolve these issues? https://ci.mg-dev.eu/job/TrainCarts/1257/

niwatori-chicken commented 2 years ago

not working :(

bergerkiller commented 2 years ago

Does [+train] destroy sign work for you? Or not either?

niwatori-chicken commented 2 years ago

[+train] destroy

is working

bergerkiller commented 2 years ago

Okay so when you see its not working....does that mean that when you place a minecart on the rail where the launch sign as described in your image is at, it doesnt start moving?

niwatori-chicken commented 2 years ago

No, it moves, but its speed is fixed at 0.4 blocks per tick.

bergerkiller commented 2 years ago

Ah. Then you need to change the speed limit of the train as well. You can launch to a new max speed with the speed limit syntax: https://wiki.traincarts.net/p/TrainCarts/Signs/Launcher#Speed_limit_syntax

[!train]
launch 5
1.0 0.0
continue

Will launch from the current speed to a speed of 1.0 smoothly over a distance of 5 blocks, raising the speed limit if needed, and sets a new speed limit for the train.

The second number (0.0) is energy left over. If you set that very high, then the train will not slow down and after the launch keeps moving at a constant velocity of 1.0.

This would do the same launch, but at the end of it gives the train 200 energy, so the train will not slow down for a while. If you disable slowdown / friction / gravity entirely then all this has no effect.

[+train]
launch 5
1.0 200.0
continue
niwatori-chicken commented 2 years ago

it works! thank you for resolve my shitty problems!

bergerkiller commented 2 years ago

Glad that got resolved. Did find a bug in the end though (placing a sign and then a train on top within 3s didn't make the train see the sign) so it was time well spent :)

niwatori-chicken commented 2 years ago

Thanks so much!