Those working on this mod do so in their own free time and for no pay.
Show your support for them by enabling ads on this site!

Author Topic: Making all planets connected to eachother  (Read 3745 times)

0 Members and 6 Guests are viewing this topic.

August 26, 2016, 01:11:25 PM

Offline KesselRun12

  • Stormtrooper
  • **
  • Posts: 5
  • Approval: +0/-0
    • View Profile
Making all planets connected to eachother
« on: August 26, 2016, 01:11:25 PM »
I'm trying to make all planets in the Reunification GC connected to each other. I find that often in late game you end up just moving huge stacks of units to conquer enemy worlds (a problem with the base game) and thought it would be interesting if you have to think about defending quite remote, unimportant worlds and think about keeping ships in reserve.

Is there anyway to do this? I thought it would just be a case of getting all the planets, doing some Excel stuff to make sure there is no duplication and that every planet is linked to every other, and then putting the text below into the <trade_routes> bit on the Reunification GC .xml file, but it hasn't worked. Anyone have any idea where I've gone wrong? Is there something else that needs changing? Many thanks.

<Trade_Routes>          
         Abregado_Balmorra,
         Abregado_Bimmisaari,
         Abregado_Coruscant,
         Abregado_Hakassi,
         Abregado_Kalist,
         Abregado_Kessel,
         Abregado_Khomm,
         Abregado_Kuat,
         Abregado_Maw,
         Abregado_Metellos,
         Abregado_MonCalimari,
         Abregado_Odik,
         Abregado_Onderon,
         Abregado_Parkrik,
         Abregado_Tsoss,
         Abregado_Yavin,
         Balmorra_Bimmisaari,
         Balmorra_Coruscant,
         Balmorra_Hakassi,
         Balmorra_Kalist,
         Balmorra_Kessel,
         Balmorra_Khomm,
         Balmorra_Kuat,
         Balmorra_Maw,
         Balmorra_Metellos,
         Balmorra_MonCalimari,
         Balmorra_Odik,
         Balmorra_Onderon,
         Balmorra_Parkrik,
         Balmorra_Tsoss,
         Balmorra_Yavin,
         Bimmisaari_Coruscant,
         Bimmisaari_Hakassi,
         Bimmisaari_Kalist,
         Bimmisaari_Kessel,
         Bimmisaari_Khomm,
         Bimmisaari_Kuat,
         Bimmisaari_Maw,
         Bimmisaari_Metellos,
         Bimmisaari_MonCalimari,
         Bimmisaari_Odik,
         Bimmisaari_Onderon,
         Bimmisaari_Parkrik,
         Bimmisaari_Tsoss,
         Bimmisaari_Yavin,
         Coruscant_Hakassi,
         Coruscant_Kalist,
         Coruscant_Kessel,
         Coruscant_Khomm,
         Coruscant_Kuat,
         Coruscant_Maw,
         Coruscant_Metellos,
         Coruscant_MonCalimari,
         Coruscant_Odik,
         Coruscant_Onderon,
         Coruscant_Parkrik,
         Coruscant_Tsoss,
         Coruscant_Yavin,
         Hakassi_Kalist,
         Hakassi_Kessel,
         Hakassi_Khomm,
         Hakassi_Kuat,
         Hakassi_Maw,
         Hakassi_Metellos,
         Hakassi_MonCalimari,
         Hakassi_Odik,
         Hakassi_Onderon,
         Hakassi_Parkrik,
         Hakassi_Tsoss,
         Hakassi_Yavin,
         Kalist_Kessel,
         Kalist_Khomm,
         Kalist_Kuat,
         Kalist_Maw,
         Kalist_Metellos,
         Kalist_MonCalimari,
         Kalist_Odik,
         Kalist_Onderon,
         Kalist_Parkrik,
         Kalist_Tsoss,
         Kalist_Yavin,
         Kessel_Khomm,
         Kessel_Kuat,
         Kessel_Maw,
         Kessel_Metellos,
         Kessel_MonCalimari,
         Kessel_Odik,
         Kessel_Onderon,
         Kessel_Parkrik,
         Kessel_Tsoss,
         Kessel_Yavin,
         Khomm_Kuat,
         Khomm_Maw,
         Khomm_Metellos,
         Khomm_MonCalimari,
         Khomm_Odik,
         Khomm_Onderon,
         Khomm_Parkrik,
         Khomm_Tsoss,
         Khomm_Yavin,
         Kuat_Maw,
         Kuat_Metellos,
         Kuat_MonCalimari,
         Kuat_Odik,
         Kuat_Onderon,
         Kuat_Parkrik,
         Kuat_Tsoss,
         Kuat_Yavin,
         Maw_Metellos,   
         Maw_MonCalimari,
         Maw_Odik,
         Maw_Onderon,
         Maw_Parkrik,
         Maw_Tsoss,
         Maw_Yavin,
         Metellos_MonCalimari,
         Metellos_Odik,
         Metellos_Onderon,
         Metellos_Parkrik,
         Metellos_Tsoss,
         Metellos_Yavin,
         MonCalimari_Odik,
         MonCalimari_Onderon,
         MonCalimari_Parkrik,
         MonCalimari_Tsoss,
         MonCalimari_Yavin,
         Odik_Onderon,
         Odik_Parkrik,
         Odik_Tsoss,
         Odik_Yavin,
         Onderon_Parkrik,
         Onderon_Tsoss,
         Onderon_Yavin,
         Parkrik_Tsoss,
         Parkrik_Yavin,
         Tsoss_Yavin,
      </Trade_Routes>

