[REQUEST]/[HELP] Savage Spur highway restoration

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

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

Post Reply
Kadatherion
Posts: 1021
Joined: Fri, 25. Nov 05, 16:05
x4

[REQUEST]/[HELP] Savage Spur highway restoration

Post by Kadatherion » Tue, 20. Apr 21, 21:04

Hi all, been back for a few days now due to the DLC, and there's one thing that's bugging me to no end: the one way highway connection between Savage Spur I and II. That's fine and dandy for plot reasons, but the inability to restore the normal two ways connection at the end of the plot makes the area much less usable for setting up shop than it could be. Worst thing is how a one way connection can screw up with the AI scripts for automated traders/miners etc (if they start from I, they think they can go work into II because it's just one jump away, but the way back then becomes NINE sectors away :roll: ).

I've mostly only dabbled with modding ship stats/loadouts here, a little bit more back in X3 but I never really messed with map editing, so I'd be grateful if somebody could help me figure out how to fix up a quick and dirty mod to place the missing highway from Spur II to I. No scripts and fancy things to delay or trigger it under specific conditions (it would probably be wiser to restore it only after you're done with the plot, as I guess the design decision must have had reasons to ensure the plot works as intended... although in reality I've seen it actually looks like it has the opposite effect at times, but I digress), as I'd just apply it myself once I'm ready.

Could anyone point me in the right direction, or perhaps give me an example, maybe with some other similar mod I could use for learning?

RPINerd
Posts: 54
Joined: Fri, 8. Mar 19, 20:21
x4

Re: [REQUEST]/[HELP] Savage Spur highway restoration

Post by RPINerd » Wed, 21. Apr 21, 15:15

If it were me, starting out with no idea how to implement this, I'd download DeadAirRT's gate system overhaul and inspect how those XML files are designed and how different gates are set up and linked. Then maybe work backwards from there?

But this is all just off the top of my head brainstorming :)

Kadatherion
Posts: 1021
Joined: Fri, 25. Nov 05, 16:05
x4

Re: [REQUEST]/[HELP] Savage Spur highway restoration

Post by Kadatherion » Wed, 21. Apr 21, 20:36

RPINerd wrote:
Wed, 21. Apr 21, 15:15
If it were me, starting out with no idea how to implement this, I'd download DeadAirRT's gate system overhaul and inspect how those XML files are designed and how different gates are set up and linked. Then maybe work backwards from there?
I believe his Gate Overhaul mod only uses gates instead of highways, iirc, I'm not sure if they work kind of the same way. Savage Spur is two systems under the same sector/cluster/whatever it's the right definition in X4, so... but yeah, if I can't find any simpler pointers I'll probably try to reverse engineer other mods that add several sectors. It's just they can be a bit overwhelming since they do much more than just adding a connection here and there, so it takes longer to find your way through :-P

tomchk
Posts: 1294
Joined: Mon, 26. Jan 15, 19:55
x4

Re: [REQUEST]/[HELP] Savage Spur highway restoration

Post by tomchk » Thu, 22. Apr 21, 17:21

This should be quite easy, actually. I'm not sure any released mods for X4 use superhighways, but some XR ones do, like Lost Sectors. They are almost identical between the two games, so you could learn it there. You can ask for help on the discord. UniTrader helped me learn a lot about them--they are seriously so easy once you get the idea. It's just a few lines in a few XMLs for any given superhighway.
Care to see what I've been creating? https://www.youtube.com/user/ytubrute

sprIder
Posts: 92
Joined: Sat, 3. Jul 10, 23:23
x4

Re: [REQUEST]/[HELP] Savage Spur highway restoration

Post by sprIder » Wed, 19. May 21, 19:16

Hi,

I don't know if you already found a solution but since this situation also annoyed me, i tried some trial and error and eventually found a solution and made an own mod. You can find it in Steam.

Maybe it helps you.
sprIder

tomchk
Posts: 1294
Joined: Mon, 26. Jan 15, 19:55
x4

Re: [REQUEST]/[HELP] Savage Spur highway restoration

Post by tomchk » Wed, 19. May 21, 21:25

sprIder wrote:
Wed, 19. May 21, 19:16
I don't know if you already found a solution but since this situation also annoyed me, i tried some trial and error and eventually found a solution and made an own mod. You can find it in Steam.
I haven't actually tried adding superhighways to old saves. I was hoping it would work, though. This worked for you? Did you do anything special? I'll take a look at your mod sometime.
Care to see what I've been creating? https://www.youtube.com/user/ytubrute

tezboyes
Posts: 19
Joined: Tue, 1. Apr 08, 20:52
x4

Re: [REQUEST]/[HELP] Savage Spur highway restoration

Post by tezboyes » Wed, 19. May 21, 22:47

Sounds interesting, I've been wondering about starting a game with the DLC, but with the Gates to Split/Terran disabled initially - to be activated later.
Also seeing if it was possible to cut parts of the main Superhighway at times, and restore later.

sprIder
Posts: 92
Joined: Sat, 3. Jul 10, 23:23
x4

Re: [REQUEST]/[HELP] Savage Spur highway restoration

Post by sprIder » Thu, 20. May 21, 19:21

@tomchk: I think, i did nothing special. Just adding some code to and replacing some code of the Egosoft scripts you find in the "map"-folder of the terran dlc. There are no additional init-scripts or similar needed

@tezboyes: The gates to the dlc-areas are something special, as far as i know. They are activated in/with the setup_dlc_split and setup_dlc_terran files in the respective "md" folder of the dlc.

tezboyes
Posts: 19
Joined: Tue, 1. Apr 08, 20:52
x4

Re: [REQUEST]/[HELP] Savage Spur highway restoration

Post by tezboyes » Thu, 20. May 21, 20:25

Cheers, I will have a poke around at the weekend.

DeadAirRT
Posts: 1022
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [REQUEST]/[HELP] Savage Spur highway restoration

Post by DeadAirRT » Thu, 20. May 21, 20:41

sprIder wrote:
Thu, 20. May 21, 19:21
@tezboyes: The gates to the dlc-areas are something special, as far as i know. They are activated in/with the setup_dlc_split and setup_dlc_terran files in the respective "md" folder of the dlc.
They are actually the exact same except the boneyard one. Nothing special other than some of the dlc map stuff is in a different named file so it's more hassle to diff them

BigGreenThugs
Posts: 89
Joined: Thu, 26. Mar 20, 16:50
x4

Re: [REQUEST]/[HELP] Savage Spur highway restoration

Post by BigGreenThugs » Wed, 26. May 21, 02:26

If the super highway is bidirectional, would that change how NPC's path to that part of Savage Spur? Would it be easier for the Terran faction to wipe out the Yaki? It seems like that one way gate plus the slog of Xenon you have to go through to get there is the only thing keeping the Yaki base alive.

sprIder
Posts: 92
Joined: Sat, 3. Jul 10, 23:23
x4

Re: [REQUEST]/[HELP] Savage Spur highway restoration

Post by sprIder » Wed, 26. May 21, 17:10

Right, that seems to be one of the biggest problem with the second highway. So it may only be save to have the second highway if you want to wipe out the yaki or take over the sectors or plan both :twisted:

Another is, that there may be problems with the Terran/Yaki plot. So it is probably safer to use this mod or a similar one only after the plots are completed.

Post Reply

Return to “X4: Foundations - Scripts and Modding”