How to heck if new policy is working?

Salmo

Chieftain
Joined
Oct 24, 2016
Messages
64
I have a new policy that increases city outer denfesive strength. It shows up in-game OK, but there appears to be an error in the database log. How can I check if the policy is working as intended? Policy mode HERE https://www.mediafire.com/?vgpo6btaavhm5qb

[3813911.599] [Localization]: Validating Foreign Key Constraints...
[3813911.600] [Localization]: Passed Validation.
[3813911.613] [Configuration]: Validating Foreign Key Constraints...
[3813911.613] [Configuration]: Passed Validation.
[3813924.135] [FullTextSearch]: Initializing FullTextSearch
[3813925.304] [Gameplay]: Validating Foreign Key Constraints...
[3813925.319] [Gameplay]: Passed Validation.
[3813926.668] [Configuration] ERROR: near "DELETE": syntax error
[3813926.668] [Configuration]: Validating Foreign Key Constraints...
[3813926.669] [Configuration]: Passed Validation.
[3813944.552] [FullTextSearch]: FTS - Creating Context
[3813966.454] [Localization] ERROR: NOT NULL constraint failed: LocalizedText.Language
[3813966.454] [Localization]: While executing - 'insert or replace into LocalizedText('Tag', 'Text') values (?, ?);'
[3813966.454] [Localization]: In XMLSerializer while inserting row into table insert or replace into LocalizedText('Tag', 'Text') with values (LOC_HUD_NATURALIST_LENS, Naturaliste, ).
[3813966.454] [Localization]: In XMLSerializer while updating table LocalizedText from file MoreLenses_Text.xml.
[3813966.454] [Localization] ERROR: NOT NULL constraint failed: LocalizedText.Language
[3813966.459] [Gameplay] ERROR: Database::XMLSerializer (NewPolicy_GameInfo.xml): 'Row' or 'Delete' expected, got 'ModifierArguments'.
[3813966.459] [Gameplay]: In XMLSerializer while updating table ModifierArguments from file NewPolicy_GameInfo.xml.

[3813966.510] [Gameplay]: Validating Foreign Key Constraints...
[3813966.527] [Gameplay]: Passed Validation.
[3813981.186] [FullTextSearch]: FTS - Creating Context
[3813983.067] [FullTextSearch]: FTS - Creating Context
[3813986.325] [FullTextSearch]: FTS - Creating Context
[3814592.315] [FullTextSearch]: FullTextSearch - Shutting down
 
File NewPolicy_GameInfo.xml. You have a table-name within a table-name:
Code:
<GameInfo>
	<!-- Provide the required arguments to the modifier. -->
	<ModifierArguments>
		<ModifierArguments>
			<Row>
				<ModifierId>POLICY_STOCKADES_MODIFIER</ModifierId>
				<Name>Amount</Name>
				<Value>3</Value>
			</Row>
		</ModifierArguments>
	</ModifierArguments>
</GameInfo>
The other errors being reported appear to be coming from other mods. When verifying your mod has no errors in it, do not run other mods unless these other mods are 100% required in order for your mod to operate correctly.
 
Thankyou again LeeS. I adjusted the XML's as here. Database log file (without any other mods active) is below:

[3942407.134] [Localization]: Validating Foreign Key Constraints...
[3942407.135] [Localization]: Passed Validation.
[3942407.149] [Configuration]: Validating Foreign Key Constraints...
[3942407.149] [Configuration]: Passed Validation.
[3942419.655] [FullTextSearch]: Initializing FullTextSearch
[3942420.661] [Gameplay]: Validating Foreign Key Constraints...
[3942420.676] [Gameplay]: Passed Validation.
[3942421.970] [Configuration] ERROR: no such table: BuidingPrereqs
[3942421.970] [Configuration]: Validating Foreign Key Constraints...
[3942421.971] [Configuration]: Passed Validation.
[3942440.480] [FullTextSearch]: FTS - Creating Context
[3942445.310] [FullTextSearch]: FTS - Creating Context
[3942484.547] [Configuration] ERROR: no such table: BuidingPrereqs
[3942484.547] [Configuration]: Validating Foreign Key Constraints...
[3942484.548] [Configuration]: Passed Validation.
[3942489.460] [Configuration] ERROR: no such table: BuidingPrereqs
[3942489.460] [Configuration]: Validating Foreign Key Constraints...
[3942489.461] [Configuration]: Passed Validation.
[3942491.402] [Configuration] ERROR: no such table: BuidingPrereqs
[3942491.402] [Configuration]: Validating Foreign Key Constraints...
[3942491.402] [Configuration]: Passed Validation.
[3942503.725] [Configuration] ERROR: no such table: BuidingPrereqs
[3942503.725] [Configuration]: Validating Foreign Key Constraints...
[3942503.726] [Configuration]: Passed Validation.
[3942508.739] [Configuration]: Validating Foreign Key Constraints...
[3942508.740] [Configuration]: Passed Validation.
[3942517.370] [Configuration]: Validating Foreign Key Constraints...
[3942517.370] [Configuration]: Passed Validation.
[3942527.849] [Configuration]: Validating Foreign Key Constraints...
[3942527.849] [Configuration]: Passed Validation.
[3942537.658] [Configuration]: Validating Foreign Key Constraints...
[3942537.659] [Configuration]: Passed Validation.
[3942545.655] [Configuration]: Validating Foreign Key Constraints...
[3942545.655] [Configuration]: Passed Validation.
[3942556.811] [Configuration]: Validating Foreign Key Constraints...
[3942556.812] [Configuration]: Passed Validation.
[3942614.634] [Gameplay]: Validating Foreign Key Constraints...
[3942614.650] [Gameplay]: Passed Validation.
[3942623.670] [FullTextSearch]: FTS - Creating Context
[3942624.395] [FullTextSearch]: FTS - Creating Context
[3942626.497] [FullTextSearch]: FTS - Creating Context
[3942680.316] [FullTextSearch]: FullTextSearch - Shutting down
 
Back
Top Bottom