Giter Club home page Giter Club logo

Comments (4)

bergerkiller avatar bergerkiller commented on August 28, 2024

Not sure if this applies to you but Ill state it anyways

When you save a train make sure the train is moving forwards so the orientation is correct. You can specify --lockorientation to preserve that orientation in all future saves, regardless of what direction the train is moving.

That said, individual carts should not flip, so that sounds like a bug. Would be helpful if you could write the exact steps of reproducing it so I can see in my end. Maybe this is something specifically caused by /cart flip

Your last example with /cart flip followed by /train flip Ill try out, and does make it seem like the /cart flip command corrupts orientation state somehow.

from traincarts.

amalon avatar amalon commented on August 28, 2024

Sure, hopefully this removes any ambiguity:

  1. create a straight bit of normal minecart track (i had it in a north/south direction)
  2. place two minecarts, next to one another (while stood on track, so they're the same orientation). They appear to become a train.
  3. use the attachment editor to change the cart entity to something asymmetrical, i changed one cart to a mule, and the other to a mushroom (since they're nearby on the list of entities).
  4. the animals should be pointing the same direction (if not, i suppose try again from a different angle so that they are). point at the animal behind the other, and /train edit the cart, then /cart flip to turn it so they both face outwards, away from one another
  5. /train chest, and right click on the train (it disappears)
  6. right click on the track, it reappears, looking the same
  7. right click on the train, it disappears
  8. right click on the track, it reappears with the animals facing the same direction as one another

The second example was similar, follow steps 1-4, then:
5) /train flip, the whole train flips around, animals still facing away from one another
6) /train chest, and right click on the train (it disappears)
7) right click on the track, it reappears, but with both animals facing the opposite direction, towards one another, either the carts have swapped place or both have flipped.
8) if you right click again on train, it disappears, and right clicking a second time the animals reappear facing the same direction as one another

I first noticed this when testing /train chest with my saved trains which make use of carts which are flipped (I think originally by just joining carts together which are spawned the right ways (i.e. not explicitly with /cart flip), but where the overall direction doesn't matter since the overall train is symmetrical

from traincarts.

bergerkiller avatar bergerkiller commented on August 28, 2024

I think I found the main cause behind this, which was that the initial direction face wasnt set right when a train was spawned. This would normally correct itself once the train was set in motion, but if you spawn it and right away save it, it caused carts to be flipped like you described. After the fix that particular bug didnt happen again.

https://ci.mg-dev.eu/job/TrainCarts/1454/

from traincarts.

amalon avatar amalon commented on August 28, 2024

Perfect. Thanks!

from traincarts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.