Merge lp:~widelands-dev/widelands/fh1-barbarians1 into lp:widelands

Proposed by GunChleoc
Status: Merged
Merged at revision: 8569
Proposed branch: lp:~widelands-dev/widelands/fh1-barbarians1
Merge into: lp:widelands
Diff against target: 205 lines (+42/-55)
1 file modified
data/campaigns/bar01.wmf/scripting/texts.lua (+42/-55)
To merge this branch: bzr merge lp:~widelands-dev/widelands/fh1-barbarians1
Reviewer Review Type Date Requested Status
Klaus Halfmann review, compile, testplay Approve
Review via email: mp+336706@code.launchpad.net

Commit message

Converted Barbarians Scenario 1 to new font renderer.

To post a comment you must log in.
Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3099. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/333840540.
Appveyor build 2906. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_fh1_barbarians1-2906.

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

Found only some obvious reformattings, LGTM.

Two questions inline.

Will do a testplay today in German an check for missing
translations and formatting issues.

./wideland --scenario=<Absolute Path to...>/data/campaigns/bar01.wmf/

Aahh. thron is the name of one of the characters :-)

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

Playing this to the End, found only

> Story Message Box: using NEW font renderer.

@bunnybot merge

review: Approve (review, compile, testplay)
Revision history for this message
GunChleoc (gunchleoc) wrote :

rt is our own invention and tells he font rendering to go into rich text mode.

