Topic: Illustrations of wares flow
ypopezios Topic Opener |
Posted at: 2018-05-24, 14:47
If I get provided with the needed material, I'm willing of updating/recreating the illustrations of the wares flow among buildings for each tribe. Top Quote |
Tibor |
Posted at: 2018-05-24, 15:53
Try investigate this: https://wl.widelands.org/encyclopedia/atlanteans/wares/trident_steel/ (personally I am not very familiar with this stuff) Top Quote |
GunChleoc |
Posted at: 2018-05-25, 18:56
Are those pages what you meant? They are generated by Python code: https://bazaar.launchpad.net/~widelands-dev/widelands-website/trunk/files/head:/wlhelp/ Busy indexing nil values Top Quote |
kaputtnik |
Posted at: 2018-05-25, 23:48
More precisely: https://bazaar.launchpad.net/~widelands-dev/widelands-website/trunk/view/head:/widelandslib/make_flow_diagram.py The main program to generate the graphs is dot from graphviz. The problem with the current graphs is that they don't scale: Each image is clickable, but if you shrink the browsers window the areas where to click are shifted and didn't fit with the image anymore. E.g. Atlanteans Double Trident. I guess those graphs aren't accessible for people with disabilities at all... Top Quote |
ypopezios Topic Opener |
Posted at: 2018-05-26, 00:25
I'm interested in the big illustrations (I find them more useful), which contain much information like these: https://wl.widelands.org/wlmedia/wlhelp/network_graphs/barbarians/barbarians.pdf https://wl.widelands.org/wlmedia//wlimages/Barbarian_Wares.png Top Quote |
GunChleoc |
Posted at: 2018-05-26, 08:46
The first one of those is generated by the code that Kaputtnik mentioned. I don't know where the second one came from - it must have been generated manually once, because the unit names are out of date. Maybe generating svg would be somewhat more accessible, or repeating the information in a table on the bottom of the page? Busy indexing nil values Top Quote |
ypopezios Topic Opener |
Posted at: 2018-05-26, 09:55
If someone wants to create tables, they won't harm and I can use them myself as input. But for my work I'm considering the manual approach, in order to make the big illustrations as easy-to-read as possible. What place does contain the most up-to-date information? I would also like to have the number of input wares processed for every output ware. Top Quote |
kaputtnik |
Posted at: 2018-05-26, 10:24
The files 'init.lua' in the widelands source code data-directory. But the websites encyclopedia is generated from current trunk, so they are also up to date. You can produce json files for yourself if you run
Such information isn't extracted at the moment. I am not sure if such information could be read out of the lua files, because production programs are also involved. E.g. Empire rations are produced in a tavern out of fish or meat or bread. Don't know how the or is implemented. GunChleoc can explain that , i think. Top Quote |
Ex-Member |
Posted at: 2018-05-26, 11:05
I think that is one I created manually a few years ago, looks to tidy for mr though, it could be someone else reworked it. Top Quote |
GunChleoc |
Posted at: 2018-05-26, 13:28
The problem with creating these manually is that they won't be updated when things change, so I don't think it's a good idea. We have the information about the exact number of wares consumed in the in-game wares help, so it is doable. I don't know whether we export this information to the JSON files yet, I'd have to double-check that. The was this works is that we have an executable that creates the JSON files for us off the current Widelands trunk version, and then those JSON files are the data input for creating the graph. Busy indexing nil values Top Quote |