Codes for Civilizations V (number of turns)

1. The Defines should be updated instead of re-defined. So instead of this code:
Code:
		<Row Name="START_YEAR">
			<Value>-2020</Value>
		</Row>
		<Row Name="WEEKS_PER_MONTHS">
			<Value>4</Value>
		</Row>
		<Row Name="MIN_CITY_RANGE">
			<Value>2</Value>
		</Row>

You should have the following:
Code:
		<Update>
			<Where Name="START_YEAR"/>
			<Set Value="-2020"/>
		</Update>
		<Update>
			<Where Name="MIN_CITY_RANGE"/>
			<Set Value="2"/>
		</Update>

(WEEKS_PER_MONTHS is already 4, so there's no need to change it.)

2. The .civ5map file should be imported into VFS, and requires a Map entry in the Content tab.

I haven't checked if there are any other problems with the mod, so check if it's working after making the above changes.
 
OK, mate. Please do the following:
1. Go to your civ user directory (documents\my games\...) and open config.ini
2. Set LoggingEnabled = 1
3. Start a game with you mod enabled and wait for crash/whatever
4. Go to you civ user directory and open the folder "Logs"
5. Paste the content auf database.log here in a spoiler tag or use pastebin
6. profit!

Nobody actually has fun looking at your problem if you don't deliver what we need.
PawelS told you in Post #19 to provide logs... ;)

EDIT
Took a look at your code.
What exactly are you trying to do here?
Spoiler :
GAMESPEED_QUICK
720
17


GAMESPEED_QUICK
480
30


GAMESPEED_QUICK
360
20


GAMESPEED_QUICK
240
30


GAMESPEED_QUICK
120
25


GAMESPEED_QUICK
60
40


GAMESPEED_QUICK
24
65


GAMESPEED_QUICK
12
70
You are redefining GAMESPEED_QUICK over and over again. You may not define tags more than once.
Also, you are redefining START_YEAR, WEEKS_PER_MONTHS and MIN_CITY_RANGE again. These are already defined. Either delete them first or use .
 
@Belzhorash: One gamespeed can appear multiple times in GameSpeed_Turns. So this fragment of code is OK provided that the old entries were deleted. Also xml.log is not very useful in most cases, so it's more important to check database.log.
 
@Belzhorash: One gamespeed can appear multiple times in GameSpeed_Turns. So this fragment of code is OK provided that the old entries were deleted. Also xml.log is not very useful in most cases, so it's more important to check database.log.
Waaah. You're totally right! I actually meant database.log. My fault.
 
Yes I know it's a solution, but I want to the people who downloads my mod can play with.

EDIT for your question:
When I said my scenario doesn't work, i want say the rules of its "aren't read" by the game even with your indications.
But the game doens't crash.
My problem is I have a mod and its map, but when I actived the mod and I play on the map, it's as I played as without the rules mod
 
Yes I know it's a solution, but I want to the people who downloads my mod can play with.
I don't get your point.
Enabling logging doesn't influence the playability of a mod. It only helps you and others to know what's wrong.
 
If you always ask the people at the forum to find errors for you, you will never learn it yourself...
 
But I have tryed many things for two months but all I tryed doens't work ...
And i did that the tutorial said me to do, but the problem is always here.
And I don't understand where is the error now
 
I did it, but there isn't informations in this file because the game doesn't crash
Spoiler :
[136042.187] columns StrategicViewType, TileType are not unique
[136042.187] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[136055.359] no such table: ContentPackage.LocalizedText
[136055.375] no such table: ContentPackage.LocalizedText
[136055.375] no such table: ContentPackage.LocalizedText
[136057.406] no such table: ContentPackage.LocalizedText
[136070.062] columns StrategicViewType, TileType are not unique
[136070.062] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[136071.734] no such table: ContentPackage.LocalizedText
[136071.734] no such table: ContentPackage.LocalizedText
[136071.734] no such table: ContentPackage.LocalizedText
[136081.437]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 6227072 81334976
PageCache: 6 12
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 5810616 67476528
Scratch: 0 0

Largest Allocations:
Malloc: 262144
PageCache: 1172
Scratch: 6376

Prepared Statements:
Current: 6
------------------------------
[136082.312]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 6228248 81334976
PageCache: 6 12
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 5811792 67476528
Scratch: 0 0

Largest Allocations:
Malloc: 262144
PageCache: 1172
Scratch: 6376

Prepared Statements:
Current: 6
------------------------------
[136131.796] no such table: Language_zh_CN
[136131.796] In Query - insert into Language_zh_CN('Tag', 'Text') values (?, ?);
[136131.796] In XMLSerializer while updating table Language_zh_CN from file Localization/IGE_ZH_CN.xml.
[136135.296] PRIMARY KEY must be unique
[136135.296] PRIMARY KEY must be unique
[136135.984] Database::XMLSerializer (ChangeTurnIncrement.xml): 'Row' or 'Delete' expected, got 'Where'.
[136138.390]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 6545224 81334976
PageCache: 7 13
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 6096384 67476528
Scratch: 0 0

Largest Allocations:
Malloc: 262144
PageCache: 1172
Scratch: 6376

Prepared Statements:
Current: 12
------------------------------
 
There is no XML code to set the start turn, you can only set the start year. To set the start turn you need Lua, as I described earlier.

Btw there is some interesting information in your database.log, it doesn't require a crash to work correctly :)
[136135.296] PRIMARY KEY must be unique
[136135.296] PRIMARY KEY must be unique
[136135.984] Database::XMLSerializer (ChangeTurnIncrement.xml): 'Row' or 'Delete' expected, got 'Where'.
The first two are not very informative because they don't specify the file where it happened - basically you added something to the database with the same ID as something that already exists - it's better to remove all <ID> tags from your XML code, as they are generated automatically. The last message is self-explanatory (but I think it should say 'Row' or 'Delete' or 'Update').
 
Now, the first part of my mod works: I can found cities at two cases of an other one.
But for the Lua file, it doens't work a new time
I have to create a map script action ?
 
No, you should create an InGameUIAddin. There is a bug in ModBuddy that hides .lua files when doing so. So select the file first, and then set the type to InGameUIAddin.
 
OK Thanks, it works !
I say you a big "Thank tou very much"
Even if i haven't understant many things and i posted messages without importance, you helped me.
Thank you again !
 
Top Bottom