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
=== modified file 'data/campaigns/bar01.wmf/scripting/texts.lua'
--- data/campaigns/bar01.wmf/scripting/texts.lua 2017-06-05 11:33:26 +0000
+++ data/campaigns/bar01.wmf/scripting/texts.lua 2018-01-26 17:04:24 +0000
@@ -2,8 +2,7 @@
2-- Some formating functions2-- Some formating functions
3-- =========================3-- =========================
44
5include "scripting/formatting.lua"5include "scripting/richtext_scenarios.lua"
6include "scripting/format_scenario.lua"
76
8function thron(title, text)7function thron(title, text)
9 return speech("map:chieftain.png", "2F9131", title, text)8 return speech("map:chieftain.png", "2F9131", title, text)
@@ -23,8 +22,8 @@
23 title = _"Build two ranger’s huts",22 title = _"Build two ranger’s huts",
24 number = 1,23 number = 1,
25 body = objective_text(_"Build two ranger’s huts",24 body = objective_text(_"Build two ranger’s huts",
26 listitem_bullet(_"Build a ranger’s hut next to each lumberjack’s hut.") ..25 li(_"Build a ranger’s hut next to each lumberjack’s hut.") ..
27 listitem_arrow(_"Naturally, trees only grow at a slow rate. To make sure you have enough logs, you have to build rangers.")26 li_arrow(_"Naturally, trees only grow at a slow rate. To make sure you have enough logs, you have to build rangers.")
28 )27 )
29}28}
3029
@@ -33,8 +32,8 @@
33 title = _"Expand north-east and build a quarry",32 title = _"Expand north-east and build a quarry",
34 number = 1,33 number = 1,
35 body = objective_text(_"Expand north-east to the rocks",34 body = objective_text(_"Expand north-east to the rocks",
36 listitem_bullet(_"Build military buildings (like sentries or barriers) to expand your territory.") ..35 li(_"Build military buildings (like sentries or barriers) to expand your territory.") ..
37 listitem_bullet(_"Get to the rocks north-east from you and build a quarry there."))36 li(_"Get to the rocks north-east from you and build a quarry there."))
38}37}
3938
40obj_build_mines = {39obj_build_mines = {
@@ -42,21 +41,19 @@
42 title = _"Start building mines on the mountain",41 title = _"Start building mines on the mountain",
43 number = 2,42 number = 2,
44 body = objective_text(_"Build coal and iron mines",43 body = objective_text(_"Build coal and iron mines",
45 listitem_bullet(_"Build a coal mine and an iron mine.") ..44 li(_"Build a coal mine and an iron mine.") ..
46 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:") ..45 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:") ..
47 "</rt>" ..46 li_image("tribes/immovables/resi_coal1/idle_00.png", _"a bit of coal") ..
48 rt("image=tribes/immovables/resi_coal1/idle_00.png", p(_"a bit of coal")) ..47 li_image("tribes/immovables/resi_coal2/idle_00.png", _"a lot of coal") ..
49 rt("image=tribes/immovables/resi_coal2/idle_00.png", p(_"a lot of coal")) ..48 li_image("tribes/immovables/resi_iron1/idle_00.png", _"a bit of iron") ..
50 rt("image=tribes/immovables/resi_iron1/idle_00.png", p(_"a bit of iron")) ..49 li_image("tribes/immovables/resi_iron2/idle_00.png", _"a lot of iron") ..
51 rt("image=tribes/immovables/resi_iron2/idle_00.png", p(_"a lot of iron")) ..50 li_image("tribes/immovables/resi_gold1/idle_00.png", _"a bit of gold") ..
52 rt("image=tribes/immovables/resi_gold1/idle_00.png", p(_"a bit of gold")) ..51 li_image("tribes/immovables/resi_gold2/idle_00.png", _"a lot of gold") ..
53 rt("image=tribes/immovables/resi_gold2/idle_00.png", p(_"a lot of gold")) ..52 li_image("tribes/immovables/resi_stones1/idle_00.png", _"a bit of granite") ..
54 rt("image=tribes/immovables/resi_stones1/idle_00.png", p(_"a bit of granite")) ..53 li_image("tribes/immovables/resi_stones2/idle_00.png", _"a lot of granite") ..
55 rt("image=tribes/immovables/resi_stones2/idle_00.png", p(_"a lot of granite")) ..54 li_image("tribes/immovables/resi_water1/idle_00.png", _"water") ..
56 rt("image=tribes/immovables/resi_water1/idle_00.png", p(_"water")) ..55 li_image("tribes/immovables/resi_none/idle_00.png", _"nothing was found here") ..
57 rt("image=tribes/immovables/resi_none/idle_00.png", p(_"nothing was found here")) ..56 p(_[[Mines can only be built on mountain terrain. Suitable places for mines are displayed as orange mine symbols.]]))
58 "<rt>" ..
59 p(_[[Mines can only be built on mountain terrain. Suitable places for mines are displayed as orange mine symbols.]]))
60}57}
6158
62obj_basic_food = {59obj_basic_food = {
@@ -64,9 +61,8 @@
64 title = _"Provide your miners with food",61 title = _"Provide your miners with food",
65 number = 3,62 number = 3,
66 body = objective_text(_"Build a hunter’s hut, a gamekeeper’s hut and a tavern",63 body = objective_text(_"Build a hunter’s hut, a gamekeeper’s hut and a tavern",
67 listitem_bullet(_"In order to work, your miners need food.") ..64 li(_"In order to work, your miners need food.") ..
68 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.") .. " " ..65 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.]]))))
69 _([[This is only the first example of a ware which has to be refined before being used in a secondary building – others will follow.]]))
70}66}
7167
72obj_begin_farming = {68obj_begin_farming = {
@@ -90,11 +86,11 @@
90 title = _"Enhance buildings and build a micro brewery",86 title = _"Enhance buildings and build a micro brewery",
91 number = 3,87 number = 3,
92 body = objective_text(_[[Enhance a mine and the tavern, and build a micro brewery.]],88 body = objective_text(_[[Enhance a mine and the tavern, and build a micro brewery.]],
93 listitem_bullet(_"Enhance the coal mine or the iron mine to a deep mine, and enhance the tavern to an inn.") ..89 li(_"Enhance the coal mine or the iron mine to a deep mine, and enhance the tavern to an inn.") ..
94 listitem_bullet(_"Also build a micro brewery.") ..90 li(_"Also build a micro brewery.") ..
95 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.") ..91 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.") ..
96 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!") ..92 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!") ..
97 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.") ..93 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.") ..
98 _"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.")94 _"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.")
99}95}
10096
@@ -103,9 +99,8 @@
103 title = _"Build a wood hardener",99 title = _"Build a wood hardener",
104 number = 1,100 number = 1,
105 body = objective_text(_"Build a wood hardener",101 body = objective_text(_"Build a wood hardener",
106 _([[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.]])102 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.]])) ..
107 .. paragraphdivider() ..103 li(_"Build a wood hardener"))
108 listitem_bullet(_"Build a wood hardener"))
109}104}
110105
111obj_better_material_2 = {106obj_better_material_2 = {
@@ -113,16 +108,11 @@
113 title = _"Build a lime kiln and coal economy",108 title = _"Build a lime kiln and coal economy",
114 number = 3,109 number = 3,
115 body = objective_text(_"Build a lime kiln fed by a well, and by a charcoal kiln or by a coal mine",110 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.]])111 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.]])) ..
117 .. paragraphdivider() ..112 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.]])) ..
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.]])113 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’.") ..
119 ..paragraphdivider() ..114 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.]])) ..
120 "</p></rt>" ..115 li(_"Build a lime kiln and a well. Additionally, build either a charcoal kiln or a coal mine for coal supply."))
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}116}
127117
128obj_better_material_3 = {118obj_better_material_3 = {
@@ -130,9 +120,8 @@
130 title = _"Build a reed yard",120 title = _"Build a reed yard",
131 number = 1,121 number = 1,
132 body = objective_text(_"Build a reed yard",122 body = objective_text(_"Build a reed yard",
133 _([[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.]])123 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.]])) ..
134 .. paragraphdivider() ..124 li(_"Build a reed yard"))
135 listitem_bullet(_"Build a reed yard"))
136}125}
137126
138obj_build_cattlefarm = {127obj_build_cattlefarm = {
@@ -140,11 +129,9 @@
140 title = _"Build a cattle farm",129 title = _"Build a cattle farm",
141 number = 1,130 number = 1,
142 body = objective_text(_"Build a cattle farm",131 body = objective_text(_"Build a cattle farm",
143 _([[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.]])132 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.]])) ..
144 .. paragraphdivider() ..133 li_arrow(_([[Oxen are bred in cattle farms out of wheat and water.]])) ..
145 _([[Oxen are bred in cattle farms out of wheat and water.]])134 li(_"Build a cattle farm"))
146 .. paragraphdivider() ..
147 listitem_bullet(_"Build a cattle farm"))
148}135}
149136
150137
@@ -166,7 +153,7 @@
166153
167briefing_msg_02 = {154briefing_msg_02 = {
168 title = _"The Story Begins",155 title = _"The Story Begins",
169 body = thron(156 body = thron("",
170 -- TRANSLATORS: Thron157 -- TRANSLATORS: Thron
171 _[[We can see the raging flames that swallow Al’thunran from here, miles away.]]158 _[[We can see the raging flames that swallow Al’thunran from here, miles away.]]
172 .. paragraphdivider() ..159 .. paragraphdivider() ..
@@ -178,7 +165,7 @@
178165
179briefing_msg_03 = {166briefing_msg_03 = {
180 title = _"The Story Begins",167 title = _"The Story Begins",
181 body = thron(168 body = thron("",
182 -- TRANSLATORS: Thron169 -- TRANSLATORS: Thron
183 _[[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.]]170 _[[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.]]
184 .. paragraphdivider() ..171 .. paragraphdivider() ..
@@ -190,7 +177,7 @@
190177
191briefing_msg_04 = {178briefing_msg_04 = {
192 title = _"The Story Begins",179 title = _"The Story Begins",
193 body = thron(180 body = thron("",
194 -- TRANSLATORS: Thron181 -- TRANSLATORS: Thron
195 _[[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.]]),182 _[[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.]]),
196 position = "topleft",183 position = "topleft",
@@ -212,7 +199,7 @@
212199
213briefing_msg_06 = {200briefing_msg_06 = {
214 title = _"Thron is Contemplating the War",201 title = _"Thron is Contemplating the War",
215 body = thron(202 body = thron("",
216 -- TRANSLATORS: Thron203 -- TRANSLATORS: Thron
217 _([[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?]])204 _([[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?]])
218 .. paragraphdivider() ..205 .. paragraphdivider() ..
@@ -224,7 +211,7 @@
224211
225briefing_msg_07 = {212briefing_msg_07 = {
226 title = _"Thron is Considering the Future",213 title = _"Thron is Considering the Future",
227 body = thron(214 body = thron("",
228 -- TRANSLATORS: Thron215 -- TRANSLATORS: Thron
229 _([[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.]])216 _([[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.]])
230 .. paragraphdivider() ..217 .. paragraphdivider() ..

Subscribers

People subscribed via source and target branches

to status/vote changes: