[fixed] r3192: Savegames: Lua triggered announcements are not displayed properly

Started by tomreyn, 29 March 2012, 20:58:05

tomreyn

After reloading a game which has Lua triggered announcement and objective texts, such as the Amazones scenario, text localization variables are not expanded properly, resulting in thext localization failing:


[2012-03-29 22:40:43] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/global/lang.cpp::getScenarioString Line: 330] Error [Value not found in propertyMap: "thirdwave", loaded from: /home/tomreyn/SCM/megaglest-trunk/mk/linux//scenarios/amazones/amazones_english.lng]

What you get then is a message windows saying ???thirdwave???, and once you confirmed this message, you get an ojective indicator text on the top of the screen which reads: ???thirdwave???.

Correctly this message would get expanded to the string which IS in this very file referenced in the error message:

thirdwave=Objective: Probably too many ladies...

atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·


tomreyn

atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·