[1.1.73] resource paths aren’t recognized for mods with certain patterns of underscores in their names
Posted: Sat Dec 03, 2022 3:54 am
i was testing which patterns of mod names are actually allowed, since the wiki is a bit ambiguous on this. when making test mods, i figured out that if a mod’s name begins or ends with an underscore or contains a sequence of 2 or more underscores, it is not parsed correctly in resource paths. they are still parsed fine by the mods menu, though.
attached are four mods and their corresponding log files. each mod is intended to change the texture of the tile “lab-dark-2”; they differ only in their names. among these, only “abc_def” works; “abc_”, “abc__def” and “_def” all generate the same error when loading, where their “__modname__/path” is not recognized.
the expected behavior is that all of these work fine: underscores are explicitly allowed in mod names, after all! if this is intended behavior, some clarification on the wiki would be nice.
thank you!
attached are four mods and their corresponding log files. each mod is intended to change the texture of the tile “lab-dark-2”; they differ only in their names. among these, only “abc_def” works; “abc_”, “abc__def” and “_def” all generate the same error when loading, where their “__modname__/path” is not recognized.
the expected behavior is that all of these work fine: underscores are explicitly allowed in mod names, after all! if this is intended behavior, some clarification on the wiki would be nice.
thank you!