Skip to content

Commit

Permalink
System scan complete script updated to correct an occasional render…
Browse files Browse the repository at this point in the history
…ing error in the default script.
  • Loading branch information
Tkael committed Jun 3, 2024
1 parent 34ceff3 commit baba704
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Full details of the variables available for each noted event, and VoiceAttack in
* `Ship repaired` updated to correct an occasional rendering error in the default script.
* `Ship targeted` updated to not comment on wanted targets identified while in supercruise unless the current ship contains an interdictor.
* `Star report` updated to correct an occasional rendering error in the default script.
* `System scan complete` updated to correct an occasional rendering error in the default script.


## 4.0.3
* EDSM Responder
Expand Down
2 changes: 1 addition & 1 deletion SpeechResponder/eddi.cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,7 @@
"enabled": true,
"priority": 3,
"responder": true,
"script": "{_ Preferences _}\r\n{set reportGreenSystems to true} {_ if true, reports systems containing all fsd synthesis elements. _}\r\n{set reportGoldSystems to true} {_ if true, reports systems containing all surface prospectable elements. _}\r\n{set reportMaterials to true} {_ If true, recommends material collection locations using the `System materials report` after we have data on all system bodies and when the commander has an SRV _}\r\n{set reportBodiesToMap to true} {_ If true, recommends bodies to map using the `Bodies to map` script. _}\r\n\r\n{_ Fetch from Context, if a context is set _}\r\n{if state.eddi_context_system_name:\r\n {set reportSystem to SystemDetails(state.eddi_context_system_name)}\r\n|else:\r\n {set reportSystem to SystemDetails(event.systemname)}\r\n}\r\n\r\n{if !reportSystem.name || reportSystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n {if ship.Role.edname = \"Exploration\" || ship.Role.edname = \"Multipurpose\":\r\n {for compartment in ship.compartments:\r\n {if compartment.module.invariantName = \"Planetary Vehicle Hangar\":\r\n {set hasSRV to true}\r\n }\r\n }\r\n {if hasSRV:\r\n {if reportSystem.isgold:\r\n {if reportGoldSystems:\r\n This {Occasionally(2, \"star\")} system \r\n {OneOf(\"contains\", \"holds\", \"has\")}\r\n every element \r\n {OneOf(\"that can be found\", \"available\")}\r\n {OneOf(\"on planetary surfaces.\", \"from surface prospecting.\")}\r\n Exploration class: Gold.\r\n }\r\n |elif reportSystem.isgreen:\r\n {if reportGreenSystems:\r\n This {Occasionally(2, \"star\")} system \r\n {OneOf(\"contains\", \"holds\", \"has\")}\r\n every element \r\n {Occasionally(2, \"that may be\")} \r\n required to \r\n {OneOf(\"augment\", \"boost\")} \r\n {OneOf(\"the {Occasionally(2, \\\"jump\\\")} range of this ship.\", \r\n \"an explorer's {Occasionally(2, \\\"jump\\\")} range.\", \r\n \"{ShipName()}'s {Occasionally(2, \\\"jump\\\")} range.\"\r\n )}\r\n Exploration class: Green.\r\n }\r\n }\r\n {if reportMaterials && reportSystem.totalbodies <= len(reportSystem.bodies):\r\n {set materialsReport to F(\"System materials report\")}\r\n {if materialsReport:\r\n {materialsReport}\r\n }\r\n }\r\n }\r\n\r\n {if reportBodiesToMap:\r\n {set bodiesToMap to F(\"Bodies to map\")}\r\n {if bodiesToMap:\r\n {Pause(2000)}\r\n {bodiesToMap}\r\n }\r\n }\r\n }\r\n}",
"script": "{_ Preferences _}\r\n{set reportGreenSystems to true} {_ if true, reports systems containing all fsd synthesis elements. _}\r\n{set reportGoldSystems to true} {_ if true, reports systems containing all surface prospectable elements. _}\r\n{set reportMaterials to true} {_ If true, recommends material collection locations using the `System materials report` after we have data on all system bodies and when the commander has an SRV _}\r\n{set reportBodiesToMap to true} {_ If true, recommends bodies to map using the `Bodies to map` script. _}\r\n\r\n{_ Fetch from Context, if a context is set _}\r\n{if state.eddi_context_system_name:\r\n {set reportSystem to SystemDetails(state.eddi_context_system_name)}\r\n|else:\r\n {set reportSystem to SystemDetails(event.systemname)}\r\n}\r\n\r\n{if !reportSystem.name || reportSystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n {if ship.Role.edname = \"Exploration\" || ship.Role.edname = \"Multipurpose\":\r\n {for compartment in ship.compartments:\r\n {if compartment.module.invariantName = \"Planetary Vehicle Hangar\":\r\n {set hasSRV to true}\r\n }\r\n }\r\n {if hasSRV:\r\n {if reportSystem.isgold:\r\n {if reportGoldSystems:\r\n This {Occasionally(2, \"star\")} system \r\n {OneOf(\"contains\", \"holds\", \"has\")}\r\n every element \r\n {OneOf(\"that can be found\", \"available\")}\r\n {OneOf(\"on planetary surfaces.\", \"from surface prospecting.\")}\r\n Exploration class: Gold.\r\n }\r\n |elif reportSystem.isgreen:\r\n {if reportGreenSystems:\r\n This {Occasionally(2, \"star\")} system \r\n {OneOf(\"contains\", \"holds\", \"has\")}\r\n every element \r\n {Occasionally(2, \"that may be\")} \r\n required to \r\n {OneOf(\"augment\", \"boost\")} \r\n {OneOf(\"the {Occasionally(2, 'jump')} range of this ship.\", \r\n \"an explorer's {Occasionally(2, 'jump')} range.\", \r\n \"{ShipName()}'s {Occasionally(2, 'jump')} range.\"\r\n )}\r\n Exploration class: Green.\r\n }\r\n }\r\n {if reportMaterials && reportSystem.totalbodies <= len(reportSystem.bodies):\r\n {set materialsReport to F(\"System materials report\")}\r\n {if materialsReport:\r\n {materialsReport}\r\n }\r\n }\r\n }\r\n\r\n {if reportBodiesToMap:\r\n {set bodiesToMap to F(\"Bodies to map\")}\r\n {if bodiesToMap:\r\n {Pause(2000)}\r\n {bodiesToMap}\r\n }\r\n }\r\n }\r\n}",
"default": true,
"name": "System scan complete",
"description": "Triggered after having identified all bodies in the system"
Expand Down
2 changes: 1 addition & 1 deletion SpeechResponder/eddi.de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,7 @@
"enabled": true,
"priority": 3,
"responder": true,
"script": "{_ Preferences _}\r\n{set reportGreenSystems to true} {_ if true, reports systems containing all fsd synthesis elements. _}\r\n{set reportGoldSystems to true} {_ if true, reports systems containing all surface prospectable elements. _}\r\n{set reportMaterials to true} {_ If true, recommends material collection locations using the `System materials report` after we have data on all system bodies and when the commander has an SRV _}\r\n{set reportBodiesToMap to true} {_ If true, recommends bodies to map using the `Bodies to map` script. _}\r\n\r\n{_ Fetch from Context, if a context is set _}\r\n{if state.eddi_context_system_name:\r\n {set reportSystem to SystemDetails(state.eddi_context_system_name)}\r\n|else:\r\n {set reportSystem to SystemDetails(event.systemname)}\r\n}\r\n\r\n{if !reportSystem.name || reportSystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n {if ship.Role.edname = \"Exploration\" || ship.Role.edname = \"Multipurpose\":\r\n {for compartment in ship.compartments:\r\n {if compartment.module.invariantName = \"Planetary Vehicle Hangar\":\r\n {set hasSRV to true}\r\n }\r\n }\r\n {if hasSRV:\r\n {if reportSystem.isgold:\r\n {if reportGoldSystems:\r\n This {Occasionally(2, \"star\")} system \r\n {OneOf(\"contains\", \"holds\", \"has\")}\r\n every element \r\n {OneOf(\"that can be found\", \"available\")}\r\n {OneOf(\"on planetary surfaces.\", \"from surface prospecting.\")}\r\n Exploration class: Gold.\r\n }\r\n |elif reportSystem.isgreen:\r\n {if reportGreenSystems:\r\n This {Occasionally(2, \"star\")} system \r\n {OneOf(\"contains\", \"holds\", \"has\")}\r\n every element \r\n {Occasionally(2, \"that may be\")} \r\n required to \r\n {OneOf(\"augment\", \"boost\")} \r\n {OneOf(\"the {Occasionally(2, \\\"jump\\\")} range of this ship.\", \r\n \"an explorer's {Occasionally(2, \\\"jump\\\")} range.\", \r\n \"{ShipName()}'s {Occasionally(2, \\\"jump\\\")} range.\"\r\n )}\r\n Exploration class: Green.\r\n }\r\n }\r\n {if reportMaterials && reportSystem.totalbodies <= len(reportSystem.bodies):\r\n {set materialsReport to F(\"System materials report\")}\r\n {if materialsReport:\r\n {materialsReport}\r\n }\r\n }\r\n }\r\n\r\n {if reportBodiesToMap:\r\n {set bodiesToMap to F(\"Bodies to map\")}\r\n {if bodiesToMap:\r\n {Pause(2000)}\r\n {bodiesToMap}\r\n }\r\n }\r\n }\r\n}",
"script": "{_ Preferences _}\r\n{set reportGreenSystems to true} {_ if true, reports systems containing all fsd synthesis elements. _}\r\n{set reportGoldSystems to true} {_ if true, reports systems containing all surface prospectable elements. _}\r\n{set reportMaterials to true} {_ If true, recommends material collection locations using the `System materials report` after we have data on all system bodies and when the commander has an SRV _}\r\n{set reportBodiesToMap to true} {_ If true, recommends bodies to map using the `Bodies to map` script. _}\r\n\r\n{_ Fetch from Context, if a context is set _}\r\n{if state.eddi_context_system_name:\r\n {set reportSystem to SystemDetails(state.eddi_context_system_name)}\r\n|else:\r\n {set reportSystem to SystemDetails(event.systemname)}\r\n}\r\n\r\n{if !reportSystem.name || reportSystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n {if ship.Role.edname = \"Exploration\" || ship.Role.edname = \"Multipurpose\":\r\n {for compartment in ship.compartments:\r\n {if compartment.module.invariantName = \"Planetary Vehicle Hangar\":\r\n {set hasSRV to true}\r\n }\r\n }\r\n {if hasSRV:\r\n {if reportSystem.isgold:\r\n {if reportGoldSystems:\r\n This {Occasionally(2, \"star\")} system \r\n {OneOf(\"contains\", \"holds\", \"has\")}\r\n every element \r\n {OneOf(\"that can be found\", \"available\")}\r\n {OneOf(\"on planetary surfaces.\", \"from surface prospecting.\")}\r\n Exploration class: Gold.\r\n }\r\n |elif reportSystem.isgreen:\r\n {if reportGreenSystems:\r\n This {Occasionally(2, \"star\")} system \r\n {OneOf(\"contains\", \"holds\", \"has\")}\r\n every element \r\n {Occasionally(2, \"that may be\")} \r\n required to \r\n {OneOf(\"augment\", \"boost\")} \r\n {OneOf(\"the {Occasionally(2, 'jump')} range of this ship.\", \r\n \"an explorer's {Occasionally(2, 'jump')} range.\", \r\n \"{ShipName()}'s {Occasionally(2, 'jump')} range.\"\r\n )}\r\n Exploration class: Green.\r\n }\r\n }\r\n {if reportMaterials && reportSystem.totalbodies <= len(reportSystem.bodies):\r\n {set materialsReport to F(\"System materials report\")}\r\n {if materialsReport:\r\n {materialsReport}\r\n }\r\n }\r\n }\r\n\r\n {if reportBodiesToMap:\r\n {set bodiesToMap to F(\"Bodies to map\")}\r\n {if bodiesToMap:\r\n {Pause(2000)}\r\n {bodiesToMap}\r\n }\r\n }\r\n }\r\n}",
"default": true,
"name": "System scan complete",
"description": "Triggered after having identified all bodies in the system"
Expand Down
2 changes: 1 addition & 1 deletion SpeechResponder/eddi.fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2469,7 +2469,7 @@
"enabled": true,
"priority": 3,
"responder": true,
"script": "{_ Preferences _}\r\n{set reportGreenSystems to true} {_ if true, reports systems containing all fsd synthesis elements. _}\r\n{set reportGoldSystems to true} {_ if true, reports systems containing all surface prospectable elements. _}\r\n{set reportMaterials to true} {_ If true, recommends material collection locations using the `System materials report` after we have data on all system bodies and when the commander has an SRV _}\r\n{set reportBodiesToMap to true} {_ If true, recommends bodies to map using the `Bodies to map` script. _}\r\n\r\n{_ Fetch from Context, if a context is set _}\r\n{if state.eddi_context_system_name:\r\n {set reportSystem to SystemDetails(state.eddi_context_system_name)}\r\n|else:\r\n {set reportSystem to SystemDetails(event.systemname)}\r\n}\r\n\r\n{if !reportSystem.name || reportSystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n {if ship.Role.edname = \"Exploration\" || ship.Role.edname = \"Multipurpose\":\r\n {for compartment in ship.compartments:\r\n {if compartment.module.invariantName = \"Planetary Vehicle Hangar\":\r\n {set hasSRV to true}\r\n }\r\n }\r\n {if hasSRV:\r\n {if reportSystem.isgold:\r\n {if reportGoldSystems:\r\n This {Occasionally(2, \"star\")} system \r\n {OneOf(\"contains\", \"holds\", \"has\")}\r\n every element \r\n {OneOf(\"that can be found\", \"available\")}\r\n {OneOf(\"on planetary surfaces.\", \"from surface prospecting.\")}\r\n Exploration class: Gold.\r\n }\r\n |elif reportSystem.isgreen:\r\n {if reportGreenSystems:\r\n This {Occasionally(2, \"star\")} system \r\n {OneOf(\"contains\", \"holds\", \"has\")}\r\n every element \r\n {Occasionally(2, \"that may be\")} \r\n required to \r\n {OneOf(\"augment\", \"boost\")} \r\n {OneOf(\"the {Occasionally(2, \\\"jump\\\")} range of this ship.\", \r\n \"an explorer's {Occasionally(2, \\\"jump\\\")} range.\", \r\n \"{ShipName()}'s {Occasionally(2, \\\"jump\\\")} range.\"\r\n )}\r\n Exploration class: Green.\r\n }\r\n }\r\n {if reportMaterials && reportSystem.totalbodies <= len(reportSystem.bodies):\r\n {set materialsReport to F(\"System materials report\")}\r\n {if materialsReport:\r\n {materialsReport}\r\n }\r\n }\r\n }\r\n\r\n {if reportBodiesToMap:\r\n {set bodiesToMap to F(\"Bodies to map\")}\r\n {if bodiesToMap:\r\n {Pause(2000)}\r\n {bodiesToMap}\r\n }\r\n }\r\n }\r\n}",
"script": "{_ Preferences _}\r\n{set reportGreenSystems to true} {_ if true, reports systems containing all fsd synthesis elements. _}\r\n{set reportGoldSystems to true} {_ if true, reports systems containing all surface prospectable elements. _}\r\n{set reportMaterials to true} {_ If true, recommends material collection locations using the `System materials report` after we have data on all system bodies and when the commander has an SRV _}\r\n{set reportBodiesToMap to true} {_ If true, recommends bodies to map using the `Bodies to map` script. _}\r\n\r\n{_ Fetch from Context, if a context is set _}\r\n{if state.eddi_context_system_name:\r\n {set reportSystem to SystemDetails(state.eddi_context_system_name)}\r\n|else:\r\n {set reportSystem to SystemDetails(event.systemname)}\r\n}\r\n\r\n{if !reportSystem.name || reportSystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n {if ship.Role.edname = \"Exploration\" || ship.Role.edname = \"Multipurpose\":\r\n {for compartment in ship.compartments:\r\n {if compartment.module.invariantName = \"Planetary Vehicle Hangar\":\r\n {set hasSRV to true}\r\n }\r\n }\r\n {if hasSRV:\r\n {if reportSystem.isgold:\r\n {if reportGoldSystems:\r\n This {Occasionally(2, \"star\")} system \r\n {OneOf(\"contains\", \"holds\", \"has\")}\r\n every element \r\n {OneOf(\"that can be found\", \"available\")}\r\n {OneOf(\"on planetary surfaces.\", \"from surface prospecting.\")}\r\n Exploration class: Gold.\r\n }\r\n |elif reportSystem.isgreen:\r\n {if reportGreenSystems:\r\n This {Occasionally(2, \"star\")} system \r\n {OneOf(\"contains\", \"holds\", \"has\")}\r\n every element \r\n {Occasionally(2, \"that may be\")} \r\n required to \r\n {OneOf(\"augment\", \"boost\")} \r\n {OneOf(\"the {Occasionally(2, 'jump')} range of this ship.\", \r\n \"an explorer's {Occasionally(2, 'jump')} range.\", \r\n \"{ShipName()}'s {Occasionally(2, 'jump')} range.\"\r\n )}\r\n Exploration class: Green.\r\n }\r\n }\r\n {if reportMaterials && reportSystem.totalbodies <= len(reportSystem.bodies):\r\n {set materialsReport to F(\"System materials report\")}\r\n {if materialsReport:\r\n {materialsReport}\r\n }\r\n }\r\n }\r\n\r\n {if reportBodiesToMap:\r\n {set bodiesToMap to F(\"Bodies to map\")}\r\n {if bodiesToMap:\r\n {Pause(2000)}\r\n {bodiesToMap}\r\n }\r\n }\r\n }\r\n}",
"default": true,
"name": "System scan complete",
"description": "Triggered after having identified all bodies in the system"
Expand Down
Loading

0 comments on commit baba704

Please sign in to comment.