975 Commits

Author SHA1 Message Date
Athanasius
aa99d3e057
docs/Developers: Use CAPI-<endpoint> for gameversion/build
It's the true source of the data, and less fraught with corner cases than
trying to be sure that the Journal-derived values would be correct.
2022-09-27 16:05:49 +01:00
Athanasius
d57ab05ee3
docs/Developers: Define header component field:values
* Actually define what we expect from the existing fields.
* Document what should go in the new `gameversion` and `gamebuild` fields.
* Update the generic example to include all of these "what version of the game,
  or feature set, did this come from?" fields.
2022-09-27 15:50:17 +01:00
Athanasius
a723fbd83b
docs/Developers: Fix 'i3' vim-induced typo 2022-09-27 14:50:05 +01:00
Athanasius
e000bcc398
schemas/shipyard: gameversion & gamebuild in header 2022-09-27 14:48:51 +01:00
Athanasius
c8db0792d4
schemas/scanbarycentre: gameversion & gamebuild in header 2022-09-27 14:48:12 +01:00
Athanasius
33911c3209
schemas/outfitting: gameversion & gamebuild in header 2022-09-27 14:47:26 +01:00
Athanasius
e3a744a94b
schemas/navroute: gameversion & gamebuild in header 2022-09-27 14:46:31 +01:00
Athanasius
fdb59c2fa8
schemas/navbeaconscan: gameversion & gamebuild in header 2022-09-27 14:45:41 +01:00
Athanasius
fa9e171381
schemas/fsssignaldiscovered: gameversion & gamebuild in header 2022-09-27 14:44:44 +01:00
Athanasius
6c9986ec58
schemas/fssdiscoveryscan: gameversion & gamebuild in header 2022-09-27 14:44:00 +01:00
Athanasius
1461eaf720
schemas/fssbodysignals: gameversion & gamebuild in header 2022-09-27 14:43:20 +01:00
Athanasius
d5e3cdf8e9
schemas/fssallbodiesfound: gameversion & gamebuild in header 2022-09-27 14:42:24 +01:00
Athanasius
15012a2b6e
schemas/fcmaterials_journal: gameversion & gamebuild in header 2022-09-27 14:41:45 +01:00
Athanasius
0bc7c90dfb
schemas/commodity: gameversion & gamebuild in header 2022-09-27 14:39:52 +01:00
Athanasius
9a9e0f0991
schemas/codexentry: gameversion & gamebuild in header 2022-09-27 14:38:53 +01:00
Athanasius
17648a9abd
schemas/approachsettlement: Add gameversion/gamebuild 2022-09-27 14:37:16 +01:00
Athanasius
dfdec11828
schemas/journal: horizons/odyssey now mandatory 2022-09-27 14:23:50 +01:00
Athanasius
cbbddad13c
schemas/journal: Add gamebuild to header as well 2022-09-27 14:09:24 +01:00
Athanasius
78e92fb38d
schemas: journal: Implement header->gameversion 2022-09-27 14:02:56 +01:00
Athanasius
ba6762c5eb
Merge pull request #198 from EDCD/enhancement/docs/gameversion-odyssey-horizons-1450
docs/Developers: Update Fileheader/LoadGame for latest clients
2022-09-27 13:56:02 +01:00
Athanasius
69cc27fd63
docs/Developers: horizons/odyssey flags now compulsory
* Listeners really do need these, where defined in the schemas, so state
  that they're mandatory.
* REALLY emphasise that where an `Odyssey` flag isn't in `LoadGame` Senders
  MUST NOT send it with a `false` value.

  Although pending addition of header->gameversion will aid Listeners,
  currently this could give the misleading impression that a 3.8 Horizons
  client is a 4.0 Horizons client.
2022-09-27 12:42:14 +01:00
Athanasius
a04d0e8d96
docs/Developers: Update Fileheader/LoadGame for latest clients
This includes the new `4.0 Horizons` client, which changes the semantics
of what the `Odyssey` flag in the `Fileheader` means.  It now indicates if
the client is a 4.0+ one, not if the player is utilising Odyssey DLC.
2022-09-27 12:40:28 +01:00
Athanasius
e1de9b2aab
Merge pull request #195 from EDCD/enhancement/193/schema-fcmaterials
schemas: fcmaterials for both Journal and CAPI-sourced data
2022-09-07 13:34:00 +01:00
Athanasius
7f7b462790
Setttings: Update for fcmaterials_journal and fcmaterials_capi now 2022-09-02 16:30:18 +01:00
Athanasius
2a8d09e378
schemas: fcmaterials_capi: README: First cut 2022-09-02 16:27:48 +01:00
Athanasius
af2b29a4a4
schemas: fcmaterials_capi: Initial schema and README
* NB: The README is a straight copy of the _journal one right now.  Will fix
  later.
