Latest Posts

Topic: Widelands Economy Graphs

Tmk
Avatar
Topic Opener
Joined: 2010-05-08, 17:06
Posts: 44
Ranking
Pry about Widelands
Posted at: 2010-08-17, 12:19

Hello Widelanders,

There are economy graphs for the three tribes, made with graphviz. They can be found at http://tmkrth.de/widelands/economy_graphs Feel free to use them for your needs face-smile.png

I'd like to colour them and add icons of buildings, workers and wares, how could I approach that?

Also, one could think about integrating the number of wares needed to produce other wares.

The documentation at http://wl.widelands.org/help/atlanteans/buildings/ , http://wl.widelands.org/help/empire/buildings/ and http://wl.widelands.org/help/barbarians/buildings/ is really nice, maybe the graphs could show up there, too. What do you think about it?

Sincerely, Tmk

Edited: 2010-08-18, 12:54

Top Quote
Tmk
Avatar
Topic Opener
Joined: 2010-05-08, 17:06
Posts: 44
Ranking
Pry about Widelands
Posted at: 2010-08-18, 11:54

The next step was to create graphs that show the needs for creating a soldier only. Those can be found at http://tmkrth.de/widelands/create_soldier_graphs

Edited: 2010-08-18, 12:56

Top Quote
Tmk
Avatar
Topic Opener
Joined: 2010-05-08, 17:06
Posts: 44
Ranking
Pry about Widelands
Posted at: 2010-08-20, 17:55

Hello, can somebody point to a documentation where I can learn how to combine icons with graphviz's graphs? In there documentation, I can't find it...


Top Quote
SirVer

Joined: 2009-02-19, 14:18
Posts: 1445
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2010-08-20, 18:17

You need to create graphs with html like description fields. You can get something like this:

http://wl.widelands.org/wlmedia/news/uploaded/Barbarians.pdf

Documentation is here: http://www.graphviz.org/doc/info/shapes.html#html

Edited: 2010-08-20, 18:18

Top Quote
Tmk
Avatar
Topic Opener
Joined: 2010-05-08, 17:06
Posts: 44
Ranking
Pry about Widelands
Posted at: 2010-08-20, 19:32

Well, thanks for the urls, I proceeded a bit. Icons are now shown, not besides or under them but across them. For that reason, may I ask if you still have the source text file of the http://wl.widelands.org/wlmedia/news/uploaded/Barbarians.pdf for me to crib a little? face-smile.png

Edit: I got it now. I'll have to write lots of text lines the next days, hope the output will be pretty. It shall become the poster the Widelanders will print and bring to their LAN-Parties to have strategic advantage. face-smile.png

Edited: 2010-08-20, 22:12

Top Quote
SirVer

Joined: 2009-02-19, 14:18
Posts: 1445
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2010-08-22, 13:03

Tmk, I have started for a tool that can extract information from the conf files and directly generate a pretty dot file from it. You can find my work by doing:

$ bzr get lp:~sirver/widelands/help-generator

and then run the utils/make_flow_diagram.py python script (you might have to install some packages (you need python and the pydot package for sure). You might want to have a look at that, I never got around to finish this properly and it would be quite valuable to have an autoupdatable pdf for all tribes :). We could link it here on the homepage and update it every night.

Cheers, !SirVer

Edited: 2010-08-22, 13:03

Top Quote
Tmk
Avatar
Topic Opener
Joined: 2010-05-08, 17:06
Posts: 44
Ranking
Pry about Widelands
Posted at: 2010-08-23, 20:18

I fetched what you suggested and took a look at the script and it's output. Great thing! I will definitely work on with that instead of writing dot files manually face-smile.png Thank you.

Edited: 2010-08-23, 20:24

Top Quote
SirVer

Joined: 2009-02-19, 14:18
Posts: 1445
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2010-08-24, 08:48

Nono, thank you for keeping working on that. Make sure to keep us up to date on your results; best by pushing them on launchpad regularly and posting here :).


Top Quote