Topic: Calculation of needed time for production
fuuya Topic Opener |
Posted at: 2020-03-22, 09:33
Hi! I'm relatively new to the game (downloaded this quarantine) and I really like it so far. I really like the help menu, but I want to do something about the Production Performance I found the code for the coal mine production (I think) on GitHub:
So, what do these numbers mean? I guess, that in Thanks in advance! Top Quote |
Nordfriese |
Posted at: 2020-03-22, 10:41
You can find explanations for all commands used in these programs here: https://www.widelands.org/documentation/productionsite_program/ The working times (always in milliseconds) are defined in Statements like (Edit: And the worker walks to the flag and back once for every produced ware instance, which takes 3.6 s on average.) For buildings with multiple outputs, or where the worker walks around in the landscape, it is not possible to determine exact values, because the walking time differs from cycle to cycle. A lot of times have been calculated for the helptexts already (in-game encyclopedia → buildings → Production-Performance or Edited: 2020-03-22, 10:43
Top Quote |
fuuya Topic Opener |
Posted at: 2020-03-22, 13:09
Thanks, that was really helpful. I've created an issue on Github to help out fill the remaining production times, my only issue is that I don't have experience in contributing in open source projects, so I'm a bit unsure as to what to do next. Github issue is at https://github.com/widelands/widelands/issues/3791 . I've also added a comment about confusing incode comments regarding the production time. Edited by kaputtnik: Fixed link Edited: 2020-03-22, 13:37
Top Quote |
GunChleoc |
Posted at: 2020-03-23, 06:57
You could try forking the project and creating a branch. This way, you can test your changes and then make a pull requests when you're done. We have some instructions: https://www.widelands.org/wiki/GitPrimer/ GitHub also has some really good documentation: https://help.github.com/en/github/using-git I recommend that you get a Git client that has a graphical interface. There are many different ones out there - for Windows, I like TortoiseGit. GitHub also offers one and that might be the easiest path, since it will match their help. Busy indexing nil values Top Quote |