Poikilos / EnlivenMinetest

Minetest engine server management tools and ENLIVEN game installer/updater
Other
3 stars 0 forks source link

Complex recipes are shown before primitive ones (reversed) #198

Open Poikilos opened 5 years ago

Poikilos commented 5 years ago

(This is tracked in #351)

Expected result: The first-registered recipe (Since at least usually that is the one that uses simple ingredients) should be listed first.

Actual results: The last-registered recipe is listed first. This often makes the item appear possible to obtain due to cyclic requirements (It is not cyclical, but you can only see that by scrolling through recipes--sometimes an interminable number of recipes, using the blue arrows under the current recipe).

Example:

Poikilos commented 5 years ago

The following primary recipes should be shown first:

slopsbucket commented 5 years ago

There has never been any framework or even a convention for this. Items appear in the same order in which they are loaded when starting a game. If modders took a little more care with the order that they place their definitions in then their items will load in a more logical order.

That said, it would be nice if we could find some way of forcing them to display in an order that makes more sense to every one.

Another item for the ToDo list.

Poikilos commented 4 years ago

Possible solutions

A. Show recipes in the order registered, so simplest dependencies show first (this may even fix the protector recipe order and make the one from stone show before the one from protect2, if the mod registers the recipes in that order). The order in solution A could be used for the inventory too, so this is related to #351

Poikilos commented 3 years ago

@OldCoder Another part of this issue is that recipes utilizing the specific item rather than the group should shown before the recipes using its group. For example, search for bamboo and click the bamboo block. Click it on the top left to go to ingredient mode. The first several (many) recipes are things you can make with the wood group (since bamboo is in that group). However, the recipes that require bamboo rather than the wood group should be listed first. This allows the player to see information about the specific item for which they are seeking help.