Ok, so I just got the idea for sign treaty/declare war mod, but not sure how I would implement it, or if it would affect all ships/players of race or not
Would (hopefully) involve the F6 menu, but could use XO menu. My thoughts are that you would start out enemy with all races (changing the Racesd files is the easy part here), have some buttons label "Sign Treaty" with submenu for "non aggression" (set ships from enemy to neutral), "ally" (set from enemy/neutral to friendly), "declare war" (obviously, removes current treaty status). The tricky part is writing to the Racesd files while the game is in use and updating all players with the packet info for such files. There may be a workaround that would not alter racesd files but not sure at this time.
Of course this would then need to send treaty alerts to all players of both controlling races (may also be tricky), with a divisor of /2 (or multiple of *0.5) so that a democratic voting process can be established between friendly, enemy, and all controlling parties (ex. 6 friendly vs 8 enemy PvP, friendly has 4 yes 2 no, enemy has 4 yes 4 no, treaty would pass with total yes votes [8] and no votes [6]) or, (5 friendly vs 7 enemy, friendly 2 yes 3 no, enemy 4 yes 3 no, treaty will not be signed as total yes votes = total no votes)