New to modding - Basic SDK Mod not working

Matty R

Veteran Newbie
Joined
Jun 17, 2006
Messages
416
Location
Bolton, England
Hello

I was hoping someone could help me.

I've just tried creating my first mod for Civ V, but it isn't working in game. It does however appear in the mod list on the main menu.

What I'm trying to do is make jungles provide production when chopped.

This is my code:

Code:
<GameData>
	<Row>
		<BuildType>BUILD_REMOVE_JUNGLE</BuildType>
		<FeatureType>FEATURE_JUNGLE</FeatureType>
		<PrereqTech>TECH_BRONZE_WORKING</PrereqTech>
		<Time>700</Time>
		<Production>7</Production>
		<Remove>true</Remove>
	</Row>
  
</GameData>

I've copied the entry for Remove Jungle from Assets/Gameplay/XML/Units/CIV5Builds.XML, then copied the line regarding production from the Remove Forest entry.

I've also added the action so it changes the user database when the mod is activated.

Could anyone help me with this?

Thanks.
 
Code:
<GameData>
	<Row>
		<BuildType>BUILD_REMOVE_JUNGLE</BuildType>
		<FeatureType>FEATURE_JUNGLE</FeatureType>
		<PrereqTech>TECH_BRONZE_WORKING</PrereqTech>
		<Time>700</Time>
		<Production>7</Production>
		<Remove>true</Remove>
	</Row>
  
</GameData>
You have two basic errors:
  1. Common Novice-Modder Mistakes -- "USING <ROW>, <REPLACE>, OR <UPDATE> OUTSIDE OF TABLE WRAPS"
    • Your error is the very bottom one shown under "USING <ROW>, <REPLACE>, OR <UPDATE> OUTSIDE OF TABLE WRAPS"
  2. Common Novice-Modder Mistakes -- "NOT USING <UPDATES> AND INSTEAD RE-STATING THE <ROW> WITH CHANGES"
    • You are attempting to re-state information the game already has. There is already a definition of <BuildType>BUILD_REMOVE_JUNGLE</BuildType> so you have to use an <Update> structure instead of a <Row> structure.
But because all of the "Builds" shown in the spoiler remove jungle, you need to not only <Update> the <BuildType>BUILD_REMOVE_JUNGLE</BuildType> you need to <Update> the others as well:
Spoiler :
Code:
<GameData>
	<BuildFeatures>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_ARCHAEOLOGY_DIG" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_FEITORIA" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_CHATEAU" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_FARM" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_MINE" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_PASTURE" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_PLANTATION" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_QUARRY" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_REMOVE_JUNGLE" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_LANDMARK" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_ACADEMY" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_CUSTOMS_HOUSE" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_MANUFACTORY" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_CITADEL" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_WELL" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_HOLY_SITE" FeatureType="FEATURE_JUNGLE"/>
		</Update>
	</BuildFeatures>
</GameData>
Alternative is to do as this:
  • I haven't actually tried this code but I do currently use the longer one show above, just with "20" instead of "7" for the production amount
  • I can't see any reason it will not both work and vastly simplify the required code
Code:
<GameData>
	<BuildFeatures>
		<Update>
			<Set Production="7"/>
			<Where FeatureType="FEATURE_JUNGLE"/>
		</Update>
	</BuildFeatures>
</GameData>
Also make sure you do not make this mistake, or nothing whatever will happen regardless of what you code:
Common Novice-Modder Mistakes -- "No Modbuddy Actions"
 
You have two basic errors:
  1. Common Novice-Modder Mistakes -- "USING <ROW>, <REPLACE>, OR <UPDATE> OUTSIDE OF TABLE WRAPS"
    • Your error is the very bottom one shown under "USING <ROW>, <REPLACE>, OR <UPDATE> OUTSIDE OF TABLE WRAPS"
  2. Common Novice-Modder Mistakes -- "NOT USING <UPDATES> AND INSTEAD RE-STATING THE <ROW> WITH CHANGES"
    • You are attempting to re-state information the game already has. There is already a definition of <BuildType>BUILD_REMOVE_JUNGLE</BuildType> so you have to use an <Update> structure instead of a <Row> structure.
