I’m getting back into modding after ~6 months hiatus, and my mod is all broke. The problem is me trying to be clever referring to files via relative reference. For example, in the recipes list for a crafter, I’d refer to a particular recipe as:
“file(subfolder_of_my_mod/another_folder/my_item/my_item_recipe.json)”
That “my_item” folder has the item’s main json, ghost, iconic, etc. as well as the recipe. So in the my_item_recipe.json file, I’d just refer to “file(my_item.json)” in the “produces” bit of the recipe. This used to work a few alphas ago, but sadly now it creates problems in game finding the root uri of the iconic and ghost forms. When I add the item to aliases in my manifest and use that in my recipe’s “produces”, the problem is fixed.
Anyway, the reason I took this approach is I’m using palettes to allow for multiple versions of sets of related items, and if I don’t have any absolute paths in my main item, ghost, iconic, and recipe json files, I can copy whole trees of folders and tweak just the high-level mixin that contains the color definitions. Now it looks like I need to insert absolute paths in all my recipe files.
My question is whether any other modders have tried similar tricks and clever use of mixins to pass info down to more generic classes. Crossing my fingers that somehow I can still get away without absolute uris so deep in my file system…