Specific escort ships.
Moderators: winston, another_commander
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Specific escort ships.
Can anyone help.
I am hoping to use a specific escort ship for the new Liner OXP, and was wondering how I can make this particular escort only escort the liner. At the moment they are always appearing with the Liner, but also appear occassionally escorting other ships, and even appear as Offenders from time to time.
I've noticed the same thing happening with the special Viper escorts from the Armoured Transport OXP.
Is there a simple way of ensuring that they only escort the type of ship they should be escorting?
Currently I have it set as role "escort" in the shipdata.plist, and it uses the EscortAI, with autoAI on.
I am hoping to use a specific escort ship for the new Liner OXP, and was wondering how I can make this particular escort only escort the liner. At the moment they are always appearing with the Liner, but also appear occassionally escorting other ships, and even appear as Offenders from time to time.
I've noticed the same thing happening with the special Viper escorts from the Armoured Transport OXP.
Is there a simple way of ensuring that they only escort the type of ship they should be escorting?
Currently I have it set as role "escort" in the shipdata.plist, and it uses the EscortAI, with autoAI on.
Commander Smivs, the friendliest Gourd this side of Riedquat.
Don't use a role 'escort' for your unique escorts. Give them their own specific role like ' escort(0.000001) smivs-projX-escort' or something. Then you can tell the mom to only use 'smivs-projX-escort' as escorts.
Have a look at how it's done inside transports.oxp, version 2.45 (sorry Eric, I'm not too familiar with the newer versions...)!
Have a look at how it's done inside transports.oxp, version 2.45 (sorry Eric, I'm not too familiar with the newer versions...)!
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
The shipdata.plist keys escort-role and escort-ship are your friends here.
As of course is the wiki, invariably
As of course is the wiki, invariably
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Or don't use the role escort at all in your role definition. Its not needed for selection when you use the keys escort-role or escort-ship. And the game still will give it an escort role as soon as its added in game.Commander McLane wrote:Actually, "escort(0)" suffices.Kaks wrote:escort(0.000001)
But they still won't be 100% exclusive because when mom dies, they might look for new mothers.
That the armoredTransport escorts are sometimes added to other ships is because they have an escort(0.05) role definition. That makes it deliberate that they sometimes take other mothers.Smivs wrote:'ve noticed the same thing happening with the special Viper escorts from the Armoured Transport OXP.
They have an escort(0.001) role definition. No idea why I never changed that. Such a value only confuses people. When one means zero one should write zero and not 0.001Kaks wrote:Have a look at how it's done inside transports.oxp, version 2.45 (sorry Eric, I'm not too familiar with the newer versions...)!
(I have now deleted it for a next release.)
UPS-Courier & DeepSpacePirates & others at the box and some older versions
Point taken! I seem to vaguely remember the reasoning behind that (0.00001) was that 1.65 would have some problems with escorts if they didn't have any escort role at all, but it's all so very hazy now...
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Thanks, looks like I'm already part of the way there.
The escort is an adder variant for the P&Oo cruise company so
is already in the shipdata.plist for the mother (Liner).
Not too worried about the last point...these Mothers don't die easy
Edit:- Ah, just had a look at Transports, so I need
in the adder's shipdata.plist. Yes?
The escort is an adder variant for the P&Oo cruise company so
Code: Select all
escort_ship = "p&ooescort-adder";
Just to check, you're saying I don't need to specify a role of escort in the shipdata.plist code for the escort? No 'role' at all?Eric Walch wrote:Or don't use the role escort at all in your role definition. Its not needed for selection when you use the keys escort-role or escort-ship. And the game still will give it an escort role as soon as its added in game.
But they still won't be 100% exclusive because when mom dies, they might look for new mothers.
Not too worried about the last point...these Mothers don't die easy
Edit:- Ah, just had a look at Transports, so I need
Code: Select all
roles = "escort(0) p&ooescort-adder";
Commander Smivs, the friendliest Gourd this side of Riedquat.
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
If you tie the escort to its mother through the escort-ship key, in principle you wouldn't need a roles key with the escort at all, because it would be identified by its entry-name, not by role. However, I think that the roles key is mandatory, and Oolite will throw out an error if it's missing, so you should use your custom role anyway. If you would tie the escort to its mother through the escort-role key, you would of course also need your custom role. But in any case, as Eric says, you don't need the "escort(0)" at all.Smivs wrote:Just to check, you're saying I don't need to specify a role of escort in the shipdata.plist code for the escort? No 'role' at all?
Not too worried about the last point...these Mothers don't die easy
Edit:- Ah, just had a look at Transports, so I need
in the adder's shipdata.plist. Yes?Code: Select all
roles = "escort(0) p&ooescort-adder";
By the way, the ampersand is a command character at least in XML, perhaps in OpenStep as well, so I would advise you to not use it in your role name, or anywhere else, except in the masked form "&" (it happens to be the command character for masking command characters). The string "p&o" may lead to problems, so it is best to avoid it.
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Good point about the ampersand...I'll not use it. Thanks.
Commander Smivs, the friendliest Gourd this side of Riedquat.