@gsrjs/doom3-bfg 0.0.0-stage → 0.1.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alexander Shibisty
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,62 @@
1
- # Temporary Holding Version
1
+ # @gsrjs/doom3-bfg
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ DOOM 3: BFG Edition saves — the slot folder `GAME-…`: `game.details` (episode: DOOM 3, Resurrection of Evil or The Lost Mission; map and location, difficulty, play time, save version), `gamedata.save` (header and server info, then the game state as raw deflate in 128 KB blocks with a checksum at the end of each block) and `gamedata.strings` (the string table the state refers to). Read with the `@gsrjs/doom3` code; read-only.
4
+
5
+ Part of [gsr — Game Save Reader](https://github.com/shibisty/gsr): see the [repository README](https://github.com/shibisty/gsr#readme) and [docs/ARCHITECTURE.md](https://github.com/shibisty/gsr/blob/main/docs/ARCHITECTURE.md).
6
+
7
+ ```sh
8
+ npm i @gsrjs/doom3-bfg
9
+ deno add jsr:@gsrjs/doom3-bfg
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ ```ts
15
+ import { createRegistry } from '@gsrjs/core';
16
+ import { doom3Bfg } from '@gsrjs/doom3-bfg';
17
+
18
+ const registry = createRegistry([doom3Bfg]);
19
+ const doc = await registry.open({ name: 'gamedata.save', bytes });
20
+ console.log(doc.title, doc.summary);
21
+ ```
22
+
23
+ ## About gsr
24
+
25
+ gsr (Game Save Reader) is a TypeScript library for reading, editing and writing game save files: a small core and one package per game. It runs in browsers, Web Workers, Deno, Node ≥ 20 and Bun; everything works locally, on bytes you pass in. The Game Save Viewer browser extension is built on it.
26
+
27
+ ## All gsr packages
28
+
29
+ | Package | Contents |
30
+ |---|---|
31
+ | [`@gsrjs/core`](https://www.npmjs.com/package/@gsrjs/core) | The core: game module API, universal save document model, registry, binary reader/writer, edit model, i18n |
32
+ | [`@gsrjs/codecs`](https://www.npmjs.com/package/@gsrjs/codecs) | Decompressors and compressors: LZ4 (block, frame), deflate/zlib, LZO1X, data pack format |
33
+ | [`@gsrjs/esp`](https://www.npmjs.com/package/@gsrjs/esp) | Shared Bethesda code: RefID, .esm/.esp/.esl plugins, .strings, BSA, object names, changeForm table |
34
+ | [`@gsrjs/hpl`](https://www.npmjs.com/package/@gsrjs/hpl) | Shared HPL engine code (Frictional Games: Penumbra, Amnesia): cSerializeClass XML save tree, byte-exact value editing, HPL2 CRC + zlib container, .lang files |
35
+ | [`@gsrjs/all`](https://www.npmjs.com/package/@gsrjs/all) | All supported games in one list (createRegistry(allGames)) |
36
+ | [`@gsrjs/skyrim`](https://www.npmjs.com/package/@gsrjs/skyrim) | The Elder Scrolls V: Skyrim (LE) saves (.ess): reading, editing, writing |
37
+ | [`@gsrjs/skyrimse`](https://www.npmjs.com/package/@gsrjs/skyrimse) | Skyrim Special Edition / Anniversary Edition saves (.ess v12, LZ4/zlib) |
38
+ | [`@gsrjs/fallout3`](https://www.npmjs.com/package/@gsrjs/fallout3) | Fallout 3 saves (.fos): reading, editing, quest stage simulation |
39
+ | [`@gsrjs/falloutnv`](https://www.npmjs.com/package/@gsrjs/falloutnv) | Fallout: New Vegas saves (.fos) with built-in game data: world map, location plans, catalog, quest flow |
40
+ | [`@gsrjs/stalker-soc`](https://www.npmjs.com/package/@gsrjs/stalker-soc) | S.T.A.L.K.E.R. saves (.sav/.scop, original and OpenXRay): ALife objects, registries, built-in game data, editing |
41
+ | [`@gsrjs/stalker-cs`](https://www.npmjs.com/package/@gsrjs/stalker-cs) | S.T.A.L.K.E.R.: Clear Sky saves (.sav, original and OpenXRay) |
42
+ | [`@gsrjs/stalker-cop`](https://www.npmjs.com/package/@gsrjs/stalker-cop) | S.T.A.L.K.E.R.: Call of Pripyat saves (.sav/.scop, OpenXRay), player from .player.ltx |
43
+ | [`@gsrjs/vtmb`](https://www.npmjs.com/package/@gsrjs/vtmb) | Vampire: The Masquerade – Bloodlines saves (.sav, original and Unofficial Patch): character, quests, inventory, Python globals, level maps, editing |
44
+ | [`@gsrjs/penumbra-overture`](https://www.npmjs.com/package/@gsrjs/penumbra-overture) | Penumbra: Overture saves (.sav): player, inventory, notebook, script variables, visited maps and their objects, editing |
45
+ | [`@gsrjs/penumbra-black-plague`](https://www.npmjs.com/package/@gsrjs/penumbra-black-plague) | Penumbra: Black Plague saves (.sav), on the Penumbra: Overture code |
46
+ | [`@gsrjs/penumbra-requiem`](https://www.npmjs.com/package/@gsrjs/penumbra-requiem) | Penumbra: Requiem saves (.sav), on the Penumbra: Overture code |
47
+ | [`@gsrjs/amnesia-tdd`](https://www.npmjs.com/package/@gsrjs/amnesia-tdd) | Amnesia: The Dark Descent saves (.sav): player, inventory, journal, global and map variables, visited maps and their objects, editing |
48
+ | [`@gsrjs/amnesia-amfp`](https://www.npmjs.com/package/@gsrjs/amnesia-amfp) | Amnesia: A Machine for Pigs saves (.sav), on the Amnesia: The Dark Descent code |
49
+ | [`@gsrjs/wolf3d`](https://www.npmjs.com/package/@gsrjs/wolf3d) | Wolfenstein 3D saves (SAVEGAM?.WL6, DOS): floor, score, lives, health, ammo, keys, kill/secret/treasure counts, actors, items, doors, editing with checksum |
50
+ | [`@gsrjs/doom`](https://www.npmjs.com/package/@gsrjs/doom) | The Ultimate Doom saves (.dsg, DOS v1.9): map, skill, player, weapons, ammo, keys, things, sector specials, editing |
51
+ | [`@gsrjs/doom2`](https://www.npmjs.com/package/@gsrjs/doom2) | Doom II and Final Doom saves (.dsg, DOS v1.9), on the The Ultimate Doom code |
52
+ | [`@gsrjs/quake`](https://www.npmjs.com/package/@gsrjs/quake) | Quake saves (.sav, text v5): level, skill, kills, secrets, player, items, ammo, runes, QuakeC globals, level entities, editing |
53
+ | [`@gsrjs/quake2`](https://www.npmjs.com/package/@gsrjs/quake2) | Quake II saves (3.20 save slot: game.ssv, server.ssv, <map>.sav): player, inventory, help computer, skill, map counters, entities, editing |
54
+ | [`@gsrjs/rtcw`](https://www.npmjs.com/package/@gsrjs/rtcw) | Return to Castle Wolfenstein saves (.svg, single player): map, skill, play time, player, weapons, ammo, map entities, editing |
55
+ | [`@gsrjs/realrtcw`](https://www.npmjs.com/package/@gsrjs/realrtcw) | RealRTCW saves (.svg, 64-bit build), on the Return to Castle Wolfenstein code |
56
+ | [`@gsrjs/doom3`](https://www.npmjs.com/package/@gsrjs/doom3) | Doom 3 and Resurrection of Evil saves (.save): map, version, player data carried between maps, object list (read-only) |
57
+ | [`@gsrjs/doom3-bfg`](https://www.npmjs.com/package/@gsrjs/doom3-bfg) | DOOM 3: BFG Edition saves (gamedata.save, game.details): episode, map, difficulty, play time, object list (read-only), on the Doom 3 code |
58
+ | [`@gsrjs/quake4`](https://www.npmjs.com/package/@gsrjs/quake4) | Quake 4 saves (.save): map, version, player data, object list (read-only), on the Doom 3 code |
59
+
60
+ ## License
61
+
62
+ MIT
@@ -0,0 +1,18 @@
1
+ /**
2
+ * DOOM 3: BFG Edition saves (slot folder `GAME-…`: `gamedata.save`, `gamedata.strings`, `game.details`), read with the `@gsrjs/doom3` code: episode (DOOM 3, Resurrection of Evil, The Lost Mission), map and location, difficulty, play time, server info, the object list from the deflated game state. Read-only.
3
+ *
4
+ * Part of gsr — Game Save Reader: https://github.com/shibisty/gsr
5
+ *
6
+ * ```ts
7
+ * import { createRegistry } from '@gsrjs/core';
8
+ * import { doom3Bfg } from '@gsrjs/doom3-bfg';
9
+ *
10
+ * const doc = await createRegistry([doom3Bfg]).open({ name: 'gamedata.save', bytes, companions: [{ name: 'gamedata.strings', bytes: strings }, { name: 'game.details', bytes: details }] });
11
+ * console.log(doc.title);
12
+ * ```
13
+ *
14
+ * @module
15
+ */
16
+ import type { SaveGame } from '@gsrjs/core';
17
+ export declare const doom3Bfg: SaveGame;
18
+ export default doom3Bfg;
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
1
+ import { DOOM3_MESSAGES, openDoom3Bfg } from "@gsrjs/doom3";
2
+ const doom3Bfg = {
3
+ id: "doom3-bfg",
4
+ title: "DOOM 3: BFG Edition",
5
+ hint: "DOOM 3 BFG (gamedata.save, game.details)",
6
+ group: "id Software",
7
+ icon: "🧯",
8
+ status: "beta",
9
+ extensions: ["save", "details"],
10
+ savesPath: "Документы\\Saved Games\\id Software\\DOOM 3 BFG\\base\\savegame\\GAME-…",
11
+ sniff: (_head, name) => /(^|[\\/])(gamedata\.save|game\.details)$/i.test(name) ? 80 : 0,
12
+ open: async (input) => openDoom3Bfg(input),
13
+ i18n: { messages: DOOM3_MESSAGES, en: { savesPath: "Saved Games\\id Software\\DOOM 3 BFG\\base\\savegame\\GAME-…" } }
14
+ };
15
+ export {
16
+ doom3Bfg as default,
17
+ doom3Bfg
18
+ };
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * DOOM 3: BFG Edition saves (slot folder `GAME-…`: `gamedata.save`, `gamedata.strings`, `game.details`), read with the `@gsrjs/doom3` code: episode (DOOM 3, Resurrection of Evil, The Lost Mission), map and location, difficulty, play time, server info, the object list from the deflated game state. Read-only.\n *\n * Part of gsr — Game Save Reader: https://github.com/shibisty/gsr\n *\n * ```ts\n * import { createRegistry } from '@gsrjs/core';\n * import { doom3Bfg } from '@gsrjs/doom3-bfg';\n *\n * const doc = await createRegistry([doom3Bfg]).open({ name: 'gamedata.save', bytes, companions: [{ name: 'gamedata.strings', bytes: strings }, { name: 'game.details', bytes: details }] });\n * console.log(doc.title);\n * ```\n *\n * @module\n */\n// @gsrjs/doom3-bfg — DOOM 3: BFG Edition на коде @gsrjs/doom3.\nimport type { SaveGame } from '@gsrjs/core';\nimport { DOOM3_MESSAGES, openDoom3Bfg } from '@gsrjs/doom3';\n\nexport const doom3Bfg: SaveGame = {\n id: 'doom3-bfg',\n title: 'DOOM 3: BFG Edition',\n hint: 'DOOM 3 BFG (gamedata.save, game.details)',\n group: 'id Software',\n icon: '🧯',\n status: 'beta',\n extensions: ['save', 'details'],\n savesPath: 'Документы\\\\Saved Games\\\\id Software\\\\DOOM 3 BFG\\\\base\\\\savegame\\\\GAME-…',\n sniff: (_head, name) => (/(^|[\\\\/])(gamedata\\.save|game\\.details)$/i.test(name) ? 80 : 0),\n open: async (input) => openDoom3Bfg(input),\n i18n: { messages: DOOM3_MESSAGES, en: { savesPath: 'Saved Games\\\\id Software\\\\DOOM 3 BFG\\\\base\\\\savegame\\\\GAME-…' } },\n};\n\nexport default doom3Bfg;\n"],"names":[],"mappings":";AAmBO,MAAM,WAAqB;AAAA,EAChC,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,YAAY,CAAC,QAAQ,SAAS;AAAA,EAC9B,WAAW;AAAA,EACX,OAAO,CAAC,OAAO,SAAU,4CAA4C,KAAK,IAAI,IAAI,KAAK;AAAA,EACvF,MAAM,OAAO,UAAU,aAAa,KAAK;AAAA,EACzC,MAAM,EAAE,UAAU,gBAAgB,IAAI,EAAE,WAAW,iEAA+D;AACpH;"}
package/package.json CHANGED
@@ -1,6 +1,54 @@
1
1
  {
2
2
  "name": "@gsrjs/doom3-bfg",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.3",
4
+ "description": "gsr: DOOM 3: BFG Edition saves (gamedata.save, game.details): episode, map, difficulty, play time, object list (read-only), on the Doom 3 code",
5
+ "keywords": [
6
+ "gsr",
7
+ "game",
8
+ "save",
9
+ "id-software",
10
+ "idtech4",
11
+ "doom3",
12
+ "bfg"
13
+ ],
14
+ "license": "MIT",
15
+ "author": "Alexander Shibisty",
16
+ "homepage": "https://github.com/shibisty/gsr/tree/main/packages/doom3-bfg#readme",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/shibisty/gsr.git",
20
+ "directory": "packages/doom3-bfg"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/shibisty/gsr/issues"
24
+ },
25
+ "type": "module",
26
+ "sideEffects": false,
27
+ "exports": {
28
+ ".": {
29
+ "gsr-source": "./src/index.ts",
30
+ "types": "./dist/index.d.ts",
31
+ "import": "./dist/index.js"
32
+ }
33
+ },
34
+ "main": "./dist/index.js",
35
+ "types": "./dist/index.d.ts",
36
+ "files": [
37
+ "dist",
38
+ "README.md",
39
+ "LICENSE"
40
+ ],
41
+ "scripts": {
42
+ "build": "node ../../scripts/build-package.mjs"
43
+ },
44
+ "dependencies": {
45
+ "@gsrjs/core": "^0.1.3",
46
+ "@gsrjs/doom3": "^0.1.3"
47
+ },
48
+ "devDependencies": {
49
+ "@gsrjs/test-utils": "^0.1.3"
50
+ },
51
+ "publishConfig": {
52
+ "access": "public"
53
+ }
54
+ }