2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-07-01 08:23:42 -04:00
Commit Graph

157 Commits

Author SHA1 Message Date
f8eee18d78 Widen journal file filters for Odyssey Update 11 2022-03-15 12:15:18 -02:30
e4f90d5a62 Merge branch 'master' of https://github.com/Xjph/ObservatoryCore 2022-03-15 11:15:53 -02:30
3af9e3ec7b Update 11 journal changes 2022-03-15 11:15:44 -02:30
F K
fa5c978b34 Revert PluginCore use of event listening for current LogMonitor state (#64)
The order that listeners get notified isn't deterministic and as a result plugins which read the current state from PluginCore during the handling of a state change event may read a stale state resulting in unexpected results. PluginCore now reads a property directly from LogMonitor to avoid such inconsistencies.
2022-03-15 11:14:20 -02:30
F K
4f4ba88878 Add event-based LogMonitor state changes to better handle batch reads (#59)
* Add event-based LogMonitor state changes to better handle batch reads

Pre-reading hackily used read-all to suppress notifications. But that broke some assumptions about what read-all meant. Furthermore, the Core UI told plugins about read-all rather than the log monitor telling them -- which is really what should be telling them.

To address these concerns, LogMonitor now provides an event that both the PluginCore and PluginEventHandler listens to or tracking logging state allowing more granular information about the activities of LogMonitor, including distinguishing between ReadAll and Pre-read batches. Plugins no longer need to track if LogMonitor is in batch-read mode or not -- PluginCore now provides it. 

I've also converted all built-in plugins to use the new event-based system. The old system is marked deprecated and will go away once other known contributed plugins have converted to the new system.

* Change LogMonitorState enum to [Flags], drop 'None' state

As requested, and did associated simplifications and cleanup that followed.
2022-03-03 16:39:49 -03:30
7c54d6dd65 On linux try Steam/Proton default journal location 2022-03-02 17:09:35 -03:30
7c209efb9f Revert "Close Ring Proximity criteria: Prevent it from triggering on a belt (#56)" (#58)
This reverts commit d9fbdd5269.
2022-02-26 20:10:29 -03:30
2915045ba9 Create solution containing all projects for dev purposes 2022-02-26 18:17:59 -03:30
F K
d9fbdd5269 Close Ring Proximity criteria: Prevent it from triggering on a belt (#56)
I actually had this recently, which is how I found it.
2022-02-26 17:18:49 -03:30
F K
b465b3d886 Add missing docs for new NotificationArgs.Rendering enum (#57)
This functionality was originally added in #47.
2022-02-26 17:18:40 -03:30
b765e9f09e Ignore local build output and setup package 2022-02-26 17:15:21 -03:30
5043060ee2 Add top level error logging. (#55)
* Add top level error logging.

* Remove test exception, chain stringbuilders.
2022-02-22 12:00:01 -05:00
2d65123d28 Merge branch 'master' of https://github.com/Xjph/ObservatoryCore 2022-02-22 08:26:34 -03:30
18f3e3bb89 Incoke error popup on UI thread. 2022-02-22 08:26:04 -03:30
F K
6dcec0404b Show notification with genetic sampling status while in progress (#53)
When first sample is taken, the notification is displayed showing what was sampled and number of samples taken. Number of samples taken is updated on the second sample. Notification is removed when the final sample is taken.
2022-02-05 17:23:15 -03:30
0e065a6fa8 Scripts to build component projects used by Core 2022-01-23 11:24:32 -03:30
F K
9367114cff Show notification with genetic sampling status while in progress (#51)
* Show notification with genetic sampling status while in progress

When first sample is taken, the notification is displayed showing what was sampled and number of samples taken. Number of samples taken is updated on the second sample. Notification is removed when the final sample is taken.

* Add setting and additional notification cleanup conditions

As requested:
- Added a setting to control the genetic sampler overlay.
- Added a few  more conditions (FSDJump, LeaveBody, Shutdown) to clean up the notification.
2022-01-23 11:04:52 -03:30
F K
fcf60f6776 For some reason this check failed and resulted in a stack overflow (#52)
Added a second condition to the Observatory.Framework assembly loading check to prevent a stack overflow condition.
2022-01-21 08:16:03 -03:30
F K
1e1aeef958 Fix incorrect type for the Cargo.Inventory property (#49)
Discovered when attempting to handle this event for an in-progress plugin.
2022-01-01 03:51:30 -03:30
F K
701f6f0b1c Add new Rendering controls for notifications, add missing forwarding (#47)
Plugins authors can now optionally specify what ways their notifications are rendered (subject, of course, to user preferences/settings). The default is to render notifications in all available channels. Examples:
- Show native pop-up window only (ie. no voice/plugin notifiers)
- Disallow other plugin notifiers

This does not support selection of notifier plugins.

Furthermore, persistent notification updates were not previously being forwarded to anything but the native popup notifier. Now plugins and native voice are also supported (subject to user preferences) and respect the new rendering controls added here. There is currently no concept of closing notifications for the native voice or plugin-based notifiers.
2021-12-18 17:57:23 -03:30
F K
8c26193aa6 Add missing using (#46)
Caused local build to fail after syncing to commit 714537e58a.
2021-12-18 17:51:46 -03:30
F K
44dfbe4b7e When pre-reading current system context, consider docked Carrier jumps (#45)
System context pre-reading logic previously assumed the player jumped into the current system in their own ship as a pilot. Arriving docked on their carrier was thus missed and may have resulted in processing more than one systems worth of context (or simply failing to pre-read context).
2021-12-18 17:51:18 -03:30
F K
177707f6ae Fix a couple of invalid thread exceptions in NativePopup notifications (#43)
Manipulating active notifications must be done on the Avalonia UI thread. UpdateNotification and CloseNotification were not properly doing this.

Any plugin attempting to use persistent notifications would have encountered these errors.

NOTE: There is not yet hooks for cleaning up persistent/infinite timeout notifications when the APP is closed.
2021-12-18 15:16:57 -03:30
b2d0637146 handle nil values in lua iterators 2021-12-18 13:23:05 -03:30
714537e58a corrected powerplayvoucher systems type 2021-12-18 13:10:04 -03:30
889825275d New feature: Monitor on start (#42)
* Implement monitor on start

* finish implementation of monitor on start
2021-12-18 12:21:07 -03:30
d3315c5c65 docs updated to latest xml tags 2021-11-25 17:21:20 -03:30
333e5054a1 another missing on foot crime type 2021-11-25 17:20:40 -03:30
d5e73d7414 more id fields changed to uint64 2021-11-25 17:20:27 -03:30
9fd9f4dd03 Merge branch 'master' of https://github.com/Xjph/ObservatoryCore 2021-11-24 19:42:46 -03:30
1bf3927aca Add missing on foot crime type 2021-11-24 19:42:43 -03:30
8094820ffd Add missing converter for micro resource trade 2021-11-24 19:42:32 -03:30
dc8a7adad2 Fix discord url 2021-11-24 10:03:30 -03:30
d356e43edb More xml docs. 2021-11-23 19:13:35 -03:30
3524c4ae40 Change to default disabled 2021-11-23 18:57:16 -03:30
76dada8651 Removing "multiple criteria" setting 2021-11-22 11:20:14 -03:30
45b3dbf115 Suppress body ordinal in results for system-wide checks 2021-11-22 11:18:33 -03:30
27a6b8c39d Fix green and gold material checks #36 2021-11-22 11:09:49 -03:30
5485d5b955 add check for uncommon secondary #38 2021-11-22 10:48:08 -03:30
c0894a3a10 Merge branch 'master' of https://github.com/Xjph/ObservatoryCore 2021-11-22 10:38:21 -03:30
ab1d6d41dc Change all "ID" parameter types to ulong 2021-11-22 10:37:50 -03:30
cffaec92ec Place custom criteria call inside try block 2021-11-22 10:14:27 -03:30
F K
1727e5fb2a Preserve inner XML when setting a voice style (#37)
The former method lost any XML markup (such as say-as tags, etc) embedded within the voice tag. In the future if support for setting voice speed is added, it can be inserted here easily as well.
2021-11-20 10:51:11 -03:30
b4ce5b641c Error clarity
Make more clear that the error is happening during the criteria file read, not while processing scans.
2021-11-18 08:29:12 -03:30
e5e6569aa0 Add community links 2021-11-17 08:42:04 -03:30
139b5608d4 add Herald to installer 2021-11-15 22:21:32 -03:30
d37b289355 fix to preserve "general" speaking styles 2021-11-15 20:35:42 -03:30
cd246c76e8 Implement close binary check 2021-11-15 11:19:57 -03:30
554948534e observatory herald (#30)
* WIP: initial commit for observatory herald

* Plugin error handling refactor

* make error window non-modal

* tidy up plugin error handling

* first pass for basic herald functionality

* corrections for linux env

* Use FNV hash directly instead of managing through dictionary/index file

* resolve audio queuing issue, switch to personal NetCoreAudio fork

* merge cleanup

* add enable setting, populate defaults

* framework xml doc update

* Adjust settings, add style selection, replace locale with demonym in dropdown list.

* Test is position is on screen before saving/loading.

* use a default that's actually in the list
2021-11-15 10:57:46 -03:30
9ad3f77bb8 change to accept overflows 2021-11-11 18:47:56 -03:30