Skip to content

Commit f558615

Browse files
authored
Compress Database Location Files (#954)
Due to LFS storage issues... This PR removes all current LFS files (the location loot files) and replaces them with a single 7-zip archive. The archive is stored in LFS, but has decreased in size by roughly 95%. The location `.json` files are now git-ignored. There are two new npm commands to aid in working with the archive: - `npm run database:compress` Compresses the JSON files into an archive *which can be committed into the project*. - `npm run database:decompress` Decompresses the archive into the original JSON files located in the working directory. The gulp file that handles builds has been updated to ensure that the archive files are *always* used when a build is processed, regardless of if the JSON files are already present in the working directory.
1 parent 464fa27 commit f558615

File tree

103 files changed

+371
-123596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+371
-123596
lines changed

.gitattributes

+1-61
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,4 @@
11
# Normalize Line Endings
22
* text=auto eol=lf
33

4-
# LFS File Listing
5-
project/assets/database/locations/interchange/looseLoot.json filter=lfs diff=lfs merge=lfs -text
6-
project/assets/database/locations/interchange/staticLoot.json filter=lfs diff=lfs merge=lfs -text
7-
project/assets/database/locations/interchange/staticContainers.json filter=lfs diff=lfs merge=lfs -text
8-
project/assets/database/locations/interchange/staticAmmo.json filter=lfs diff=lfs merge=lfs -text
9-
10-
project/assets/database/locations/lighthouse/looseLoot.json filter=lfs diff=lfs merge=lfs -text
11-
project/assets/database/locations/lighthouse/staticLoot.json filter=lfs diff=lfs merge=lfs -text
12-
project/assets/database/locations/lighthouse/staticContainers.json filter=lfs diff=lfs merge=lfs -text
13-
project/assets/database/locations/lighthouse/staticAmmo.json filter=lfs diff=lfs merge=lfs -text
14-
15-
project/assets/database/locations/shoreline/looseLoot.json filter=lfs diff=lfs merge=lfs -text
16-
project/assets/database/locations/shoreline/staticLoot.json filter=lfs diff=lfs merge=lfs -text
17-
project/assets/database/locations/shoreline/staticContainers.json filter=lfs diff=lfs merge=lfs -text
18-
project/assets/database/locations/shoreline/staticAmmo.json filter=lfs diff=lfs merge=lfs -text
19-
20-
project/assets/database/locations/tarkovstreets/looseLoot.json filter=lfs diff=lfs merge=lfs -text
21-
project/assets/database/locations/tarkovstreets/staticLoot.json filter=lfs diff=lfs merge=lfs -text
22-
project/assets/database/locations/tarkovstreets/staticContainers.json filter=lfs diff=lfs merge=lfs -text
23-
project/assets/database/locations/tarkovstreets/staticAmmo.json filter=lfs diff=lfs merge=lfs -text
24-
25-
project/assets/database/locations/woods/looseLoot.json filter=lfs diff=lfs merge=lfs -text
26-
project/assets/database/locations/woods/staticLoot.json filter=lfs diff=lfs merge=lfs -text
27-
project/assets/database/locations/woods/staticContainers.json filter=lfs diff=lfs merge=lfs -text
28-
project/assets/database/locations/woods/staticAmmo.json filter=lfs diff=lfs merge=lfs -text
29-
30-
project/assets/database/locations/factory4_day/looseLoot.json filter=lfs diff=lfs merge=lfs -text
31-
project/assets/database/locations/factory4_day/staticLoot.json filter=lfs diff=lfs merge=lfs -text
32-
project/assets/database/locations/factory4_day/staticContainers.json filter=lfs diff=lfs merge=lfs -text
33-
project/assets/database/locations/factory4_day/staticAmmo.json filter=lfs diff=lfs merge=lfs -text
34-
35-
project/assets/database/locations/factory4_night/looseLoot.json filter=lfs diff=lfs merge=lfs -text
36-
project/assets/database/locations/factory4_night/staticLoot.json filter=lfs diff=lfs merge=lfs -text
37-
project/assets/database/locations/factory4_night/staticContainers.json filter=lfs diff=lfs merge=lfs -text
38-
project/assets/database/locations/factory4_night/staticAmmo.json filter=lfs diff=lfs merge=lfs -text
39-
40-
project/assets/database/locations/rezervbase/looseLoot.json filter=lfs diff=lfs merge=lfs -text
41-
project/assets/database/locations/rezervbase/staticLoot.json filter=lfs diff=lfs merge=lfs -text
42-
project/assets/database/locations/rezervbase/staticContainers.json filter=lfs diff=lfs merge=lfs -text
43-
project/assets/database/locations/rezervbase/staticAmmo.json filter=lfs diff=lfs merge=lfs -text
44-
45-
project/assets/database/locations/bigmap/looseLoot.json filter=lfs diff=lfs merge=lfs -text
46-
project/assets/database/locations/bigmap/staticLoot.json filter=lfs diff=lfs merge=lfs -text
47-
project/assets/database/locations/bigmap/staticContainers.json filter=lfs diff=lfs merge=lfs -text
48-
project/assets/database/locations/bigmap/staticAmmo.json filter=lfs diff=lfs merge=lfs -text
49-
50-
project/assets/database/locations/laboratory/looseLoot.json filter=lfs diff=lfs merge=lfs -text
51-
project/assets/database/locations/laboratory/staticLoot.json filter=lfs diff=lfs merge=lfs -text
52-
project/assets/database/locations/laboratory/staticContainers.json filter=lfs diff=lfs merge=lfs -text
53-
project/assets/database/locations/laboratory/staticAmmo.json filter=lfs diff=lfs merge=lfs -text
54-
55-
project/assets/database/locations/sandbox/looseLoot.json filter=lfs diff=lfs merge=lfs -text
56-
project/assets/database/locations/sandbox/staticLoot.json filter=lfs diff=lfs merge=lfs -text
57-
project/assets/database/locations/sandbox/staticContainers.json filter=lfs diff=lfs merge=lfs -text
58-
project/assets/database/locations/sandbox/staticAmmo.json filter=lfs diff=lfs merge=lfs -text
59-
60-
project/assets/database/locations/sandbox_high/looseLoot.json filter=lfs diff=lfs merge=lfs -text
61-
project/assets/database/locations/sandbox_high/staticLoot.json filter=lfs diff=lfs merge=lfs -text
62-
project/assets/database/locations/sandbox_high/staticContainers.json filter=lfs diff=lfs merge=lfs -text
63-
project/assets/database/locations/sandbox_high/staticAmmo.json filter=lfs diff=lfs merge=lfs -text
64-
4+
project/assets/compressed/database/locations.7z filter=lfs diff=lfs merge=lfs -text

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.exe
33
*.zip
44
*.d.ts
5+
project/assets/database/locations/
56
project/build/
67
project/obj/
78
project/dist/
@@ -32,6 +33,9 @@ yarn.lock
3233
## windows
3334
desktop.ini
3435

36+
## OSX
37+
.DS_Store
38+
3539
## parcel
3640
.parcel-cache/
3741

README.md

+23-21
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,29 @@ To prepare the project for development you will need to:
5151

5252
The following commands are available after the initial setup. Run them with `npm run <command>`.
5353

54-
| Command | Description |
55-
|----------------------|---------------------------------------------------------------------------|
56-
| `check:circular` | Check for circular dependencies in the project. |
57-
| `lint` | Check the project for coding standards issues using Biome. |
58-
| `lint:fix` | Automatically fix coding standards issues using Biome. |
59-
| `style` | Check the project for formatting issues using Biome. |
60-
| `style:fix` | Automatically fix formatting issues using Biome. |
61-
| `format` | Automatically fix all coding standards and formatting issues using Biome. |
62-
| `test` | Run all tests. |
63-
| `test:watch` | Run tests in watch mode. Tests will re-run when files are changed. |
64-
| `test:coverage` | Run tests and generate a coverage report. |
65-
| `test:ui` | Run tests in UI mode. This will open a browser window to view tests. |
66-
| `build:release` | Build the project for release. |
67-
| `build:debug` | Build the project for debugging. |
68-
| `build:bleeding` | Build the project on the bleeding edge. |
69-
| `build:bleedingmods` | Build the project on the bleeding edge with mods. |
70-
| `run:build` | Run the project in build mode. |
71-
| `run:debug` | Run the project in debug mode. |
72-
| `run:profiler` | Run the project in profiler mode. |
73-
| `gen:types` | Generate types for the project. |
74-
| `gen:docs` | Generate documentation for the project. |
54+
| Command | Description |
55+
|-----------------------|---------------------------------------------------------------------------|
56+
| `check:circular` | Check for circular dependencies in the project. |
57+
| `lint` | Check the project for coding standards issues using Biome. |
58+
| `lint:fix` | Automatically fix coding standards issues using Biome. |
59+
| `style` | Check the project for formatting issues using Biome. |
60+
| `style:fix` | Automatically fix formatting issues using Biome. |
61+
| `format` | Automatically fix all coding standards and formatting issues using Biome. |
62+
| `test` | Run all tests. |
63+
| `test:watch` | Run tests in watch mode. Tests will re-run when files are changed. |
64+
| `test:coverage` | Run tests and generate a coverage report. |
65+
| `test:ui` | Run tests in UI mode. This will open a browser window to view tests. |
66+
| `build:release` | Build the project for release. |
67+
| `build:debug` | Build the project for debugging. |
68+
| `build:bleeding` | Build the project on the bleeding edge. |
69+
| `build:bleedingmods` | Build the project on the bleeding edge with mods. |
70+
| `run:build` | Run the project in build mode. |
71+
| `run:debug` | Run the project in debug mode. |
72+
| `run:profiler` | Run the project in profiler mode. |
73+
| `gen:types` | Generate types for the project. |
74+
| `gen:docs` | Generate documentation for the project. |
75+
| `database:compress` | Compress database files from working directory into archive. |
76+
| `database:decompress` | Decompress database archives into working directory. |
7577

7678
### Debugging
7779

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:7d6083cc4da7fe86bdc16a309b0620e7c37b2d2eef06845041483a4b070c4835
3+
size 22287650

project/assets/database/locations/base.json

-32
This file was deleted.

0 commit comments

Comments
 (0)