Page 1 of 1

Train stop fast-replace does not update trains appropriately

Posted: Mon Oct 15, 2018 4:35 am
by Reika
If a train has stops A, B, and C, and I fast-replace the entity for stop B (with another train stop entity K), I would expect the train to now have the schedule A, K, C, with K's wait conditions being the same as it used to have for B.

This is not the case. The stop is replaced, and the train just "reds out" the station.

Yes, renaming the new station will re-add it, but this is something that should be addressed, especially given that fast-replace currently has no hooks for mods to do this automatically.

Re: Train stop fast-replace does not update trains appropriately

Posted: Mon Oct 15, 2018 4:51 am
by Bilka
Your bug report would have been much easier to understand if you had just said "train stop fast replace doesn't copy name to new train stop" instead of referring to train schedules. I'm leaving this sentence here so that the bug report is more clear.

Re: Train stop fast-replace does not update trains appropriately

Posted: Mon Oct 15, 2018 5:39 am
by Reika
Bilka wrote: Mon Oct 15, 2018 4:51 am Your bug report would have been much easier to understand if you had just said "train stop fast replace doesn't copy name to new train stop" instead of referring to train schedules. I'm leaving this sentence here so that the bug report is more clear.
While that is technically true, I have a feeling this goes deeper than just the name of the stop - any internal links are likely also broken.

Re: Train stop fast-replace does not update trains appropriately

Posted: Mon Oct 15, 2018 1:15 pm
by Bilka
Thank you for the report, fixed for 0.17.