The "Story Message Box: using NEW font renderer." message is expected - I am using it until we have finished converting and debugging everything.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/campaigns/bar01.wmf/scripting/texts.lua'
2--- data/campaigns/bar01.wmf/scripting/texts.lua 2017-06-05 11:33:26 +0000
3+++ data/campaigns/bar01.wmf/scripting/texts.lua 2018-01-26 17:04:24 +0000
4@@ -2,8 +2,7 @@
5 -- Some formating functions
6 -- =========================
7
8-include "scripting/formatting.lua"
9-include "scripting/format_scenario.lua"
10+include "scripting/richtext_scenarios.lua"
11
12 function thron(title, text)
13 return speech("map:chieftain.png", "2F9131", title, text)
14@@ -23,8 +22,8 @@
15 title = _"Build two ranger’s huts",
16 number = 1,
17 body = objective_text(_"Build two ranger’s huts",
18- listitem_bullet(_"Build a ranger’s hut next to each lumberjack’s hut.") ..
19- listitem_arrow(_"Naturally, trees only grow at a slow rate. To make sure you have enough logs, you have to build rangers.")
20+ li(_"Build a ranger’s hut next to each lumberjack’s hut.") ..
21+ li_arrow(_"Naturally, trees only grow at a slow rate. To make sure you have enough logs, you have to build rangers.")
22 )
23 }
24
25@@ -33,8 +32,8 @@
26 title = _"Expand north-east and build a quarry",
27 number = 1,
28 body = objective_text(_"Expand north-east to the rocks",
29- listitem_bullet(_"Build military buildings (like sentries or barriers) to expand your territory.") ..
30- listitem_bullet(_"Get to the rocks north-east from you and build a quarry there."))
31+ li(_"Build military buildings (like sentries or barriers) to expand your territory.") ..
32+ li(_"Get to the rocks north-east from you and build a quarry there."))
33 }
34
35 obj_build_mines = {
36@@ -42,21 +41,19 @@
37 title = _"Start building mines on the mountain",
38 number = 2,
39 body = objective_text(_"Build coal and iron mines",
40- listitem_bullet(_"Build a coal mine and an iron mine.") ..
41- listitem_arrow(_"To do so, place a flag up on the mountain’s flank to the east (on mountain terrain though, not mountain meadow). When you click on the new flag, you can send geologists there. Because the flag is on a mountain, the geologists will search for ores; otherwise, they would search for water. Then build a mine for both kinds of resources that they will find, choosing the appropriate mine to be built:") ..
42- "</rt>" ..
43- rt("image=tribes/immovables/resi_coal1/idle_00.png", p(_"a bit of coal")) ..
44- rt("image=tribes/immovables/resi_coal2/idle_00.png", p(_"a lot of coal")) ..
45- rt("image=tribes/immovables/resi_iron1/idle_00.png", p(_"a bit of iron")) ..
46- rt("image=tribes/immovables/resi_iron2/idle_00.png", p(_"a lot of iron")) ..
47- rt("image=tribes/immovables/resi_gold1/idle_00.png", p(_"a bit of gold")) ..
48- rt("image=tribes/immovables/resi_gold2/idle_00.png", p(_"a lot of gold")) ..
49- rt("image=tribes/immovables/resi_stones1/idle_00.png", p(_"a bit of granite")) ..
50- rt("image=tribes/immovables/resi_stones2/idle_00.png", p(_"a lot of granite")) ..
51- rt("image=tribes/immovables/resi_water1/idle_00.png", p(_"water")) ..
52- rt("image=tribes/immovables/resi_none/idle_00.png", p(_"nothing was found here")) ..
53- "<rt>" ..
54- p(_[[Mines can only be built on mountain terrain. Suitable places for mines are displayed as orange mine symbols.]]))
55+ li(_"Build a coal mine and an iron mine.") ..
56+ li_arrow(_"To do so, place a flag up on the mountain’s flank to the east (on mountain terrain though, not mountain meadow). When you click on the new flag, you can send geologists there. Because the flag is on a mountain, the geologists will search for ores; otherwise, they would search for water. Then build a mine for both kinds of resources that they will find, choosing the appropriate mine to be built:") ..
57+ li_image("tribes/immovables/resi_coal1/idle_00.png", _"a bit of coal") ..
58+ li_image("tribes/immovables/resi_coal2/idle_00.png", _"a lot of coal") ..
59+ li_image("tribes/immovables/resi_iron1/idle_00.png", _"a bit of iron") ..
60+ li_image("tribes/immovables/resi_iron2/idle_00.png", _"a lot of iron") ..
61+ li_image("tribes/immovables/resi_gold1/idle_00.png", _"a bit of gold") ..
62+ li_image("tribes/immovables/resi_gold2/idle_00.png", _"a lot of gold") ..
63+ li_image("tribes/immovables/resi_stones1/idle_00.png", _"a bit of granite") ..
64+ li_image("tribes/immovables/resi_stones2/idle_00.png", _"a lot of granite") ..
65+ li_image("tribes/immovables/resi_water1/idle_00.png", _"water") ..
66+ li_image("tribes/immovables/resi_none/idle_00.png", _"nothing was found here") ..
67+ p(_[[Mines can only be built on mountain terrain. Suitable places for mines are displayed as orange mine symbols.]]))
68 }
69
70 obj_basic_food = {
71@@ -64,9 +61,8 @@
72 title = _"Provide your miners with food",
73 number = 3,
74 body = objective_text(_"Build a hunter’s hut, a gamekeeper’s hut and a tavern",
75- listitem_bullet(_"In order to work, your miners need food.") ..
76- listitem_arrow(_"A hunter can hunt down animals, while a gamekeeper prevents them from becoming extinct. The meat is then processed in a tavern into lunches for your miners.") .. " " ..
77- _([[This is only the first example of a ware which has to be refined before being used in a secondary building – others will follow.]]))
78+ li(_"In order to work, your miners need food.") ..
79+ li_arrow(join_sentences(_([[A hunter can hunt down animals, while a gamekeeper prevents them from becoming extinct. The meat is then processed in a tavern into lunches for your miners.]]), _([[This is only the first example of a ware which has to be refined before being used in a secondary building – others will follow.]]))))
80 }
81
82 obj_begin_farming = {
83@@ -90,11 +86,11 @@
84 title = _"Enhance buildings and build a micro brewery",
85 number = 3,
86 body = objective_text(_[[Enhance a mine and the tavern, and build a micro brewery.]],
87- listitem_bullet(_"Enhance the coal mine or the iron mine to a deep mine, and enhance the tavern to an inn.") ..
88- listitem_bullet(_"Also build a micro brewery.") ..
89- listitem_arrow(_"A normal mine can only dig up about one third of all the resources that lie beneath it; then it must be enhanced to a deep mine in order to keep it working properly. To enhance a building, choose it and then click the appropriate button in the appearing window.") ..
90- listitem_arrow(_"Workers gain experience by successful work. With enough experience, they become more advanced workers, who are necessary to operate the enhanced buildings. Do not enhance a building before you have enough advanced workers to operate the advanced building!") ..
91- listitem_arrow(_"Such buildings usually have greater demands than the basic kind of that building – for instance, deep mines need snacks instead of rations. You will have to enhance your tavern to an inn in order to produce snacks out of pitta bread AND a second kind of food (meat or fish) AND beer.") ..
92+ li(_"Enhance the coal mine or the iron mine to a deep mine, and enhance the tavern to an inn.") ..
93+ li(_"Also build a micro brewery.") ..
94+ li_arrow(_"A normal mine can only dig up about one third of all the resources that lie beneath it; then it must be enhanced to a deep mine in order to keep it working properly. To enhance a building, choose it and then click the appropriate button in the appearing window.") ..
95+ li_arrow(_"Workers gain experience by successful work. With enough experience, they become more advanced workers, who are necessary to operate the enhanced buildings. Do not enhance a building before you have enough advanced workers to operate the advanced building!") ..
96+ li_arrow(_"Such buildings usually have greater demands than the basic kind of that building – for instance, deep mines need snacks instead of rations. You will have to enhance your tavern to an inn in order to produce snacks out of pitta bread AND a second kind of food (meat or fish) AND beer.") ..
97 _"You may of course enhance all mines to deep mines instantly given you have the workers – bigger mines work a bit faster, smaller mines need cheaper food. It’s up to you which strategy you prefer.")
98 }
99
100@@ -103,9 +99,8 @@
101 title = _"Build a wood hardener",
102 number = 1,
103 body = objective_text(_"Build a wood hardener",
104- _([[Bigger and better buildings – including all military ones – require better building materials. They cannot be built out of simple logs – the logs have to be refined to blackwood by a wood hardener first. Always remember to build a wood hardener before you run out of blackwood, as without it you cannot expand.]])
105- .. paragraphdivider() ..
106- listitem_bullet(_"Build a wood hardener"))
107+ p(_([[Bigger and better buildings – including all military ones – require better building materials. They cannot be built out of simple logs – the logs have to be refined to blackwood by a wood hardener first. Always remember to build a wood hardener before you run out of blackwood, as without it you cannot expand.]])) ..
108+ li(_"Build a wood hardener"))
109 }
110
111 obj_better_material_2 = {
112@@ -113,16 +108,11 @@
113 title = _"Build a lime kiln and coal economy",
114 number = 3,
115 body = objective_text(_"Build a lime kiln fed by a well, and by a charcoal kiln or by a coal mine",
116- _([[Better buildings may also require other improved materials besides blackwood. One of these is grout, which is produced out of granite, water and coal by a lime-burner.]])
117- .. paragraphdivider() ..
118- _([[You can obtain water by building a well upon a water source, which your geologists can discover when you send them to any flag that is not on a mountain.]])
119- ..paragraphdivider() ..
120- "</p></rt>" ..
121- rt("image=images/wui/fieldaction/menu_geologist.png", p(_"In order to call a geologist to search for water, click on a flag in the area that you want him to search and then on the button labeled ‘Send geologist to explore site’.")
122- .. paragraphdivider() ..
123- _([[Coal can be obtained by building a charcoal kiln or a coal mine. Burning charcoal out of logs is slow. You should only build a charcoal kiln when no coal is available.]])
124- .. paragraphdivider() ..
125- listitem_bullet(_"Build a lime kiln and a well. Additionally, build either a charcoal kiln or a coal mine for coal supply.")))
126+ p(_([[Better buildings may also require other improved materials besides blackwood. One of these is grout, which is produced out of granite, water and coal by a lime-burner.]])) ..
127+ p(_([[You can obtain water by building a well upon a water source, which your geologists can discover when you send them to any flag that is not on a mountain.]])) ..
128+ li_image("images/wui/fieldaction/menu_geologist.png", _"In order to call a geologist to search for water, click on a flag in the area that you want him to search and then on the button labeled ‘Send geologist to explore site’.") ..
129+ p(_([[Coal can be obtained by building a charcoal kiln or a coal mine. Burning charcoal out of logs is slow. You should only build a charcoal kiln when no coal is available.]])) ..
130+ li(_"Build a lime kiln and a well. Additionally, build either a charcoal kiln or a coal mine for coal supply."))
131 }
132
133 obj_better_material_3 = {
134@@ -130,9 +120,8 @@
135 title = _"Build a reed yard",
136 number = 1,
137 body = objective_text(_"Build a reed yard",
138- _([[The third material necessary for improved buildings is thatch reed, used to cover roofs. Thatch reed is planted by a gardener around his building, the reed yard.]])
139- .. paragraphdivider() ..
140- listitem_bullet(_"Build a reed yard"))
141+ p(_([[The third material necessary for improved buildings is thatch reed, used to cover roofs. Thatch reed is planted by a gardener around his building, the reed yard.]])) ..
142+ li(_"Build a reed yard"))
143 }
144
145 obj_build_cattlefarm = {
146@@ -140,11 +129,9 @@
147 title = _"Build a cattle farm",
148 number = 1,
149 body = objective_text(_"Build a cattle farm",
150- _([[When roads are under heavy load for a long time, one carrier is usually not enough to transport goods swiftly. Traffic jams are the consequence. Such roads therefore employ a second carrier: an ox that helps to carry the wares. This doubles the transport capacity.]])
151- .. paragraphdivider() ..
152- _([[Oxen are bred in cattle farms out of wheat and water.]])
153- .. paragraphdivider() ..
154- listitem_bullet(_"Build a cattle farm"))
155+ p(_([[When roads are under heavy load for a long time, one carrier is usually not enough to transport goods swiftly. Traffic jams are the consequence. Such roads therefore employ a second carrier: an ox that helps to carry the wares. This doubles the transport capacity.]])) ..
156+ li_arrow(_([[Oxen are bred in cattle farms out of wheat and water.]])) ..
157+ li(_"Build a cattle farm"))
158 }
159
160
161@@ -166,7 +153,7 @@
162
163 briefing_msg_02 = {
164 title = _"The Story Begins",
165- body = thron(
166+ body = thron("",
167 -- TRANSLATORS: Thron
168 _[[We can see the raging flames that swallow Al’thunran from here, miles away.]]
169 .. paragraphdivider() ..
170@@ -178,7 +165,7 @@
171
172 briefing_msg_03 = {
173 title = _"The Story Begins",
174- body = thron(
175+ body = thron("",
176 -- TRANSLATORS: Thron
177 _[[My father’s bones rest peacefully in the ground on which he once ended the senseless spilling of blood that had arisen amongst us. It pains me that his peace only endured for one generation.]]
178 .. paragraphdivider() ..
179@@ -190,7 +177,7 @@
180
181 briefing_msg_04 = {
182 title = _"The Story Begins",
183- body = thron(
184+ body = thron("",
185 -- TRANSLATORS: Thron
186 _[[As father told me, there are times to fight and times to lie and wait, trying not to fall asleep or die before the right time comes. And so I do wait.]]),
187 position = "topleft",
188@@ -212,7 +199,7 @@
189
190 briefing_msg_06 = {
191 title = _"Thron is Contemplating the War",
192- body = thron(
193+ body = thron("",
194 -- TRANSLATORS: Thron
195 _([[Today my hunters brought men, women and little children before me who had hidden out in the forests, trying to escape the war, hate and revenge that rage among the tribes fighting each other like in olden times, when we were no more but wild beasts driven and controlled by instincts. None of my brothers will ever gain and hold control over the wooden throne, none of the tribes will be strong enough to subdue the other. There will be no end to this slaughter, unless… is this it? As father told me?]])
196 .. paragraphdivider() ..
197@@ -224,7 +211,7 @@
198
199 briefing_msg_07 = {
200 title = _"Thron is Considering the Future",
201- body = thron(
202+ body = thron("",
203 -- TRANSLATORS: Thron
204 _([[Boldreth seems more and more torn as the days go by. The spirits of my fellows sink as the cold season approaches, and we are still living in no more than huts and barracks. I never intended to stay out here in the wilderness for so long – but I never thought my brothers would engage in this senseless battle for so long either.]])
205 .. paragraphdivider() ..

Subscribers

People subscribed via source and target branches

to status/vote changes: