YAH Constore Remover

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

Moderators: winston, another_commander

Post Reply
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:

YAH Constore Remover

Post by Cholmondely »

This OXP removes the Constores as intended - but leaves their beacons/buoys!

Any ideas for how I can tweak it?



I added it in because a massive supermarket which only stocks 10 of each item seems quite bizarre (however good-looking the station - and it is still in the original OXP anyway...).

The buoys are labelled as Constore Buoys and again, seem rather out of place!


OXP contents:
Shipdata.plist

Code: Select all

{
	"YAH_fakeConBeacon" = {
		like_ship = "splinter";
        roles = "constore-buoy";
		script = "YAH_selfRemove.js";
	};

    "YAH_fakeConstore" = {
		like_ship = "splinter";
        roles = "constore";
		script = "YAH_selfRemove.js";
	};
}
Shipdata-overrides.plist

Code: Select all

{
	"yah_set_A_constore" = {
	roles = "YAH_disabledConstore";
	};

    "yah_set_A_01-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};

    "yah_set_A_02-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_A_03-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_A_04-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_A_05-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_A_06-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_A_07-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_A_08-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_A_09-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_A_10-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
	"yah_set_B_constore" = {
	roles = "YAH_disabledConstore";
	};
	
    "yah_set_B_01-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};

    "yah_set_B_02-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_B_03-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_B_04-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_B_05-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_B_06-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_B_07-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_B_08-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_B_09-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_B_10-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
	"yah_set_C_constore" = {
	roles = "YAH_disabledConstore";
	};
		
    "yah_set_C_01-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};

    "yah_set_C_02-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_C_03-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_C_04-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_C_05-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_C_06-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_C_07-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_C_08-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_C_09-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_C_10-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
	"yah_set_D_constore" = {
	roles = "YAH_disabledConstore";
	};
	
    "yah_set_D_01-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};

    "yah_set_D_02-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_D_03-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_D_04-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_D_05-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_D_06-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_D_07-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_D_08-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_D_09-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_D_10-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
	"yah_set_E_constore" = {
	roles = "YAH_disabledConstore";
	};
	
    "yah_set_E_01-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};

    "yah_set_E_02-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_E_03-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_E_04-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_E_05-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_E_06-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_E_07-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_E_08-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_E_09-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_E_10-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
	"yah_set_F_constore" = {
	roles = "YAH_disabledConstore";
	};
	
    "yah_set_F_01-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};

    "yah_set_F_02-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_F_03-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_F_04-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_F_05-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_F_06-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_F_07-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_F_08-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_F_09-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_F_10-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
	"yah_set_G_constore" = {
	roles = "YAH_disabledConstore";
	};
	
    "yah_set_G_01-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};

    "yah_set_G_02-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_G_03-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_G_04-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_G_05-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_G_06-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_G_07-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_G_08-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_G_09-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_G_10-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
	"yah_set_H_constore" = {
	roles = "YAH_disabledConstore";
	};
	
    "yah_set_H_01-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};

    "yah_set_H_02-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_H_03-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_H_04-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_H_05-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_H_06-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_H_07-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_H_08-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_H_09-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_H_10-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
	"yah_set_I_constore" = {
	roles = "YAH_disabledConstore";
	};

    "yah_set_I_01-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};

    "yah_set_I_02-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_I_03-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_I_04-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_I_05-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_I_06-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_I_07-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_I_08-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_I_09-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_I_10-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
	"yah_set_J_constore" = {
	roles = "YAH_disabledConstore";
	};
	
    "yah_set_J_01-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};

    "yah_set_J_02-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_J_03-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_J_04-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_J_05-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_J_06-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_J_07-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_J_08-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_J_09-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
	
    "yah_set_J_10-conbeacon" =     {
	roles = "YAH_disabledConBeacon";
	};
}
YAH Self-remove.js

Code: Select all

this.name					= "YAH_selfRemove.js";
this.author					= "Thargoid";
this.copyright				= "Creative Commons Attribution - Non-Commercial - Share Alike 3.0 license";
this.description			= "Ship script to remove dummy constore and beacon.";
this.version				= "1.0";
"use strict";

this.shipSpawned = function()
	{ this.ship.remove(); }
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?
Alnivel
Dangerous
Dangerous
Posts: 100
Joined: Fri Jun 10, 2022 7:05 pm

Re: YAH Constore Remover

Post by Alnivel »

Add an entry for "yah_conbeacon" in the ship-overrides.plist:

Code: Select all

    "yah_conbeacon"=     {
	roles = "YAH_disabledConBeacon";
	};
It looks like earlier versions of the YAH sets carried their own version of bouy with them, but later they were all replaced by one in the main package, but the remover OXP was not updated for this.
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: YAH Constore Remover

Post by Cholmondely »

This seems to have fixed it!

Thanks!!
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