I attached yet another version of the Rebellion module that should include the 10 turn limit for reinforcements. Now, I didn't test it, so you can use the previous one if it fails.when will you be able to work on the 3 things mentioned earlier (stop sending reenforcements after 10 turns, reset diplomacy fix... and swapping the rebels into original civ when the original civ dies and the rebels are still alive...)
def onSetPlayerAlive(self, argsList):
'Set Player Alive Event'
iPlayerID = argsList[0]
bNewValue = argsList[1]
[B] Custom.resetMinorCiv(iPlayerID, bNewValue)[/B]
CvUtil.pyPrint("Player %d's alive status set to: %d" %(iPlayerID, int(bNewValue)))
I haven't had time to debug it myself yet. But please feel free to pitch in!I take it that the problem wasn't solved?
I'm kinda swamped with stuff to do anyways (with the basement and all).
def onSetPlayerAlive(self, argsList):
'Set Player Alive Event'
iPlayerID = argsList[0]
bNewValue = argsList[1]
Custom.resetMinorCiv(iPlayerID, bNewValue)
CvUtil.pyPrint("Player %d's alive status set to: %d" %(iPlayerID, int(bNewValue)))
Code:I believe we have seen this before however I cannot find it... what should I do about this... (this is to do with the reset diplo code...)[/QUOTE] It seems that the setPlayerAlive callback is done before the custom Python is initialized, so I'll take this into consideration when I do the flip code also. Simply delete the function call in the meanwhile and I'll get back to you with a tested setup. :goodjob:
<LeaderheadArtInfo>
<Type>ART_DEF_LEADER_AUGUSTUS</Type>
<Button>,Art/interface/LeaderHeads/Btn_LH_America_Washington.dds,Art/Interface/Buttons/Warlords_Atlas_2.dds,2,7</Button>
<NIF>art/LeaderHeads/Augustus_Caesar/augustus_caesar.nif</NIF>
<KFM>art/LeaderHeads/Augustus_Caesar/augustus_caesar.kfm</KFM>
<NoShaderNIF>art/LeaderHeads/Augustus_Caesar/augustus_caesar_noshader.nif</NoShaderNIF>
<BackgroundKFM>art/LeaderHeads/Augustus_Caesar/augustus_caesar_BG.kfm</BackgroundKFM>
</LeaderheadArtInfo>
That actually makes sense. I'll rework this ASAP. I might spawn units in no-mans-land to activate the minor players prior to declaring war though...ok also a problem with it (yes for some reason it still worked?) was that it made peace immediatly with the enemy... I conquored nova carthago and got a domestic rebellion, then I Instantly declared peace with them...?
Can you complete that data structure and add all the eNums. Because I really can't be bothered with those XML tags and whatnot. You can use getInfoTypeForString() to fetch the actual values in eNums and post the entries here together with the tuple of tech/unit pairs. (Follow the format/syntax of the tRebelUnits, or whatever.)One GG would surfice and a golden age sounds good... I think there should be another tech thing for units but in the form of:
I think that the game has already ended by then, because the code fires on the setPlayerAlive callup from the SDK. But I guess we'll have to test that.also question: if the human civ dies and is reborn do you think that the human comes back or is dead completly?
<LeaderheadArtInfo>
<Type>ART_DEF_LEADER_ANTONY</Type>
<Button>Art/LeaderHeads/Antony/antonybutton.dds</Button>
<NIF>art/LeaderHeads/Antony/antony.nif</NIF>
<KFM>art/LeaderHeads/Antony/augustus_caesar.kfm</KFM>
<NoShaderNIF>art/Leaderheads/Antony/antony.nif</NoShaderNIF>
<BackgroundKFM>art/LeaderHeads/Antony/Antony_bg.kfm</BackgroundKFM>
</LeaderheadArtInfo>
<LeaderheadArtInfo>
<Type>ART_DEF_LEADER_ALEXANDER</Type>
<Button>,Art/interface/LeaderHeads/Btn_LH_Greece_Alexander.dds,Art/Interface/Buttons/Actions_Builds_LeaderHeads_Specialists_Atlas.dds,1,11</Button>
<NIF>art/LeaderHeads/Alexander_the _Great/alexander.nif</NIF>
<KFM>art/LeaderHeads/Alexander_the _Great/alexander.kfm</KFM>
<NoShaderNIF>art/LeaderHeads/Alexander_the _Great/alexander_noshader.nif</NoShaderNIF>
<BackgroundKFM>art/LeaderHeads/Alexander_the _Great/alexander_BG.kfm</BackgroundKFM>
</LeaderheadArtInfo>
Goodie. A GG eNum would be helpful also.I will get to work on the e-nums and assemble a list for you... do you need the great general for eNums as well?
RESMGR: Failed loading file art/LeaderHeads/Augustus_Caesar/augustus_caesar_BG_background.kf. Reason: (code:1) Cannot open file.
RESMGR: Failed loading file art/LeaderHeads/Augustus_Caesar/augustus_caesar_BG_background.kf. Reason: (code:1) Cannot open file.
RESMGR: ---- Unloading ----