odd shipdata keys

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

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Commander McLane
---- E L I T E ----
---- 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:

odd shipdata keys

Post by Commander McLane »

I just noticed that virtually all NPCs in the 1.76 shipdata use weapon_position_port and weapon_position_starboard.

Is that a hint on a planned feature, or an oddity? I was thinking that it might raise false expectations with ship designers.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: odd shipdata keys

Post by Eric Walch »

Commander McLane wrote:
Is that a hint on a planned feature, or an oddity? I was thinking that it might raise false expectations with ship designers.
No, those lines were already in version 1.65. They were just never removed.
User avatar
Commander McLane
---- E L I T E ----
---- 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:

Re: odd shipdata keys

Post by Commander McLane »

So maybe it's time to remove them (more like long overdue)?

IIRC there was a time when NPC and player versions were like_shipped. Therefore it made sense to include keys which weren't valid for the ship they were included in. But currently everything is cleanly split. So why leave these relics in?
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: odd shipdata keys

Post by JensAyton »

Commander McLane wrote:
IIRC there was a time when NPC and player versions were like_shipped.
Was there? I don’t think there was.
Commander McLane wrote:
But currently everything is cleanly split. So why leave these relics in?
How is it “clean” to not use like_ship? What is the benefit? (This is not an idle nitpick.)
User avatar
Commander McLane
---- E L I T E ----
---- 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:

Re: odd shipdata keys

Post by Commander McLane »

Ahruman wrote:
Commander McLane wrote:
IIRC there was a time when NPC and player versions were like_shipped.
Was there? I don’t think there was.
I misremembered. What I actually meant was that back in Oolite 1.65 the NPC shipdata contained some more keys that were valid only for player ships (which back then lead to possible confusion about what these keys do; OXP'ers who studied the in-built plists could (and probably did in some cases) come to the conclusion that NPCs could sport side weapons; or that the view positions would have some effect):

Code: Select all

max_missiles
view_position_aft
view_position_forward
view_position_port
view_position_starboard
weapon_position_port
weapon_position_starboard
Missiles have become awardable at some point, so the max_missiles does have a meaning now. The view_position_foo keys really do nothing for NPCs, and have been removed at some point. The weapon_position_port and weapon_position_starboard also—for all I know—really do nothing for NPCs (except there would be—unbeknownst to me—a plan to implement side weapons for NPCs in the future). So all I was asking is why they are still there and haven't been removed, just as the view_position_foo keys have been removed.

All the rest is an off-topic tangent.
Post Reply