Hi Gedemon!
This is Khose Galkin, from LOTR scenario. I use your Hotseat mod, that worked perfectly until I increased the standard number of civilizations to 34 with Howards DLL.
All the nations are shown in dropdown boxes, and get the SlotStatus and SlotClaim correctly in Setup Screen lines:
PreGame.SetSlotStatus( i, SlotStatus.SS_TAKEN )
PreGame.SetSlotClaim( i, SlotClaim.SLOTCLAIM_RESERVED )
Here you can see the log of this correct configuration:
Then, the game starts, killing the default civ nation and starting with the next one. If the next player is after 22, the following line doesn't work:
if (pPlayer:IsAlive() and pPlayer:IsHuman()...)
so I changed it to
if(PreGame.GetSlotClaim(iPlayerLoop) == SlotClaim.SLOTCLAIM_RESERVED )
and It worked.
However, I have realised that
the game loses at some time the SLOTSTATUS_TAKEN status for the nations AFTER 22, but conserves the SLOTCLAIM_RESERVED, so in the game I set again...
if(PreGame.GetSlotClaim(iPlayerLoop) == SlotClaim.SLOTCLAIM_RESERVED ) then
PreGame.SetSlotStatus( iPlayerLoop, SlotStatus.SS_TAKEN )
end
As a result, the game starts and the logs shows...
So, for nations before 22, the game get the SLOTSTATUS_TAKEN and SLOTCLAIM_RESERVED. For those after 22, only SLOTCLAIM_RESERVED. As I said, I've put then again the SLOTSTATUS_TAKEN, but the game still IGNORES the nations with SLOTSTATUS_TAKEN and SLOTCLAIM_RESERVED after 22, although they are correctly set.
Any idea of what could cause this?
Thanks and sorry if I disturbed you with my long message.
Khose