ติดตั้ง Steam
เข้าสู่ระบบ
|
ภาษา
简体中文 (จีนตัวย่อ)
繁體中文 (จีนตัวเต็ม)
日本語 (ญี่ปุ่น)
한국어 (เกาหลี)
български (บัลแกเรีย)
Čeština (เช็ก)
Dansk (เดนมาร์ก)
Deutsch (เยอรมัน)
English (อังกฤษ)
Español - España (สเปน)
Español - Latinoamérica (สเปน - ลาตินอเมริกา)
Ελληνικά (กรีก)
Français (ฝรั่งเศส)
Italiano (อิตาลี)
Bahasa Indonesia (อินโดนีเซีย)
Magyar (ฮังการี)
Nederlands (ดัตช์)
Norsk (นอร์เวย์)
Polski (โปแลนด์)
Português (โปรตุเกส - โปรตุเกส)
Português - Brasil (โปรตุเกส - บราซิล)
Română (โรมาเนีย)
Русский (รัสเซีย)
Suomi (ฟินแลนด์)
Svenska (สวีเดน)
Türkçe (ตุรกี)
Tiếng Việt (เวียดนาม)
Українська (ยูเครน)
รายงานปัญหาเกี่ยวกับการแปลภาษา
All right. Keep it up.
As long as your mod has my mod as a required items, that's fine. What mod are you going to make?
Thank you for your kind explanation. I fixed it as you told me, can you check if the problem has been solved?
tries to get his current army with the line "local force = faction:faction_leader():military_force()"
If noctilus dosnt exist when the script runs then it fails.
the change i made checks if he dosnt exist or if he dosnt have an army and then just dosnt run the rest of the script instead of failing.
all you have to do is to replace the line "local force = faction:faction_leader():military_force()"
in the "script/campaign/mod/bad_legend_agent12_il_potente_granchio.lua" with this part:
"local leader = faction and faction:faction_leader()
if not leader or leader:is_null_interface() then
return -- Exit early if leader doesn't exist
end
local force = leader:military_force()
if not force or force:is_null_interface() then
return -- Exit early if force doesn't exist
end"
Sorry I don't know scripts very well so please explain more about what I should do. And even now, there should be no problem with gameplay itself. And where do you get the error message?
Maybe this will fix the error from occuring:
local faction = cm:get_faction("wh2_dlc11_cst_noctilus")
local leader = faction and faction:faction_leader()
if not leader or leader:is_null_interface() then
return -- Exit early if leader doesn't exist
end
local force = leader:military_force()
if not force or force:is_null_interface() then
return -- Exit early if force doesn't exist
end