Topic: Please help a code illiterate understand conf files properly
Astuur Topic Opener |
Posted at: 2014-05-09, 19:31
I am trying to propose a better way to calculate a production site's performance (Productivity) in this suggestion. Now I need to make sure I understand the logic in the conf files correctly (can't read the code, sorry): Could anyone please help me understand and confirm or correct my understanding - even though it may seem obvious?I am using the Barbarian metalworks conf as an example. With a program like [produce_pick], the following things happen: [produce_pick]
consume=iron log
sleep=32000
[work]
Is this correct so far, or have I got it wrong?Thanks for your reply!Being no programmer, I apologize for all my suggestions that imply undue workload and for other misjudgements due to lack of expertise or relevant skills. |
slopsbucket |
Posted at: 2014-05-10, 12:27
Sorry Astuur, but it's a little difficult to understand what you are trying to achieve here. You can set the limits on what is to be produced "in game" by doing a left-click on any flag on the map and then a left-click on the third icon at the bottom of the pop-up menu. The one just left of the Geologist icon. If you like, most of the game's settings and programming are just simple text files. Go to C : \ Program Files \ Widelands and take a look. You can edit any of those text files as you please but please TAKE SERIOUS NOTE of these two warnings. Text files MUST be edited with a simple text editor such as Notepad. If you use Microsoft Word or any other word processor program to edit any of those files you will bugger them completely and the game will crash. Always make a backup copy of any file before you attempt to edit it. Cheers, Andrew. Edited: 2014-05-10, 12:28
Top Quote |
fk |
Posted at: 2014-05-11, 14:25
One should know the precise code behind the script to explain the exact behaviour. But what the script tells is that it takes 32000 time units per program, which means that it would take time in increments of 32 seconds for every executed program. (I really hope it is only one, but ...) What it also tells is that the program performs an animation, and this should be visible while observing the building. The word 'return' in the script does not necessarily have to be an instruction, it can also be a parameter. I would not assume the script to leave at that point, although it is very possible. Top Quote |
fk |
Posted at: 2014-05-11, 16:11
Btw, I measured 42.22 seconds before the animation started, and 34.92 seconds during which the animation was active. Top Quote |
slopsbucket |
Posted at: 2014-05-12, 06:04
Hi Astuur, Please accept my most humble apologies for my misguided response to your post. I was a bit drunk and answered your question without fully understanding what you were asking. Please forgive me. Fortunately I'm usually a happy drunk but that doesn't make me any less obnoxious. Cheers, Andrew. Top Quote |
Astuur Topic Opener |
Posted at: 2014-05-14, 12:15
Hi - fk and slopsbucket! @ slopsbucket: Being no programmer, I apologize for all my suggestions that imply undue workload and for other misjudgements due to lack of expertise or relevant skills. |
fk |
Posted at: 2014-05-14, 15:42
Astuur, Sure, that 'better' help is what you are waiting for, that was clear from the beginning, but it doesn't get into reality for some reason. And, being a former programmer, I have to apologize for being too lazy to examine the source code behind the script. Your reaction is therefore valid and justified. Top Quote |
Astuur Topic Opener |
Posted at: 2014-05-14, 17:02
There may be some here, that have written that code and they will not need another look at it but remember by heart .... So maybe they ...... Being no programmer, I apologize for all my suggestions that imply undue workload and for other misjudgements due to lack of expertise or relevant skills. |
SirVer |
Posted at: 2014-05-15, 14:14
I am sorry for not answering here - I am swamped with work. Astuur, your work is really appreciated (as always), I just cannot help out for the moment. I suggest asking Nasenbaer for help. Unfortunately it is not correct that the authors of the code will not need to look it up :(. It is too long ago that this code has been written. Top Quote |
Astuur Topic Opener |
Posted at: 2014-05-15, 15:57
I understand, of course. Anyhow I wonder where you take the time from to reply to so many things, personally. Yep, asking Nasenbear seems like the right thing to do --- will PM him. I did meanwhile, but Nasenbaer can't help with this either - at least not at the moment. Edited: 2014-05-17, 08:08
Being no programmer, I apologize for all my suggestions that imply undue workload and for other misjudgements due to lack of expertise or relevant skills. |