@eveshipfit/sde 7.3542233.0 → 8.3542233.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,7 +19,7 @@ The main goal is to produce a small data-file, with everything included for dogm
19
19
 
20
20
  ```bash
21
21
  go run ./cmd/sde-patched download # fetch the latest SDE into sde/
22
- go run ./cmd/sde-patched build # write dist/sde.dat and dist/names.dat
22
+ go run ./cmd/sde-patched build # write dist/sde.dat, dist/names.dat and dist/texts.dat
23
23
  go run ./cmd/sde-patched compare old/ # tell whether dist/ differs from old/, ignoring the SDE build
24
24
  go run ./cmd/sde-patched patches # list all patches
25
25
  go run ./cmd/sde-patched ids # give an ID to anything added without one
@@ -41,11 +41,13 @@ It is also not meant as "production-ready" software, but much more as "an easier
41
41
 
42
42
  ## Output
43
43
 
44
- `build` writes two flatbuffers, described in [specs/](https://github.com/EVEShipFit/sde-patched/tree/main/specs):
44
+ `build` writes three flatbuffers, described in [specs/](https://github.com/EVEShipFit/sde-patched/tree/main/specs):
45
45
  - `dist/sde.dat` holds the types, dogma, groups, categories, buffs and mutaplasmids, with English
46
46
  names only. It is all a dogma-engine needs.
47
47
  - `dist/names.dat` maps a name in any of the eight languages EVE supports back to
48
48
  a type ID. Only an EFT-fit importer needs it, and only ever to search.
49
+ - `dist/texts.dat` holds text only a user interface shows, like the tooltips of attributes, in English.
50
+ A dogma-engine never needs it.
49
51
 
50
52
  ## npm
51
53
 
@@ -53,7 +55,7 @@ a type ID. Only an EFT-fit importer needs it, and only ever to search.
53
55
  npm install @eveshipfit/sde
54
56
  ```
55
57
 
56
- [`@eveshipfit/sde`](https://www.npmjs.com/package/@eveshipfit/sde) ships both files and the schemas, under `dist/` and `specs/`.
58
+ [`@eveshipfit/sde`](https://www.npmjs.com/package/@eveshipfit/sde) ships all three files and the schemas, under `dist/` and `specs/`.
57
59
 
58
60
  ## Python
59
61
 
@@ -61,10 +63,10 @@ npm install @eveshipfit/sde
61
63
  pip install eveshipfit-sde
62
64
  ```
63
65
 
64
- [`eveshipfit-sde`](https://pypi.org/project/eveshipfit-sde/) ships both files and the schemas, and the paths to them.
66
+ [`eveshipfit-sde`](https://pypi.org/project/eveshipfit-sde/) ships all three files and the schemas, and the paths to them.
65
67
 
66
68
  ```python
67
- from eveshipfit_sde import build_number, names_path, sde_path, specs_path
69
+ from eveshipfit_sde import build_number, names_path, sde_path, specs_path, texts_path
68
70
 
69
71
  dogma.load_sde_from_file(sde_path())
70
72
  ```
package/dist/texts.dat ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eveshipfit/sde",
3
- "version": "7.3542233.0",
3
+ "version": "8.3542233.0",
4
4
  "description": "A patched EVE Online SDE, as flatbuffers, for EVEShipFit's dogma-engine",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,8 +11,10 @@
11
11
  "files": [
12
12
  "dist/sde.dat",
13
13
  "dist/names.dat",
14
+ "dist/texts.dat",
14
15
  "specs/eve.fbs",
15
16
  "specs/names.fbs",
17
+ "specs/texts.fbs",
16
18
  "LICENSE.EVE"
17
19
  ],
18
20
  "publishConfig": {
package/specs/names.fbs CHANGED
@@ -1,15 +1,8 @@
1
1
  namespace eve;
2
2
 
3
- /// Name lookup, in a file of its own.
4
- ///
5
- /// An EFT-fit can be written in any of the eight languages EVE supports, so a
6
- /// name has to be matchable back to a type.
7
3
  table Names {
8
4
  build_number: int32;
9
-
10
- /// Every name of every type, in every language, lowercased and sorted by
11
- /// UTF-8 bytes. Lowercasing is per code point and locale-independent, so
12
- /// that a fit does not have to match the case.
5
+ /// Lowercased per code point, locale-independent; sorted by UTF-8 bytes.
13
6
  names: [string] (required);
14
7
  type_ids: [int32] (required);
15
8
  }
@@ -0,0 +1,15 @@
1
+ namespace eve;
2
+
3
+ table DogmaAttributeText {
4
+ id: int32 (key);
5
+ tooltip_title: string;
6
+ tooltip_description: string;
7
+ }
8
+
9
+ table Texts {
10
+ build_number: int32;
11
+ dogma_attributes: [DogmaAttributeText] (required);
12
+ }
13
+
14
+ root_type Texts;
15
+ file_identifier "ESFT";