But because all of the "Builds" shown in the spoiler remove jungle, you need to not only <Update> the <BuildType>BUILD_REMOVE_JUNGLE</BuildType> you need to <Update> the others as well:

Thanks for the reply.

I hadn't seen the thread about common mistakes, so thanks for the links.

I copied the long code you posted, but the mod still didn't work. I tried it with my current game and also in a new game.

This is the entire XML file of my mod:

Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 15/09/2015 15:09:42 -->
<GameData>
	<BuildFeatures>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_ARCHAEOLOGY_DIG" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_FEITORIA" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_CHATEAU" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_FARM" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_MINE" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_PASTURE" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_PLANTATION" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_QUARRY" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_REMOVE_JUNGLE" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_LANDMARK" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_ACADEMY" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_CUSTOMS_HOUSE" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_MANUFACTORY" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_CITADEL" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_WELL" FeatureType="FEATURE_JUNGLE"/>
		</Update>
		<Update>
			<Set Production="7"/>
			<Where BuildType="BUILD_HOLY_SITE" FeatureType="FEATURE_JUNGLE"/>
		</Update>
	</BuildFeatures>
</GameData>

"Production", "BuildType" and "FeatureType" are all highlighted red. Should I have included table definitions at the start?


Moderator Action: I've moved the thread to the main Creation and Customisation forum; it's not a lua/sdk question, more of a general modding one. It fits better there and you're likely to get a wider response.
Please read the forum rules: http://forums.civfanatics.com/showthread.php?t=422889

Sorry about that. I did look through several forums to see where I should I ask. I thought I had the right one. I obviously didn't. :)
 
"Production", "BuildType" and "FeatureType" are all highlighted red.
Not sure what you mean by the part I highlighted. Unless you mean when you look at the code within modbuddy. That is merely the way ModBuddy shows the difference between column names and data when you are doing an <Update>.
Should I have included table definitions at the start?
No. Never include table definitions.

Check the link called Common Novice-Modder Mistakes -- "No Modbuddy Actions" towards the bottom of my original post. Also be sure you are not forgetting this: Common Novice-Modder Mistakes -- "No Build of Mod". When you make changes to the mod in ModBuddy you need to re-build the mod in order to get the changes to be applied to the mod in the game's MODS menu.

I know the code shown in the long spoiler works because I am using it at the moment.
 
Not sure what you mean by the part I highlighted. Unless you mean when you look at the code within modbuddy. That is merely the way ModBuddy shows the difference between column names and data when you are doing an <Update>.
No. Never include table definitions.

Check the link called Common Novice-Modder Mistakes -- "No Modbuddy Actions" towards the bottom of my original post. Also be sure you are not forgetting this: Common Novice-Modder Mistakes -- "No Build of Mod". When you make changes to the mod in ModBuddy you need to re-build the mod in order to get the changes to be applied to the mod in the game's MODS menu.

I know the code shown in the long spoiler works because I am using it at the moment.

The red highlighting was in ModBuddy. I just thought red was bad. Probably ingrained in me from school.

I looked at the Actions section. I already had the correct ones. I have been building the mod aswell. I have some experience with Visual Studio.

It still isn't working. I deleted everything from the first attempt and restarted, even using different names. I enable the mod in the game, click next, and load up my save. Nothing.

I have another mod (Enhanced User Interface), and that worked without any issues.

I've also tried emptying the Cache folder, but that didn't make the mod work either.
 
Just to confirm, you are doing as this after you enable and click "NEXT" in the MODS menu?
  1. After "Configuring Data" is done. Your screen may have a slightly different color-scheme if you have Vanilla or Gods&Kings because I have BNW. Plus in that screenshot I had a rather long list of mods enabled.
  2. SINGLE PLAYER highlighted.
    Spoiler :

    Clicking SINGLE PLAYER takes you to #3:
  3. SET UP GAME highlighted. If you have a modded game already saved that uses the same list of enabled mods, you can choose LOAD GAME at this point and go into the load-game menu.
    Spoiler :

    Clicking SET UP GAME takes you to #4:
  4. MODDED GAME SET-UP menu
    Spoiler :
If you click BACK at any point in the process, then you are not using mods, and no changes from any mods will be applied, regardless of whether they are "checked" as being enabled.
 
I have another mod (Enhanced User Interface), and that worked without any issues.
As a follow-on to LeeS's point, Enhanced UI is a fake DLC, so it's in its own category, and not the same kind of mod you're creating.
 
Just to confirm, you are doing as this after you enable and click "NEXT" in the MODS menu?
  1. After "Configuring Data" is done. Your screen may have a slightly different color-scheme if you have Vanilla or Gods&Kings because I have BNW. Plus in that screenshot I had a rather long list of mods enabled.
  2. SINGLE PLAYER highlighted.
    Spoiler :

    Clicking SINGLE PLAYER takes you to #3:
  3. SET UP GAME highlighted. If you have a modded game already saved that uses the same list of enabled mods, you can choose LOAD GAME at this point and go into the load-game menu.
    Spoiler :

    Clicking SET UP GAME takes you to #4:
  4. MODDED GAME SET-UP menu
    Spoiler :
If you click BACK at any point in the process, then you are not using mods, and no changes from any mods will be applied, regardless of whether they are "checked" as being enabled.

Yep. I've done all of that, both with a new game and a pre-existing one. I've got all of the DLC and expansions.


As a follow-on to LeeS's point, Enhanced UI is a fake DLC, so it's in its own category, and not the same kind of mod you're creating.

Oh. Well, I've also tried the Really Advanced Setup mod, which does have to be activated from the mod menu, and that works.

Maybe the project is setup incorrectly. Or the SDK. It could be something before I even start entering code. I'll have another look when I get chance.

I appreciate you both helping me with this. :)
 

Attachments

  • Jungles give Production (v 1).zip
    1.3 KB · Views: 22
I thought I'd try making a different mod. I followed this Youtube tutorial exactly as shown, but that didn't work either.

I've attached my Remove Jungle mod, though it's mostly you're work. :D
Ignore that video. He is giving advice that is out of date. See the original date of that video.
 
That's strange. I definitely put the actions in, but they didn't save.

I've edited the file I attached and made sure the actions saved. It still doesn't work. I've tried it twice.
 
I've edited the file I attached and made sure the actions saved. It still doesn't work. I've tried it twice.
Are you sure you built it? If so, attach the new one so we can see if there's a different problem.
 
I definitely built all of them. I've built using the Build>Build Solution method and by clicking on the Start Debugging button.

I've attached the latest version.

Is it possible that the SDK is set up incorrectly, despite it allowing me to "create" mods?

I should add that I've enabled logging and followed the instructions for spotting problems with mods. I've noticed 2 differences between the logs with and without my mod enabled.

One difference is that the numbers in square brackets change (I'm assuming they're timecodes). The other is that without my mod enabled, I get 2 "Validating Game Database" sections in the XML log. With my mod enabled I get 3. It's a similar pattern with the Database log.

Spoiler :
Code:
[15536.794] **** Validating Game Database *****
[15538.105] Performing Localization Checks
[15538.105] Checking Tag Format...
[15538.105] Note: Tags must only use [A-Z_] characters, start with 'TXT_KEY_', and be under 128 characters long.
[15538.120] Validating UnitGameplay2DScripts
[15538.120] Missing Entry for UNIT_BARBARIAN_HORSEMAN
[15538.120] **** VALIDATION FAILED *****
[15538.120] Validation Took 1.325221 seconds
[15538.448] **** Validating Prefetch Process *****
[15538.448] **** Validation Success *****
[15538.448] SetGlobalActionInfo
[15538.448] 
-- SQLite Memory Statistics --
Memory Usage:
		[Cur]		[Max]
Malloc:		6219240		31626656
PageCache:	6		12
LookAside:	0		0
Scratch:	0		1

Static Buffer Overflows:
		[TooLarge]	[NoSpace]
PageCache:	5802384		26401200
Scratch:	0		0

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

Prepared Statements:
Current:		6
 

Attachments

  • Jungles give Production (v 1) NEW.zip
    1.4 KB · Views: 27
I'll ask the obvious questions

1) Where did you zip that mod up from? Was it directly under the MODS sub-directory, or from somewhere else? If the latter, then yes, ModBuddy is set up wrong
2) Are you starting a game from the Single Player option AFTER the Mods Browser screen?
3) What's in the logs? (I'm assuming you've enabled logging!) Specifically the database.log and stopwatch.log files (the latter should have an entry for loading the JungleProd.xml file)
 
You "ninja"ed me. :D

I'll ask the obvious questions

1) Where did you zip that mod up from? Was it directly under the MODS sub-directory, or from somewhere else? If the latter, then yes, ModBuddy is set up wrong
2) Are you starting a game from the Single Player option AFTER the Mods Browser screen?
3) What's in the logs? (I'm assuming you've enabled logging!) Specifically the database.log and stopwatch.log files (the latter should have an entry for loading the JungleProd.xml file)

1) It was from the MODS folder in the Documents area. That's where the SDK sends my attempts when I build them.

2) I am starting the game after the mod selection screen. I get a message saying game files are being configured. Then I get 2 options; Set up game and Load game.

3) I mentioned the XML and database logs above. I didn't know about stopwatch. There is a difference, but I can't see any error messages.

stopwatch (without my mod):
Spoiler :
Code:
[17634.555] , Discovering Base Game Map Scripts, 0.000982
[17635.304] , CreateCoreDatabase, 0.742299
[17635.507] , 	cvAudioManager::LoadExtraContentScripts, 0.104327
[17635.507] , cvAudioSystem::Startup, 0.104356
[17635.632] , DISCOVERING MODS, 0.003734
[17635.632] , 	Generate BaseGame Loc Database., 0.001483
[17635.647] , 		Get Package Files, 0.002740
[17635.647] , 		Generate Specific DLC Database, 0.000854
[17635.647] , 		Get Package Files, 0.004762
[17635.647] , 		Generate Specific DLC Database, 0.000890
[17635.647] , 		Get Package Files, 0.003438
[17635.647] , 		Generate Specific DLC Database, 0.000837
[17635.663] , 		Get Package Files, 0.003904
[17635.663] , 		Generate Specific DLC Database, 0.000932
[17635.663] , 		Get Package Files, 0.002934
[17635.663] , 		Generate Specific DLC Database, 0.000834
[17635.663] , 		Get Package Files, 0.002424
[17635.663] , 		Generate Specific DLC Database, 0.000763
[17635.663] , 		Get Package Files, 0.006080
[17635.663] , 		Generate Specific DLC Database, 0.001012
[17635.679] , 		Get Package Files, 0.001925
[17635.679] , 		Generate Specific DLC Database, 0.000780
[17635.679] , 		Get Package Files, 0.000002
[17635.679] , 		Get Package Files, 0.000001
[17635.679] , 		Get Package Files, 0.000001
[17635.710] , 		Get Package Files, 0.035853
[17635.710] , 		Generate Specific DLC Database, 0.001867
[17635.757] , 		Get Package Files, 0.044048
[17635.757] , 		Generate Specific DLC Database, 0.002060
[17635.757] , 		Get Package Files, 0.002061
[17635.757] , 		Generate Specific DLC Database, 0.000661
[17635.757] , 		Get Package Files, 0.000002
[17635.757] , 		Get Package Files, 0.000000
[17635.757] , 		Get Package Files, 0.000000
[17635.757] , 		Get Package Files, 0.000000
[17635.757] , 	Generate DLC Loc Databases., 0.122598
[17637.379] , 	CvLocalizationDatabaseFactory::GenerateMergedLocalizationDatabase(), 1.611850
[17637.379] , New Localization Code, 1.738371
[17637.785] , 	BeforeDeactivateMods - Release Database Cache, 0.000092
[17637.785] , 	BeforeDeactivateMods - Unload DLL, 0.000000
[17637.878] , 	AfterDeactivateMods - Reset filesystem, 0.000000
[17638.580] , 		LoadCoreDatabase - Detach Loc Database, 0.013531
[17638.580] , 		LoadCoreDatabase - Load Database, 0.007455
[17640.062] , 			CvLocalizationDatabaseFactory::GenerateMergedLocalizationDatabase(), 1.478783
[17640.452] , 		LoadCoreDatabase - Attach Loc Database, 1.867974
[17640.452] , 	AfterDeactivateMods - Rollback Database, 2.569703
[17640.561] , 		Load DLC into Game Database, 0.104250
[17640.561] , 	AfterDeactivateMods - Load DLC, 0.104280
[17640.561] , 		Discovering Base Game Map Scripts, 0.001094
[17641.139] , 		Parse Map Scripts, 0.585851
[17641.139] , 	Discover and Parse Base Game Map Scripts, 0.587003
[17641.139] , 		SetActiveDLCandMods - Import Mod Files into filesystem, 0.000367
[17641.139] , 		SetActiveDLCandMods - Perform OnModActivated Actions, 0.000160
[17641.139] , 	SetActiveDLCandMods - Activate Mods, 0.000556
[17641.544] , 	SetActiveDLCandMods - Notify Localization Database Updated, 0.393092
[17641.653] , Ensure All Tables with 'ID' column start at 0, 0.005275
[17642.948] , Validate FK Constraints, 1.293862
[17642.979] , Localization Checks, 0.021671
[17642.979] , Validating UnitGameplay2DScripts, 0.000123
[17643.307] , 	SetActiveDLCandMods - Reload GameCore DLL, 1.763470
[17643.323] , 	SetActiveDLCandMods - Refresh include() file list, 0.014634
[17643.323] , 	SetActiveDLCandMods - Refresh Gameplay DLL Data, 0.000000
[17643.323] , 	SetActiveDLCandMods - Perform Gameplay Database Post Processing, 0.000991
[17643.323] , Ensure All Tables with 'ID' column start at 0, 0.005186
[17644.617] , Validate FK Constraints, 1.297473
[17644.649] , Localization Checks, 0.022169
[17644.649] , Validating UnitGameplay2DScripts, 0.000120
[17644.961] , 	SetActiveDLCandMods - Cache Game Database Data, 1.638448
[17644.961] , 	SetActiveDLCandMods - Rescan Localized Audio, 0.000108
[17645.585] , SetActiveDLCandMods, 7.792768
[17649.344] , LoadUnitLibraries via Database, 3.736852
[17654.851] , Discovering Base Game Maps, 0.001331
[17654.882] , (Lua) Modding.CanEnableMod, 0.000199
[17654.882] , (Lua) Modding.CanEnableMod, 0.000141
[17654.898] , Discovering Base Game Maps, 0.001407
[17654.929] , Discovering Base Game Maps, 0.001358
[17656.505] , (Lua) Modding.CanEnableMod, 0.000215
[17658.174] , (Lua) Modding.CanEnableMod, 0.000492
[17662.667] , 		ActivateModsAndDLCForEnabledMods - Get Enabled Mods, 0.000064
[17662.667] , 	ActivateModsAndDLCForEnabledMods, 0.000335
[17662.667] , ActivateEnabledMods, 0.000351
[17662.667] , (Lua) AllEnabledModsContainPropertyValue, 0.000155
[17662.667] , (Lua) AllEnabledModsContainPropertyValue, 0.000117
[17669.328] , CvMapGenerator - GetMapInitData(), 0.000001
[17670.155] , CvMapGenerator - GenerateRandomMap(), 0.787950
[17670.155] , CvMapGenerator - GetGameInitialItemsOverrides(), 0.000001

