forward_weapon_type - definition in shipyard/shippdata.pls ?
Moderators: winston, another_commander
- Slartibartfast
- Deadly
- Posts: 175
- Joined: Mon Jan 21, 2008 3:54 pm
forward_weapon_type - definition in shipyard/shippdata.pls ?
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
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 ) 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
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
- montana05
- ---- 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 ?
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.Slartibartfast wrote: ↑Thu Apr 14, 2022 10:37 pmhello
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
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.
Re: forward_weapon_type - definition in shipyard/shippdata.pls ?
Let's see if this is your answer..Slartibartfast wrote: ↑Thu Apr 14, 2022 10:37 pmhello
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 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. Jonny Cuba made me do it!
- Slartibartfast
- Deadly
- Posts: 175
- Joined: Mon Jan 21, 2008 3:54 pm
Re: forward_weapon_type - definition in shipyard/shippdata.pls ?
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
matthias
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
i hope my suggestions will help to make better/clearer oxp/oxzA 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.
matthias
Oolite 1.91 / Imp. Trader ( slighly modified ) 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
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
- montana05
- ---- 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 ?
Good morning Matthias,Slartibartfast wrote: ↑Fri Apr 15, 2022 12:14 amso ( 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
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.
- Slartibartfast
- Deadly
- Posts: 175
- Joined: Mon Jan 21, 2008 3:54 pm
Re: forward_weapon_type - definition in shipyard/shippdata.pls ?
Hmmm
is not very easy to understand
( and not very good documented )
.... i will do my very best
is not very easy to understand
( and not very good documented )
.... i will do my very best
Oolite 1.91 / Imp. Trader ( slighly modified ) 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
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
- montana05
- ---- 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 ?
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 amHmmm
is not very easy to understand
( and not very good documented )
I am confident you will. 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.
- Slartibartfast
- Deadly
- Posts: 175
- Joined: Mon Jan 21, 2008 3:54 pm
Re: forward_weapon_type - definition in shipyard/shippdata.pls ?
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
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 ) 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
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
- montana05
- ---- 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 ?
Good afternoon Matthias,Slartibartfast wrote: ↑Sun Apr 17, 2022 1:35 amhi
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 )
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.
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- 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 ?
Sorry, I missed this originally. I'll check out what the source is doing and report back.
- montana05
- ---- 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 ?
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.