Page 1 of 1

Blueprint autonumber

Posted: Wed Mar 14, 2018 3:25 pm
by tehfreek
For entities in blueprints that have an assignable name (currently only train stops AFAICR), if the name contains "%n" then replace it with the next available number, starting from 1. For instance, if a blueprint contains "Iron %n" and "Iron 1" and "Iron 2" already exist then when placed it should use "Iron 3".

Multiple identical names with "%n" in the same blueprint should be numbered consecutively, e.g. three instances of "Output %n" in the same blueprint should become "Output 1", "Output 2", and "Output 3" when placed.

Alternatively, The "n" could be replaced with a number so that all identical names with "%1" are replaced the same number, "%2" becomes the next number, etc. This would allow for train stops with the same number for balancing purposes.