Skip to content

Commit 92e8c10

Browse files
committed
Update engine for new mod content and Fluent changes.
1 parent 3d51c0b commit 92e8c10

14 files changed

+106
-259
lines changed

OpenRA.Mods.Mobius/FileSystem/RemasterFileSystemLoader.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using System.Collections.Generic;
1313
using System.IO;
1414
using System.Linq;
15+
using OpenRA.Mods.Common;
1516
using OpenRA.Mods.Common.FileSystem;
1617
using OpenRA.Mods.Common.Installer;
1718

@@ -21,7 +22,7 @@ public class RemasterFileSystemLoader : IFileSystemLoader, IFileSystemExternalCo
2122
{
2223
[FieldLoader.Require]
2324
public readonly string RemasterDataMount = null;
24-
public readonly string InstallPromptMod = "cnccontent";
25+
public readonly string InstallPromptMod = "remaster-content";
2526
public readonly Dictionary<string, string> Packages = null;
2627
public readonly Dictionary<string, string> RemasterPackages = null;
2728

@@ -33,7 +34,7 @@ static object LoadSources(MiniYaml yaml)
3334
var ret = new Dictionary<string, ModContent.ModSource>();
3435
var sourcesNode = yaml.Nodes.Single(n => n.Key == "Sources");
3536
foreach (var s in sourcesNode.Value.Nodes)
36-
ret.Add(s.Key, new ModContent.ModSource(s.Value, null));
37+
ret.Add(s.Key, new ModContent.ModSource(s.Value));
3738

3839
return ret;
3940
}

OpenRA.Mods.Mobius/RemasterContentPromptLogic.cs

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public class RemasterContentPromptLogic : ChromeLogic
1818
[ObjectCreator.UseCtor]
1919
public RemasterContentPromptLogic(Widget widget, ModData modData)
2020
{
21-
widget.Get<LabelWidget>("VERSION_LABEL").Text = modData.Manifest.Metadata.Version;
2221
widget.Get<ButtonWidget>("QUIT_BUTTON").OnClick = Game.Exit;
2322
}
2423
}

OpenRA.Mods.Mobius/RemasterInstallPromptLoadScreen.cs

-24
This file was deleted.

mod.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
MOD_ID="cnc"
1010

1111
# The OpenRA engine version to use for this project.
12-
ENGINE_VERSION="78e02a7f9e"
12+
ENGINE_VERSION="85fd77f6be"
1313

1414
##############################################################################
1515
# Packaging

mods/cnc/chrome/mainmenu-prerelease-notification.yaml

-96
This file was deleted.

mods/cnc/languages/campaign/en.ftl mods/cnc/fluent/campaign.ftl

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
## world
22
dropdown-difficulty =
33
.label = Difficulty
4-
.description = The difficulty of the mission
4+
.description = The difficulty of the mission.
55
66
options-difficulty =
77
.easy = Easy
88
.normal = Normal
99
.hard = Hard
1010
11+
## player
12+
bot-campaign-ai =
13+
.name = Campaign Player AI
14+
1115
## campaign-maprules.yaml
1216
actor-moneycrate-name = Money Crate
1317

mods/cnc/languages/lua/en.ftl mods/cnc/fluent/lua.ftl

+20-25
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
## campaign
2-
objective-failed = Objective failed
3-
objective-completed = Objective completed
2+
objective-failed = Objective Failed
3+
objective-completed = Objective Completed
44
55
primary = Primary
66
secondary = Secondary
77
8-
new-primary-objective = New primary objective
9-
new-secondary-objective = New secondary objective
8+
new-primary-objective = New Primary Objective
9+
new-secondary-objective = New Secondary Objective
1010
1111
# cnc64gdi01
1212
destroy-obelisk-sams = Destroy the SAM sites protecting the Obelisk.
@@ -59,7 +59,7 @@ destroy-nod-force = Destroy the Nod strike force.
5959
## gdi08b
6060
protect-mobius = Protect Dr. Mobius.
6161
protect-hospital = Protect the Hospital.
62-
keep-civilians-alive = Keep at least { $civilians } out of 14 Civilians alive.
62+
keep-civilians-alive = Keep at least { $civilians } out of 14 civilians alive.
6363
destroy-nod-bases = Destroy the Nod bases.
6464
6565
## gdi09
@@ -105,8 +105,8 @@ destroy-gdi-supporter-houses = Destroy the houses of the GDI supporters
105105
in the village.
106106
107107
## nod06c
108-
infiltrate-barracks-factory-conyard = Infiltrate the barracks, weapon factory and
109-
the construction yard.
108+
infiltrate-barracks-factory-conyard = Infiltrate the barracks, weapons factory and
109+
construction yard.
110110
111111
## nod07a
112112
find-nod-base = Find the Nod base.
@@ -116,9 +116,9 @@ eliminate-gdi-forces = Eliminate all GDI forces in the area.
116116
117117
## nod07c
118118
capture-gdi-helipad = Capture the GDI helipad.
119-
dont-capture-or-destroy = Don't capture or destroy any other
119+
do-not-capture-or-destroy = Do not capture or destroy any other
120120
GDI main building.
121-
orca-wreak-havoc = Use the GDI orca to wreak havoc at the village.
121+
orca-wreak-havoc = Use the GDI Orca to wreak havoc in the village.
122122
distract-guards = Distract the guards by attacking the
123123
main entrance with your vehicles.
124124
@@ -134,29 +134,24 @@ secure-second-landing-zone = Secure the second landing zone.
134134
135135
## nod10a
136136
kill-gdi-scientist = Kill the GDI scientist.
137-
destroy-tech-center = Destroy the GDI R&D center.
137+
destroy-tech-center = Destroy the GDI Research Base.
138138
139139
## nod10b
140140
destroy-capture-warfactory = Destroy or capture the Weapons Factory.
141-
destroy-mammoth-tanks = Destroy the Mammoth tanks in the R&D base.
141+
destroy-mammoth-tanks = Destroy the Mammoth tanks in the Research Base.
142142
keep-commando-alive = Keep your Commando alive.
143143
144144
## eviction-notice
145-
take-civilians-money-crates = Find all the civilians' money.
146-
They won't need it anymore.
147-
quickly-destroy-ion-cannon = Disable GDI Ion Cannon before
148-
it fires two times.
145+
take-civilians-money-crates = Find all the civilians' money; they won't be needing it anymore.
146+
quickly-destroy-ion-cannon = Disable the GDI Ion Cannon before it fires twice.
149147
nod-soldier = Nod Soldier
150-
civilians-runs = Hey, those civilians... where are they going?
151-
destroy-ion-cannon-advise = The GDI are preparing their ion cannon. Don't let them get used to it.
152-
village-destruction-warning = Be careful, commander. The GDI won't stand still while we burn the entire village.
148+
civilians-running = Hey, those civilians... where are they going?
149+
destroy-ion-cannon-advice = The GDI are preparing their Ion Cannon. Don't let them get comfortable using it.
150+
village-destruction-warning = Be careful, commander. The GDI won't stay idle while we burn the entire village.
153151
154152
## twist-of-fate
155-
clear-path = Repel the ambush and clear the way
156-
for our MCV.
157-
recover-old-base = Capture the Construction Yard in our recon
158-
post to regain control.
159-
air-strikes-intel-report = Nod airstrikes are being directed by a Communications Center, located northwest. We may gain useful information from its capture.
160-
capture-nod-communications-center = Capture the Nod Communications Center to
161-
the northwest.
153+
clear-path = Repel the ambush and clear the way for our MCV.
154+
recover-old-base = Capture the Construction Yard at our recon post to regain control.
155+
air-strikes-intel-report = Nod airstrikes are being directed by a Communications Center to the northwest. We may gain useful information from its capture.
156+
capture-nod-communications-center = Capture the Nod Communications Center to the northwest.
162157
communications-center-captured-sams-located = Our engineers located Nod SAM sites. They also disarmed an unusual trap on the Construction Yard to the south.

