forward_weapon_type - definition in shipyard/shippdata.pls ?

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

Moderators: winston, another_commander

Post Reply
User avatar
Slartibartfast
Deadly
Deadly
Posts: 175
Joined: Mon Jan 21, 2008 3:54 pm

forward_weapon_type - definition in shipyard/shippdata.pls ?

Post by Slartibartfast »

hello

i have a problem to understand the meanings of this double definitions

can somebody explain to me the meaning?

==>> https://wiki.alioth.net/index.php/Shipd ... eapon_type
==>> https://wiki.alioth.net/index.php/Shipyard.plist - > "standard_equipment"

as i see the definition in shipdata make no sense, if shipyard has defined it.
but if not defined there ..can i use a beam-laser(or other) if a military-laser is
defined in shipdata?
( is there any quality order?
-- fx. beam is high - so you can use all lower than this ---- but no military - cause its higher )

:?
Matthias
Oolite 1.91 / Imp. Trader ( slighly modified :wink: ) on Lubuntu 22.04 LTS on AMD64 2x 3800+ ,
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: forward_weapon_type - definition in shipyard/shippdata.pls ?

Post by montana05 »

Slartibartfast wrote: Thu Apr 14, 2022 10:37 pm
hello

i have a problem to understand the meanings of this double definitions

can somebody explain to me the meaning?

==>> https://wiki.alioth.net/index.php/Shipd ... eapon_type
==>> https://wiki.alioth.net/index.php/Shipyard.plist - > "standard_equipment"

as i see the definition in shipdata make no sense, if shipyard has defined it.
but if not defined there ..can i use a beam-laser(or other) if a military-laser is
defined in shipdata?
( is there any quality order?
-- fx. beam is high - so you can use all lower than this ---- but no military - cause its higher )

:?
Matthias
The shipdata.plist includes general information's about the ship, in case that there is a player-version a shipyard.plist with further details need to be created. The weapons in shipyard will override the entries in shipdata but, depending on your optional equipment, the system could assign a better laser than the standard one, e.g. beam instead of a pulse.

A good OXP should have shipdata and shipyard synchronized and include not the same equipment in optional and extra equipment. Unfortunately this in not always the case.
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
Old Murgh
Wiki Wizard
Wiki Wizard
Posts: 639
Joined: Sat Dec 04, 2021 11:01 pm

Re: forward_weapon_type - definition in shipyard/shippdata.pls ?

Post by Old Murgh »

Slartibartfast wrote: Thu Apr 14, 2022 10:37 pm
hello

i have a problem to understand the meanings of this double definitions

can somebody explain to me the meaning?

==>> https://wiki.alioth.net/index.php/Shipd ... eapon_type
==>> https://wiki.alioth.net/index.php/Shipyard.plist - > "standard_equipment"

as i see the definition in shipdata make no sense, if shipyard has defined it.
but if not defined there ..can i use a beam-laser(or other) if a military-laser is
defined in shipdata?
( is there any quality order?
-- fx. beam is high - so you can use all lower than this ---- but no military - cause its higher )

:?
Matthias
Let's see if this is your answer..

The shipdata holds all the basic rules and parameters of the ship. If it says beam laser, that's what an NPC will have when you meet it in space.

The shipyard sets the rules for when you see the ship in the "ships for sale" and equipment market, –only then, and this is exclusive for the player. It will define what is standard with a basic purchase, and what is optional. Sometimes the store will offer variations of the "optional eq already installed.

If military laser is among the optionals, it is available for you to buy it, if mining laser isn't in the optional list, you can't buy it, even though it's "lower", no order to it.

Hope that addresses what you're asking.
I was young, I was naïve. [EliteWiki] Jonny Cuba made me do it!
User avatar
Slartibartfast
Deadly
Deadly
Posts: 175
Joined: Mon Jan 21, 2008 3:54 pm

Re: forward_weapon_type - definition in shipyard/shippdata.pls ?

Post by Slartibartfast »

hi montana

