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

Proposed by GunChleoc
Status: Merged
Merged at revision: 8579
Proposed branch: lp:~widelands-dev/widelands/fh1-atlanteans1
Merge into: lp:widelands
Diff against target: 253 lines (+68/-63)
3 files modified
data/campaigns/atl01.wmf/scripting/init.lua (+0/-18)
data/campaigns/atl01.wmf/scripting/mission_thread.lua (+15/-0)
data/campaigns/atl01.wmf/scripting/texts.lua (+53/-45)
To merge this branch: bzr merge lp:~widelands-dev/widelands/fh1-atlanteans1
Reviewer Review Type Date Requested Status
Klaus Halfmann review, compile, testplay Approve
Review via email: mp+336974@code.launchpad.net

Commit message

Converted Atlantean scenario 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 3124. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/336126884.
Appveyor build 2931. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_fh1_atlanteans1-2931.

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

OK that code looks straig foreward, will compile and testplay this in the next day.
Hope I will not drown to fast :-)

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

Ok- Did a testplay in German.
All Dialogs are fine.

@bunnybot merge

review: Approve (review, compile, testplay)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'data/campaigns/atl01.wmf/scripting/init.lua'
--- data/campaigns/atl01.wmf/scripting/init.lua 2017-08-11 16:14:56 +0000
+++ data/campaigns/atl01.wmf/scripting/init.lua 2018-02-01 13:54:46 +0000
@@ -55,24 +55,6 @@
55 return rv55 return rv
56end56end
5757
58function send_building_lost_message(f)
59 set_textdomain("scenario_atl01.wmf")
60 send_message(
61 p1,
62 -- TRANSLATORS: Short message title. Translate as "Lost!" if you don't have enough space.
63 pgettext("message_short_title", "Building lost!"),
64 rt("image=".. f.immovable.descr.representative_image,
65 p(_"We lost a building to the ocean!")
66 ),
67 {
68 field = f,
69 popup = false,
70 icon = f.immovable.descr.representative_image,
71 heading = pgettext("message_heading", "Building lost!")
72 }
73 )
74end
75
76-- starting conditions are included later in the intro58-- starting conditions are included later in the intro
77include "map:scripting/mission_thread.lua"59include "map:scripting/mission_thread.lua"
78include "map:scripting/water_rising.lua"60include "map:scripting/water_rising.lua"
7961
=== modified file 'data/campaigns/atl01.wmf/scripting/mission_thread.lua'
--- data/campaigns/atl01.wmf/scripting/mission_thread.lua 2017-02-12 09:38:54 +0000
+++ data/campaigns/atl01.wmf/scripting/mission_thread.lua 2018-02-01 13:54:46 +0000
@@ -2,6 +2,21 @@
2-- Atlanteans Tutorial Mission 012-- Atlanteans Tutorial Mission 01
3-- =======================================================================3-- =======================================================================
44
5function send_building_lost_message(f)
6 local icon = f.immovable.descr.representative_image
7 local message = building_lost(icon)
8 send_message(
9 p1,
10 message.title,
11 message.text,
12 {
13 field = f,
14 popup = false,
15 icon = icon,
16 message.title
17 }
18 )
19end
520
6-- ==============21-- ==============
7-- Logic Threads22-- Logic Threads
823
=== modified file 'data/campaigns/atl01.wmf/scripting/texts.lua'
--- data/campaigns/atl01.wmf/scripting/texts.lua 2017-03-04 18:35:02 +0000
+++ data/campaigns/atl01.wmf/scripting/texts.lua 2018-02-01 13:54:46 +0000
@@ -2,8 +2,7 @@
2-- Texts for the Atlantean tutorial mission2-- Texts for the Atlantean tutorial mission
3-- =======================================================================3-- =======================================================================
44
5include "scripting/formatting.lua"5include "scripting/richtext_scenarios.lua"
6include "scripting/format_scenario.lua"
76
8function jundlina(title, text)7function jundlina(title, text)
9 return speech("map:princess.png", "2F9131", title, text)8 return speech("map:princess.png", "2F9131", title, text)
@@ -31,12 +30,12 @@
31 name = "obj_ensure_build_wares_production",30 name = "obj_ensure_build_wares_production",
32 title = _"Ensure the supply of building wares",31 title = _"Ensure the supply of building wares",
33 number = 6,32 number = 6,
34 body = objective_text(_"Supply Building Wares", _33 body = objective_text(_"Supply Building Wares",
35[[Supply basic building material for your economy:]] .. paragraphdivider() ..34 p(_[[Supply basic building material for your economy:]]) ..
36 listitem_bullet(_[[Build a quarry]]) ..35 li(_[[Build a quarry]]) ..
37 listitem_bullet(_[[Build two woodcutter’s houses]]) ..36 li(_[[Build two woodcutter’s houses]]) ..
38 listitem_bullet(_[[Build two forester’s houses]]) ..37 li(_[[Build two forester’s houses]]) ..
39 listitem_bullet(_[[Build a sawmill]])38 li(_[[Build a sawmill]])
40 ),39 ),
41}40}
4241
@@ -45,8 +44,8 @@
45 title = _"Expand your territory and explore",44 title = _"Expand your territory and explore",
46 number = 1,45 number = 1,
47 body = objective_text(_"Expand and Explore",46 body = objective_text(_"Expand and Explore",
48 _([[The island is huge and as long as we are not sure that we are alone here, we cannot relax. Explore and conquer it, this is the only way to protect us from threats on the island and from Atlantis.]]) .. paragraphdivider() ..47 p(_([[The island is huge and as long as we are not sure that we are alone here, we cannot relax. Explore and conquer it, this is the only way to protect us from threats on the island and from Atlantis.]])) ..
49 listitem_bullet(_[[Build military sites to expand your territory]])48 li(_[[Build military sites to expand your territory]])
50 ),49 ),
51}50}
5251
@@ -55,16 +54,16 @@
55 title = _"Establish a solid food production",54 title = _"Establish a solid food production",
56 number = 10,55 number = 10,
57 body = objective_text(_"Food Production",56 body = objective_text(_"Food Production",
58 _[[Food is very important for mines and military training areas. Establish a well working food environment by building at least one farm, one blackroot farm and a mill. The two kinds of flour together with water from a well will be baked into bread in a bakery, so build a bakery and a well, too.]] .. paragraphdivider() ..57 p(_[[Food is very important for mines and military training areas. Establish a well working food environment by building at least one farm, one blackroot farm and a mill. The two kinds of flour together with water from a well will be baked into bread in a bakery, so build a bakery and a well, too.]]) ..
59 _[[The other two important food wares are smoked fish and smoked meat. Raw meat is delivered from a hunter. A fisher gets the fish out of the sea while a fish breeder makes sure that a school of fish does not go extinct by breeding more. Make sure that there are always fish left, otherwise the fish breeder won’t be able to breed new ones. The smoking happens in a smokery, you will need at least two of those.]] .. paragraphdivider() ..58 p(_[[The other two important food wares are smoked fish and smoked meat. Raw meat is delivered from a hunter. A fisher gets the fish out of the sea while a fish breeder makes sure that a school of fish does not go extinct by breeding more. Make sure that there are always fish left, otherwise the fish breeder won’t be able to breed new ones. The smoking happens in a smokery, you will need at least two of those.]]) ..
60 listitem_bullet(_[[Build a farm and a blackroot farm]]) ..59 li(_[[Build a farm and a blackroot farm]]) ..
61 listitem_bullet(_[[Build a mill to make cornmeal and blackroot flour]]) ..60 li(_[[Build a mill to make cornmeal and blackroot flour]]) ..
62 listitem_bullet(_[[Build a well]]) ..61 li(_[[Build a well]]) ..
63 listitem_bullet(_[[Build a bakery to bake bread from cornmeal, blackroot flour and water]]) ..62 li(_[[Build a bakery to bake bread from cornmeal, blackroot flour and water]]) ..
64 listitem_bullet(_[[Build a hunter’s house to get raw meat]]) ..63 li(_[[Build a hunter’s house to get raw meat]]) ..
65 listitem_bullet(_[[Build a fisher’s house close to water to get raw fish]]) ..64 li(_[[Build a fisher’s house close to water to get raw fish]]) ..
66 listitem_bullet(_[[Build a fish breeder’s house close to the fisher to make sure the fish do not die out]]) ..65 li(_[[Build a fish breeder’s house close to the fisher to make sure the fish do not die out]]) ..
67 listitem_bullet(_[[Build two smokeries to smoke raw meat and fish]])66 li(_[[Build two smokeries to smoke raw meat and fish]])
68 )67 )
69}68}
7069
@@ -73,11 +72,11 @@
73 title = _"Build a spider farm and a weaving mill",72 title = _"Build a spider farm and a weaving mill",
74 number = 3,73 number = 3,
75 body = objective_text(_"Spidercloth Production",74 body = objective_text(_"Spidercloth Production",
76 _[[The weavers produce spidercloth and tabards in the weaving mill. Spidercloth is needed for the construction of some buildings and clothing, while tabards are the uniforms of soldiers. The weaving mill needs gold thread and spider silk as raw material. Spider silk is produced by the spider farm, while gold thread is produced by the gold spinning mill out of gold.]] .. paragraphdivider() ..75 p(_[[The weavers produce spidercloth and tabards in the weaving mill. Spidercloth is needed for the construction of some buildings and clothing, while tabards are the uniforms of soldiers. The weaving mill needs gold thread and spider silk as raw material. Spider silk is produced by the spider farm, while gold thread is produced by the gold spinning mill out of gold.]]) ..
77 listitem_bullet(_[[Build a weaving mill]]) ..76 li(_[[Build a weaving mill]]) ..
78 listitem_bullet(_[[Build a spider farm]]) ..77 li(_[[Build a spider farm]]) ..
79 listitem_bullet(_[[Build a gold spinning mill]])78 li(_[[Build a gold spinning mill]])
80 )79 )
81}80}
8281
83obj_make_heavy_industry_and_mining = {82obj_make_heavy_industry_and_mining = {
@@ -85,12 +84,12 @@
85 title = _"Build industry and mines",84 title = _"Build industry and mines",
86 number = 5,85 number = 5,
87 body = objective_text(_"Industry and Mines",86 body = objective_text(_"Industry and Mines",
88 _[[Iron ore, gold ore and coal are mined in the respective mines. The crystal mine will dig for quartz and diamonds – all of them are precious materials and very rarely found. It will produce a lot of granite while searching for them.]] .. paragraphdivider() ..87 p(_[[Iron ore, gold ore and coal are mined in the respective mines. The crystal mine will dig for quartz and diamonds – all of them are precious materials and very rarely found. It will produce a lot of granite while searching for them.]]) ..
89 listitem_bullet(_[[The ores have to be smelted at a smelting works before they can be used. The refined materials are then used in the weapon smithy, the armor smithy and the toolsmithy.]]) .. paragraphdivider() ..88 li_arrow(_[[The ores have to be smelted at a smelting works before they can be used. The refined materials are then used in the weapon smithy, the armor smithy and the toolsmithy.]]) ..
90 listitem_bullet(_[[Build a mine of each type. Make sure to send geologists to the mountain first.]]) ..89 li(_[[Build a mine of each type. Make sure to send geologists to the mountain first.]]) ..
91 listitem_bullet(_[[Build a smelting works]]) ..90 li(_[[Build a smelting works]]) ..
92 listitem_bullet(_[[Build an armor smithy and a weapon smithy]]) ..91 li(_[[Build an armor smithy and a weapon smithy]]) ..
93 listitem_bullet(_[[Build a toolsmithy]])92 li(_[[Build a toolsmithy]])
94 )93 )
95}94}
9695
@@ -99,8 +98,8 @@
99 title = _"Build a barracks",98 title = _"Build a barracks",
100 number = 1,99 number = 1,
101 body = objective_text(_"Recruiting new soldiers",100 body = objective_text(_"Recruiting new soldiers",
102 _[[Now that weapons are being forged, new soldiers can be recruited. For this, we need to deliver light tridents and tabards to the barracks. Recruits will arrive from the warehouse and receive one of each and some basic training to become a soldier.]] .. paragraphdivider() ..101 p(_[[Now that weapons are being forged, new soldiers can be recruited. For this, we need to deliver light tridents and tabards to the barracks. Recruits will arrive from the warehouse and receive one of each and some basic training to become a soldier.]]) ..
103 listitem_bullet(_[[Build a barracks]])102 li(_[[Build a barracks]])
104 )103 )
105}104}
106105
@@ -109,8 +108,8 @@
109 title = _"Build training sites for soldiers",108 title = _"Build training sites for soldiers",
110 number = 2,109 number = 2,
111 body = objective_text(_"Soldier Training Sites",110 body = objective_text(_"Soldier Training Sites",
112 _[[Like all other tribes, the Atlanteans are also able to train soldiers: the dungeon trains attack – the major attribute of the Atlanteans – and the labyrinth trains evasion, health and defense. The items produced by the industry are used to train better soldiers in the two training sites.]] .. paragraphdivider() ..111 p(_[[Like all other tribes, the Atlanteans are also able to train soldiers: the dungeon trains attack – the major attribute of the Atlanteans – and the labyrinth trains evasion, health and defense. The items produced by the industry are used to train better soldiers in the two training sites.]]) ..
113 listitem_bullet(_[[Build a dungeon and a labyrinth]])112 li(_[[Build a dungeon and a labyrinth]])
114 )113 )
115}114}
116115
@@ -119,9 +118,9 @@
119 title = _"Build a warehouse and a horse farm",118 title = _"Build a warehouse and a horse farm",
120 number = 2,119 number = 2,
121 body = objective_text(_"Warehouse and Horse Farm",120 body = objective_text(_"Warehouse and Horse Farm",
122 _[[As your road network gets longer and more complicated, you should employ horses to help out your carriers. Horses are bred at horse farms using water and corn. A warehouse will also help to ensure that your transportation system does not collapse.]] .. paragraphdivider() ..121 p(_[[As your road network gets longer and more complicated, you should employ horses to help out your carriers. Horses are bred at horse farms using water and corn. A warehouse will also help to ensure that your transportation system does not collapse.]]) ..
123 listitem_bullet(_[[Build a warehouse]]) ..122 li(_[[Build a warehouse]]) ..
124 listitem_bullet(_[[Build a horse farm]])123 li(_[[Build a horse farm]])
125 )124 )
126}125}
127126
@@ -130,8 +129,8 @@
130 title = _"Build 3 ships to escape from the island",129 title = _"Build 3 ships to escape from the island",
131 number = 1,130 number = 1,
132 body = objective_text(_"Escape From the Island",131 body = objective_text(_"Escape From the Island",
133 _[[There is a lake at the top of the island. Build three ships in these waters and you might be able to rescue your people before the island is swallowed completely by the ocean.]] .. paragraphdivider() ..132 p(_[[There is a lake at the top of the island. Build three ships in these waters and you might be able to rescue your people before the island is swallowed completely by the ocean.]]) ..
134 listitem_bullet(_[[Build a shipyard close to the lake to start building ships]])133 li(_[[Build a shipyard close to the lake to start building ships]])
135 )134 )
136}135}
137136
@@ -143,7 +142,7 @@
143initial_messages = {142initial_messages = {
144 {143 {
145 title = _"Proud to the Death",144 title = _"Proud to the Death",
146 body = rt(145 body = (
147 h1(_"Favored by the God") ..146 h1(_"Favored by the God") ..
148 -- TRANSLATORS: Foreword147 -- TRANSLATORS: Foreword
149 p(_([[On the hidden and lost island of Atlantis, a proud tribe settled since the world was very young. Ruled by the bloodline of King Ajanthul – the first human to be empowered by the sea god Lutas to breathe above sea level – and the wise clerics, who provided the link to Lutas – they prospered and became civilized.]])) ..148 p(_([[On the hidden and lost island of Atlantis, a proud tribe settled since the world was very young. Ruled by the bloodline of King Ajanthul – the first human to be empowered by the sea god Lutas to breathe above sea level – and the wise clerics, who provided the link to Lutas – they prospered and became civilized.]])) ..
@@ -153,7 +152,7 @@
153 },152 },
154 {153 {
155 title = _"Disgraced Before the God",154 title = _"Disgraced Before the God",
156 body = rt(155 body = (
157 h1(_"The God’s Punishment") ..156 h1(_"The God’s Punishment") ..
158 -- TRANSLATORS: Foreword157 -- TRANSLATORS: Foreword
159 p(_([[But all seemed well. Only the horses seemed to feel something was wrong. During the nights, they went crazy and were full of fear. It was not long before the horse breeder Xydra figured out what was wrong with them: the sea level in front of their stable was rising with ever increasing speed.]])) ..158 p(_([[But all seemed well. Only the horses seemed to feel something was wrong. During the nights, they went crazy and were full of fear. It was not long before the horse breeder Xydra figured out what was wrong with them: the sea level in front of their stable was rising with ever increasing speed.]])) ..
@@ -163,7 +162,7 @@
163 },162 },
164 {163 {
165 title = _"Uproar and Confusion",164 title = _"Uproar and Confusion",
166 body = rt(165 body = (
167 h1(_"Emerging Chaos…") ..166 h1(_"Emerging Chaos…") ..
168 -- TRANSLATORS: Foreword167 -- TRANSLATORS: Foreword
169 p(_([[Guilt-ridden, the king committed suicide. Without a monarch, the people turned to the clerics, but they had no substantial help to offer. Most accepted their fate while others tried to change the god’s mind by offering animals in his temple. But to no avail…]])) ..168 p(_([[Guilt-ridden, the king committed suicide. Without a monarch, the people turned to the clerics, but they had no substantial help to offer. Most accepted their fate while others tried to change the god’s mind by offering animals in his temple. But to no avail…]])) ..
@@ -476,7 +475,16 @@
476 .. paragraphdivider() ..475 .. paragraphdivider() ..
477 -- TRANSLATORS: Jundlina476 -- TRANSLATORS: Jundlina
478 _([[I expect a long journey, but we will find the land of Satul in the end. This is what I promised my people. And myself.]]))477 _([[I expect a long journey, but we will find the land of Satul in the end. This is what I promised my people. And myself.]]))
479 .. rt("<p font-size=10> <br></p>" .. h1(_ "Congratulations") ..478 .. objective_text(_"Congratulations",
480 p(_[[You have won this mission. Continue with the next one or keep playing for as long as you like.]]))479 _[[You have won this mission. Continue with the next one or keep playing for as long as you like.]])
481 }480 }
482}481}
482
483function building_lost(icon)
484 set_textdomain("scenario_atl01.wmf")
485 return {
486 -- TRANSLATORS: Short message title. Translate as "Lost!" if you don't have enough space.
487 title = pgettext("message_short_title", "Building lost!"),
488 text = li_image(icon, _"We lost a building to the ocean!")
489 }
490end

Subscribers

People subscribed via source and target branches

to status/vote changes: