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

"Add Output Index" script for old Automapping rules #26

Merged
merged 3 commits into from
Mar 19, 2024

Conversation

eishiya
Copy link
Contributor

@eishiya eishiya commented Mar 15, 2024

This script scans a project or a directory for Automapping rules and updates them to ensure they will work consistently with 1.10.3+ Automapping, which changes how empty indices are handled.

In any map that has both empty and non-empty output indices, it gives the empty index a name, so that it stays just a regular random index like it was before 1.10.3, instead of becoming a special "always output" index.

In my own testing (two full-fledged projects, one of which has a truckload of Automapping rules, and a testing project made up of dozens of maps from/for people who needed help on Discord and the forum), only one map actually needed to be changed, according to the report the script outputs to the console. I suspect most people won't actually need this script because I think people tend to name all output indices in maps with multiple indices, but it should provide peace of mind.

eishiya and others added 3 commits March 15, 2024 17:24
This script scans a project or a directory for Automapping rules and updates them to ensure they will work consistently with 1.10.3+ Automapping, which changes how empty indices are handled.

In any map that has both empty and non-empty output indices, it gives the empty index a name, so that it stays just a regular random index like it was before 1.10.3, instead of becoming a special "always output" layer.
@bjorn bjorn merged commit 48baa56 into mapeditor:master Mar 19, 2024
1 check passed
@eishiya eishiya deleted the patch-1 branch August 15, 2024 15:53
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.

2 participants