Sid Meier's Civilization VI

Sid Meier's Civilization VI

Better Visual Notifications +
Serp  [开发者] 2019 年 3 月 9 日 上午 5:57
Bugs/Missing strings
Please report here all bugs and missing strings you encounter with as much information you have.

Currently I can not fix Gathering Storm related problems, but as soon as I own it (when it is on sale) I can work on the list to fix those.
< >
正在显示第 1 - 2 条,共 2 条留言
Perry 2019 年 3 月 9 日 上午 10:49 
You should replace:

"GetLeaderTypeName" by "GetLeaderName"

"GetLeaderTypeName" returns "LEADER_ELEANOR_FRANCE"
"GetLeaderName" returns "LOC_LEADER_ELEANOR_FRANCE"

that is exactly what you want when you are localizing the name.


For example:

Replace

local leaderOne:string = PlayerConfigurations[PlayerID]:GetLeaderTypeName();
local civLeaderOne = Locale.Lookup("LOC_" .. leaderOne .. "_NAME");

By

local civLeaderOne:string = Locale.Lookup(PlayerConfigurations[PlayerID]:GetLeaderName());

Serp  [开发者] 2019 年 4 月 7 日 上午 10:35 
the leadername problem should be fixed now.
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50