Station Group Nominator


Allows select and rename a group of train stops. New name accept placeholders between braces ( e.g. {x} ) that will be replace by a incremental numbers .

Utilities
3 years ago
0.18 - 1.1
119

i Preserve leading zeroes

1 year, 4 months ago
(updated 1 year, 4 months ago)

I like to name my stations something like Foo-01 through Foo-99.

Unfortunately, currently this mod does not preserve leading zeroes. So when I tell it to start with the number 01 in the pattern "Foo-{x}" it will name my stations as "Foo-1", "Foo-2", etc, while I'd like them to be named "Foo-01", "Foo-02", etc.

Would it be possible to respect leading zeroes (and do the right things when specifying 001 so that when, for example, the mod counts to 10 the mod formats it as 010 instead of 0010)?

To be more precise, when selecting 999 stations, giving the format as "Foo-{x}" and telling the mod to start at 1, the stations should be named:

Foo-1, Foo-2, Foo-3, .. Foo-999

when giving the same format and telling the mod to start at 01, the stations should be named:

Foo-01, Foo-02, Foo-03, .. Foo-99, Foo-100 ... Foo-999

when giving the same format and telling the mod to start at 001, the stations should be named:

Foo-001, Foo-002, Foo-003, .. Foo-099, Foo-100 ... Foo-999

Does that sound reasonable?

New response