Simple tutorial-mod won't work (already tried common stuff)

Ruceus

Chieftain
Joined
Jan 3, 2020
Messages
2
Hi,

I just got into the idea of modding Civ5 and struggle now with just adding a new civilisation.

I added actions (OnLoad -> Update Database), cleared the Civ5ModDatabase.db and also tried other hokus-pocus I red on different forums.

Mod files should be attatched, I hope someone can help with that. I mean that's basic stuff, isn't it?

Ruceus

PS: My logs:








Database.log


[128778.531] columns StrategicViewType, TileType are not unique
[128778.531] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[128781.125] no such table: ContentPackage.LocalizedText
[128781.125] no such table: ContentPackage.LocalizedText
[128781.125] no such table: ContentPackage.LocalizedText
[128783.000] no such table: ContentPackage.LocalizedText
[128786.531] columns StrategicViewType, TileType are not unique
[128786.531] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[128788.328] no such table: ContentPackage.LocalizedText
[128788.343] no such table: ContentPackage.LocalizedText
[128788.343] no such table: ContentPackage.LocalizedText
[128797.906] Validating Foreign Key Constraints...
[128797.906] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128797.906] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128797.906] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128797.906] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128797.906] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128797.906] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128797.906] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128797.906] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128797.906] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128802.390] Failed Validation.
[128803.390]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 6389736 81400528
PageCache: 6 12
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 5972904 67540032
Scratch: 0 0

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

Prepared Statements:
Current: 6
------------------------------
[128803.453] Validating Foreign Key Constraints...
[128803.453] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128803.453] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128803.453] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128803.453] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128803.453] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128803.453] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128803.453] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128803.453] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128803.453] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128808.375] Failed Validation.
[128809.453]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 6390912 81400528
PageCache: 6 12
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 5974080 67540032
Scratch: 0 0

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

Prepared Statements:
Current: 6
------------------------------
[128849.859] Validating Foreign Key Constraints...
[128849.859] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128849.859] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128849.859] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128849.859] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128849.859] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128849.859] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128849.859] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128849.859] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128849.859] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128852.812] Failed Validation.
[128853.375]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 6430608 81400528
PageCache: 7 13
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 5982312 67540032
Scratch: 0 0

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

Prepared Statements:
Current: 12
------------------------------
[128855.609] columns StrategicViewType, TileType are not unique
[128855.609] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[128856.703] no such table: ContentPackage.LocalizedText
[128856.703] no such table: ContentPackage.LocalizedText
[128856.703] no such table: ContentPackage.LocalizedText
[128866.687] Validating Foreign Key Constraints...
[128866.687] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128866.687] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128866.687] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128866.687] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128866.687] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128866.687] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128866.687] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128866.687] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128866.687] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[128871.656] Failed Validation.
[128872.656]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 6400048 81400528
PageCache: 6 13
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 5978784 67545912
Scratch: 0 0

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

Prepared Statements:
Current: 8
------------------------------









xml.log

[128797.890] **** Validating Game Database *****
[128802.390] Performing Localization Checks
[128802.390] Checking Tag Format...
[128802.390] Note: Tags must only use [A-Z_] characters, start with 'TXT_KEY_', and be under 128 characters long.
[128802.453] Validating UnitGameplay2DScripts
[128802.453] Missing Entry for UNIT_BARBARIAN_HORSEMAN
[128802.453] **** VALIDATION FAILED *****
[128802.453] Validation Took 4.555962 seconds
[128803.390] **** Validating Prefetch Process *****
[128803.390] **** Validation Success *****
[128803.390] SetGlobalActionInfo
[128803.390]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 6389736 81400528
PageCache: 6 12
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 5972904 67540032
Scratch: 0 0

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

