Author Topic: Replacement ghost train...  (Read 1128 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacethingy

Replacement ghost train...
« on: December 16, 2014, 12:07:06 PM »
I accidentally loaded a pak64 game into pak128 (game build r7426), and one train got replaced with no loco:


It's max possible speed is reported as 0 km/h, but it's actually crawling along at 4 km/h - not bad considering there's no power unit to move it...

How is it possible to have a convoy with no power unit? And why is it able to move?!  ;D
Life is like a new Simutrans transformer:

You only get one of them, and you can't have it on a slope.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: Replacement ghost train...
« Reply #1 on: December 16, 2014, 04:12:00 PM »
How is it possible to have a convoy with no power unit? And why is it able to move?!  ;D

Sheer willpower.

It is intentional that things should be able to move along at some minimum speed no matter how low the power-to-weight ratio is. That way, it can always make it back to the depot to get some more power attached. I also wonder if some water "vehicles" make use of being able to float along without a tug.

Offline DrSuperGood

Re: Replacement ghost train...
« Reply #2 on: December 16, 2014, 04:19:51 PM »
This raises the issue that maybe such impossible convoys should be automatically removed with some form of error. Basically any convoy which is computed to never exceed minimum speed on flat ground should be instantly retired (or teleported to near/source depot). Although impossible to start such a convoy from a depot, nothing stops you loading one.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: Replacement ghost train...
« Reply #3 on: December 16, 2014, 08:24:35 PM »
This raises the issue that maybe such impossible convoys should be automatically removed with some form of error. Basically any convoy which is computed to never exceed minimum speed on flat ground should be instantly retired (or teleported to near/source depot). Although impossible to start such a convoy from a depot, nothing stops you loading one.

If there are many such convoys, it might be difficult to keep track of which convoys need fixing if they all just disappear. And they must be fully recreated in all cases, whereas in this case, all that's needed is a locomotive. On the other hand, it will take a lot of time to get such convoys into a depot for fixing. And with different capacities and speeds, making this work again might require more effort and planning than just adding a locomotive anyway.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8764
  • Total likes: 307
  • Helpful: 229
  • Languages: De,EN,JP
Re: Replacement ghost train...
« Reply #4 on: December 16, 2014, 10:35:54 PM »
If you load an old enough savegame, or for instance a freight EMU, then the replace needs to replace it with matching vehicles. If there are none, then first freight will be matched. The power is not saved, as usually there is a besch saving this stuff.

This happens really only on old savegames or with wierd missing addons. You get a warning what else failed on reloading anyway.