Conditional Sub-ents

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2278
Joined: Tue Jan 02, 2007 12:38 pm

Conditional Sub-ents

Post by Killer Wolf »

Not sure if this has been asked before, but would it be possible to have sub-ents that could represent a specced-up ship depending on what equipment you buy? eg, buy the advanced space compass and there's an antennae intallation that appears? Maybe using the HUD plist "equipment required" sort of thing?
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: Conditional Sub-ents

Post by montana05 »

Killer Wolf wrote: Mon Jul 11, 2022 7:12 am
Not sure if this has been asked before, but would it be possible to have sub-ents that could represent a specced-up ship depending on what equipment you buy? eg, buy the advanced space compass and there's an antennae intallation that appears? Maybe using the HUD plist "equipment required" sort of thing?
While you can remove a specific sub it is currently only possible to restore all of them. Therefore, to add a sub depending on the equipment, a workaround is needed. When the ship is added, all subs need to be there. By checking the available equipment, you can then remove every sub for equipment not installed. A script should check the time the ship is spawned and the time when leaving the station to make sure that no new parts were bought.

EDIT: Added more detail
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2278
Joined: Tue Jan 02, 2007 12:38 pm

Re: Conditional Sub-ents

Post by Killer Wolf »

thanks for that, think i'll have to do a bit research/play.
User avatar
Cholmondely
Archivist
Archivist
Posts: 5364
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Conditional Sub-ents

Post by Cholmondely »

Have you seen Dertien's Z GrOovy HPC pack?
Has links to threads and other relevant oxp's

Landing Gear and other bits:
Image


Film: https://www.youtube.com/watch?v=FeLpZQI_a4M (shows how ship grows as new equipment is purchased)
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
Post Reply