Skip to content

Add: Output warning if a similar name (case-insensitive) has been defined before - #439

Open
PeterN wants to merge 1 commit into
OpenTTD:masterfrom
PeterN:feature-427
Open

Add: Output warning if a similar name (case-insensitive) has been defined before#439
PeterN wants to merge 1 commit into
OpenTTD:masterfrom
PeterN:feature-427

Conversation

@PeterN

@PeterN PeterN commented Aug 21, 2026

Copy link
Copy Markdown
Member

In #427 an author had inadvertently mixed up cases of item names and experienced unexpected behaviour. In NML item names are case-sensitive, so using different cases results in a different item.

This PR adds a check for existing item names that differ only by case, and outputs a warning if found.

Item names are still case-sensitive, so there is no behaviour difference and therefore existing sets that rely on this should not break.

Closes #427.

nmlc warning: "nml_output/043_name_case.nml", line 15: Item with name 'item_mu_mu_wagon_unpowered' similar to existing name 'item_mu_MU_Wagon_Unpowered'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Item IDs aren't checked for capitalisation

1 participant