widelands / widelands-website

The widelands website is a bunch of applications for the django web framework. It is developed in the open here.
https://www.widelands.org/
GNU General Public License v2.0
15 stars 10 forks source link

interactive ware help: sorting of wares (e.g. axes) #200

Open gunchleoc opened 5 years ago

gunchleoc commented 5 years ago

In the new amazing interactive ware help, there could be one more enhancement:

The similar wares, that have a sorting (e.g. all weapons and armour, ration/snack/meal) could be shown in the right order. In my opinion, the most intuitive order would be to show the smallest one (e.g. ration) above, thereunder the second-smallest (e.g. snack) etc. and the biggest item (e.g. meal) at the bottom. This would be a good display especially because also the enhanced buildings are shown in a vertical order with the smallest above.

The order should be determined by the using of the wares. For example, an Atlantean soldier who is trained in a Dungeon is trained to attack level 1 with a steel trident, to attack level 2 with a double trident, to attack level 3 with a heavy double trident (information is in the conf-file of the building dungeon).


Imported from Launchpad using lp2gh.

gunchleoc commented 5 years ago

(by sirver) Such an ordering is implemented ingame and defined in the tribe conf file; this one could be used for clever ordering.

gunchleoc commented 5 years ago

(by franku) Such an ordering for wares isn't possible at the moment, because we do not read the conf files directly anymore. The currently used binary 'wl_map_object_info' creates json files which do not give any of the mentioned information. E.g it is not possible to have a category of a ware: If it is a ware for military (spear, trident, armor, ...), food (bread, meal, beer, wine, ...), buildings (log, stone, ...).

So to fix this we need more analyzes in wl_map_object_info and store more information in the created json files.

I am not sure if this is worth the work, since such information is available in the game help now.

gunchleoc commented 5 years ago

(by gunchleoc) We could do the same as I suggested in:

https://bugs.launchpad.net/widelands-website/+bug/336021/comments/17