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
I also just noticed that I didn't enable "Affects saved games" for this mod (which should have been enabled; I wasn't clear at the time what that feature entailed). This oversight could cause issues between saves and loads if, e.g., you don't always load your saves from the mods menu rather than the main menu (which you should always do, BTW, even though it can be time consuming), or if your mod loadout was changed in any way. I'll update soon to fix that oversight, but you can also just edit the .modinfo file and change "<AffectsSavedGames>0</AffectsSavedGames>" from 0 to 1.
I think this is what I did. Anyway, I will test it again. Thanks.
CREATE TABLE Civilization_CityNames_Temp AS
SELECT * FROM Civilization_CityNames c
WHERE rowid IN (
SELECT rowid FROM Civilization_CityNames n
WHERE c.CivilizationType = n.CivilizationType ORDER BY rowid ASC LIMIT 3
);
This works, but when I add this line to the code for custom civs, it does not work. What am i doing wrong?
In SQL syntax, 2 hyphens (--) means that everything following those characters until the end of that line of text is a "comment" and should not be processed.
See line 26 of the file:
"--Use the following instead if you want to randomize the capital as well:"
Make all the lines that are before line 26 comments by adding "--" before (or you can just delete them entirely if you like). Then uncomment (delete the -- in front of) lines 29 through the end of the file except for line 34 (i.e., all of the actual commands that start with capital letters).
"Look at the sql file; it's already in there. Just delete the top half and uncomment the bottom half."
I'm looking at the .sql file, but I have literally no idea what to do, considering I'm fucking stupid. Please help.
However, I was planning on updating this mod to add a SQL trigger so users wouldn't have to worry about that. Thanks for the reminder, I'll look into it soon.
CREATE TABLE Civilization_CityNames_Temp AS SELECT * FROM Civilization_CityNames;
DELETE FROM Civilization_CityNames;
INSERT INTO Civilization_CityNames SELECT * FROM Civilization_CityNames_Temp ORDER BY RANDOM();
DROP TABLE Civilization_CityNames_Temp;
See this thread [forums.civfanatics.com] for instructions to clear your cache, and other common troubleshooting steps for CiV mods.