Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
1. require "MainCreationMethods"
should be
require('NPCs/MainCreationMethods');
2. Events.OnGameBoot.Add(BaseGameCharacterDetails.DoProfessions);
should be
Events.OnGameBoot.Add(FBIagentProfession.DoProfessions);
Existing codes causes other 'Profession' mods can't to read 'name' translations from "UI_XX.txt". It just make these two codes changes and everything will work fine.
It is also recommended to make the 'function names' they use in the code a bit more unique to avoid conflicts with other similar mods. Using names like this will help now and later if you want to add more Professions without worrying about conflicts with other mods. Because there are many mods of the same type now because of overlapping 'function names', causing some unnecessary problems.
For example, put the 'FBIAP' to the last of them.
local FBIagentProfession = ProfessionFactory.addProfession("FBIagentProfessionFBIAP", getText("UI_prof_fbiAgentFBIAP"), "prof_fbiAgentFBIAP", -2, getText("UI_profdesc_fbiAgentFBIAP"));
prof_fbiAgentFBIAP.png
UI_EN = {
UI_prof_fbiAgentFBIAP = "",
UI_profdesc_fbiAgentFBIAP = "",
}
And thank you for the good 'Profession' mod. And here is the "CH" and "CN" translation.
UI_CH = {
UI_prof_fbiAgent = "FBI特工",
UI_profdesc_fbiAgent = "特工們用他她們的技能、同情心和正直來 <LINE> 抵禦威脅、維護法律、捍衛公民權利、保護無辜者。 <LINE> 他她們尋找網路犯罪、滲透有組織的犯罪集團並調查恐怖分子以維護國家安全。",
}
UI_CN = {
UI_prof_fbiAgent = "FBI特工",
UI_profdesc_fbiAgent = "特工们用他她们的技能、同情心和正直来 <LINE> 抵御威胁、维护法律、捍卫公民权利、保护无辜者。 <LINE> 他她们寻找网络犯罪、渗透有组织的犯罪集团并调查恐怖分子以维护国家安全。",
}
There is another 'little situation', you updated the wrong for Traditional Chinese.
Actually, my mother language is Traditional Chinese, so you just need to 'copy' and 'paste' these two version of Chinese I posted into "UI_CH.txt" and "UI_CN.txt", that's all will be fine. 😄
Tips: It need to keep " <LINE> ", because if don't use " <LINE> ", it can't break sentences in the game.
---------------> Traditional Chinese is :
UI_CH = {
UI_prof_fbiAgent = "FBI特工",
UI_profdesc_fbiAgent = "特工們用他她們的技能、同情心和正直來 <LINE> 抵禦威脅、維護法律、捍衛公民權利、保護無辜者。 <LINE> 他她們尋找網路犯罪、滲透有組織的犯罪集團並調查恐怖分子以維護國家安全。",
}
---------------> Simplified Chinese is :
UI_CN = {
UI_prof_fbiAgent = "FBI特工",
UI_profdesc_fbiAgent = "特工们用他她们的技能、同情心和正直来 <LINE> 抵御威胁、维护法律、捍卫公民权利、保护无辜者。 <LINE> 他她们寻找网络犯罪、渗透有组织的犯罪集团并调查恐怖分子以维护国家安全。",
}
It's me again 😄. I found description doesn't working. And fixed it and send to you. All name need to use the same "fbiAgent" and the description will work.
(It doesn't need this statement "require "NPCs/MainCreationMethods"" which will increase the loading speed.)
FBIagentProfession = {};
FBIagentProfession.DoProfessions = function()
local fbiAgent = ProfessionFactory.addProfession("fbiAgent", getText("UI_prof_fbiAgent"), "prof_fbiAgent", -2, getText("UI_profdesc_fbiAgent"));
fbiAgent:addXPBoost(Perks.Fitness, 1);
fbiAgent:addXPBoost(Perks.Sprinting, 4);
fbiAgent:addXPBoost(Perks.Aiming, 5);
fbiAgent:addXPBoost(Perks.Sneak, 2);
fbiAgent:addFreeTrait("Marksman");
local profList = ProfessionFactory.getProfessions()
for i = 1, profList:size() do
local profession = profList:get(i - 1);
BaseGameCharacterDetails.SetProfessionDescription(profession);
end
end
Events.OnGameBoot.Add(FBIagentProfession.DoProfessions);
Events.OnCreateLivingCharacter.Add(FBIagentProfession.DoProfessions);
Indeed, I'll have to give you a little kiss for helping me :D
It need change in "fbiAgentSpawnItems.lua" to
--------> if prof == "fbiAgent" then
It need change in "fbiAgentClothingSelection.lua" to
--------> ClothingSelectionDefinitions.fbiAgent = {