Game Refuses To Start

what is in file Database.log ?

Sounds like an error in your code is causing the game to discard portions of the mod, resulting in an invalid reference error which always will shove you back to the main menu when either starting a new game or reloading a save.

Syntax error here
Code:
INSERT INTO ModifierArguments
	(ModifierId,				Name,				Value)
VALUES	('TRAIT_DOUBLE_SCIENTIST_POINTS',	'GreatPersonClassType',		'GREAT_PERSON_CLASS_SCIENTIST'),
	('TRAIT_DOUBLE_SCIENTIST_POINTS',	'Amount',			100),
	('TRAIT_DOUBLE_ENGINEER_POINTS',	'GreatPersonClassType',		'GREAT_PERSON_CLASS_ENGINEER'),
	('TRAIT_DOUBLE_ENGINEER_POINTS',	'Amount',			100),
	('TRAIT_DOUBLE_ADMIRAL_POINTS',		'GreatPersonClassType',		'GREAT_PERSON_CLASS_ADMIRAL'),
	('TRAIT_DOUBLE_ADMIRAL_POINTS',		'Amount',			100),	
	('TRAIT_DOUBLE_PROPHET_POINTS',		'GreatPersonClassType',		'GREAT_PERSON_CLASS_PROPHET'),
	('TRAIT_DOUBLE_PROPHET_POINTS',		'Amount',			100),		
	('TRAIT_DOUBLE_GENERAL_POINTS',		'GreatPersonClassType',		'GREAT_PERSON_CLASS_GENERAL'),
	('TRAIT_DOUBLE_GENERAL_POINTS',		'Amount',			100),
You have a comma instead of a semi-colon terminating the last row of the insert. You may have other syntax errors in the same file or other files.
 
Last edited:
Hello again, LeeS,

I've fixed the semi-colon. Thank you, as always, for letting me know. There doesn't seem to be any other semi-colon related syntax errors that I could see.

I'm attaching the log for your inspection. Thank you very much.
 

Attachments

You have errors being reported for files that are not part of your mod.

Some mod that uses file names like IR_Units.xml is attempting to load InGame files into the <FrontEnd> database.

Plus these two lines are reporting an attempt to re-define a combnation of "Name" and "IconSize" within table "IconAtlasTextures" ("IconAtlasTextures" is a hidden table to which entries within "IconTextureAtlases" are sent by the game for actual in-game usage):
Code:
[356454.250] [Database] ERROR: UNIQUE constraint failed: IconAtlasTextures.Name, IconAtlasTextures.IconSize
[356454.250] [Database] ERROR: UNIQUE constraint failed: IconAtlasTextures.Name, IconAtlasTextures.IconSize
The error messages unfortunately do not tell you from which file the second occurance of the same info is being found.

--------------------------------------------

You need to disable all mods which are not 100% required for your mod to run properly because it appears you are fighting someones else's troubles.

-----------------------------------------------

The modifier you are attempting to define here is already a part of the base game. You cannot attempt to re-define it. This causes the game to cease reading anything further from the file and is probably the likely cause of the invalid reference error that then occurs for there being no such thing as "TRAIT_LEADER_JFD_SUTRA_ASOKA" being registered within the game.
Code:
INSERT INTO Types	
	(Type,							Kind)
VALUES	('TRAIT_LEADER_JFD_SUTRA_ASOKA',			'KIND_TRAIT'),	
	('MODIFIER_PLAYER_ADJUST_GREAT_PERSON_POINTS_PERCENT',	'KIND_MODIFIER');
This is the error for the invalid reference
Code:
[360134.707] [Gameplay] ERROR: Invalid Reference on LeaderTraits.TraitType - "TRAIT_LEADER_JFD_SUTRA_ASOKA" does not exist in Traits
Invalid reference errors always shove you back to the main menu.

-------------------------------------

Also your mod is showing as if it were JFD's China pack. You should go through your mod and replace all the "JFD" with something unique to you, and remove this description from your modinfo file.
 
And if you borrowed JFD's ModId# from one of his civ-packs you need to get a new and different number because this is not fair to JFD since if you publish this mod to Steam or wherever there will be two mods with the same ID# which the game will attempt to conflate into a single and corrupted mod if a user has both mods.
 
Yes, I see. The mod seems to be working now after I have disabled all the other mods I was using. I also removed the void bit that you mentioned, and it is now operational.

Thank you for the reminder to change the Mod ID. I have done so. I wasn't even planning to publish the mod on steam as it's for my own personal enjoyment, but regardless, good point, and thank you for all your help, LeeS.
 
Back
Top Bottom