Star Ruler 2

Star Ruler 2

ShareGates
11 条留言
Alexander the Great 2016 年 5 月 3 日 上午 8:57 
Awesome
Dalo Lorn 2016 年 5 月 3 日 上午 7:18 
Probably, if they're on your team.
Crack 2016 年 5 月 3 日 上午 7:16 
wait can an ai use ur gates?
Horlan  [作者] 2016 年 5 月 3 日 上午 6:25 
The intent was to use this for coop games. (Player VS AI, Invasion). I didn't even consider the Situation where teams break up.

I want to avoid changing the navigation code because that would probably soon run into issues with other Mods who touch these files.

I will look into the specific case with surrenders/allies and if it's easy enough see if I can make it work for that too. But might take a while.
Dalo Lorn 2016 年 5 月 3 日 上午 4:18 
Oh, it only works on teams.

... That still runs into complications if team members are allowed to surrender to enemies.
Dalo Lorn 2016 年 5 月 3 日 上午 3:02 
That's a bit clumsy... it won't unregister if they become unallied.

It would be more effective (as in, safe) if you instead changed the rest of the system (navigation and stuff) to use all the gates on the team.
Horlan  [作者] 2016 年 5 月 3 日 上午 2:47 
@Dalo Lorn: It's rather easy. In the scripts the game uses a function to register new gates with the owning empire. I "simply" changed it to register new gates for all empires of ones team.

In Detail it mods the "GateUnpacked" Status where it replaces the IsGate Hook with a custom Hook that registers it for all friendly empires.
Dalo Lorn 2016 年 5 月 3 日 上午 1:42 
I must learn how this mod works.
MysticVoid7x9 2016 年 5 月 2 日 下午 5:46 
I must have this mod.