In Progress Smaller Sectors Mod - issue with moving highway

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

General Vash
Posts: 24
Joined: Thu, 30. Jan 20, 05:13
x4

In Progress Smaller Sectors Mod - issue with moving highway

Post by General Vash »

I am working on a mod that makes the sectors half as large as they are in vanilla, based on the Expanded Sectors X2 by MacBain81. I am having the same problem that he ran into with the superhighway accelerators(?) not having collision once they've been relocated in maps\XU_ep2_universe\sectors.xml.

As far as I can see there are three files that have connection tags for the highways: maps\XU_ep2_universe\sectors.xml, zonehighways.xml, and sechighways.xml. I am kind of hoping someone can help me determine which file I need to change. The sectors.xml file for vanilla has a connection for "Highway01_Cluster_01_Sector001_connection" that references macros with connection value of "Highway01Connection02_gate" and "Highway01Connection01_gate" but I can't find any other file that has these connections defined. I thought I might need to change things in zonehighways.xm, but the "Highway01_Cluster_01_Sector001_macro" is commented out in vanilla.

Thanks!
General Vash
Posts: 24
Joined: Thu, 30. Jan 20, 05:13
x4

Re: In Progress Smaller Sectors Mod - issue with moving highway

Post by General Vash »

Update: Moving the superhighway accelerators in the clusters makes them inoperable for the player, but the AI can find and use them perfectly fine. I might be able to track down how the AI uses the superhighway and apply that to the player's ship and voila, problem solved. In any case, for anyone messing with superhighways, it appears that there are multiple locations defined for them, and the little animation that plays when the player hits the gate is defined outside of the sectors.xml file.
SirNukes
Posts: 549
Joined: Sat, 31. Mar 07, 23:44
x4

Re: In Progress Smaller Sectors Mod - issue with moving highway

Post by SirNukes »

Um. If you are interested, I have an X4 customizer script that does sector downsizing automatically, including moving a variety of plot stuff, preventing objects getting too close together, resizing highways (including sector highway cluster level adjustments), shrinking down god station spawn points, etc.
General Vash
Posts: 24
Joined: Thu, 30. Jan 20, 05:13
x4

Re: In Progress Smaller Sectors Mod - issue with moving highway

Post by General Vash »

Amazing work! And in Python! You made my day.

Return to “X4: Foundations - Scripts and Modding”