I have a problem. I have followed the BUG modding guide and I get no warnings when starting the game. And logs show that my module is loaded fine.
But for some reason, my code in the NotSoGood.py onBuildingBuilt won't run. I haven't tested the others yet, but it seems the GameUtil function are working which are in the same module.
Could someone help me with this?
EDIT: Seems like neither does run my onLoadGame nor onUnitBuilt nor onCombatResult... Only some of them runs.
Spoiler :
13:12:43 DEBUG: BugConfig - loading mod file NotSoGood
13:12:43 DEBUG: BugInit - loading mod NotSoGood...
13:12:43 INFO : BugCore - creating uninitialized mod NotSoGood
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onLoadGame
load_module NotSoGood
13:12:43 DEBUG: BugEventManager - adding event 'LoadGame'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onGameStart
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onBeginPlayerTurn
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onCombatResult
13:12:43 DEBUG: BugEventManager - adding event 'CombatResult'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onBuildingBuilt
13:12:43 DEBUG: BugEventManager - adding event 'BuildingBuilt'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onProjectBuilt
13:12:43 DEBUG: BugEventManager - adding event 'ProjectBuilt'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onUnitBuilt
13:12:43 DEBUG: BugEventManager - adding event 'UnitBuilt'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onUnitPromoted
13:12:43 DEBUG: BugEventManager - adding event 'UnitPromoted'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onTechAcquired
13:12:43 DEBUG: BugEventManager - adding event 'TechAcquired'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onGoldenAge
13:12:43 DEBUG: BugEventManager - adding event 'GoldenAge'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onCityBuilt
13:12:43 DEBUG: BugEventManager - adding event 'CityBuilt'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onCityGrowth
13:12:43 DEBUG: BugEventManager - adding event 'CityGrowth'
13:12:43 DEBUG: BugUtil - looking up NotSoGood
13:12:43 DEBUG: BugGameUtils - registering NotSoGood
13:12:43 DEBUG: BugGameUtils - cannotMaintain - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - doPillageGold - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - cannotDoCivic - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - canMaintain - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - canDeclareWar - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - cannotTrain - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - doCityCaptureGold - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - getUpgradePriceOverride - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - cannotConstruct - adding NotSoGood handler
13:12:43 DEBUG: Timer - load mod [NotSoGood] took 77 ms
13:12:43 DEBUG: BugConfig - loading mod file NotSoGoodSettings
13:12:43 DEBUG: BugInit - loading mod NotSoGoodSettings...
13:12:43 INFO : BugCore - creating uninitialized mod NotSoGoodSettings
13:12:43 DEBUG: BugOptions - getNotSoGoodSettings will return IniFile NotSoGoodSettings
13:12:43 DEBUG: BugOptions - added option <NotSoGoodSettings__GoldForDispanding boolean [True]>
13:12:43 DEBUG: BugOptions - added option <NotSoGoodSettings__BetterAirInterception boolean [True]>
13:12:43 DEBUG: BugOptions - added option <NotSoGoodSettings__RangedBombard boolean [True]>
13:12:43 DEBUG: BugOptions - added option <NotSoGoodSettings__RouteAirBombing boolean [True]>
13:12:43 DEBUG: BugOptions - added option <NotSoGoodSettings__AIAlwaysWillingToNegotiate boolean [True]>
13:12:43 DEBUG: BugOptions - added option <NotSoGoodSettings__MaxUnitsPerTile int [0] list (7 ints)>
13:12:43 DEBUG: Timer - load mod [NotSoGoodSettings] took 31 ms
13:12:43 DEBUG: Timer - load mod [init] took 3592 ms
13:12:43 DEBUG: Timer - BUG init [read configs] took 3593 ms
13:12:43 DEBUG: BugInit - loading mod NotSoGood...
13:12:43 INFO : BugCore - creating uninitialized mod NotSoGood
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onLoadGame
load_module NotSoGood
13:12:43 DEBUG: BugEventManager - adding event 'LoadGame'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onGameStart
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onBeginPlayerTurn
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onCombatResult
13:12:43 DEBUG: BugEventManager - adding event 'CombatResult'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onBuildingBuilt
13:12:43 DEBUG: BugEventManager - adding event 'BuildingBuilt'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onProjectBuilt
13:12:43 DEBUG: BugEventManager - adding event 'ProjectBuilt'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onUnitBuilt
13:12:43 DEBUG: BugEventManager - adding event 'UnitBuilt'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onUnitPromoted
13:12:43 DEBUG: BugEventManager - adding event 'UnitPromoted'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onTechAcquired
13:12:43 DEBUG: BugEventManager - adding event 'TechAcquired'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onGoldenAge
13:12:43 DEBUG: BugEventManager - adding event 'GoldenAge'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onCityBuilt
13:12:43 DEBUG: BugEventManager - adding event 'CityBuilt'
13:12:43 DEBUG: BugUtil - looking up NotSoGood.onCityGrowth
13:12:43 DEBUG: BugEventManager - adding event 'CityGrowth'
13:12:43 DEBUG: BugUtil - looking up NotSoGood
13:12:43 DEBUG: BugGameUtils - registering NotSoGood
13:12:43 DEBUG: BugGameUtils - cannotMaintain - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - doPillageGold - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - cannotDoCivic - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - canMaintain - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - canDeclareWar - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - cannotTrain - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - doCityCaptureGold - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - getUpgradePriceOverride - adding NotSoGood handler
13:12:43 DEBUG: BugGameUtils - cannotConstruct - adding NotSoGood handler
13:12:43 DEBUG: Timer - load mod [NotSoGood] took 77 ms
13:12:43 DEBUG: BugConfig - loading mod file NotSoGoodSettings
13:12:43 DEBUG: BugInit - loading mod NotSoGoodSettings...
13:12:43 INFO : BugCore - creating uninitialized mod NotSoGoodSettings
13:12:43 DEBUG: BugOptions - getNotSoGoodSettings will return IniFile NotSoGoodSettings
13:12:43 DEBUG: BugOptions - added option <NotSoGoodSettings__GoldForDispanding boolean [True]>
13:12:43 DEBUG: BugOptions - added option <NotSoGoodSettings__BetterAirInterception boolean [True]>
13:12:43 DEBUG: BugOptions - added option <NotSoGoodSettings__RangedBombard boolean [True]>
13:12:43 DEBUG: BugOptions - added option <NotSoGoodSettings__RouteAirBombing boolean [True]>
13:12:43 DEBUG: BugOptions - added option <NotSoGoodSettings__AIAlwaysWillingToNegotiate boolean [True]>
13:12:43 DEBUG: BugOptions - added option <NotSoGoodSettings__MaxUnitsPerTile int [0] list (7 ints)>
13:12:43 DEBUG: Timer - load mod [NotSoGoodSettings] took 31 ms
13:12:43 DEBUG: Timer - load mod [init] took 3592 ms
13:12:43 DEBUG: Timer - BUG init [read configs] took 3593 ms
Could someone help me with this?
EDIT: Seems like neither does run my onLoadGame nor onUnitBuilt nor onCombatResult... Only some of them runs.