2022-09-02 15:41:07 +01:00
Athanasius
7111bdbbbb
scripts/test-schema: A *very* basic script to see if a schema works
* It's using `sys.argv`, not `argparse`.
* Thus there's no `--help`.
* Supply it with: 1) Filename of a schema definition, 2) filename of a full
  EDDN message text to test for compliance.
* No output if both schema and message load *and* the message passes the
  schema.  Else you'll get python exception output from `jsonschema.validate()`.
2022-09-02 15:39:20 +01:00
Athanasius
33d6e8fe2e
schemas: fcmaterials_journal: Fix $id from rename 2022-09-02 13:48:37 +01:00
Athanasius
b3876824f7
schemas/README: Document $id conventions
1. Get the designation of the version correct.
2. That empty `#` fragment is a SHOULD NOT, so just don't.
3. Append `_<source>` to the "filename" where necessary.
2022-09-02 13:46:18 +01:00
Athanasius
08127d261f
schemas/README: Per-schema README is now mandatory
I think I only made this 'SHOULD' before because at that stage I'd not yet
written the README files for the legacy schemas.
2022-09-02 13:38:53 +01:00
Athanasius
2eb213d766
schemas/TEMPLATES/journal: Remove the # 'fragment' from end of $id
As per <https://json-schema.org/draft/2020-12/json-schema-core.html#section-8.2.1>

> Therefore, "$id" MUST NOT contain a non-empty fragment, and SHOULD NOT contain an empty fragment.
2022-09-02 13:36:43 +01:00
Athanasius
5bcdfadb09
schemas: Rename Journal-only to fcmaterials_journal/1 2022-09-02 13:21:03 +01:00
Athanasius
61ef74492d
Revert "schemas: fcmaterials: Adjust to allow for CAPI-sourced data"
This reverts commit f4b9eab178efd2ea62e780b1c98ad5f8cf151e55.
2022-09-02 13:19:46 +01:00
Athanasius
f4b9eab178 schemas: fcmaterials: Adjust to allow for CAPI-sourced data
* Add new mandatory `data-source` field.
* `CarrierName` now optional (not in CAPI data).
* `Items` is defined a lot more loosely, due to Journal vs CAPI
  differences.
2022-08-31 15:23:06 +00:00
Athanasius
53e099a9f4 contrib/eddn-logs-archive: Make non-verbose
This script has been proven for months, quieten it for potentially no
crontab output unless there's a problem.
2022-08-31 07:30:57 +00:00
Athanasius
f4ab9eb35a
schemas: fcmaterials/1: Add README 2022-08-30 17:23:01 +01:00
Athanasius
2d2a205c7a
schemas: New fcmaterials/1 based on the *Journal* data source only 2022-08-30 17:23:00 +01:00
Athanasius
efd9905c17
Merge branch 'develop' 2022-08-30 14:17:38 +01:00
Athanasius
6d992307ce eddn-report: Bump EDD to 15.1.2.0, and comment out previous 'catch'
* This time I want to keep the example around for future use.
2022-08-26 07:42:28 +00:00
Athanasius
749d1aad3e eddn-report: str.startswith() doesn't do regex
I brainfarted, slinging a `.+` into this to generalise it, when the code
is using `str.startswith()`, not a regex match.

So, use two tests, `.startswith()` for the static portion, then a
`.find()` for the remainder after the variant part.
2022-08-24 07:17:37 +00:00
Athanasius
47532262c9 eddn-report: Generalise that "Turkish lower case i" rule 2022-08-23 07:48:50 +00:00
Athanasius
19eb012e1f eddn-report: Bump EDDLite to 2.3.0 2022-08-22 15:55:14 +00:00
Athanasius
59f5536a02 eddn-report: EDDiscovery outfitting/2 unicode 'i' 2022-08-22 07:19:59 +00:00
Athanasius
9fca2e166e Merge branch 'develop' of github.com:EDCD/EDDN into develop 2022-08-22 07:14:29 +00:00
Athanasius
14497f4230 eddn-report-log-errors: Bump EDDiscovery to 15.1.1.0 2022-08-18 10:32:42 +00:00
Athanasius
4da9a4eeec
README: Change Discord URL to channel-specific one. 2022-07-26 12:44:17 +01:00
Athanasius
930632b0e9
README: Change Discord URL to channel-specific one. 2022-07-26 12:43:40 +01:00
Athanasius
a7b96c3228
scripts/eddn errors: Use 'in' form for EVA variants 2022-06-24 14:52:43 +01:00
Athanasius
9a9a09bee3
Merge branch 'develop' 2022-06-24 14:50:17 +01:00
Athanasius
4da53bcc40
Merge branch 'develop' of github.com:EDCD/EDDN into develop 2022-06-24 14:48:48 +01:00