Hi,
I have built an Observer mod (Better Spectator Mod), using an unique leader LEADER_SPECTATOR to trigger the change to an observer in game.
Everything is lua based and working.
My issue another one. Because LEADER_SPECTATOR is currently a member of the Players:Expansion2_Players domain it can get picked by the AI.
While I managed to prevent players from inadvertly picking it using PlayerSetupLogic and attributing an error code to that leader it is not enough from preventing it to be eligible as a RANDOM leader.
My solution is too remove it from Players:Expansion2_Players by creating a Players:Observer_Players domain and the my StagingRoom.lua pulldown would be populated by Players:Expansion2_Players through PlayerSetupLogic if a tick box is not ticked and Players:Observer_Players otherwise.
Simple enough. Except I cannot manage to simply create a new domain by having <Domain>Players:Observer_Players</Domain>
instead of
<Domain>Players:Expansion2_Players</Domain>
I am assuming I need to register that new Domain somehow in XML/SQL but I haven't been able to find the format yet - though I am sure it should be somewhere in GS XML.
Thanks in advance!
I have built an Observer mod (Better Spectator Mod), using an unique leader LEADER_SPECTATOR to trigger the change to an observer in game.
Everything is lua based and working.
My issue another one. Because LEADER_SPECTATOR is currently a member of the Players:Expansion2_Players domain it can get picked by the AI.
While I managed to prevent players from inadvertly picking it using PlayerSetupLogic and attributing an error code to that leader it is not enough from preventing it to be eligible as a RANDOM leader.
My solution is too remove it from Players:Expansion2_Players by creating a Players:Observer_Players domain and the my StagingRoom.lua pulldown would be populated by Players:Expansion2_Players through PlayerSetupLogic if a tick box is not ticked and Players:Observer_Players otherwise.
Simple enough. Except I cannot manage to simply create a new domain by having <Domain>Players:Observer_Players</Domain>
instead of
<Domain>Players:Expansion2_Players</Domain>
I am assuming I need to register that new Domain somehow in XML/SQL but I haven't been able to find the format yet - though I am sure it should be somewhere in GS XML.
Thanks in advance!