Hi, I'm super new to modding and have realized I am way over my head here.
I was following These mod creation videos by Keniisu, and since they are incomplete I decided to just try and work things out.
I am trying to create a custom civilization and leader, with unique units and abilities. The error seems to be in relation to the unique civilization ability, where I am trying to make the Lighthouse, Shipyard and Seaport to give additional production.
----------------------------------------------
The database.log errors:
as well as a BUNCH of these
-----------------------------------------------
For the first errors, I don't understand what's wrong, as to my (limited) knowledge everything looks right. This is an excerpt from my Civilization_UA.sql file:
The second error, the syntax one, I just don't understand at all since I am so unfamiliar with sql.
If I need to provide any more context or code please let me know!
Thanks in advance for any help!
I was following These mod creation videos by Keniisu, and since they are incomplete I decided to just try and work things out.
I am trying to create a custom civilization and leader, with unique units and abilities. The error seems to be in relation to the unique civilization ability, where I am trying to make the Lighthouse, Shipyard and Seaport to give additional production.
----------------------------------------------
The database.log errors:
Code:
[1957228.758] [Gameplay] ERROR: Invalid Reference on TraitModifiers.ModifierId - "MODIFIER_ULLIK_NORWAY_UA_LIGHTHOUSE_PRODUCTION" does not exist in Modifiers
[1957228.758] [Gameplay] ERROR: Invalid Reference on TraitModifiers.ModifierId - "MODIFIER_ULLIK_NORWAY_UA_SHIPYARD_PRODUCTION" does not exist in Modifiers
[1957228.758] [Gameplay] ERROR: Invalid Reference on TraitModifiers.ModifierId - "MODIFIER_ULLIK_NORWAY_UA_SEAPORT_PRODUCTION" does not exist in Modifiers
[1957228.772] [Gameplay]: Failed Validation.
as well as a BUNCH of these
Code:
[1957227.744] [Localization] ERROR: near "
": syntax error
For the first errors, I don't understand what's wrong, as to my (limited) knowledge everything looks right. This is an excerpt from my Civilization_UA.sql file:
Code:
---------------------------------------------------------
-- TraitModifiers
---------------------------------------------------------
INSERT INTO TraitModifiers
(TraitType, ModifierId )
VALUES ('TRAIT_CIVILIZATION_ULLIK_NORWAY_UA', 'MODIFIER_ULLIK_NORWAY_UA_LIGHTHOUSE_PRODUCTION' ),
('TRAIT_CIVILIZATION_ULLIK_NORWAY_UA', 'MODIFIER_ULLIK_NORWAY_UA_SHIPYARD_PRODUCTION' ),
('TRAIT_CIVILIZATION_ULLIK_NORWAY_UA', 'MODIFIER_ULLIK_NORWAY_UA_SEAPORT_PRODUCTION' );
---------------------------------------------------------
-- DynamicModifiers
---------------------------------------------------------
INSERT INTO DynamicModifiers
(ModifierType, CollectionType,
EffectType )
VALUES ('MODTYPE_ULLIK_NORWAY_UA_BUILDING_PRODUCTION',
'COLLECTION_PLAYER_CITIES', 'EFFECT_ADJUST_BUILDING_YIELD_CHANGE'
);
---------------------------------------------------------
-- Modifiers
---------------------------------------------------------
INSERT INTO Modifiers
(ModifierId, ModifierType, OwnerRequirementSetId, SubjectRequirementSetId, RunOnce, Permanent )
VALUES ('MODIFIER_ULLIK_NORWAY_UA_LIGHTHOUSE_PRODUCTION', 'MODTYPE_ULLIK_NORWAY_UA_BUILDING_PRODUCTION', NULL, NULL, 0, 0, ),
('MODIFIER_ULLIK_NORWAY_UA_SHIPYARD_PRODUCTION', 'MODTYPE_ULLIK_NORWAY_UA_BUILDING_PRODUCTION', NULL, NULL, 0, 0, ),
('MODIFIER_ULLIK_NORWAY_UA_SEAPORT_PRODUCTION', 'MODTYPE_ULLIK_NORWAY_UA_BUILDING_PRODUCTION', NULL, NULL, 0, 0, );
The second error, the syntax one, I just don't understand at all since I am so unfamiliar with sql.
If I need to provide any more context or code please let me know!
Thanks in advance for any help!