August 26, 2016, 01:31:18 PMReply #1

Offline Corey

  • Mod Leader
  • Administrator
  • Emperor
  • *****
  • Posts: 7,520
  • Approval: +410/-80
  • Dream Crusher
    • View Profile
Re: Making all planets connected to eachother
« Reply #1 on: August 26, 2016, 01:31:18 PM »
The list items in that section actually refer to entities in another file (Traderoutes.xml)  which defines the actual traderoutes:

   <TradeRoute Name="Abhean_Centares">
      <Point_A>Abhean</Point_A>
      <Point_B>Centares</Point_B>
      <HS_Speed_Factor>0</HS_Speed_Factor>
      <Political_Control_Gain>0</Political_Control_Gain>
      <Credit_Gain_Factor>0</Credit_Gain_Factor>
      <Visible_Line_Name>DEFAULT</Visible_Line_Name>
   </TradeRoute>

Each of the point names are the names of the planets as defined in the Planet XML files (we have about three in the mod, broken into sections)
I also have a YouTube channel where I talk about mod development and gaming, do tutorials, and Let's Plays. If you like the content, consider supporting it on Patreon


August 26, 2016, 01:43:46 PMReply #2

Offline KesselRun12

  • Stormtrooper
  • **
  • Posts: 5
  • Approval: +0/-0
    • View Profile
Re: Making all planets connected to eachother
« Reply #2 on: August 26, 2016, 01:43:46 PM »
Thank you for your reply. I've just edited 'TradeRoutes.xml'  to make the Maw connect to Mon Calamari (bypassing Kessel) to test it and that has worked in the Reunification campaign but not in the others (perhaps because Mon Cal is not always visible to the Remnant/the Maw is not always visible to the NR)?

Ideally I'd like this in every GC to play around with, can I just edit the TradeRoutes.xml or do I have to edit that and every campaign xml file as well?

August 26, 2016, 01:44:48 PMReply #3

Offline Corey

  • Mod Leader
  • Administrator
  • Emperor
  • *****
  • Posts: 7,520
  • Approval: +410/-80
  • Dream Crusher
    • View Profile
Re: Making all planets connected to eachother
« Reply #3 on: August 26, 2016, 01:44:48 PM »
You have to add the traderoutes to the traderoutes file, and then add the name of the traderoute to that list for whichever GCs you want it in.
I also have a YouTube channel where I talk about mod development and gaming, do tutorials, and Let's Plays. If you like the content, consider supporting it on Patreon


August 26, 2016, 01:51:20 PMReply #4

Offline KesselRun12

  • Stormtrooper
  • **
  • Posts: 5
  • Approval: +0/-0
    • View Profile
Re: Making all planets connected to eachother
« Reply #4 on: August 26, 2016, 01:51:20 PM »
Great - thanks for your help.

August 26, 2016, 03:18:41 PMReply #5

Offline kucsidave

  • Mod Team Member
  • Grand Admiral
  • ****
  • Posts: 1,018
  • Approval: +44/-4
  • Don't fear your Demons. Make them fear YOU.
    • View Profile
Re: Making all planets connected to eachother
« Reply #5 on: August 26, 2016, 03:18:41 PM »
just a friendly advice:
Try to avoid this in huge GCs since if there is too much movement at the same time it might make the game crash, and the AI tends to move it's fleets around A LOT.
Even if it is 100% unnecessary.
"He who fights with monsters should be careful lest he thereby become a monster.
And if thou gaze long into an abyss, the abyss will also gaze into thee." - Friedrich Nietzsche

August 26, 2016, 04:49:36 PMReply #6

Offline KesselRun12

  • Stormtrooper
  • **
  • Posts: 5
  • Approval: +0/-0
    • View Profile
Re: Making all planets connected to eachother
« Reply #6 on: August 26, 2016, 04:49:36 PM »
Thanks for the advice. I may do something a bit less drastic then and just introduce lots of new trade routes among and to outer rim worlds, rather than making literally every planet connect to every other. This would probably achieve the effect I want - of making backwater worlds less defensible, reducing strongpoints on the map, and draining big fleet stacks to force the player to defend more widely, rather than getting two or three chokepoints in the end game. It would also preserve the Core as a fortress.

Just to tide me over until 2.2 and the Eriadu Authority!

 

Those working on this mod do so in their own free time and for no pay.
Show your support for them by enabling ads on this site!