Hello, not getting this to work. Using the code from here:
http://sourceforge.net/apps/mediawiki/civ4bug/index.php?title=Tutorial:_Complete_Code
but I renamed LuckyCharms to Fundamentalism - no errors:
...
12:34:18 DEBUG: BugUtil - looking up BugCreditsOptionsTab.BugCreditsOptionsTab
load_module BugCreditsOptionsTab
12:34:18 DEBUG: BugConfig - loading mod file Fundamentalism
12:34:18 DEBUG: BugInit - loading mod Fundamentalism...
12:34:18 INFO : BugCore - creating uninitialized mod Fundamentalism
12:34:18 DEBUG: BugOptions - getFundamentalism will return IniFile Fundamentalism
12:34:18 DEBUG: BugOptions - added option <Fundamentalism__Enabled boolean [True]>
12:34:18 DEBUG: BugOptions - added option <Fundamentalism__Leprechaun string [Larry]>
12:34:18 DEBUG: BugOptions - added option <Fundamentalism__MessageColor color [COLOR_YELLOW] list (0 colors)>
12:34:18 DEBUG: BugOptions - added option <Fundamentalism__FreeGoldAmount int [10] list (5 ints)>
12:34:18 DEBUG: BugOptions - added option <Fundamentalism__FreeGoldChance int [50] list (11 ints)>
12:34:18 DEBUG: BugUtil - looking up Fundamentalism.onBeginPlayerTurn
load_module Fundamentalism
12:34:18 DEBUG: BugUtil - looking up Fundamentalism
12:34:18 DEBUG: BugGameUtils - registering Fundamentalism
12:34:18 DEBUG: BugGameUtils - doCityCaptureGold - adding Fundamentalism listener
12:34:18 DEBUG: BugGameUtils - doPillageGold - adding Fundamentalism handler
12:34:18 DEBUG: Timer - load mod [Fundamentalism] took 3 ms
12:34:18 DEBUG: Timer - load mod [init] took 313 ms
12:34:18 DEBUG: Timer - BUG init [read configs] took 313 ms
12:34:18 DEBUG: BugInit - calling init functions...
12:34:18 DEBUG: BugDll - calling setIsBug()
load_module BugFinanceAdvisor
...
I'm running this in my mod which has been merged with Better AI/BUG - all works fine in my mod but this.
Fundamentalism.ini was created by BUG and looks like this:
# Fundamentalism
#
# Created by The BUG Mod.
[General]
# XML key TXT_KEY_BUG_OPT_FUNDAMENTALISM__ENABLED_HOVER not found
# Default: True
Fundamentalism__Enabled = True
# XML key TXT_KEY_BUG_OPT_FUNDAMENTALISM__LEPRECHAUN_HOVER not found
# Default: Larry
Fundamentalism__Leprechaun = Larry
# XML key TXT_KEY_BUG_OPT_FUNDAMENTALISM__MESSAGECOLOR_HOVER not found
# Default: COLOR_YELLOW
Message Color = COLOR_YELLOW
[Free Gold]
# XML key TXT_KEY_BUG_OPT_FUNDAMENTALISM__FREEGOLDAMOUNT_HOVER not found
# Default: 10
Amount = 10
# XML key TXT_KEY_BUG_OPT_FUNDAMENTALISM__FREEGOLDCHANCE_HOVER not found
# Default: 50
Chance = 50
http://sourceforge.net/apps/mediawiki/civ4bug/index.php?title=Tutorial:_Complete_Code
but I renamed LuckyCharms to Fundamentalism - no errors:
...
12:34:18 DEBUG: BugUtil - looking up BugCreditsOptionsTab.BugCreditsOptionsTab
load_module BugCreditsOptionsTab
12:34:18 DEBUG: BugConfig - loading mod file Fundamentalism
12:34:18 DEBUG: BugInit - loading mod Fundamentalism...
12:34:18 INFO : BugCore - creating uninitialized mod Fundamentalism
12:34:18 DEBUG: BugOptions - getFundamentalism will return IniFile Fundamentalism
12:34:18 DEBUG: BugOptions - added option <Fundamentalism__Enabled boolean [True]>
12:34:18 DEBUG: BugOptions - added option <Fundamentalism__Leprechaun string [Larry]>
12:34:18 DEBUG: BugOptions - added option <Fundamentalism__MessageColor color [COLOR_YELLOW] list (0 colors)>
12:34:18 DEBUG: BugOptions - added option <Fundamentalism__FreeGoldAmount int [10] list (5 ints)>
12:34:18 DEBUG: BugOptions - added option <Fundamentalism__FreeGoldChance int [50] list (11 ints)>
12:34:18 DEBUG: BugUtil - looking up Fundamentalism.onBeginPlayerTurn
load_module Fundamentalism
12:34:18 DEBUG: BugUtil - looking up Fundamentalism
12:34:18 DEBUG: BugGameUtils - registering Fundamentalism
12:34:18 DEBUG: BugGameUtils - doCityCaptureGold - adding Fundamentalism listener
12:34:18 DEBUG: BugGameUtils - doPillageGold - adding Fundamentalism handler
12:34:18 DEBUG: Timer - load mod [Fundamentalism] took 3 ms
12:34:18 DEBUG: Timer - load mod [init] took 313 ms
12:34:18 DEBUG: Timer - BUG init [read configs] took 313 ms
12:34:18 DEBUG: BugInit - calling init functions...
12:34:18 DEBUG: BugDll - calling setIsBug()
load_module BugFinanceAdvisor
...
I'm running this in my mod which has been merged with Better AI/BUG - all works fine in my mod but this.
Fundamentalism.ini was created by BUG and looks like this:
# Fundamentalism
#
# Created by The BUG Mod.
[General]
# XML key TXT_KEY_BUG_OPT_FUNDAMENTALISM__ENABLED_HOVER not found
# Default: True
Fundamentalism__Enabled = True
# XML key TXT_KEY_BUG_OPT_FUNDAMENTALISM__LEPRECHAUN_HOVER not found
# Default: Larry
Fundamentalism__Leprechaun = Larry
# XML key TXT_KEY_BUG_OPT_FUNDAMENTALISM__MESSAGECOLOR_HOVER not found
# Default: COLOR_YELLOW
Message Color = COLOR_YELLOW
[Free Gold]
# XML key TXT_KEY_BUG_OPT_FUNDAMENTALISM__FREEGOLDAMOUNT_HOVER not found
# Default: 10
Amount = 10
# XML key TXT_KEY_BUG_OPT_FUNDAMENTALISM__FREEGOLDCHANCE_HOVER not found
# Default: 50
Chance = 50