Page 1 of 1

Equipment related to ship specifications?

Posted: Sat Mar 30, 2013 12:05 pm
by ioannis
I have noticed that all types of equipment are available for all ship types and sizes. I was thinking if it would be possible to make some equipment compatible with only specific types of ship (according to cargo capacity, for example).
In that sense, there would be ship classes (as there are now, up to a point) and some types of equipment (such as the equipment that makes it possible to process scooped minerals, for instance) would only be available to certain ships (let's say ships that have a cargo capacity of 40 tc and above) and not others. It would make sense, IMHO, because some types of equipment would normally be too bulky for some ships to handle. There is already the possibility of adding equipment that takes up some space, such as the passenger berth. It might be a good idea to expand this concept to other types of ship addition, as well.

Re: Equipment related to ship specifications?

Posted: Sat Mar 30, 2013 1:10 pm
by Eric Walch
Should be possible since long, by not defining equipment "available_for_all", and than define in the ship definition that is can carry tat specific equipment. Problem is of cause, that you can not introduce new equipment without redefining all older ship definitions.

Since 1.77 however, you can add a script to the condition field. There it would be possible to add a JS condition about ship weight etc.

Re: Equipment related to ship specifications?

Posted: Sat Mar 30, 2013 1:16 pm
by Commander McLane
ioannis wrote:
I was thinking if it would be possible to make some equipment compatible with only specific types of ship (according to cargo capacity, for example).
This has always been the case, albeit only very limited. For instance, not all ships are able to mount a [wiki]Military Shield Enhancement[/wiki].
ioannis wrote:
There is already the possibility of adding equipment that takes up some space, such as the passenger berth. It might be a good idea to expand this concept to other types of ship addition, as well.
Yes, and that's exactly what just happened. In Oolite 1.77, equipment can take up cargo space (which was previously only the case for passenger berths, which were handled as a special case by the game). I think that there are already some OXP equipment items available which make use of this new mechanism. Whether it gets applied retroactively for existing OXP equipment as well, is in the hands of the respective OXP authors/maintainers.

Re: Equipment related to ship specifications?

Posted: Sat Mar 30, 2013 1:28 pm
by ioannis
Thank you for this info, guys.
I think that there are already some OXP equipment items available which make use of this new mechanism. Whether it gets applied retroactively for existing OXP equipment as well, is in the hands of the respective OXP authors/maintainers.
I assume that each oxp user could, if he/she chose to do so, apply this in his game. Is it possible to get some information on what needs to be modified in the OXP, in order to do so?

Re: Equipment related to ship specifications?

Posted: Sat Mar 30, 2013 4:28 pm
by Eric Walch
Most stuff should be on the [wiki]Equipment.plist[/wiki] page

Re: Equipment related to ship specifications?

Posted: Sun Mar 31, 2013 5:32 am
by Switeck
Commander McLane wrote:
In Oolite 1.77, equipment can take up cargo space (which was previously only the case for passenger berths, which were handled as a special case by the game).
Large Cargo Bay could also change cargo space.

Re: Equipment related to ship specifications?

Posted: Tue Apr 02, 2013 4:37 pm
by ioannis
Thanks to Eric Walch's advice I managed to succesfully modify the Ore Precessor to take up cargo space:
(
(
11,
35000,
"Ore Processor",
"EQ_ORE_PROCESSOR",
"Connects to the fuel scoops for instant extraction of higher valued materials from mined ore.",
{
"available_to_all" = YES;
"requires_equipment" = "EQ_FUEL_SCOOPS";
"requires_cargo_space" = 5;
}
),
)
This is the new equipment.phlist :D
Thank you, Eric.