Say, where's the Civ 4 Art Defines schema? It doesn't appear to be with the actual art defines files, and I need it for making my mod modular.
Check the base BtS files. If a file isn't changed by a mod, it's not distributed.
Edit: Apparently there was a new page I was unaware of.![]()
Does it mean that I should change the SDK for every new spell I make or that I should try and link the requirements in the XML to something already defined in the SDK like unit_class?Recommendations:
1. Try to block spells in SDK prereq functions whenever possible.
Keep in mind that every unit in the game checks to see which spells it can cast every turn. If a spell only uses a python function for requirements and you have 300 units in the game then that python functions will be run 300 times per turn. If you can put a limit in one of the SDK prereqs (lets say its limited to a specific unitclass) then even with the same python requirement check it will only occur for the units that meet the SDK conditions. This can dramatically effect performance when there are a lot of units on the map.
Sometimes its better to split spells into multiple spells if that allows you to apply SDK qualifiers, which is why the Create Den and Take Equipment spells were split into multiple spells.
OK. I found a tutorial here on using Visual Studio 2005, and it it's all correct except for the makefile link. I used the one found here - http://forums.civfanatics.com/showpost.php?p=8191788&postcount=323|
Once I made sure the paths were set correctly for my system, the build went off smoothly!
And it works with professional as well? Just checking.
for iiX in range(iX-2, iX+3, 1):
for iiY in range(iY-2, iY+3, 1):
bNeutral = false
iValue = 0
pPlot = CyMap().plot(iiX,iiY)
for i in range(pPlot.getNumUnits()):
pUnit = pPlot.getUnit(i)
if eTeam.isAtWar(pUnit.getTeam()):
iValue += 5 * pUnit.baseCombatStr()
else:
bNeutral = true
if (iValue > iBestValue and bNeutral == false):
iBestValue = iValue
pBestPlot = pPlot
if pBestPlot != -1:
--> actual spell effect begin here
That's what I'm using. 2005 Pro.
Can you tell me what this means? Because I am completely new in this.tesb: CIV4ProjectInfos.xml
PPQ: I'd use the DLL for it myself. And I imagine there would be quite a few places where you need to slip code in to block one approach to gaining the resource or another. Main issue will be finding all areas where the AI will react to the resource and ensuring that they don't see it as desirable.