mods/cnc/languages/overrides/en.ftl

-6
This file was deleted.

mods/cnc/mod.yaml

+11-12
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Metadata:
33
Version: {DEV_VERSION}
44
Website: https://www.openra.net
55
WebIcon32: https://www.openra.net/images/icons/cnc_32x32.png
6-
WindowTitle: OpenRA - Tiberian Dawn
6+
WindowTitle: OpenRA - Tiberian Dawn HD
77

88
PackageFormats: Mix, MegV3, ZipFile
99

@@ -118,7 +118,6 @@ Assemblies: OpenRA.Mods.Common.dll, OpenRA.Mods.Cnc.dll, OpenRA.Mods.Mobius.dll
118118

119119
ChromeLayout:
120120
base|chrome/mainmenu.yaml
121-
cnc|chrome/mainmenu-prerelease-notification.yaml
122121
base|chrome/mainmenu-prompts.yaml
123122
base|chrome/playerprofile.yaml
124123
base|chrome/encyclopedia.yaml
@@ -168,14 +167,16 @@ ChromeLayout:
168167
base|chrome/editor.yaml
169168
common|chrome/text-notifications.yaml
170169

171-
Translations:
172-
common|languages/en.ftl
173-
common|languages/rules/en.ftl
174-
base|languages/chrome/en.ftl
175-
base|languages/rules/en.ftl
176-
cnc|languages/overrides/en.ftl
170+
FluentMessages:
171+
common|fluent/common.ftl
172+
common|fluent/hotkeys.ftl
173+
common|fluent/rules.ftl
174+
base|fluent/cnc.ftl
175+
base|fluent/chrome.ftl
176+
base|fluent/hotkeys.ftl
177+
base|fluent/rules.ftl
177178

178-
AllowUnusedTranslationsInExternalPackages: false
179+
AllowUnusedFluentMessagesInExternalPackages: false
179180

180181
Voices:
181182
cnc|audio/voices.yaml
@@ -190,7 +191,6 @@ Hotkeys:
190191
common|hotkeys/game.yaml
191192
common|hotkeys/observer.yaml
192193
common|hotkeys/production-common.yaml
193-
common|hotkeys/production-peractor.yaml
194194
common|hotkeys/supportpowers.yaml
195195
common|hotkeys/viewport.yaml
196196
common|hotkeys/chat.yaml
@@ -202,7 +202,6 @@ LoadScreen: CncLoadScreen
202202
Image: base|uibits/chrome.png
203203
Image2x: base|uibits/chrome-2x.png
204204
Image3x: base|uibits/chrome-3x.png
205-
Text: Loading
206205

207206
ServerTraits:
208207
LobbyCommands
@@ -268,7 +267,7 @@ SoundFormats: Aud, Wav
268267

269268
SpriteFormats: Tga, ShpTD, TmpTD, ShpTS, TmpRA, ShpRemastered, Dds, PngSheet
270269

271-
VideoFormats: Vqa
270+
VideoFormats: Vqa, Wsa
272271

273272
TerrainFormat: RemasterTerrain
274273

mods/cnc/rules/overrides.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
FogVariants: fog-typea, fog-typeb, fog-typec, fog-typed
88
OverrideFullFog: fog-full
99

10-
World:
11-
LoadWidgetAtGameStart:
12-
ShellmapRoot: MAINMENU_PRERELEASE_NOTIFICATION
13-
1410
V19:
1511
RenderSprites:
1612
PlayerPalette: derrick

0 commit comments

Comments
 (0)