Thanks for the reply, this is what the Database.log says:
________________________________________
[26602.710]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 5451576 7951208
PageCache: 5 9
LookAside: 0 0
Scratch: 0 1
Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 4938024 4943904
Scratch: 0 0
Largest Allocations:
Malloc: 130560
PageCache: 1176
Scratch: 5056
Prepared Statements:
Current: 10
------------------------------
[26603.178]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 5452872 7951208
PageCache: 5 9
LookAside: 0 0
Scratch: 0 1
Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 4939200 4943904
Scratch: 0 0
Largest Allocations:
Malloc: 130560
PageCache: 1176
Scratch: 5056
Prepared Statements:
Current: 10
------------------------------
[26621.383] table Buildings already exists
[26621.383] In XMLSerializer while building table Buildings from file assets/Gameplay/XML/Buildings/CivBEBuildings.xml.
[26621.383] table GameSpeeds already exists
[26621.383] In XMLSerializer while building table GameSpeeds from file assets/Gameplay/XML/GameInfo/CivBEGameSpeeds.xml.
[26621.383] UNIQUE constraint failed: Leaders.Type
[26621.383] While executing - 'insert into Leaders('Type', 'Description', 'Civilopedia', 'ArtDefineTag', 'VictoryCompetitiveness', 'WonderCompetitiveness', 'Boldness', 'DiploBalance', 'WarmongerHate', 'CoopWillingness', 'Loyalty', 'Neediness', 'Forgiveness', 'Chattiness', 'Meanness') values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);'
[26621.383] In XMLSerializer while inserting row into table insert into Leaders('Type', 'Description', 'Civilopedia', 'ArtDefineTag', 'VictoryCompetitiveness', 'WonderCompetitiveness', 'Boldness', 'DiploBalance', 'WarmongerHate', 'CoopWillingness', 'Loyalty', 'Neediness', 'Forgiveness', 'Chattiness', 'Meanness') with values (LEADER_ALIEN, TXT_KEY_LEADER_ALIEN, TXT_KEY_LEADER_ALIEN_PEDIA, ART_DEF_LEADER_ALIEN, 0, 0, 5, 0, 1, 0, 0, 0, 0, 0, 0, ).
[26621.383] In XMLSerializer while updating table Leaders from file assets/Gameplay/XML/Leaders/CivBELeader_Alien.xml.
[26621.383] UNIQUE constraint failed: Leaders.Type
[26621.383] UNIQUE constraint failed: Defines.Name
[26621.383] While executing - 'insert into Defines('Name', 'Value') values (?, ?);'
[26621.383] In XMLSerializer while inserting row into table insert into Defines('Name', 'Value') with values (AI_ATTEMPT_RUSH_OVER_X_TURNS_TO_BUILD, 15, ).
[26621.383] In XMLSerializer while updating table Defines from file assets/Gameplay/XML/AI/GlobalAIDefines.xml.
[26621.383] UNIQUE constraint failed: Defines.Name
[26621.399] UNIQUE constraint failed: Defines.Name
[26621.399] While executing - 'insert into Defines('Name', 'Value') values (?, ?);'
[26621.399] In XMLSerializer while inserting row into table insert into Defines('Name', 'Value') with values (MC_GIFT_WEIGHT_THRESHOLD, 100, ).
[26621.399] In XMLSerializer while updating table Defines from file assets/Gameplay/XML/AI/GlobalDiplomacyAIDefines.xml.
[26621.399] UNIQUE constraint failed: Defines.Name
[26621.399] table CivilianAttackPriorities already exists
[26621.399] In XMLSerializer while building table CivilianAttackPriorities from file assets/Gameplay/XML/Units/CivBEUnits.xml.
[26621.399] table Defines already exists
[26621.399] In XMLSerializer while building table Defines from file assets/Gameplay/XML/GlobalDefines.xml.
[26622.428]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 5489992 7951208
PageCache: 6 10
LookAside: 0 0
Scratch: 0 1
Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 4942728 7290024
Scratch: 0 0
Largest Allocations:
Malloc: 130560
PageCache: 1176
Scratch: 5056
Prepared Statements:
Current: 17
------------------------------
[26642.599] no such column: RESOURCECLASS_ARTIFACT
[26642.599] In Query - select * from ResourceClasses where RESOURCECLASS_ARTIFACT
________________________________________
________________________________________
And the lua.log shows these lines which seem relevant:
Runtime Error: C:\Users\SMW\Documents\My Games\Sid Meier's Civilization Beyond Earth\MODS\BoogieMan's AI Mod (v 3)\assets\Gameplay\lua\Aliens.lua:22: attempt to index a nil value
stack traceback:
C:\Users\SMW\Documents\My Games\Sid Meier's Civilization Beyond Earth\MODS\BoogieMan's AI Mod (v 3)\assets\Gameplay\lua\Aliens.lua:22: in function '(main chunk)'
[C]: in function '(anonymous)'
Runtime Error: Error loading C:\Users\SMW\Documents\My Games\Sid Meier's Civilization Beyond Earth\MODS\BoogieMan's AI Mod (v 3)\assets\Gameplay\lua\Aliens.lua.
stack traceback:
I made vary minor changes to that file, just the unit type ratios of the overall percentage of population, and I ensured it still equals 100 as it did prior to my changes.. No idea what is wrong there.
________________________________________
If I make these changes directly to the game files (not with a mod) it all works fine.