escorts = 0; no longer works?!

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 1998
Joined: Mon May 31, 2010 11:11 pm

escorts = 0; no longer works?!

Post by Switeck » Sat Dec 15, 2018 4:55 pm

In making a modified Galactic Navy OXP, I added Navy Boa 2 Light Cruisers to the ships used by the Galactic Navy.

"navy-boa2" has escorts = 4; and escort_ship = "navy-asp";
So it has 4 jump-capable Asps tagging along with it, since it's made to travel to other systems and interstellar space.
It refers back to "oolite_template_boa-mk2" via like_ship = "boa-mk2";

"patrol-boa2" uses like_ship = "navy-boa2"; and also has escorts = 4; but unlike "navy-boa2" escort_ship = "navy-viper"; instead of "navy-asp"
"patrol-boa2" is supposed to patrol in a system, so it doesn't need jump-capable Asps as escorts...but still needs escorts, so it has "navy-viper" instead.

"picket-boa2" also uses like_ship = "navy-boa2"; and has escorts = 0;
It's supposed to be used when the Boa 2 is waiting at a location (guarding it) and its escorts are either elsewhere or handled separately.
So I would expect it to have 0 escorts. Or barring that, to somehow "inherit" escort_ship = "navy-asp" from "navy-boa2" which it copies.
Nope, it has random escorts -- sometimes 1, sometimes 2, sometimes 4?!
So it would seem to be picking up escort_roles from "oolite_template_boa-mk2" and escorts = 0; is not overriding that.

User avatar
Nite Owl
Dangerous
Dangerous
Posts: 101
Joined: Sat Jan 20, 2018 4:08 pm
Location: In The Dark

Re: escorts = 0; no longer works?!

Post by Nite Owl » Sat Dec 15, 2018 6:46 pm

ESCORT_ROLES overrides everything else relating to escorts according to that wiki entry. Since the oolite_template_boa-mk2 is using escort_roles they are most likely overriding the escorts = 0 you are entering for the picket-boa2. Guessing that if you gave the picket-boa2 its own dictionary of escort_roles with min = 0 max = 0 (or even possibly negative numbers) it would solve the problem. Only ran across this as the result of research done to rid myself of some weird escort errors popping up in Mr. Latest Log.
Humor is the second most subjective thing on the planet

Brevity is the soul of wit and vulgarity is wit's downfall

Good Night and Good Luck - Read You Soon

Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 1998
Joined: Mon May 31, 2010 11:11 pm

Re: escorts = 0; no longer works?!

Post by Switeck » Sun Dec 16, 2018 4:04 am

Thanks, at least my guess was mostly on target.

User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 260
Joined: Mon May 30, 2016 3:54 am

Re: escorts = 0; no longer works?!

Post by montana05 » Sun Jan 06, 2019 2:21 am

I only did some basic tests but

Code: Select all

"escort_roles" = 0;
should actually work as well.
Trying to survive behind the controls of a Caduceus Psi XT in Alpha test :lol:

Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 1998
Joined: Mon May 31, 2010 11:11 pm

Re: escorts = 0; no longer works?!

Post by Switeck » Tue Jan 08, 2019 10:48 pm

OK, I'll test "escort_roles" = 0;
...and will probably be editing this post in a couple days with results.

Post Reply