Valkrionn
The Hamster King
What I had to do was take the FfH2 code, from the FfH2 Modders thread, and the code Xienwolf provided, and combine them. There's a new source code up for FfH2 though, so I don't know how well it works with FF code.
No such luck. I just tried that with the the new FFH2 code, and the same error happened. Thanks anyway, though.What I had to do was take the FfH2 code, from the FfH2 Modders thread, and the code Xienwolf provided, and combine them. There's a new source code up for FfH2 though, so I don't know how well it works with FF code.
I am pretty sure that what I linked in the first post should work, so if you downloaded it recently then I am just wrong. But if you downloaded a while ago, try getting it again (or if you didn't download at all).
For all future releases, everything you need to compile the code will be included, you just have to have the libraries set up on your machine so that you are capable of compiling any Civ code with your choice of Codeblocks or VS2008 Express (probably any VS though in actuality)
Do you use Codeblocks, or Visual Studio? I would imagine Codeblocks if you compiled FfH source, be certain that there is not a CyMapInterface.cpp file, and that there ARE CyMapInterface1.cpp & CyMapInterface2.cpp files when you open the project. Right now that is the major difference
Haha, no, I wrote it "math" in the file. I didn't paste the error message, so it's just a typo I did when typing my postChange match to math?
def spellWangoleOfBwoheshegu(caster):
pPlot = caster.plot()
iLevel = caster.getLevel()
iValue = math.ceil(iLevel / 4)
iValue = int(iValue)
CvUtil.pyPrint('Value = %d'
%(iValue))
for iUnit in range(pPlot.getNumUnits()):
pUnit = pPlot.getUnit(iUnit)
for i in range(iValue):
CvUtil.pyPrint('i = %d'
%(i))
iSfx = str(int(i) + 1)
pUnit.setHasPromotion(gc.getInfoTypeForString('PROMOTION_MOTIVATED' + iSfx), true)