EQ_HARDENED_MISSILE

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
tinker
Deadly
Deadly
Posts: 166
Joined: Tue Jul 22, 2008 7:45 am
Location: Sachsen

EQ_HARDENED_MISSILE

Post by tinker »

I have several times had the log entry

***** ERROR: one or more shipdata.plist entries have like_ship references that cannot be resolved:

There are several oxp's using

Code: Select all

         <key>like_ship</key>
         <string>EQ_HARDENED_MISSILE</string>
which seems to be the cause of the problem.
Should the like_ship not reference ecm-proof-missile ? Or have I got totally confused again?
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

Yes it should. Which OXPs are incorrect?
User avatar
tinker
Deadly
Deadly
Posts: 166
Joined: Tue Jul 22, 2008 7:45 am
Location: Sachsen

Post by tinker »

I'll check which ones do it and get back later, RL getting in the way today.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Err... actually, if you want to like_ship a hardened missile, the correct way to do it is:

Code: Select all

<key>like_ship</key>
         <string>ecm-proof-missile</string>
in XML, or

Code: Select all

like_ship = 'ecm-proof-missile';
in openStep format...
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

That’s what they said. :-)
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Must upgrade reading subsystem! And/or should stop trying to think when not yet awake... apologies for the misunderstanding -ment -ation -tude...
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Just keep updating your oxp's.

From the release notes of commies.oxp version 2.10:
2.10 April 2010

Corrected the role for the ecm-proof-missiles. Has always been wrong resulting in launching plain missiles for some of the ships.
I assume its this oxp giving the warning. It has been wrong there since before the release of Oolite 1.65. If you don't log errors, nobody will start complaining. :wink:

EDIT, no, not this oxp. This had the bug the other way round. It defined the missiles itself by their ship-key.
User avatar
tinker
Deadly
Deadly
Posts: 166
Joined: Tue Jul 22, 2008 7:45 am
Location: Sachsen

Post by tinker »

Did a quick text string search through my addons folder and found references to EQ_HARDENED_MISSILE in all of these -

Cargo Wrecks teaser
Pods
Random Hits
UPS-courier
Assassins
Commies
Feudal States
Hotrods
Trident Down
adcks_behemoths
Galactic Navy
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

I think you need to narrow the search down a little. The Pods one for example (and quite probably the C&W one as well, and indeed some of the others too) is the awarding of a missile (for which EQ_MISSILE and EQ_HARDENED_MISSILE are correct as the award is by role not identifier key) rather than a like_ship reference.
User avatar
tinker
Deadly
Deadly
Posts: 166
Joined: Tue Jul 22, 2008 7:45 am
Location: Sachsen

Post by tinker »

At least -

Random Hits
Fuedal States
UPS Courier

contain "missile_role" = "EQ_HARDENED_MISSILE";

maybe some others have it as well but as I said RL is a problem today, I'll look further into the other oxp's tommorrow.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

That's also valid, as EQ_HARDENED_MISSILE is one of the role set for the ecm-proof-missile (have a look in the trunk shipdata.plist). In that case the line is saying that the default missile used by the ship is a hard-head.

Anything which uses the role of EQ_HARDENED_MISSILE is ok and valid, it's where the missile's idenfitier key is required but the "EQ_HARDENED_MISSILE" is used instead of "ecm-proof-missile" like you originally posted that would be wrong, for example like_ship.
User avatar
ADCK
---- E L I T E ----
---- E L I T E ----
Posts: 771
Joined: Thu Dec 24, 2009 12:30 am
Location: Sydney
Contact:

Post by ADCK »

Ya, Gal navy and ADCK's Behemoths also have ships with missile_role EQ_HARDENED_MISSILE and am not getting any errors.
User avatar
tinker
Deadly
Deadly
Posts: 166
Joined: Tue Jul 22, 2008 7:45 am
Location: Sachsen

Post by tinker »

OK I have more time and brain capacity to concentrate on this today.

First problem I caused was checking my oxp storage folder not addons and there are some older oxp's in there. I have now checked my current addons folder and there are only two oxp's with like_ship references to EQ_HARDENED_MISSILE.

Assassins shipdata.plist line 11is the only active oxp, the other one is in Realistic Shipyards Photon Torpedo.

It also seems I had placed a very old oxp in addons instead of updating to the new version which was the cause of most of the initial errors. I shall do penance by spending the day housekeeping my OOlite folders and polishing the rust on my Fer de Lance.
Post Reply