Equipment related to ship specifications?

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
ioannis
Dangerous
Dangerous
Posts: 72
Joined: Mon Apr 16, 2012 6:11 pm

Equipment related to ship specifications?

Post 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.
Scratchbuilding miniatures:
http://miniaturesandstuff.wordpress.com/
the picture in my avatar is a Dwarf Berserker.
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: Equipment related to ship specifications?

Post 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.
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: Equipment related to ship specifications?

Post 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.
User avatar
ioannis
Dangerous
Dangerous
Posts: 72
Joined: Mon Apr 16, 2012 6:11 pm

Re: Equipment related to ship specifications?

Post 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?
Scratchbuilding miniatures:
http://miniaturesandstuff.wordpress.com/
the picture in my avatar is a Dwarf Berserker.
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: Equipment related to ship specifications?

Post by Eric Walch »

Most stuff should be on the [wiki]Equipment.plist[/wiki] page
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Equipment related to ship specifications?

Post 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.
User avatar
ioannis
Dangerous
Dangerous
Posts: 72
Joined: Mon Apr 16, 2012 6:11 pm

Re: Equipment related to ship specifications?

Post 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.
Scratchbuilding miniatures:
http://miniaturesandstuff.wordpress.com/
the picture in my avatar is a Dwarf Berserker.
Post Reply