Prepared Statements:
Current: 6
------------------------------
[128803.437] **** Validating Game Database *****
[128808.375] Performing Localization Checks
[128808.375] Checking Tag Format...
[128808.375] Note: Tags must only use [A-Z_] characters, start with 'TXT_KEY_', and be under 128 characters long.
[128808.421] Validating UnitGameplay2DScripts
[128808.421] Missing Entry for UNIT_BARBARIAN_HORSEMAN
[128808.421] **** VALIDATION FAILED *****
[128808.421] Validation Took 4.993517 seconds
[128809.453] **** Validating Prefetch Process *****
[128809.453] **** Validation Success *****
[128809.453] SetGlobalActionInfo
[128809.453]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 6390912 81400528
PageCache: 6 12
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 5974080 67540032
Scratch: 0 0

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

Prepared Statements:
Current: 6
------------------------------
[128849.843] **** Validating Game Database *****
[128852.812] Performing Localization Checks
[128852.812] Checking Tag Format...
[128852.812] Note: Tags must only use [A-Z_] characters, start with 'TXT_KEY_', and be under 128 characters long.
[128852.859] Validating UnitGameplay2DScripts
[128852.859] Missing Entry for UNIT_BARBARIAN_HORSEMAN
[128852.859] **** VALIDATION FAILED *****
[128852.859] Validation Took 3.008093 seconds
[128853.375] **** Validating Prefetch Process *****
[128853.375] **** Validation Success *****
[128853.375] SetGlobalActionInfo
[128853.375]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 6430608 81400528
PageCache: 7 13
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 5982312 67540032
Scratch: 0 0

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

Prepared Statements:
Current: 12
------------------------------
[128866.671] **** Validating Game Database *****
[128871.656] Performing Localization Checks
[128871.656] Checking Tag Format...
[128871.656] Note: Tags must only use [A-Z_] characters, start with 'TXT_KEY_', and be under 128 characters long.
[128871.718] Validating UnitGameplay2DScripts
[128871.718] Missing Entry for UNIT_BARBARIAN_HORSEMAN
[128871.718] **** VALIDATION FAILED *****
[128871.718] Validation Took 5.042141 seconds
[128872.656] **** Validating Prefetch Process *****
[128872.656] **** Validation Success *****
[128872.656] SetGlobalActionInfo
[128872.656]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 6400048 81400528
PageCache: 6 13
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 5978784 67545912
Scratch: 0 0

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

Prepared Statements:
Current: 8
------------------------------
 

Attachments

  • The Draconians (v 1).civ5mod
    1.7 KB · Views: 42
Sorry, I'm tired. I forgot to explain the problem:

I started a new project with Kaels guide. So I create my new mod project called 'The Draconians' adding a new civ. I just changed variable names to DRACONIAN and some city names from Kaels template provided in the guide. Did not work, got some errors in log files with unique names because the text strings were in a seperate file. I copied these into the Draconians.xml and errors disappeared.
It still does not work. I think I miss something. I'm trying this now for almost 11 hours straight with like 6 different tutorials.

Moderator Action: Welcome to CivFanatics. Moved this thread to the main C&C forum as that is where questions are best answered. Good luck with your modding. leif
 
Last edited by a moderator:
The reason your text file did not work is that you never told the game to do anything with that file. You only have one file listed as "UpdateDatabase" within your modinfo file
Code:
  <Actions>
    <OnModActivated>
      <UpdateDatabase>XML/Civilizations/Draconians.xml</UpdateDatabase>
    </OnModActivated>
  </Actions>
This is however a minor issue.

You have no unique components assigned to the civilization. Every civilization needs a minimum of two unique components (units, buildings, terrain-improvements). Any combination of the three types of unique components will be accepted. Unique Terrain-Improvements only apply to running BNW however, so if you are using only Vanilla or only Gods and Kings then you cannot assign unique terrain-improvements. Without the needed unique components the game simply locks on the leader/civilization select screen and the user cannot scroll down through the list of leaders.

Gods and Kings and BNW require a list of Spy names. As I recall nine are needed in order for the game to handle the Spy system properly. If you do not assign Spy Names to the civilization, the game will CTD when the first player reaches the renaissance era.
 
Last edited:
Top Bottom