Merge lp:~stonerl/widelands/big_inn_missing_animation_fixed into lp:~widelands-dev/widelands/mines-worldsavior
- big_inn_missing_animation_fixed
- Merge into mines-worldsavior
Status: | Merged |
---|---|
Merged at revision: | 8780 |
Proposed branch: | lp:~stonerl/widelands/big_inn_missing_animation_fixed |
Merge into: | lp:~widelands-dev/widelands/mines-worldsavior |
Diff against target: |
185 lines (+34/-20) 7 files modified
data/tribes/buildings/productionsites/barbarians/big_inn/init.lua (+6/-3) data/tribes/buildings/productionsites/barbarians/inn/init.lua (+2/-2) data/tribes/buildings/productionsites/barbarians/tavern/init.lua (+4/-2) data/tribes/buildings/productionsites/empire/inn/init.lua (+5/-4) data/tribes/buildings/productionsites/empire/tavern/init.lua (+3/-2) data/tribes/buildings/productionsites/frisians/drinking_hall/init.lua (+6/-3) data/tribes/buildings/productionsites/frisians/tavern/init.lua (+8/-4) |
To merge this branch: | bzr merge lp:~stonerl/widelands/big_inn_missing_animation_fixed |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
hessenfarmer | Approve | ||
Review via email: mp+352887@code.launchpad.net |
This proposal supersedes a proposal from 2018-08-09.
Commit message
Description of the change
GunChleoc (gunchleoc) wrote : Posted in a previous version of this proposal | # |
hessenfarmer (stephan-lutz) wrote : Posted in a previous version of this proposal | # |
The underlying bug should be fixed. Thanks for spotting it. However as the merge request is not tegeted to trunk but to the Mines-worldsavior branch it should have been branched from this branch. instead it is branche from trunk which leads to difficulties. So I would propose to fix the small big inn issues manually either in mines-worldsavior or in trunk after mines-worldsavior has been merged.
hessenfarmer (stephan-lutz) wrote : | # |
leading sleep times (penalty for not being supplied with all wares) have been reduced intentionally. However they are still different between the food preparing buildings of the tribes ( taverns, inns, big inns, drinking halls, etc.)
Therefore I would propose to have an equal leading sleep time for only the first product (ration) of max 5000 (5s) and no leading sleep time for the other products while keeping the total time. The order should be
1. playsound
2. animate=working (this should ensure the sound is played while the animation runs
3. if necessary a short sleep time (around 5 to 10 seconds) at the end before the ware gets delivered to the flag. this would look nicely in the game to have a short pause between working and delivering (could simulate the time to serve the dish).
Could you please check all of the meal producing buildings and adjust their cycles accordingly?
Toni Förster (stonerl) wrote : | # |
Hope this is what you imagined.
hessenfarmer (stephan-lutz) wrote : | # |
exactly. Thanks a lot. Just a quick question:
Ican't do any changes until Monday as I am not at home, could you do the same for empire and frisians buildings as well?
If yes we should wait with the merge. If no this can go in.
Toni Förster (stonerl) wrote : | # |
Yes, no problem. But I found a severe problem regarding production times:
https:/
This also affects the inns.
> On 10. Aug 2018, at 22:36, hessenfarmer <email address hidden> wrote:
>
> Review: Approve
>
> exactly. Thanks a lot. Just a quick question:
>
> Ican't do any changes until Monday as I am not at home, could you do the same for empire and frisians buildings as well?
> If yes we should wait with the merge. If no this can go in.
>
>
> --
> https:/
> You are the owner of lp:~stonerl/widelands/big_inn_missing_animation_fixed.
Toni Förster (stonerl) wrote : | # |
> exactly. Thanks a lot. Just a quick question:
>
> Ican't do any changes until Monday as I am not at home, could you do the same
> for empire and frisians buildings as well?
> If yes we should wait with the merge. If no this can go in.
Done.
hessenfarmer (stephan-lutz) wrote : | # |
things look pretty good now for the food production. However the beginning (penalty) sleep time needs to be still harmonized regarding their position to be a (small) penalty this line needs to be in front of the consume command. This is due to the fact that the whole program is terminated if one step doesn't work. So if consume is not possible you have waited 5 secs for penalty.
I have marked the points in the code below
Toni Förster (stonerl) wrote : | # |
Changed it according to your description.
hessenfarmer (stephan-lutz) wrote : | # |
Looks Good now. Thanks a lot. This can be merged.
@bunnybot merge
Toni Förster (stonerl) wrote : | # |
@bunnybot merge
hessenfarmer (stephan-lutz) wrote : Posted in a previous version of this proposal | # |
Hi Toni,
as PArt of the cleanup before move Task I think we should abandon this branch
Toni Förster (stonerl) wrote : Posted in a previous version of this proposal | # |
+1
hessenfarmer (stephan-lutz) wrote : Posted in a previous version of this proposal | # |
Can't do this as this is your branch and not part of widelands-dev.
BTW there might be other superseded branches as well which only you can change in status.
Preview Diff
1 | === modified file 'data/tribes/buildings/productionsites/barbarians/big_inn/init.lua' |
2 | --- data/tribes/buildings/productionsites/barbarians/big_inn/init.lua 2018-07-24 09:10:45 +0000 |
3 | +++ data/tribes/buildings/productionsites/barbarians/big_inn/init.lua 2018-08-11 14:27:05 +0000 |
4 | @@ -71,9 +71,10 @@ |
5 | actions = { |
6 | -- time total: 33 |
7 | "return=skipped unless economy needs ration", |
8 | - "sleep=23000", |
9 | + "sleep=5000", |
10 | "consume=barbarians_bread,fish,meat", |
11 | "playsound=sound/barbarians/taverns tavern 100", |
12 | + "animate=working 18000", |
13 | "sleep=10000", |
14 | "produce=ration" |
15 | } |
16 | @@ -86,7 +87,8 @@ |
17 | "return=skipped unless economy needs snack", |
18 | "consume=barbarians_bread fish,meat beer", |
19 | "playsound=sound/barbarians/taverns biginn 100", |
20 | - "sleep=37000", |
21 | + "animate=working 27000", |
22 | + "sleep=10000", |
23 | "produce=snack" |
24 | } |
25 | }, |
26 | @@ -98,7 +100,8 @@ |
27 | "return=skipped unless economy needs meal", |
28 | "consume=barbarians_bread fish,meat beer_strong", |
29 | "playsound=sound/barbarians/taverns biginn 100", |
30 | - "sleep=40000", |
31 | + "animate=working 30000", |
32 | + "sleep=10000", |
33 | "produce=meal" |
34 | } |
35 | }, |
36 | |
37 | === modified file 'data/tribes/buildings/productionsites/barbarians/inn/init.lua' |
38 | --- data/tribes/buildings/productionsites/barbarians/inn/init.lua 2018-07-24 09:10:45 +0000 |
39 | +++ data/tribes/buildings/productionsites/barbarians/inn/init.lua 2018-08-11 14:27:05 +0000 |
40 | @@ -84,8 +84,8 @@ |
41 | "return=skipped unless economy needs snack", |
42 | "consume=barbarians_bread fish,meat beer", |
43 | "playsound=sound/barbarians/taverns inn 100", |
44 | - "animate=working 22000", |
45 | - "sleep=15000", |
46 | + "animate=working 27000", |
47 | + "sleep=10000", |
48 | "produce=snack" |
49 | } |
50 | }, |
51 | |
52 | === modified file 'data/tribes/buildings/productionsites/barbarians/tavern/init.lua' |
53 | --- data/tribes/buildings/productionsites/barbarians/tavern/init.lua 2017-11-18 17:57:00 +0000 |
54 | +++ data/tribes/buildings/productionsites/barbarians/tavern/init.lua 2018-08-11 14:27:05 +0000 |
55 | @@ -60,11 +60,13 @@ |
56 | -- TRANSLATORS: Completed/Skipped/Did not start preparing a ration because ... |
57 | descname = _"preparing a ration", |
58 | actions = { |
59 | - "sleep=14000", |
60 | + -- time total: 33 |
61 | "return=skipped unless economy needs ration", |
62 | + "sleep=5000", |
63 | "consume=barbarians_bread,fish,meat", |
64 | "playsound=sound/barbarians/taverns tavern 100", |
65 | - "animate=working 19000", |
66 | + "animate=working 18000", |
67 | + "sleep=10000", |
68 | "produce=ration" |
69 | }, |
70 | }, |
71 | |
72 | === modified file 'data/tribes/buildings/productionsites/empire/inn/init.lua' |
73 | --- data/tribes/buildings/productionsites/empire/inn/init.lua 2018-07-24 09:10:45 +0000 |
74 | +++ data/tribes/buildings/productionsites/empire/inn/init.lua 2018-08-11 14:27:05 +0000 |
75 | @@ -64,10 +64,11 @@ |
76 | actions = { |
77 | -- time total: 33 |
78 | "return=skipped unless economy needs ration", |
79 | - "sleep=23000", |
80 | + "sleep=5000", |
81 | "consume=empire_bread,fish,meat", |
82 | "playsound=sound/empire/taverns ration 100", |
83 | - "animate=working 10000", |
84 | + "animate=working 18000", |
85 | + "sleep=10000", |
86 | "produce=ration" |
87 | } |
88 | }, |
89 | @@ -79,8 +80,8 @@ |
90 | "return=skipped unless economy needs meal", |
91 | "consume=empire_bread fish,meat", |
92 | "playsound=sound/empire/taverns meal 100", |
93 | - "animate=working 25000", |
94 | - "sleep=15000", |
95 | + "animate=working 30000", |
96 | + "sleep=10000", |
97 | "produce=meal" |
98 | } |
99 | }, |
100 | |
101 | === modified file 'data/tribes/buildings/productionsites/empire/tavern/init.lua' |
102 | --- data/tribes/buildings/productionsites/empire/tavern/init.lua 2017-11-18 17:57:00 +0000 |
103 | +++ data/tribes/buildings/productionsites/empire/tavern/init.lua 2018-08-11 14:27:05 +0000 |
104 | @@ -56,11 +56,12 @@ |
105 | descname = _"preparing a ration", |
106 | actions = { |
107 | -- time total: 33 |
108 | - "sleep=14000", |
109 | "return=skipped unless economy needs ration", |
110 | + "sleep=5000", |
111 | "consume=empire_bread,fish,meat", |
112 | "playsound=sound/empire/taverns ration 100", |
113 | - "animate=working 19000", |
114 | + "animate=working 18000", |
115 | + "sleep=10000", |
116 | "produce=ration" |
117 | } |
118 | }, |
119 | |
120 | === modified file 'data/tribes/buildings/productionsites/frisians/drinking_hall/init.lua' |
121 | --- data/tribes/buildings/productionsites/frisians/drinking_hall/init.lua 2018-07-24 19:53:30 +0000 |
122 | +++ data/tribes/buildings/productionsites/frisians/drinking_hall/init.lua 2018-08-11 14:27:05 +0000 |
123 | @@ -72,10 +72,12 @@ |
124 | -- TRANSLATORS: Completed/Skipped/Did not start preparing a ration because ... |
125 | descname = _"preparing a ration", |
126 | actions = { |
127 | + -- time total: 33 |
128 | "return=skipped unless economy needs ration", |
129 | + "sleep=5000", |
130 | "consume=fruit,smoked_fish,smoked_meat", |
131 | - "sleep=14000", |
132 | - "animate=working 19000", |
133 | + "animate=working 18000", |
134 | + "sleep=10000", |
135 | "produce=ration" |
136 | } |
137 | }, |
138 | @@ -83,10 +85,11 @@ |
139 | -- TRANSLATORS: Completed/Skipped/Did not start preparing a meal because ... |
140 | descname = _"preparing a meal", |
141 | actions = { |
142 | + --time total: 40 |
143 | "return=skipped unless economy needs meal", |
144 | "consume=beer honey_bread smoked_fish,smoked_meat", |
145 | - "sleep=10000", |
146 | "animate=working 30000", |
147 | + "sleep=10000", |
148 | "produce=meal" |
149 | } |
150 | }, |
151 | |
152 | === modified file 'data/tribes/buildings/productionsites/frisians/tavern/init.lua' |
153 | --- data/tribes/buildings/productionsites/frisians/tavern/init.lua 2018-06-04 06:19:58 +0000 |
154 | +++ data/tribes/buildings/productionsites/frisians/tavern/init.lua 2018-08-11 14:27:05 +0000 |
155 | @@ -73,11 +73,13 @@ |
156 | -- TRANSLATORS: Completed/Skipped/Did not start preparing only one ration because ... (can produce more efficient when supply is good) |
157 | descname = _"preparing only one ration", |
158 | actions = { |
159 | + -- time total: 49.5 |
160 | "return=skipped unless economy needs ration", |
161 | "return=skipped when site has fruit,bread_frisians and site has smoked_fish,smoked_meat", |
162 | - "sleep=21000", |
163 | + "sleep=5000", |
164 | "consume=fruit,bread_frisians,smoked_fish,smoked_meat", |
165 | - "animate=working 28500", |
166 | + "animate=working 34500", |
167 | + "sleep=10000", |
168 | "produce=ration" |
169 | }, |
170 | }, |
171 | @@ -85,10 +87,12 @@ |
172 | -- TRANSLATORS: Completed/Skipped/Did not start preparing rations because ... |
173 | descname = _"preparing rations", |
174 | actions = { |
175 | + -- time total: 66 |
176 | "return=skipped unless economy needs ration", |
177 | + "sleep=5000", |
178 | "consume=fruit,bread_frisians smoked_fish,smoked_meat", |
179 | - "sleep=28000", |
180 | - "animate=working 38000", |
181 | + "animate=working 51000", |
182 | + "sleep=10000", |
183 | "produce=ration:2" |
184 | }, |
185 | }, |
Thanks for the fix!
I thin the sleep should be before the play_sound too, so that the sound will go with the animation?
You also accidentally committed some changes to the translation files.