stopwatch (with my mod):
Spoiler :
Code:
[16423.239] , Discovering Base Game Map Scripts, 0.000990
[16423.941] , CreateCoreDatabase, 0.700683
[16424.144] , 	cvAudioManager::LoadExtraContentScripts, 0.100183
[16424.144] , cvAudioSystem::Startup, 0.100214
[16424.721] , DISCOVERING MODS, 0.475783
[16424.736] , 	Generate BaseGame Loc Database., 0.001450
[16424.736] , 		Get Package Files, 0.002794
[16424.736] , 		Generate Specific DLC Database, 0.000858
[16424.752] , 		Get Package Files, 0.005140
[16424.752] , 		Generate Specific DLC Database, 0.000843
[16424.752] , 		Get Package Files, 0.003498
[16424.752] , 		Generate Specific DLC Database, 0.000777
[16424.752] , 		Get Package Files, 0.003634
[16424.752] , 		Generate Specific DLC Database, 0.000853
[16424.752] , 		Get Package Files, 0.002795
[16424.752] , 		Generate Specific DLC Database, 0.000769
[16424.768] , 		Get Package Files, 0.002163
[16424.768] , 		Generate Specific DLC Database, 0.000694
[16424.768] , 		Get Package Files, 0.006384
[16424.768] , 		Generate Specific DLC Database, 0.001019
[16424.768] , 		Get Package Files, 0.001934
[16424.768] , 		Generate Specific DLC Database, 0.000762
[16424.768] , 		Get Package Files, 0.000002
[16424.768] , 		Get Package Files, 0.000001
[16424.768] , 		Get Package Files, 0.000001
[16424.799] , 		Get Package Files, 0.034154
[16424.814] , 		Generate Specific DLC Database, 0.001727
[16424.846] , 		Get Package Files, 0.043664
[16424.846] , 		Generate Specific DLC Database, 0.002110
[16424.861] , 		Get Package Files, 0.002075
[16424.861] , 		Generate Specific DLC Database, 0.000642
[16424.861] , 		Get Package Files, 0.000002
[16424.861] , 		Get Package Files, 0.000000
[16424.861] , 		Get Package Files, 0.000000
[16424.861] , 		Get Package Files, 0.000000
[16424.861] , 	Generate DLC Loc Databases., 0.120189
[16426.686] , 	CvLocalizationDatabaseFactory::GenerateMergedLocalizationDatabase(), 1.834402
[16426.686] , New Localization Code, 1.958503
[16427.123] , 	BeforeDeactivateMods - Release Database Cache, 0.000081
[16427.123] , 	BeforeDeactivateMods - Unload DLL, 0.000000
[16427.201] , 	AfterDeactivateMods - Reset filesystem, 0.000000
[16427.966] , 		LoadCoreDatabase - Detach Loc Database, 0.013641
[16427.981] , 		LoadCoreDatabase - Load Database, 0.007167
[16429.572] , 			CvLocalizationDatabaseFactory::GenerateMergedLocalizationDatabase(), 1.590971
[16429.978] , 		LoadCoreDatabase - Attach Loc Database, 2.005926
[16429.978] , 	AfterDeactivateMods - Rollback Database, 2.781450
[16430.087] , 		Load DLC into Game Database, 0.105226
[16430.087] , 	AfterDeactivateMods - Load DLC, 0.105251
[16430.087] , 		Discovering Base Game Map Scripts, 0.001091
[16430.680] , 		Parse Map Scripts, 0.590797
[16430.680] , 	Discover and Parse Base Game Map Scripts, 0.591953
[16430.680] , 		SetActiveDLCandMods - Import Mod Files into filesystem, 0.000631
[16430.680] , 		SetActiveDLCandMods - Perform OnModActivated Actions, 0.000166
[16430.680] , 	SetActiveDLCandMods - Activate Mods, 0.000827
[16431.086] , 	SetActiveDLCandMods - Notify Localization Database Updated, 0.406192
[16431.226] , Ensure All Tables with 'ID' column start at 0, 0.006506
[16432.505] , Validate FK Constraints, 1.290449
[16432.536] , Localization Checks, 0.023920
[16432.536] , Validating UnitGameplay2DScripts, 0.000176
[16432.880] , 	SetActiveDLCandMods - Reload GameCore DLL, 1.794404
[16432.895] , 	SetActiveDLCandMods - Refresh include() file list, 0.014825
[16432.895] , 	SetActiveDLCandMods - Refresh Gameplay DLL Data, 0.000000
[16432.895] , 	SetActiveDLCandMods - Perform Gameplay Database Post Processing, 0.000995
[16432.895] , Ensure All Tables with 'ID' column start at 0, 0.005118
[16434.190] , Validate FK Constraints, 1.286059
[16434.206] , Localization Checks, 0.021745
[16434.206] , Validating UnitGameplay2DScripts, 0.000122
[16434.518] , 	SetActiveDLCandMods - Cache Game Database Data, 1.625547
[16434.518] , 	SetActiveDLCandMods - Rescan Localized Audio, 0.000109
[16435.001] , SetActiveDLCandMods, 7.885471
[16438.932] , LoadUnitLibraries via Database, 3.901563
[16444.470] , Discovering Base Game Maps, 0.001383
[16444.486] , (Lua) Modding.CanEnableMod, 0.000181
[16444.486] , (Lua) Modding.CanEnableMod, 0.000166
[16444.517] , Discovering Base Game Maps, 0.001341
[16444.548] , Discovering Base Game Maps, 0.001358
[16446.374] , (Lua) Modding.CanEnableMod, 0.000446
[16447.497] , (Lua) Modding.CanEnableMod, 0.000265
[16448.417] , 		ActivateModsAndDLCForEnabledMods - Get Enabled Mods, 0.000070
[16448.573] , 				SetActiveDLCandMods - Import Mod Files into filesystem, 0.000594
[16448.573] , 					Update Database - XML/JungleProd.xml, 0.000482
[16448.573] , 				SetActiveDLCandMods - Perform OnModActivated Actions, 0.000822
[16448.573] , 			SetActiveDLCandMods - Activate Mods, 0.102022
[16448.979] , 			SetActiveDLCandMods - Notify Localization Database Updated, 0.400453
[16448.979] , 			SetActiveDLCandMods - Reload GameCore DLL, 0.000470
[16448.995] , 			SetActiveDLCandMods - Refresh include() file list, 0.015488
[16448.995] , 			SetActiveDLCandMods - Refresh Gameplay DLL Data, 0.000000
[16448.995] , 			SetActiveDLCandMods - Perform Gameplay Database Post Processing, 0.000997
[16448.995] , Ensure All Tables with 'ID' column start at 0, 0.005125
[16450.289] , Validate FK Constraints, 1.292211
[16450.321] , Localization Checks, 0.021894
[16450.321] , Validating UnitGameplay2DScripts, 0.000122
[16450.633] , 			SetActiveDLCandMods - Cache Game Database Data, 1.633204
[16450.633] , 			SetActiveDLCandMods - Rescan Localized Audio, 0.000112
[16450.633] , 				Discovering Modder Map Scripts, 0.000130
[16450.633] , 				Parse Map Scripts, 0.003421
[16450.633] , 			SetActiveDLCandMods - Parse Map Scripts, 0.003585
[16451.054] , 		SetActiveDLCandMods, 2.642445
[16451.054] , 	ActivateModsAndDLCForEnabledMods, 2.642955
[16451.054] , ActivateEnabledMods, 2.642969
[16451.054] , (Lua) AllEnabledModsContainPropertyValue, 0.000251
[16451.054] , (Lua) AllEnabledModsContainPropertyValue, 0.000213
[16454.252] , (Lua) CanLoadSavedGame, 0.000441
[16454.252] , (Lua) GetSavedGameRequirements, 0.000442
[16454.969] , 	BeforeDeactivateMods - Release Database Cache, 0.002372
[16454.969] , 	BeforeDeactivateMods - Unload DLL, 0.000549
[16455.063] , 	AfterDeactivateMods - Reset filesystem, 0.000230
[16455.781] , 		LoadCoreDatabase - Detach Loc Database, 0.013605
[16455.781] , 		LoadCoreDatabase - Load Database, 0.007362
[16455.796] , 			CvLocalizationDatabaseFactory::GenerateMergedLocalizationDatabase(), 0.000931
[16456.186] , 		LoadCoreDatabase - Attach Loc Database, 0.395669
[16456.186] , 	AfterDeactivateMods - Rollback Database, 1.121243
[16456.295] , 		Load DLC into Game Database, 0.104570
[16456.295] , 	AfterDeactivateMods - Load DLC, 0.104595
[16456.295] , 		Discovering Base Game Map Scripts, 0.001048
[16456.873] , 		Parse Map Scripts, 0.576061
[16456.873] , 	Discover and Parse Base Game Map Scripts, 0.577188
[16456.873] , 		SetActiveDLCandMods - Import Mod Files into filesystem, 0.000365
[16456.873] , 		SetActiveDLCandMods - Perform OnModActivated Actions, 0.000220
[16456.873] , 	SetActiveDLCandMods - Activate Mods, 0.000631
[16457.263] , 	SetActiveDLCandMods - Notify Localization Database Updated, 0.403311
[16457.263] , 	SetActiveDLCandMods - Reload GameCore DLL, 0.000352
[16457.278] , 	SetActiveDLCandMods - Refresh include() file list, 0.014646
[16457.278] , 	SetActiveDLCandMods - Refresh Gameplay DLL Data, 0.000000
[16457.294] , 	SetActiveDLCandMods - Perform Gameplay Database Post Processing, 0.001039
[16457.294] , Ensure All Tables with 'ID' column start at 0, 0.005235
[16458.573] , Validate FK Constraints, 1.284459
[16458.604] , Localization Checks, 0.021735
[16458.604] , Validating UnitGameplay2DScripts, 0.000133
[16458.916] , 	SetActiveDLCandMods - Cache Game Database Data, 1.630293
[16458.916] , 	SetActiveDLCandMods - Rescan Localized Audio, 0.000125
[16459.306] , SetActiveDLCandMods, 4.416796
[16463.409] , Discovering Base Game Maps, 0.001353
[16463.440] , (Lua) Modding.CanEnableMod, 0.000209
[16463.440] , (Lua) Modding.CanEnableMod, 0.000224
[16463.456] , Discovering Base Game Maps, 0.001375
[16463.487] , Discovering Base Game Maps, 0.001313

I've got all DLC active, and the only other mod I'm using is Enhanced User Interface.
 
The mod as you have created it works just fine for me as you wanted it to.
  1. Is the mod showing as an enable-able mod in the MODS menu for you?
  2. Are you ticking the little button to the side of the mod-name in the MODS menu to actually enable the mod during play?
    Spoiler :
  3. Are you clicking "NEXT" at the lower-left of the MODS menu after you enable the mod?
  4. At any point whatsoever are you clicking any "BACK" buttons after you get to the MODS menu and trying to load/start-new game from within the normal "SINGLE PLAYER" menu?
 
I'm assuming they're timecodes
Correct, IIRC seconds and milliseconds since midnight on your machine

I didn't know about stopwatch. There is a difference, but I can't see any error messages.

You won't see any errors in stopwatch.log, but it is a very useful way to prove that a file in a mod is at least being read/processed, specifically this line in the case of your mod

Code:
[16448.573] , 					Update Database - XML/JungleProd.xml, 0.000482
 
Top Bottom