Topic: Measuring working time of productionsites
hessenfarmer![]() |
Posted at:
2019-05-21, 20:33 UTC+2.0
Now that I got the concept right I would vote to try this for UI as well, as said above. ![]() ![]() |
Tibor Topic Opener |
Posted at:
2019-05-21, 20:54 UTC+2.0
I am really glad, if we use it for UI I am eager to hear the feedback of players.... ![]() ![]() |
hessenfarmer![]() |
Posted at:
2019-05-21, 21:00 UTC+2.0
me too ![]() ![]() |
stonerl![]() |
Posted at:
2019-05-23, 14:28 UTC+2.0
Just one question. As far as I understand, the maximum time a program is “allowed” to run are 180s. But this concerns only the main work program. All Subprograms that are called from the main program are part of it. That means the tool smithies work program would run 10 minutes, if all tools are produced. Did you consider this? ![]() ![]() |
Tibor Topic Opener |
Posted at:
2019-05-23, 15:42 UTC+2.0
Well, I am not that familiar with the productionprogram code. If it is the case - than this is not what I wanted.... ![]() ![]() |
hessenfarmer![]() |
Posted at:
2019-05-23, 22:42 UTC+2.0
i think it doesn't matter as the code only counts the time between the last program end and the current program end. It doesn't know if it is a main or a subprogram. So only subprograms matter for the 3 minutes count. At least that is my understanding ![]() ![]() |
stonerl![]() |
Posted at:
2019-05-24, 15:51 UTC+2.0
Hessenfarmer is right. I just had mixed things up here ![]() ![]() |
hessenfarmer![]() |
Posted at:
2020-01-10, 10:17 UTC+1.0
I have made a branch now for using the time based AI statistics in the display of Productionsites. https://github.com/widelands/widelands/tree/productionsite_performance ![]() ![]() |
hessenfarmer![]() |
Posted at:
2020-01-10, 10:44 UTC+1.0
here is the related Appveyor windows build. ![]() ![]() |
hessenfarmer![]() |
Posted at:
2020-01-12, 19:49 UTC+1.0
ok I made the game save the current stats so in a loaded game we don't start with 0 productivity. side effect is that now the AI knows about productivity in a saved game as well. ![]() ![]() |