strategyonly
C2C Supreme Commander
@DH
can you do a Great Doctor and Great Diplomat in a modular form? strategy has those working in his.
You'd probably have to look at 004 or 005 to get them i think that is when i changed over to regular RoM?
@DH
can you do a Great Doctor and Great Diplomat in a modular form? strategy has those working in his.
@DH
can you do a Great Doctor and Great Diplomat in a modular form? strategy has those working in his.
You'd probably have to look at 004 or 005 to get them i think that is when i changed over to regular RoM?
Of your Next War Advanced??
Dang, did i forget that again, YES 005 was probably the best one yet.
Can you give me the link to the 005 please?
<load mod="Capture Slaves"/>
</bug>
OK, I figured out what was wrong with the modular version of Capture Slaves and have attached the new version.
Installation
1. Uncompress - it contains the Assets folder and lower folders
2. Check that your MLF file in your Assets\Modules folder includes a StartegyOnly element
3. Edit your Assets\Config\init.xml file to add <load mod="Capture Slaves"/> at the end. The last lines should look like.
Code:<load mod="Capture Slaves"/> </bug>
btw the error was on the first comment line
iRandNum = CyGame().getSorenRandNum(99, "Slave")
if iChance > iRandNum:
[B][COLOR="Red"]attacker.initUnit(gc.getCivilizationInfo(gc.getPlayer(iAttacker).getCivilizationType()).getCivilizationUnits(CvUtil.findInfoTypeNum(gc.getUnitClassInfo, gc.getNumUnitClassInfos(), 'UNITCLASS_SLAVE')), pWinner.getX(), pWinner.getY(), UnitAITypes.NO_UNITAI)[/COLOR][/B]
CvUtil.pyPrint('Player %d Civilization %s Unit %s has defeated Player %d Civilization %s Unit %s creating a slave.'
%(playerX.getID(), playerX.getCivilizationName(), unitX.getDescription(),
playerY.getID(), playerY.getCivilizationName(), unitY.getDescription()))
What if you replace the CvUtil.findInfoTypeNum... with gc.getInfoTypeForString("UNITCLASS_SLAVE")
OK i got everything in-line but i get this error
Can't find type enum for type tag UNITCLASS_SLAVE
Traceback (most recent call last):
File "BugEventManager", line 361, in _handleDefaultEvent
File "CaptureSlaves", line 35, in onCombatResult
File "PyHelpers", line 290, in initUnit
RuntimeError: unidentifiable C++ exception
Spoiler :Code:iRandNum = CyGame().getSorenRandNum(99, "Slave") if iChance > iRandNum: [B][COLOR="Red"]attacker.initUnit(gc.getCivilizationInfo(gc.getPlayer(iAttacker).getCivilizationType()).getCivilizationUnits(CvUtil.findInfoTypeNum(gc.getUnitClassInfo, gc.getNumUnitClassInfos(), 'UNITCLASS_SLAVE')), pWinner.getX(), pWinner.getY(), UnitAITypes.NO_UNITAI)[/COLOR][/B] CvUtil.pyPrint('Player %d Civilization %s Unit %s has defeated Player %d Civilization %s Unit %s creating a slave.' %(playerX.getID(), playerX.getCivilizationName(), unitX.getDescription(), playerY.getID(), playerY.getCivilizationName(), unitY.getDescription()))
I had that error on a much earlier version - I will check my version control and make sure I gave you the latest, but not for an hour or two.
Sorry but the one I posted is the one which is working fine on my machine.
Sorry but the one I posted is the one which is working fine on my machine.
OK i re-tried it again and i get this? sorry
Can't find type enum for type tag UNITCLASS_SLAVE
er...you have a UNITCLASS_SLAVE in your mod, right?
Do you have two of them - I think that was what I fixed. One of AArand's units had a unitclass of slave also.Yes its for the new slave.