Page 1 of 1

YAH Constore Remover

Posted: Sat Sep 02, 2023 8:55 pm
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(); }

Re: YAH Constore Remover

Posted: Sat Sep 02, 2023 10:21 pm
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.

Re: YAH Constore Remover

Posted: Sun Sep 03, 2023 1:57 am
by Cholmondely
This seems to have fixed it!

Thanks!!