Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change: Support extended DCxx string range, and station names for IDs > 255 #293

Merged
merged 2 commits into from
Jun 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion nml/actions/action4.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ def skip_action9(self):
0xD0: {"random_id": True, "total": 0x400, "ids": list(range(0xD3FF, 0xCFFF, -1))},
# Misc. persistent text ids, used to set properties.
# Use Ids DC00..DCFF first to keep compatibility with older versions of OTTD.
0xDC: {"random_id": True, "total": 0x800, "ids": list(range(0xDBFF, 0xD7FF, -1)) + list(range(0xDFFF, 0xDBFF, -1))},
0xDC: {
"random_id": True,
"total": 0x2800,
"ids": list(range(0xFFFF, 0xDFFF, -1)) + list(range(0xDBFF, 0xD7FF, -1)) + list(range(0xDFFF, 0xDBFF, -1)),
frosch123 marked this conversation as resolved.
Show resolved Hide resolved
},
}

# Mapping of string identifiers to D0xx/DCxx text ids
Expand Down