Hi! It's a pleasure to see some other mods developers like this idea :)
Yeah, items specified currently are introduced by the needs of the mod I now develop want to make compatible. I also thought about adding sort of tiers, but hasn't yet come up with a robust approach that will suit all the overhauls and small mods I've seen.
I thought to make meta-items like basic-speed-module
, medium-speed-module
, best-speed-module
that will return speed modules 1-2-3 for vanilla, and 1-5-9 for Space Exploration. Similarly, basic-assembly-machine
and best-assembly-machine
will be assembly-machine-1
and assembly-machine-3
for vanilla, and burner assembly machine (like tier 0), space assembly machine (like tier 4) for SE. And similarly for other mods with tiers.
The problem of what you say is that if the Bridge provides more tiers of items that are present in the game, what it should return?
To solve a similar issue, I was thinking about providing 1. optional items, so if some mod requests a non-existing item, it will get nil (and a function to clean ingredients list of nil), 2. a function that takes a list of possible items, and returns first existing (similar to null coalescing operator in programming).
Speaking of specific items, I'm free to discuss! I think it will take many messages, maybe Discord would be more handy for this? I can create a dedicated channel for this topic.