I'm new to modding civ and I need a little help

Lirys

Chieftain
Joined
Sep 28, 2020
Messages
8
Location
Philippines
Hey, I'm new to modding civ and I really like the game.

I've been creating this mod for personal use and some of the modifiers doesn't seem to work. When I tested the mod out only a handful of the buildings had an effect.

Note: I'm really bad at coding so sorry for the bad code :D.
 

Attachments

I've fixed the problem! All I needed to do was add in a new dynamic modifier. For some reason the base modifier for adjusting plot yields were bugged
 
The correct ModifierType as found in table DynamicModifiers is:
Code:
ModifierType					CollectionType			EffectType
MODIFIER_CITY_PLOT_YIELDS_ADJUST_PLOT_YIELD	COLLECTION_CITY_PLOT_YIELDS	EFFECT_ADJUST_PLOT_YIELD
You were attempting to use a non-existant ModifierType: "MODIFIER_PLOT_CITY_YIELDS_ADJUST_PLOT_YIELD"
Code:
ModifierId,                          ModifierType
'LIRYS_MILL_HOUSE_FOOD',             'MODIFIER_PLOT_CITY_YIELDS_ADJUST_PLOT_YIELD'
'LIRYS_MILL_HOUSE_FARM_FOOD',        'MODIFIER_PLOT_CITY_YIELDS_ADJUST_PLOT_YIELD'
'LIRYS_MINE_MINOR_PRODUCTION',       'MODIFIER_PLOT_CITY_YIELDS_ADJUST_PLOT_YIELD'
'FORGE_RESOURCE_LIRYS',              'MODIFIER_PLOT_CITY_YIELDS_ADJUST_PLOT_YIELD'
But here you were using the correct ModifierType
Code:
ModifierId,                          ModifierType
'GROCER_FARM_FOOD',                  'MODIFIER_CITY_PLOT_YIELDS_ADJUST_PLOT_YIELD'
You got no error in Database log because table "Modifiers" does not cause an error to occur when a reference to a non-existent "ModifierType" is found -- the game simply does nothing for that Modifier. Only references to invalid RequirementSets in columns "OwnerRequirementSetId" or "SubjectRequirementSetId" will cause errors to be created in Database.log when used in table "Modifiers".
 
Back
Top Bottom