If you remove any object from the ruleset, you need to remove also all references of that object.
Otherwise you will get validation errors during startup (where we already validate) or crashes during runtime (where we don't validate yet).
That makes sense. When I was deleting equipment in the
items: section similar messages were displayed about manufacturing projects that no longer had an item linked to it. I'll keep an eye out for other referenced objects.
If you're going to remove missions from alienMissions, then you have to remove the scripts that run those missions from missionScripts. This includes the scripts 'recon' and 'invasion', even though they have almost no ruleset attributes. A mission script with no defined attributes will run one mission every month, selected randomly from the missionWeights as defined under regions (IIRC). To have those scripts run without the vanilla missions, you'd have to change the regions to no longer have vanilla missions available as an option.
So the
missionScripts: actually spawn the UFOs and when they do
alienMissions: is referenced to assign the spawned UFO with a craft type and mission task.
I wouldn't have thought to look inside the
regions.rul thank you for pointing it out.
To remove the
missionWeights: from the
regions: section each "
- type: STR_REGION_NAME" can be deleted then re-added without the
missionWeights: variables like this:
regions:
# Remove North America
- delete: STR_NORTH_AMERICA
# Re-add North America without missionWeights:
- type: STR_NORTH_AMERICA
cost: 800000
areas:
- [195, 305, -70, -55]
- [230, 305, -55, -30]
- [240, 300, -30, -10]
regionWeight: 18
# missionWeights:
# STR_ALIEN_RESEARCH: 14
# STR_ALIEN_HARVEST: 17
# STR_ALIEN_ABDUCTION: 20
# STR_ALIEN_INFILTRATION: 20
# STR_ALIEN_BASE: 20
missionZones:
-
- [200, 220, -65, -60]
- [230, 260, -65, -55]
- [280, 290, -50, -40]
- [230, 250, -50, -40]
- [260, 280, -50, -40]
- [230, 250, -40, -30]
- [250, 272, -40, -28]
- [270, 290, -42, -25]
- [275, 295, -35, -10]
- [240, 280, -30, -10]
-
- [200, 225, -63.75, -60.75]
- [245, 260, -54, -50]
- [250, 260, -50, -40]
- [270, 280, -37, -34]
- [255, 260, -40, -30]
- [255, 260, -25, -20]
- [258.75, 263.75, -19, -17.5]
- [286.5, 289.5, -19.375, -18.625]
- [240, 242, -45, -44]
- [260, 270, -44, -34]
-
- [236, 240, -50, -45]
- [260, 262, -50, -45]
- [265, 270, -18, -17]
- [273.125, 275.75, -13.25, -12.25]
- [241.875, 245.875, -36.5, -34.625]
- [286.375, 291, -46.625, -45]
- [252.75, 263.125, -42.25, -39]
- [286.875, 289, -19, -18.5]
- [274.5, 276.25, -44.375, -43.375]
- [200.625, 216.75, -64.75, -62.25]
-
- [286.125, 286.125, -40.75, -40.75, -1, STR_NEW_YORK]
- [282.875, 282.875, -38.75, -38.75, -1, STR_WASHINGTON]
- [241.75, 241.75, -34.125, -34.125, -1, STR_LOS_ANGELES]
- [284.25, 284.25, -45.5, -45.5, -1, STR_MONTREAL]
- [277.625, 277.625, -22.5, -22.5, -1, STR_HAVANA]
- [260.875, 260.875, -19.375, -19.375, -1, STR_MEXICO_CITY]
- [272.375, 272.375, -41.875, -41.875, -1, STR_CHICAGO]
- [236.75, 236.75, -49.375, -49.375, -1, STR_VANCOUVER]
- [263.375, 263.375, -32.75, -32.75, -1, STR_DALLAS]
-
- [250, 270, -66, -64]
- [280, 292.5, -51, -46]
- [267.5, 269.5, -30, -29.5]
- [240, 246, -45, -38]
- [277.5, 278.5, -31, -28]
- [286.875, 288.75, -19.5, -18.75]
- [273.25, 275.75, -13.125, -11.875]
- [247, 247.5, -27.25, -26.75]
- [222.875, 239.25, -63.625, -59.875]
- [258.125, 267.125, -40.75, -36.875]
-
- [0, 359.875, -90, -80]
- [0, 359.875, 80, 90]
- [180, 200, 0, 10]
- [355, 365, -5, 5]
- [170, 190, -60, -40]
- [305, 325, -60, -30]
- [280, 300, 16.125, 36.125]
- [4.75, 27.625, -52, -44.375]
- [75, 89, -39, -34.375]
- [115, 132.5, 21, 25.5]
Instead of that is there a way to return
missionWeights: to an empty state? When I check the "
UFOpaedia - Ruleset Reference Nightly" page it lists the default state of this
missionWeights: as "
-". I do not know how to achieve that NULL/Empty state.
Is the syntax to do so for example something like:
regions:
- type: STR_NORTH_AMERICA
missionWeights: NULL
Or:
regions:
- type: STR_NORTH_AMERICA
missionWeights: FALSE
Or would just leaving the variable empty be the correct syntax to overwrite
missionWeights: with a blank/empty setting?
regions:
- type: STR_NORTH_AMERICA
missionWeights: