1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-12 15:27:14 +03:00

456 Commits

Author SHA1 Message Date
David Sangrey
d61997f76f
[RELEASE] 5.12.3 2025-03-31 21:36:32 -04:00
David Sangrey
8bbc26d42d
[Fix] Actually Not Ignorable
Co-Authored-By: A_D <A-UNDERSCORE-D@users.noreply.github.com>
2025-02-08 12:35:14 -05:00
David Sangrey
9a3240d814
[Fix] More MyPy Suppression 2025-02-08 12:28:02 -05:00
David Sangrey
9a9246cec3
Merge pull request #2347 from colsw/stateupdate
Include 'missing?' Loadout event properties in 'state'
2025-02-08 17:19:44 +00:00
David Sangrey
b30eca7979
[Fix] Ignore Typing of Potential Null 2025-02-08 12:15:28 -05:00
David Sangrey
6abdaf1537
[2320] Update Hull Get 2025-01-06 16:11:08 -05:00
David Sangrey
7d3d09f60b
[#2324] Update Watchdog 2025-01-06 15:42:55 -05:00
Connor
18d71776b3
Update monitor.py
Added properties of the loadout event which are missing from state: UnladenMass, CargoCapacity, MaxJumpRange, and FuelCapacity
2024-12-27 20:29:31 +00:00
David Sangrey
5ad7fcfa62
[2303] Attempt Reversion 2024-09-30 18:42:09 -04:00
David Sangrey
1e9dec1371
[610] Improved process_iter
Significant speed-up. Around 20x in psutils 6.0!
2024-07-29 19:32:16 -04:00
David Sangrey
b74524a4cd
Merge branch 'develop' into enhancement/1805/additional-prototyping 2024-07-22 00:16:25 -04:00
David Sangrey
6139d66b8e
Merge branch 'develop' into enhancement/2114/pathlib-handover 2024-07-21 23:40:35 -04:00
David Sangrey
19c9151135
[2262] Format SLEF with Square Brackets 2024-06-23 13:26:44 -04:00
David Sangrey
d9f7b72e46
[2262] Update Type Hinting 2024-06-23 13:09:13 -04:00
David Sangrey
3b6259276a
[2262] Move SLEF to Monitor 2024-06-23 13:05:39 -04:00
David Sangrey
f1df1c7da7
[#610] Enable game_running on Linux 2024-06-18 12:20:08 -04:00
David Sangrey
81a3b4fd5f
[1805] Pull In Code from 1808 2024-06-18 10:00:15 -04:00
David Sangrey
625856c31c
[1805] Apply More Pywin32 2024-06-11 11:36:43 -04:00
David Sangrey
f8d354a4dd
[1805] Implement win32con in Hotkey 2024-06-11 10:42:57 -04:00
David Sangrey
b1ba45ab90
[1805] Update Prototypes 2024-06-10 23:29:04 -04:00
David Sangrey
17a7af959a
[#1805] pywin32 Handoff 2024-06-10 23:00:44 -04:00
David Sangrey
fe8818d187
[2114] Apply PathLib Handover 2024-06-10 17:21:06 -04:00
David Sangrey
99a23d40cd
Merge branch 'develop' into fix/2166/update-watchdog-typehints 2024-05-13 19:11:04 -04:00
David Sangrey
f03ae7809f
[2166] Update Watchdog Type Hints
Watchdog 4.0.0 included an update to the public API where FileSystemEvent, and subclasses, are now dataclasses, and their repr() has changed.

As such, (insofar as I can tell) the FileCreatedEvent is now a FileSystemEvent. MyPy also suggests that this is a FileSystemEvent as well.
2024-04-27 15:27:22 -04:00
David Sangrey
080d9f98f2
[1812] Handover Translations 2024-04-22 17:33:28 -04:00
David Sangrey
ccb103242c
Merge branch 'develop' into enhancement/2186/remove-darwin 2024-04-05 17:17:51 -04:00
David Sangrey
56a4ae25e0
[Nit] Clarify Comments 2024-03-27 22:21:26 -04:00
David Sangrey
1800f8f0b1
[2186] Remove Some Comments 2024-03-27 22:17:21 -04:00
David Sangrey
93d26e07e0
[2186] Remove Monitor, L10n References 2024-03-27 19:19:15 -04:00
David Sangrey
813cf92521
[1133] Add ContextMenu Globally 2024-03-23 16:54:13 -04:00
David Sangrey
4df38d6a73
[635] Remove Outdated Comment
All Dicts Keep Order.

Co-authored-by: Phoebe <40956085+C1701D@users.noreply.github.com>
2024-01-04 14:12:47 -05:00
David Sangrey
7cac00b2e8
[635] Remove Ordered Dict 2024-01-03 23:55:12 -05:00
David Sangrey
cb2a18025c
[2051] First Pass Remaining Files 2023-11-30 21:30:18 -05:00
David Sangrey
8763e9f5db
#2032 Suppress some Type Hint Errors 2023-07-22 22:02:35 -04:00
Athanasius
650b43cc3c
PLUGINS: Document monitor.is_live_galaxy() as sanctioned for use 2023-01-18 11:30:28 +00:00
Athanasius
5bd14ddd78
monitor: Don't synthesize StartUp if current event is ShutDown 2023-01-17 16:40:58 +00:00
Athanasius
9f0edc5a29
Merge pull request #1798 from EDCD/fix/1042/centralise-plugin-tracking
Move core plugin 'location' tracking into monitor.py
2023-01-17 11:31:13 +00:00
Athanasius
2f2ee885c8
monitor/tracking: *Do* clear supercruisentry/body state if Station type 2023-01-16 19:30:02 +00:00
Athanasius
3d41be7651
monitor: log INFO when for-plugins StartUp event synthesized
This is actually to do with a reported issue around the ctypes code in
`EDLogs.gamerunning()` causing:

```python
exception ignored on calling ctypes callback function: <function EDLogs.game_running.<locals>.callback at 0x0000020E9C9D0EA0>
Traceback (most recent call last):
  File "monitor.pyc", line 2041, in callback
  File "monitor.pyc", line 2034, in WindowTitle
ctypes.ArgumentError: argument 1: OverflowError: int too long to convert
```

Although I can't personally get this to trigger at all under 64-bit python,
either in PyCharm *or* with the 5.7.1-alpha1 64-bit pre-release.

`game_running()` is only used in a few places, and the key things it
malfunctioning might cause are lack of the synthetic `ShutDown` (already
has an INFO logging) and `StartUp` events.
2023-01-12 14:50:44 +00:00
Athanasius
ef1642181a
monitor/tracking: Move .stationtype to state['StationType']
* Nothing outside of monitor.py uses this, but it's of the same nature as
  StationName and MarketID, so do this for consistency.

For now we'll leave monitor.stationservices as-is.
2023-01-11 19:44:45 +00:00
Athanasius
31e8d0372d
monitor/tracking: Move .station_marketid to state['MarketID']
1. plugins/eddb.py uses this for MarketID-based station URLs.

* So do the 'rename'.
* Remove EDDB tracking in favour of this.
* Update PLUGINS.md
2023-01-11 19:44:44 +00:00
Athanasius
2a8dd14e24
tracking/stationname; Minor fixups
* Missed a some `self.station` in monitor.py
* Fixed EDDB system *and* station link setting.  Brainfart had mixed them
  together in last commit.
2023-01-11 19:44:43 +00:00
Athanasius
dde0cf876c
monitor/tracking: Move .station to state['StationName']
1. EDDB tracks this.

* So move monitor.station to monitor.state['StationName'].
* PLUGINS.md updated to cite this.
2023-01-11 19:44:41 +00:00
Athanasius
df5eb5b270
monitor/tracking: Switch .systempopulation to state['SystemPopulation']
1. EDDB plugin tracked this for keeping the Station link text up to date.

* So moved it to monitor.state['SystemPopulation'].
* PLUGINS.md updated to cite this.
* PLUGINS.md also updated to note state entries that are set to None if
  remote multi-crew is detected.
2023-01-11 19:44:14 +00:00
Athanasius
fa1c072d9e
monitor: Change .system to state['SystemName']
1. EDDB plugin needs to track the system name, but we're moving all of that
  into monitor.py.
2. monitor.py was tracking this in monitor.system, but it needs to be in
  monitor.state['SystemName'] in order for plugins to access it.

So, move monitor.system to monitor.state['SystemName'] and update all uses.
2023-01-11 19:44:08 +00:00
Athanasius
dab69367e2
monitor: Cite the Status.json body workaround for Body data caveat 2023-01-11 19:43:26 +00:00
Athanasius
d533919790
monitor: Add some documentation about the player location tracking caveats 2023-01-11 19:43:25 +00:00
Athanasius
edc23081b1
monitor: Extend 'approachbody' comment to call out use in plugins/eddn.py
We're setting `self.state['BodyType']` specifically so plugins/eddn.py's
'docked' handling can use it as a check.
2023-01-11 19:43:21 +00:00
Athanasius
e6abc137ce
monitor/tracking: Shift .coordinates to state['StarPos']
* Some additional commenting for future clarity.
* Remove the old eddn.py tracking.
2023-01-11 19:43:18 +00:00
Athanasius
232e91ebfc
monitor/Body: Tweak & comment, and remove defunct tracking from eddn.py
* Typod '.status' instead of 'state'.
* Bring in some sanity-checks and comments from eddn.py to monitor.py.
* Have a 'pass' elif for 'supercruiseentry' so as to comment why we do NOT
  use this to blank out body state.
* Bring in the 'if we exit to main menu, blank body state' from eddn.py.
* Remove checks from eddn.py that are now in monitor.py.
* Have a disctinct 'docked' event check in eddn.py for triggering the
  "Now we're docked, so the Delay sending until docked is satisfied"
  sending of messages.
2023-01-11 19:43:17 +00:00