安装 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(越南语)
Українська(乌克兰语)
报告翻译问题








How did you get it to work? I created a new .sql file, then called it WarfareExpanded_Unit_Upgrades.sql and put it right next to the other files in the data folder for the mod. Into the file I just copied the INSERT INTO UnitUpgrades (Unit, UpgradeUnit) table. I did not delete the old table in the WarfareExpanded_Units.sql file. What am I doing wrong?
You should also edit .modinfo file:
Add your SQL into <Files> and <UpdateDatabase id="Gameplay">
INSERT INTO Units_XP2
(UnitType, CanEarnExperience, CanFormMilitaryFormation)
VALUES ('UNIT_AIRCRAFT_CARRIER', 0, 0);
to
INSERT OR REPLACE INTO Units_XP2
(UnitType, CanEarnExperience, CanFormMilitaryFormation)
VALUES ('UNIT_AIRCRAFT_CARRIER', 0, 0);
then edit ACTweak.modinfo and add
<Properties>
<LoadOrder>99900</LoadOrder>
</Properties>
to
<UpdateDatabase id="NewAction">
***** INSERT HERE *****
<File>ACT.sql</File>
</UpdateDatabase>
Then remove reference to ACT_MOD.sql as it is not needed.
Upgrades will work again and logs will be clean.
(Edit) The issue may be that i adjusted the base game (vanilla) files as opposed to the Gathering Storm files. Problem is, when i go to the tech files for the expansions there is limited info and little to nothing on prerequisite techs which led me to believe the base game files would do the trick...idk though.
CREATE TABLE IF NOT EXISTS Units_XP2 (UnitType VARCHAR, ResourceMaintenanceAmount INTEGER, ResourceCost INTEGER, ResourceMaintenanceType VARCHAR, TourismBomb INTEGER, CanEarnExperience BOOLEAN, TourismBombPossible BOOLEAN, CanFormMilitaryFormation BOOLEAN, MajorCivOnly BOOLEAN);
(that I found WE_Armored_Assault_Units.sql) in the file WarfareExpanded_Units.sql
DELETE FROM Units_XP2 WHERE UnitType = 'UNIT_INFANTRY' AND EXISTS (SELECT name FROM sqlite_master WHERE type='table' AND name='Units_XP2');
It can not execute with R&F because Units_XP2 does not exist. And them all subsequent lines are not executed. (It seems that you can not write DELETE FROM table ... if the table does not exist even with a WHERE statement that test the table existence).
There is the same problem in the file WarfareExpanded_Units_Changes.sql with an UPDATE statement:
UPDATE Units_XP2 SET ResourceMaintenanceType = 'RESOURCE_OIL'
WHERE UnitType ='UNIT_BATTLESHIP' AND EXISTS (SELECT name FROM sqlite_master WHERE type='table' AND name='Units_XP2');
and none of the subsequent lines are executed since this line caused a bug. But the UnitsUpgrade table is normaly modified after this line...
Another way to deal with the problem is likely to change the order of the statements in the files : puting references to Units_XP2 at the end. But I prefer the solution I wrote in the previous message : creating the table because it prevent the bug.