Railcraft

Railcraft

34M Downloads

High Speed Tracks

CovertJaguar opened this issue ยท 11 comments

commented
  • Test explosions (known to not work when colliding with other carts) - Moved to #1279
  • Test drag...might be weird, not verified
  • Investigate ticking carts twice instead of boosting speed
commented

@CovertJaguar For carts like anchor, will ticking more than once cause unintended side effects?

commented

Good question. The anchor and locomotives will probably use fuel twice as fast.

commented

Do we make some sort of pseudo ticking?

commented

Cart colliding does not make explosions yes. Carts don't explode when going up a slope, is that intended?

commented

So now we just need to add explosion for cart collision. Drag will be tested later, I guess.

commented

Yes carts colliding when moving opposite direction explodes.

Why would they explode on a slope? They have never exploded on a slope. Yes its intentional.

commented

"Add" is probably the wrong term. There is code in MinecartHooks for it already. The question is why its not working.

commented

Hmm explosion sometimes works. We should change the check to checking absolute velocity between two carts.

commented

That sounds suspiciously like the old method I used to check abrupt changes in velocity, like when hitting a wall. Unfortunately, the motion vector is not so well behaved and likes to change randomly at times. Which resulted in random explosions.

commented

As I've seen, drag is handled in a method now. We have no access to drag information, unfortunately.

commented

I doubt the explosion part is the same as #1279 - faults of the vanilla system, because when two carts go on opposite directions, they collide normally.
For the drag part, it looks fine. We can override the methods as we need.