O.K
this seems logical, that shipyard is boss! (for "player-ships )
and for "npc-ships" it should be shipdata-dependent
( cause there is no shipyard )

so ( in shipdata)
forward_weapon_type should not be allowed for player-ships ( has to be defined in shipyards )
for npc-ships a "max-laser" should be defined be defined in shipdata
-or ...... maybe "role" dependent

A good OXP should have shipdata and shipyard synchronized and include not the same equipment in optional and extra equipment. Unfortunately this in not always the case.
i hope my suggestions will help to make better/clearer oxp/oxz

matthias
Oolite 1.91 / Imp. Trader ( slighly modified :wink: ) on Lubuntu 22.04 LTS on AMD64 2x 3800+ ,
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: forward_weapon_type - definition in shipyard/shippdata.pls ?

Post by montana05 »

Slartibartfast wrote: Fri Apr 15, 2022 12:14 am
so ( in shipdata)
forward_weapon_type should not be allowed for player-ships ( has to be defined in shipyards )
for npc-ships a "max-laser" should be defined be defined in shipdata
-or ...... maybe "role" dependent

matthias
Good morning Matthias,
weapon_type for player-ships in the shipdata is not a big deal, either way, shipyard will correct it. For a copy & paste enthusiast like me, it does offer the option to create a player ship with like_ship to the NPC version and just modify some details.

You do have the option auto_weapons for NPC's, if set you to "yes" the core-game will assign lasers from the pool available, including installed OXP's. With "no" only the laser from shipdata will appear in this specific ship.
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
Slartibartfast
Deadly
Deadly
Posts: 175
Joined: Mon Jan 21, 2008 3:54 pm

Re: forward_weapon_type - definition in shipyard/shippdata.pls ?

Post by Slartibartfast »

Hmmm

is not very easy to understand
( and not very good documented )

.... i will do my very best :wink:
Oolite 1.91 / Imp. Trader ( slighly modified :wink: ) on Lubuntu 22.04 LTS on AMD64 2x 3800+ ,
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: forward_weapon_type - definition in shipyard/shippdata.pls ?

Post by montana05 »

Slartibartfast wrote: Fri Apr 15, 2022 12:59 am
Hmmm

is not very easy to understand
( and not very good documented )
I do agree with you, some documentation isn't very clear and, to make it even more confusing, not every part is working as explained, sometimes a workaround is needed.
Slartibartfast wrote: Fri Apr 15, 2022 12:59 am
.... i will do my very best :wink:
I am confident you will. :D Personally, if I intend to design something new, I spike the test OXP with logs to check the outcome and possible inference with other OXP's.
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
Slartibartfast
Deadly
Deadly
Posts: 175
Joined: Mon Jan 21, 2008 3:54 pm

Re: forward_weapon_type - definition in shipyard/shippdata.pls ?

Post by Slartibartfast »

hi

i was playing around with the lasers
- but after all explanations -- the problem remains

in shipyard - you can enter what you want -> no effect
only shipdata sets the standard ( when you buy a ship )
-- but in shipdata the variable is called "forward_weapon_type"
and, in my eyes that means "all weapons are allowed,
which are in the matching group (f.x. beam-laser)"

--------------
btw. similar problem with "missiles"
imho - it makes no sense to define "max_missiles" in shipdata
- a ship has no missiles - it has pylons
so "number_of_pylons" would be much better

-- maybe, when you are working with that a long time -> no problem
but for a "new", who wants to understand what happens, .....it's not easy

cheers
Oolite 1.91 / Imp. Trader ( slighly modified :wink: ) on Lubuntu 22.04 LTS on AMD64 2x 3800+ ,
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: forward_weapon_type - definition in shipyard/shippdata.pls ?

Post by montana05 »

Slartibartfast wrote: Sun Apr 17, 2022 1:35 am
hi

i was playing around with the lasers
- but after all explanations -- the problem remains

in shipyard - you can enter what you want -> no effect
only shipdata sets the standard ( when you buy a ship )
Good afternoon Matthias,
I was kind of surprised when I saw your message today, it is the opposite from what I got explained. However, some test-runs proofed that you are right. It doesn't matter if the laser in shipdata is weaker or stronger than in shipyard, shipdata will always be assigned, even if it is an OXP laser. Which, somehow, raises the questions for what the "forward_weapon_type" in shipyard actually exists.

Ok, I am passing this ball now in phkb's field, hopefully he could give us an explanation.
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4814
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: forward_weapon_type - definition in shipyard/shippdata.pls ?

Post by phkb »

Sorry, I missed this originally. I'll check out what the source is doing and report back.
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: forward_weapon_type - definition in shipyard/shippdata.pls ?

Post by montana05 »

phkb wrote: Thu May 05, 2022 5:44 am
Sorry, I missed this originally. I'll check out what the source is doing and report back.
Thank you phkb,
in the meanwhile we moved the discussion to the "Testing and bugs reports": viewtopic.php?f=3&t=21226
Scars remind us where we've been. They don't have to dictate where we're going.
Post Reply