Getting Custom JobWings To Work [AP]

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Post Reply
User avatar
RoverTX
Posts: 1436
Joined: Wed, 16. Nov 11, 18:37
x4

Getting Custom JobWings To Work [AP]

Post by RoverTX » Tue, 23. Apr 13, 00:34

I have set up a few wings that work like this

An M3P or M6 running patrol.pirat.long, which has the following as wingmen.

wingmen group 1: M3 M3

Each M3 having the wing.protect script running, note I have also tried the wing.attacksame same script here also.

Along with each M3 having a wing like this

wingmen group2: M4 M4P M5 M5

With each of those ships having the wing.attacksame script running.

No matter what I do, the wingman all fly to the nearest friendly stations, dock and then are destroyed.

I have tried setting the max number of jobs to 0, 1, and the total number needed for all wings, for each wingmen group, only to have them do the same thing. I have even tried to have the Leader and the wingmen all spawn in the same sector with no luck. I can't seem to get the wingmen to act like wingman. Even though I have set up the JobsWings correctly and everything.

Just in case here are the JobWings I set up

Code: Select all

150;2033;2050;2045;2029
151;2023;2051;2046;2036
152;2038;2020;2025;2044
153;2049;2024;2034;2053
154;2030;2019;2039;2029
155;2037;2028;2021;2048
156;2040;2026
157;2017;2031
158;2022;2052
159;2041;2053
Any help would be great, a little lost here...

Koritnaciino
Posts: 319
Joined: Sun, 26. Feb 06, 10:57
x4

Post by Koritnaciino » Tue, 23. Apr 13, 01:21

Its to many things what can be wrong.

At first open jobwings file in X3 Editor 2 from VFS and check if is the same file as you modified. If is the same then the problem most probably will be in jobs and not jobwings.

Step two try to save your file and after that try 1xJOB (M1,M2,M7,M6) with 2xWING SHIP (M3,M4,M5) in specific place with started new game.
One of wing setup for atack same and the second setup for wing protect.
Setup maximum jobs 1x and you can also setup 1x in same sector.

If will work then add more and more jobs etc.

Thats the best what I can advice you.

PS: Max jobs 0= no jobs :)
PS2: If you have for ex. M2= 2 jobs and you have 5 follower then you need have also maximum jobs of every ship type =2

User avatar
RoverTX
Posts: 1436
Joined: Wed, 16. Nov 11, 18:37
x4

Post by RoverTX » Fri, 26. Apr 13, 05:10

Turns out its an issue with how X3 Editor, and X3 deal with new lines. In order for things to work i have to open up the JobsWings in Notepad++ and copy the old line returns, and use them instead of hitting the return key. I think its some type of missmatch with text encoding but I am having a hard time tracking it down to just one thing...

User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle » Fri, 26. Apr 13, 16:46

As an experiment, try saving the file in unix format (Line Feeds only) instead of Windows (Carriage Return plus Line Feed).

(Or vice-versa if you are not using Windows).

User avatar
RoverTX
Posts: 1436
Joined: Wed, 16. Nov 11, 18:37
x4

Post by RoverTX » Fri, 26. Apr 13, 18:19

Thanks for the info I am on windows.

First figured out that X3 Editor when you save turns all files into unix format (Line Feed only). Which normally doesn't matter, but the JobWings file is based on new lines and won't work correctly because X3 doesn't like just line feeds.

Second X3 Editor doesn't seem to like it when I hit return myself in notepad or notepad++, it parses it as two returns. I think this might be a problem relating to my set up, I have 日本語(Japanese) key set, set up, and I am wondering if that is causing something odd to happen and if I disable it completely if this problem would go away. Only additional reason I could think of...

O well I have a work around from my last post.

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”