mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 07:43:49 +01:00
Compare commits
388
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f43b0455ab | ||
|
|
0d8fcacdbf | ||
|
|
6369491a37 | ||
|
|
7cd3e10492 | ||
|
|
4be1955702 | ||
|
|
1423f3141f | ||
|
|
a15062209f | ||
|
|
f8eebd9437 | ||
|
|
d78ff37dc1 | ||
|
|
530c024dd8 | ||
|
|
f3160ac631 | ||
|
|
54771738c0 | ||
|
|
ad017152c7 | ||
|
|
751528853f | ||
|
|
085ce40d42 | ||
|
|
8ae20e4306 | ||
|
|
3b915e7ac8 | ||
|
|
3cacf50398 | ||
|
|
cac2c4e7b2 | ||
|
|
4c2c1c82ca | ||
|
|
d7743ac32a | ||
|
|
37df4675c0 | ||
|
|
acdbfd9ab6 | ||
|
|
06916fe7be | ||
|
|
b1fb689918 | ||
|
|
0e268288e6 | ||
|
|
1ec5c4b6fb | ||
|
|
7f6af50740 | ||
|
|
dc89300b60 | ||
|
|
cf76e95bcd | ||
|
|
895f5b645f | ||
|
|
38f751a8b0 | ||
|
|
b04946ed96 | ||
|
|
f7703b4ae5 | ||
|
|
4c57a5ffca | ||
|
|
7684867180 | ||
|
|
36db3ad6eb | ||
|
|
afee04fefd | ||
|
|
f50b791245 | ||
|
|
91644255a1 | ||
|
|
d13e63a5e2 | ||
|
|
2e2585e605 | ||
|
|
3fdf8f28c3 | ||
|
|
eda6eb280f | ||
|
|
9b81166114 | ||
|
|
770997fbed | ||
|
|
b9f5d13415 | ||
|
|
11332e33cb | ||
|
|
c4bad57271 | ||
|
|
e48f4e31c8 | ||
|
|
11c2edcfff | ||
|
|
a3e7908cd2 | ||
|
|
3078dfeb10 | ||
|
|
19fdb087c5 | ||
|
|
52bf5731c1 | ||
|
|
8fa30e986e | ||
|
|
4077e8ee4f | ||
|
|
9b85a95e45 | ||
|
|
33de8a1390 | ||
|
|
3d14cebfe2 | ||
|
|
80002e8c26 | ||
|
|
09cc303664 | ||
|
|
63117b8369 | ||
|
|
dc18e0e1d3 | ||
|
|
71a98e7c1b | ||
|
|
5d278b3f11 | ||
|
|
a0660fc2ac | ||
|
|
b9482e3164 | ||
|
|
ec4338c447 | ||
|
|
b4e0079352 | ||
|
|
639de710c8 | ||
|
|
4e72a2c490 | ||
|
|
f2659753cf | ||
|
|
076572e7ff | ||
|
|
51d2f601bb | ||
|
|
42ed321aa7 | ||
|
|
5d9c07eb3a | ||
|
|
be8e36c6fd | ||
|
|
ce4961d8f7 | ||
|
|
63b9284947 | ||
|
|
f1be856f64 | ||
|
|
ea08fe9900 | ||
|
|
8db298cde3 | ||
|
|
a89c75509e | ||
|
|
ff1aadb774 | ||
|
|
e9bb9dfc1b | ||
|
|
037d223d70 | ||
|
|
a34f15225e | ||
|
|
0182d47e29 | ||
|
|
b68755df35 | ||
|
|
1b50f0bcdd | ||
|
|
8dd412ed32 | ||
|
|
16ff393ea0 | ||
|
|
2ed6371ed3 | ||
|
|
9efcb55083 | ||
|
|
baf42d0273 | ||
|
|
aa07156aeb | ||
|
|
8b9418715c | ||
|
|
429f856f19 | ||
|
|
d9fe4d5fd6 | ||
|
|
ca28986730 | ||
|
|
68335de62c | ||
|
|
457f04ce0c | ||
|
|
94b7e0f1b1 | ||
|
|
0b11e13e21 | ||
|
|
9686273706 | ||
|
|
ba723b443b | ||
|
|
60f3fb7727 | ||
|
|
94fcd17480 | ||
|
|
6550fbd54b | ||
|
|
6d0c44f381 | ||
|
|
ff051106e7 | ||
|
|
6ad21a19a7 | ||
|
|
73917b46d8 | ||
|
|
94ec7cfb6f | ||
|
|
eeac6cfe5e | ||
|
|
bf2f417546 | ||
|
|
e474f5d8f8 | ||
|
|
8852d77b46 | ||
|
|
bdc3ac005c | ||
|
|
d9a5495aec | ||
|
|
2bff4f47fb | ||
|
|
f647cb4ca1 | ||
|
|
fc32de0f3f | ||
|
|
a7f0b768a5 | ||
|
|
8cf000cbe6 | ||
|
|
08df0001ed | ||
|
|
00e898d79f | ||
|
|
0803f91a48 | ||
|
|
0578f47914 | ||
|
|
966651284d | ||
|
|
e14b8cad38 | ||
|
|
a863f89b29 | ||
|
|
8170b88996 | ||
|
|
b48a68b8de | ||
|
|
79129ff3c0 | ||
|
|
da9c5272bc | ||
|
|
af475a0ebc | ||
|
|
1a4ca8ca1e | ||
|
|
20fb8f2ac9 | ||
|
|
79c2ad87a4 | ||
|
|
7f80723ee7 | ||
|
|
035e034995 | ||
|
|
dcf509f82c | ||
|
|
c311a6ab8b | ||
|
|
1c72c8be36 | ||
|
|
26f3245257 | ||
|
|
c5fea49f5d | ||
|
|
287aba853f | ||
|
|
1ae06bc685 | ||
|
|
c72ee930bf | ||
|
|
c9f922ef24 | ||
|
|
296e005586 | ||
|
|
4097730803 | ||
|
|
cf0a1dd1ab | ||
|
|
9d0def24f9 | ||
|
|
6bef735aea | ||
|
|
cc0284e2ec | ||
|
|
f071a77fc0 | ||
|
|
f74b66dd5f | ||
|
|
fe545c415e | ||
|
|
aa982d73de | ||
|
|
263475ec3c | ||
|
|
e6158dec8d | ||
|
|
7ff386cecc | ||
|
|
c883f79025 | ||
|
|
ddd0e049c6 | ||
|
|
1fce0ecb5a | ||
|
|
ffa24a9bc9 | ||
|
|
ad0c8b3431 | ||
|
|
e50cc6cf5d | ||
|
|
be9dd9721d | ||
|
|
4686877dd1 | ||
|
|
47cb0f36f9 | ||
|
|
7918a88666 | ||
|
|
cd2ef98e22 | ||
|
|
f2d3c59e97 | ||
|
|
1cb760e227 | ||
|
|
ce27388c00 | ||
|
|
e8b2651595 | ||
|
|
3695e2cd5e | ||
|
|
01445cf845 | ||
|
|
b121147b43 | ||
|
|
b3b56462d1 | ||
|
|
d42cccc3c2 | ||
|
|
c592501f48 | ||
|
|
5f4cf15500 | ||
|
|
232b3e7770 | ||
|
|
99373872ed | ||
|
|
5477be35e7 | ||
|
|
a9dd018632 | ||
|
|
fddf407cc0 | ||
|
|
88346308cb | ||
|
|
ebedac0642 | ||
|
|
a2b97380ac | ||
|
|
de4094554e | ||
|
|
cdcec8548a | ||
|
|
5ffe5a0a9f | ||
|
|
7fb73edb87 | ||
|
|
1bc0561dbc | ||
|
|
c82d2ccf1c | ||
|
|
15a08b934b | ||
|
|
f4894655b0 | ||
|
|
e4b49e1600 | ||
|
|
7bfd930cea | ||
|
|
71e9e6fd5b | ||
|
|
be0be90bdb | ||
|
|
62637418e5 | ||
|
|
ff507ed4e6 | ||
|
|
b65229dc80 | ||
|
|
4a6a5b3d34 | ||
|
|
2150fb3758 | ||
|
|
682f039c6c | ||
|
|
0632899ecf | ||
|
|
8d9549f7d5 | ||
|
|
c4edafa94b | ||
|
|
23fc2510da | ||
|
|
5df53458fd | ||
|
|
f596737419 | ||
|
|
3bd1ab1e94 | ||
|
|
01e3763f1e | ||
|
|
234d927313 | ||
|
|
4ae327b6fc | ||
|
|
e1d292c954 | ||
|
|
4245ae4b7b | ||
|
|
db210a431b | ||
|
|
da3ad0aa1b | ||
|
|
9ba19a425c | ||
|
|
75f91467ab | ||
|
|
11088ee3dc | ||
|
|
b3064cdd3a | ||
|
|
a15e331681 | ||
|
|
72758e9ff7 | ||
|
|
8566b2cc2f | ||
|
|
8028446788 | ||
|
|
e216b4cd6b | ||
|
|
c535811c1d | ||
|
|
d96f77bf05 | ||
|
|
3b34b01536 | ||
|
|
14126d05a1 | ||
|
|
93c1e6e761 | ||
|
|
b0af48f866 | ||
|
|
1aa4e6c470 | ||
|
|
c772d47a07 | ||
|
|
f81f972787 | ||
|
|
6e35c06cfc | ||
|
|
078bc9d6cd | ||
|
|
dc9c20db84 | ||
|
|
523fee5010 | ||
|
|
e5be69dd37 | ||
|
|
bddcf10e90 | ||
|
|
484d4ae3da | ||
|
|
0f299335d6 | ||
|
|
4694d495bb | ||
|
|
43fc98e37d | ||
|
|
d251c31b92 | ||
|
|
45811b5c18 | ||
|
|
10f8fa28f9 | ||
|
|
f10065887d | ||
|
|
dd83da91ff | ||
|
|
bf7046c91b | ||
|
|
fae0277b69 | ||
|
|
3470d68204 | ||
|
|
bac29d843c | ||
|
|
5807473fb6 | ||
|
|
091607b0a8 | ||
|
|
4d45029bfa | ||
|
|
89d272166f | ||
|
|
590f4a5df3 | ||
|
|
e326985ec4 | ||
|
|
dcd77d5666 | ||
|
|
d45425ec57 | ||
|
|
46fd061aff | ||
|
|
752b11e56d | ||
|
|
049ef58691 | ||
|
|
bb64d718c2 | ||
|
|
0d6c508382 | ||
|
|
7f77b4006d | ||
|
|
c11285e985 | ||
|
|
a4ee9cf2bd | ||
|
|
b3ad122542 | ||
|
|
41fb822571 | ||
|
|
9236c54b4b | ||
|
|
92ef7f4020 | ||
|
|
96c8d3d801 | ||
|
|
2cdbd0b810 | ||
|
|
61a4711029 | ||
|
|
f04cfb8875 | ||
|
|
7ea6032244 | ||
|
|
a1bc1bc630 | ||
|
|
34b96f4003 | ||
|
|
3f4306b3b3 | ||
|
|
40b732803e | ||
|
|
ac673cd47f | ||
|
|
76445c67b2 | ||
|
|
8f399e5c54 | ||
|
|
14dc40a3e7 | ||
|
|
3daa56e100 | ||
|
|
37c257c8c4 | ||
|
|
dfc6a2bada | ||
|
|
9b8b06ca70 | ||
|
|
f7ffb2d34d | ||
|
|
2b7e88e30c | ||
|
|
af172c95f2 | ||
|
|
f8794de782 | ||
|
|
5fe295b209 | ||
|
|
41418eb8e0 | ||
|
|
f6f8e2b4df | ||
|
|
a4fca4085e | ||
|
|
26f71df9f9 | ||
|
|
d32b8cc3f5 | ||
|
|
0922614dbc | ||
|
|
ae4b2e1bb3 | ||
|
|
3b75d7b523 | ||
|
|
0cbd67ff38 | ||
|
|
068f481b93 | ||
|
|
1430c32440 | ||
|
|
d14afc8b39 | ||
|
|
cba591b368 | ||
|
|
42b5ab6f02 | ||
|
|
c1363be70a | ||
|
|
72e358f034 | ||
|
|
b4a689dfbb | ||
|
|
19e535969e | ||
|
|
eebc373b46 | ||
|
|
ecb1a7c21e | ||
|
|
625d8d1595 | ||
|
|
602bf37411 | ||
|
|
fc9050e7fe | ||
|
|
654887dd66 | ||
|
|
b540ab7814 | ||
|
|
0ee9c99a28 | ||
|
|
ab9149a11f | ||
|
|
924c130516 | ||
|
|
33366a8f79 | ||
|
|
342497563f | ||
|
|
a495a5f208 | ||
|
|
10b0e29a26 | ||
|
|
007d4e9540 | ||
|
|
273fea1599 | ||
|
|
ed36eedbfb | ||
|
|
ffb5a1f9c8 | ||
|
|
85e03d3b42 | ||
|
|
7df53d845d | ||
|
|
1b5c79c2b8 | ||
|
|
51900f4c80 | ||
|
|
b9388cc544 | ||
|
|
a0c54b50fc | ||
|
|
05648ea040 | ||
|
|
73080fd60a | ||
|
|
14be326c41 | ||
|
|
8132f2d91e | ||
|
|
1258cd1fa2 | ||
|
|
1a2d4aaa9c | ||
|
|
d7914bb2fb | ||
|
|
8cb15d488d | ||
|
|
5c3ab2e10d | ||
|
|
28c30f210e | ||
|
|
5c92f9f7ee | ||
|
|
249b185836 | ||
|
|
b00a63a9f8 | ||
|
|
989e3d395a | ||
|
|
8ec7fcb90a | ||
|
|
830e1597e7 | ||
|
|
3131217600 | ||
|
|
0b740e3f60 | ||
|
|
1416d64e34 | ||
|
|
d8925a47b5 | ||
|
|
60f482d820 | ||
|
|
c2fd81c98e | ||
|
|
0fbc868738 | ||
|
|
ff0cfbaf0a | ||
|
|
4642b74bca | ||
|
|
88d49bd5a3 | ||
|
|
6fd2423445 | ||
|
|
a0dba52649 | ||
|
|
80d76e3729 | ||
|
|
7915b39d9d | ||
|
|
c94a84222d | ||
|
|
1bca762781 | ||
|
|
6e30da4978 | ||
|
|
b45f281cb9 | ||
|
|
2288c089e8 | ||
|
|
12ff9a90eb | ||
|
|
5ad5c701c9 | ||
|
|
a365fa5e50 | ||
|
|
57d77bf2b4 | ||
|
|
d93b202ee8 |
No files matched your search
@@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
name: proto-workflow
|
|
||||||
description: Regenerate this repository's TypeScript protobuf outputs after editing .proto schemas.
|
|
||||||
---
|
|
||||||
|
|
||||||
# Proto Workflow
|
|
||||||
|
|
||||||
After editing any `.proto` schema in this repository, run `bun run build-protos` from the repository root. Review the generated changes and address any schema or generator errors before finishing the task.
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
name: repo-boundaries
|
|
||||||
description: Apply the user's persistent repository boundaries whenever working in their projects.
|
|
||||||
---
|
|
||||||
|
|
||||||
# Repo Boundaries
|
|
||||||
|
|
||||||
Apply these boundaries to all work in the user's repositories:
|
|
||||||
|
|
||||||
- Read-only Git commands are allowed when useful, including status, diff, log, and show. Do not run Git commands that modify repository state.
|
|
||||||
- Never edit `bun.lock`, including regenerating or formatting it. When dependency manifests change, leave the lockfile alone; the user will update it by running `bun install`.
|
|
||||||
|
|
||||||
These are firm constraints, not preferences to revisit for a task. Continue useful work within them and explain any limitation if a requested result would require crossing either boundary.
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
interface:
|
|
||||||
display_name: "Repo Boundaries"
|
|
||||||
short_description: "Respect repository editing boundaries"
|
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
name: commit-message
|
||||||
|
description: Read the git diff and write a commit message in the repo's existing style. Use when the user asks for a commit message or runs /commit-message. Only prints the message; never stages, commits, or pushes.
|
||||||
|
disable-model-invocation: true
|
||||||
|
allowed-tools: Bash(git diff:*), Bash(git log:*), Bash(git status:*)
|
||||||
|
---
|
||||||
|
|
||||||
|
# Commit message
|
||||||
|
|
||||||
|
Write a commit message for the current changes. Do not stage, commit, or push anything; the user does that themselves.
|
||||||
|
|
||||||
|
## Context
|
||||||
|
|
||||||
|
- Recent commits: !`git log --format=%s -20`
|
||||||
|
- Staged stat: !`git diff --cached --stat`
|
||||||
|
- Unstaged stat: !`git diff --stat`
|
||||||
|
|
||||||
|
## Steps
|
||||||
|
|
||||||
|
1. Use the staged diff (`git diff --cached`) if anything is staged; otherwise use the unstaged diff (`git diff`). Read the actual hunks for anything the stat doesn't explain. Skim large deletions and pure-formatting churn rather than reading them line by line.
|
||||||
|
2. Find the one main thing the change does. Renames, moves into the flat `Name/index.tsx` layout, CSS tweaks, and formatting churn are usually side effects of that, not separate items.
|
||||||
|
3. Match the style of the recent commits: one line, all lowercase, no trailing period, no conventional-commit prefix, no body, usually 2–6 words (e.g. `migrate 404 page`, `no internal css`, `fix embed redirector`).
|
||||||
|
4. Reply with only the message in a code block. No preamble, no summary, no bullet list, no suggestions.
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
name: vfs
|
||||||
|
description: Read files from the World of Tanks Blitz game client (including DVPL-compressed ones) via scripts/vfs.sh. Use when you need to list, read, or parse game data like Data/*.yaml, version.txt, or any asset in the client install, or when you need to know where the client install and wotblitz.exe are.
|
||||||
|
---
|
||||||
|
|
||||||
|
# Game client VFS
|
||||||
|
|
||||||
|
`scripts/vfs.sh` reads files out of the installed game client and transparently handles DVPL decompression. Use it instead of reading the Steam directory directly, because many client files are DVPL-compressed and raw reads give you garbage.
|
||||||
|
|
||||||
|
Run it from the repo root (the wrapper `cd`s into `packages/scripts` itself):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
scripts/vfs.sh ls <dir> # list a directory, one entry per line
|
||||||
|
scripts/vfs.sh cat <file> # raw file contents to stdout (decompressed)
|
||||||
|
scripts/vfs.sh yaml <file> # parse a YAML file, print as JSON
|
||||||
|
```
|
||||||
|
|
||||||
|
The path argument is required. Paths are relative to the client root, e.g. `Data/version.txt`. Without a path it exits 1.
|
||||||
|
|
||||||
|
Source of truth for commands: `packages/scripts/src/vfs/index.ts`. Check it if a command here seems missing.
|
||||||
|
|
||||||
|
## Examples (verified)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
scripts/vfs.sh cat Data/version.txt # 11.21.0.1235_7376187 release/11.21.0 WOTB_Win7 (no trailing newline)
|
||||||
|
scripts/vfs.sh ls Data # *.yaml configs, 3d, Configs, Fonts, ...
|
||||||
|
scripts/vfs.sh yaml Data/countries.yaml # JSON: { "ru": ["AM", "AZ", ...], ... }
|
||||||
|
```
|
||||||
|
|
||||||
|
## Where the client is
|
||||||
|
|
||||||
|
- The install dir comes from `CLIENT_DIR` in `packages/website/.env` (read via `packages/scripts/src/vfs/vfs.ts`). The location is machine-specific, so read that `.env` to find it rather than assuming a path. The `.env` may also contain commented-out alternative client locations.
|
||||||
|
- Executable: `wotblitz.exe` in that directory (~74 MB). `wotblitz-browser.exe` is the small embedded-browser helper, not the game.
|
||||||
|
- The `.env` holds an application ID and paths; don't paste its secrets elsewhere.
|
||||||
|
|
||||||
|
## Reverse engineering the executable
|
||||||
|
|
||||||
|
For binary analysis of `wotblitz.exe`, use the REA MCP tools (`mcp__rea__*`, load via ToolSearch). Nothing is open by default: call `open_binary` with the exe path first, and `close_binary` when done. The `rea` CLI is not on PATH, so `rea doctor` is unavailable; the MCP server is the interface.
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
- Read-only: the VFS never modifies the client.
|
||||||
|
- Prefer `yaml` over `cat` for `.yaml` files when you want to query structure.
|
||||||
|
- Large outputs: pipe through `head` or `jq`.
|
||||||
@@ -26,6 +26,7 @@ body:
|
|||||||
description: What branch of BlitzKit were you using? Please see the "Branch" section of the footer at the very bottom of any page.
|
description: What branch of BlitzKit were you using? Please see the "Branch" section of the footer at the very bottom of any page.
|
||||||
options:
|
options:
|
||||||
- Production
|
- Production
|
||||||
|
- Beta
|
||||||
- Preview
|
- Preview
|
||||||
- OpenTest
|
- OpenTest
|
||||||
default: 0
|
default: 0
|
||||||
|
|||||||
@@ -30,8 +30,13 @@ jobs:
|
|||||||
- name: Setup bun
|
- name: Setup bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Setup protoc
|
||||||
run: bun install
|
uses: arduino/setup-protoc@v3
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up script
|
||||||
|
run: scripts/setup.sh
|
||||||
|
|
||||||
- name: Setup Git
|
- name: Setup Git
|
||||||
run: |
|
run: |
|
||||||
@@ -39,7 +44,7 @@ jobs:
|
|||||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
- name: Discover IDs
|
- name: Discover IDs
|
||||||
run: bun run discover-ids
|
run: scripts/discover-ids.sh
|
||||||
env:
|
env:
|
||||||
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
|
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
|
||||||
GH_TOKEN: ${{ secrets.IDS_TOKEN }}
|
GH_TOKEN: ${{ secrets.IDS_TOKEN }}
|
||||||
@@ -2,6 +2,11 @@ name: Website
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- production
|
||||||
|
|
||||||
|
pull_request:
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 4 * * *"
|
- cron: "0 4 * * *"
|
||||||
@@ -38,19 +43,18 @@ on:
|
|||||||
|
|
||||||
type: choice
|
type: choice
|
||||||
required: true
|
required: true
|
||||||
default: steam
|
default: wgc
|
||||||
|
|
||||||
options:
|
options:
|
||||||
- steam
|
- wgc
|
||||||
- zip
|
- zip
|
||||||
- wgpkg
|
- 7z
|
||||||
|
|
||||||
client_source:
|
client_source:
|
||||||
description: Client source
|
description: Client source
|
||||||
|
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: false
|
||||||
default: 444200/windows
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -60,12 +64,13 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
# workflow
|
||||||
|
HAS_ROOT_REPO_CONTEXT: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|
||||||
# client
|
# client
|
||||||
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
|
CLIENT_PROVIDER: ${{ inputs.client_provider || 'wgc' }}
|
||||||
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}
|
CLIENT_SOURCE: ${{ inputs.client_source }}
|
||||||
CLIENT_PROVIDER: ${{ inputs.client_provider || 'steam' }}
|
SMART_DLC_DIR: ../../temp/smart-dlc
|
||||||
CLIENT_SOURCE: ${{ inputs.client_source || '444200/windows' }}
|
|
||||||
CLIENT_DIR: ../../temp/game
|
|
||||||
|
|
||||||
# blitzkit
|
# blitzkit
|
||||||
PUBLIC_ENVIRONMENT: ${{ inputs.environment || 'production' }}
|
PUBLIC_ENVIRONMENT: ${{ inputs.environment || 'production' }}
|
||||||
@@ -73,11 +78,6 @@ env:
|
|||||||
PUBLIC_STATIC_ASSET_BASE: https://assets.blitzkit.app
|
PUBLIC_STATIC_ASSET_BASE: https://assets.blitzkit.app
|
||||||
PUBLIC_GUIDE_WEBSITE: https://guidesblitz.com
|
PUBLIC_GUIDE_WEBSITE: https://guidesblitz.com
|
||||||
|
|
||||||
# blitz
|
|
||||||
WOTB_GLOSSARY: ${{ secrets.WOTB_GLOSSARY }}
|
|
||||||
WOTB_GLOSSARY_DOMAIN: ${{ secrets.WOTB_GLOSSARY_DOMAIN }}
|
|
||||||
WOTB_GLOSSARY_PATH: ${{ secrets.WOTB_GLOSSARY_PATH }}
|
|
||||||
|
|
||||||
# google
|
# google
|
||||||
PUBLIC_GOOGLE_TAG_MANAGER_ID: ${{ secrets.PUBLIC_GOOGLE_TAG_MANAGER_ID }}
|
PUBLIC_GOOGLE_TAG_MANAGER_ID: ${{ secrets.PUBLIC_GOOGLE_TAG_MANAGER_ID }}
|
||||||
|
|
||||||
@@ -93,18 +93,19 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
chunk: [default, api]
|
chunk: [default, api, models_tanks, models_legendary, models_maps]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Free disk space
|
# - name: Free disk space
|
||||||
uses: jlumbroso/free-disk-space@main
|
# uses: jlumbroso/free-disk-space@main
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.branch || 'production' }}
|
ref: ${{ github.event.pull_request.head.sha || inputs.branch || 'production' }}
|
||||||
submodules: recursive
|
# the only submodule is closed, which needs secrets
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
submodules: ${{ env.HAS_ROOT_REPO_CONTEXT == 'true' && 'recursive' || 'false' }}
|
||||||
|
token: ${{ secrets.GH_TOKEN || github.token }}
|
||||||
|
|
||||||
- name: Setup bun
|
- name: Setup bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
@@ -114,19 +115,19 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GH_TOKEN }}
|
repo-token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
- name: Setup CLIs
|
- name: Set up script
|
||||||
run: |
|
run: scripts/setup.sh
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y aria2 libarchive-tools
|
|
||||||
|
|
||||||
- name: Install dependencies
|
# - name: Lint
|
||||||
run: bun install
|
# run: scripts/lint.sh
|
||||||
|
|
||||||
- name: Download Client
|
- name: Download SmartDLC
|
||||||
run: bun run download-client
|
# patches are matched by version, which only wgc clients report truthfully
|
||||||
|
if: ${{ env.HAS_ROOT_REPO_CONTEXT == 'true' && env.CLIENT_PROVIDER == 'wgc' }}
|
||||||
|
run: scripts/download-smart-dlc.sh
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bun run --bun build
|
run: scripts/build-website.sh
|
||||||
env:
|
env:
|
||||||
CHUNK: ${{ matrix.chunk }}
|
CHUNK: ${{ matrix.chunk }}
|
||||||
|
|
||||||
@@ -139,13 +140,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Trigger deployment
|
- name: Trigger deployment
|
||||||
|
|
||||||
# Deploy if:
|
# workflow should trigger if:
|
||||||
# 1. Running cron from main using content from production to target production
|
# - is by cron and is on main: triggering to production
|
||||||
# 2. Running manually and targeting non-production
|
# - is by push and is on production: triggering to production
|
||||||
|
# - is by manual and is on anything: triggering to anything
|
||||||
if: >-
|
if: >-
|
||||||
${{
|
${{
|
||||||
github.ref == 'refs/heads/production' ||
|
env.HAS_ROOT_REPO_CONTEXT == 'true'
|
||||||
(inputs.environment != '' && inputs.environment != 'production')
|
|| (github.event_name == 'schedule' && github.ref == 'refs/heads/main')
|
||||||
|
|| (github.event_name == 'push' && github.ref == 'refs/heads/production')
|
||||||
|
|| (github.event_name == 'workflow_dispatch')
|
||||||
}}
|
}}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|||||||
Vendored
+6
-2
@@ -104,8 +104,10 @@
|
|||||||
"gtag",
|
"gtag",
|
||||||
"haha",
|
"haha",
|
||||||
"Herdbreaker",
|
"Herdbreaker",
|
||||||
|
"heros",
|
||||||
"Hetz",
|
"Hetz",
|
||||||
"highp",
|
"highp",
|
||||||
|
"hocs",
|
||||||
"iife",
|
"iife",
|
||||||
"imgur",
|
"imgur",
|
||||||
"immer",
|
"immer",
|
||||||
@@ -124,6 +126,7 @@
|
|||||||
"loddist",
|
"loddist",
|
||||||
"lods",
|
"lods",
|
||||||
"lossrate",
|
"lossrate",
|
||||||
|
"lzma",
|
||||||
"Maddoxkkm",
|
"Maddoxkkm",
|
||||||
"malum",
|
"malum",
|
||||||
"mantlets",
|
"mantlets",
|
||||||
@@ -138,6 +141,7 @@
|
|||||||
"modeltransform",
|
"modeltransform",
|
||||||
"MURICA",
|
"MURICA",
|
||||||
"nanostores",
|
"nanostores",
|
||||||
|
"napi",
|
||||||
"NEGATIVEX",
|
"NEGATIVEX",
|
||||||
"NEGATIVEY",
|
"NEGATIVEY",
|
||||||
"NEGATIVEZ",
|
"NEGATIVEZ",
|
||||||
@@ -227,7 +231,9 @@
|
|||||||
"UNLOCALIZED",
|
"UNLOCALIZED",
|
||||||
"UNORM",
|
"UNORM",
|
||||||
"unpickled",
|
"unpickled",
|
||||||
|
"unranked",
|
||||||
"Unregistering",
|
"Unregistering",
|
||||||
|
"unreviewed",
|
||||||
"unrotate",
|
"unrotate",
|
||||||
"unwrapper",
|
"unwrapper",
|
||||||
"userns",
|
"userns",
|
||||||
@@ -237,7 +243,6 @@
|
|||||||
"Vovko",
|
"Vovko",
|
||||||
"wargaming",
|
"wargaming",
|
||||||
"webp",
|
"webp",
|
||||||
"wgpkg",
|
|
||||||
"whitespaces",
|
"whitespaces",
|
||||||
"WHSS",
|
"WHSS",
|
||||||
"winrate",
|
"winrate",
|
||||||
@@ -256,7 +261,6 @@
|
|||||||
"youtubers",
|
"youtubers",
|
||||||
"zoomable"
|
"zoomable"
|
||||||
],
|
],
|
||||||
"typescript.tsdk": "node_modules\\typescript\\lib",
|
|
||||||
"cSpell.enabledFileTypes": {
|
"cSpell.enabledFileTypes": {
|
||||||
"proto": true
|
"proto": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,83 @@
|
|||||||
|
# BlitzKit
|
||||||
|
|
||||||
|
Read `README.md` for setup and running: the dev server starts with `scripts/dev-website.sh`.
|
||||||
|
|
||||||
|
## Tooling
|
||||||
|
|
||||||
|
- Use Bun only: `bun`, `bun x`, `bun run`. Never `npm`, `npx`, `node`, `yarn` or `pnpm`.
|
||||||
|
- Format with `bun x prettier --write <files>`.
|
||||||
|
|
||||||
|
## Git
|
||||||
|
|
||||||
|
- Never commit or push.
|
||||||
|
- Never stage (`git add`, `git mv`, ...) unless the maintainer asks for it. The one exception is deletions: deleted files may always be staged (`git rm`, `git add` on a removed path).
|
||||||
|
- Move files with plain `mv`, not `git mv`.
|
||||||
|
|
||||||
|
## Migration
|
||||||
|
|
||||||
|
The `data-driven` branch is migrating off the old system (Radix Themes, the `Duel` store, `PageWrapper`, ...) onto the new components and stores (`Tankopedia`, `Soapstone` stores, `components/Button`, ...). Leftover references to the old system are expected bugs: when something is undefined or a module is missing, look for its replacement in neighboring migrated code rather than restoring the old one.
|
||||||
|
|
||||||
|
Pages that are not migrated yet are named `_index.astro` so Astro skips them. Migrating one renames it to `index.astro`.
|
||||||
|
|
||||||
|
## Layout
|
||||||
|
|
||||||
|
- Components live flat at `src/components/Name/index.tsx` with `index.module.css` beside it. No flat `Name.tsx` files and no nested `components/Parent/components/Child` folders: a sub-component becomes its own top-level folder prefixed with its feature, e.g. `MixerScene/components/Model.tsx` becomes `components/MixerModel/index.tsx`.
|
||||||
|
- Pages keep their styles in `_index.module.css` next to `_index.tsx`.
|
||||||
|
- Hooks live in `src/hooks/useName.ts` (`.tsx` if they render JSX), one hook per file named after it, never inside a component's folder.
|
||||||
|
|
||||||
|
## TypeScript
|
||||||
|
|
||||||
|
- When an `if`/`else if` chain checks one value against several candidates (`x === "a"`, `x === b`, ...), use a `switch` on that value instead. Inside a loop, end each case with `continue`, and put the checks a `switch` can't express (`startsWith`, ranges, ...) as an `if` after it, not in `default`.
|
||||||
|
- No return type annotations. Put `satisfies Type` on the returned expression instead.
|
||||||
|
- Wrap functions defined inside React components in `useCallback`.
|
||||||
|
- Never inline a complex type (a union of object shapes, etc.) in a signature; name it as an interface or type.
|
||||||
|
- A lookup table that is read by key and checked for missing keys is a `Map`, not an object literal.
|
||||||
|
- Use a string `enum` (`Page = "page"`) instead of a union of string literals (`"page" | "dialog"`) whenever the values can be enumerated.
|
||||||
|
- In object literals, `...spread` entries come first, each on its own line, followed by a blank line, then the custom entries. A single-line object with a spread becomes multi-line.
|
||||||
|
- When an object literal's values are long expressions, compute them first into `const`s named after their keys, then build the object with shorthand (`{ name, color, tanks: [] }`). Short values stay inline.
|
||||||
|
- Always hoist values that take work to compute (a function call, math, a lookup, like `"A".charCodeAt(0)` or `1 - SCROLL_ZONE`) and don't change between iterations or calls out of loops and repeatedly called functions into a `const` above them. No exceptions. Plain literals (strings, numbers, selectors like `"[data-row]"`) cost nothing and stay inline.
|
||||||
|
- A helper function used in only one place gets inlined there. Only extract a function once it has a second caller.
|
||||||
|
- Assert data that is known to be present with `!` instead of `?.` or `?? 0`; crashing beats silently showing a plausible wrong value. Keep `?.` only where absence is real logic: `optional` proto fields (check the `.proto`), optional script effect fields, and lookups that can legitimately miss.
|
||||||
|
- An `if` whose body ends up on its own line (including when the formatter wraps the condition) gets curly braces. Only a body on the same line as the `if` stays brace-less.
|
||||||
|
- Single-line comments use `//`, never `/** */`. Keep `/** */` for multi-line doc comments.
|
||||||
|
|
||||||
|
## JSX
|
||||||
|
|
||||||
|
- An icon and its text go on separate lines, never `<Icon /> {label}` on one line. Spacing comes from the parent's flex `gap`, not a literal space:
|
||||||
|
|
||||||
|
```tsx
|
||||||
|
<Icon />
|
||||||
|
{label}
|
||||||
|
```
|
||||||
|
|
||||||
|
- In menu-like items (ContextMenu, DropdownMenu, Select and similar), the icon goes after the text. `ItemIndicator` stays in the left gutter.
|
||||||
|
- Don't add `aria-label` (or replacements like `aria-labelledby`) for now.
|
||||||
|
|
||||||
|
## CSS
|
||||||
|
|
||||||
|
- Constant CSS goes in the CSS module, never in `style={{ }}`. Only runtime values (measured sizes, user settings) go inline; split an element's constant and dynamic styles between the two. Presentational props like `width="1em"` on icons are CSS too.
|
||||||
|
- Toggle state and variants with data attributes (`data-split={bool}` with `.x[data-split="true"]`), never conditional modifier classes.
|
||||||
|
- CSS module classes are kebab-case, accessed as `styles["tank-image"]`. PascalCase is only for Radix part names in composed components.
|
||||||
|
- Containers own the padding and space their children with a flex `gap`. Children like `Header`, `Body` and `Actions` don't carry padding to fake spacing; fix the container instead.
|
||||||
|
- Select elements by their own class, never by structure or tag (`> *`, `> div`, `:first-child`, bare `svg`, `[data-x] > *`). If an element needs styling, give it a class and nest that class under its parent. The exception is content a component renders internally that has no `className` to pass, like the icon inside an `IconButton` (`.swatch svg`).
|
||||||
|
- Nest CSS to mirror the markup: a child's rules go inside its parent's block (`.marker { .bar { } }`), so the stylesheet reads like the HTML tree.
|
||||||
|
- Fully rounded corners use `var(--radius-max)`, never `var(--max-size)`.
|
||||||
|
- Zero takes no unit (`0`, not `0px`), except where it ends up inside `calc()`, which needs a length (`calc(100dvh - var(--x, 0px))`).
|
||||||
|
- Avoid `z-index: 2` or above unless nothing else works. Resolve overlaps first by DOM order (a later sibling at the same `z-index` paints on top, so put overlays and curtains before what must sit above them) or by leveling the field (give competing siblings the same `position: relative`/`z-index: 1`, or `isolation: isolate` a container so its children's layers stay inside it).
|
||||||
|
|
||||||
|
## Components
|
||||||
|
|
||||||
|
- Don't copy the same markup or styles across files. As soon as a block repeats, extract it into a component and use that everywhere it appeared.
|
||||||
|
|
||||||
|
- Dialog-like surfaces (`Dialog`, `AlertDialog`, `Popover`) share their extra parts, which live as their own top-level components: `DialogHeader`, `DialogBody`, `DialogActions` and `DialogField` (a labeled control, taking a `label` prop). Each surface attaches them as `X.Header`, `X.Body`, `X.Actions` and `X.Field`; none defines its own copy. Fix their spacing in the part's own CSS module.
|
||||||
|
- Other extra non-Radix parts of a composed component are local functions in that component's `index.tsx`, `function Name({ className, ...props }: ComponentProps<"div">)` using `classNames(styles["kebab-class"], className)`, spread in with `{ ...composeRadixComponents(_, styles), Name }`. Once a part is shared by several components, it moves out into its own top-level component instead, like the `Dialog*` parts. A part shared across menus (`Discriminator` in DropdownMenu) is styled through a data attribute, since CSS modules re-hash classes per importing file.
|
||||||
|
|
||||||
|
## Strings and naming
|
||||||
|
|
||||||
|
- Only edit `packages/i18n/strings/en.json`. Other locales are managed by Crowdin; never touch them, even for key renames.
|
||||||
|
- Name strings and keys after what the game UI calls things (its English strings), not code or XML names. Tier 11 upgrade progression is "augments" everywhere in BlitzKit; "upgrade" stays only where it names a game file, folder or XML tag, and for the modules panel.
|
||||||
|
- Characteristic group keys follow the UI title (`nitro`, `combat_stabilization`), and item keys are prefixed with their group key (`steady_aim_system_duration`). Item labels stay short and drop what the group title already says.
|
||||||
|
|
||||||
|
## Endpoints
|
||||||
|
|
||||||
|
- The site is built statically, so Astro endpoint handlers return `new Response(body)` with no `headers`. The file extension decides the type.
|
||||||
@@ -20,14 +20,6 @@ BlitzKit uses [Protocol Buffer's protoc CLI](https://protobuf.dev/installation/)
|
|||||||
|
|
||||||
You will need a local installation of [World of Tanks Blitz](https://wotblitz.com/) for BlitzKit to build off.
|
You will need a local installation of [World of Tanks Blitz](https://wotblitz.com/) for BlitzKit to build off.
|
||||||
|
|
||||||
### aria2 (Optional)
|
|
||||||
|
|
||||||
If you plan to use BlitzKit's client-management CLI for BlitzKit Previews, you will need to [get aria2](https://aria2.github.io/) to speed up your downloads.
|
|
||||||
|
|
||||||
### libarchive (Optional)
|
|
||||||
|
|
||||||
If you plan to use BlitzKit's client-management CLI for BlitzKit OpenTests, you will need to [get libarchive](https://www.libarchive.org/) to keep your downloads completely in-memory.
|
|
||||||
|
|
||||||
### Linux (Optional)
|
### Linux (Optional)
|
||||||
|
|
||||||
All work on BlitzKit is done on Linux and macOS. It is theoretically possible to work on Windows; please feel free to try and share your discoveries with us!
|
All work on BlitzKit is done on Linux and macOS. It is theoretically possible to work on Windows; please feel free to try and share your discoveries with us!
|
||||||
@@ -44,16 +36,16 @@ cd blitzkit
|
|||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> There is a closed source submodule under `packages/closed` that you can safely ignore. This sole purpose of this submodule is to provide `dvp.ts`, a proprietary Wargaming game asset tree compression tool. You will not need this at any point.
|
> There is a closed source submodule under `packages/closed` that you can safely ignore. This sole purpose of this submodule is to provide `dvp.ts`, a proprietary Wargaming game asset tree compression tool. You will not need this at any point.
|
||||||
|
|
||||||
Then, download the dependencies with Bun.
|
Then, grand execution permission to the setup script.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bun install
|
chmod +x scripts/setup.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally, compile the proto files into TypeScript.
|
Finally, run the setup script.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
build build-protos
|
scripts/setup.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Developing: Environment
|
## Developing: Environment
|
||||||
@@ -65,11 +57,11 @@ Go through the different packages in the `packages` directory and clone their re
|
|||||||
Launching the website is as easy as running the `dev` script.
|
Launching the website is as easy as running the `dev` script.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bun dev
|
scripts/dev-website.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
If you ever make a change to any proto file, make sure to rebuild them.
|
If you ever make a change to any proto file, make sure to rebuild them.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
build build-protos
|
scripts/build-protos.sh
|
||||||
```
|
```
|
||||||
@@ -7,6 +7,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@gltf-transform/extensions": "^4.4.2",
|
"@gltf-transform/extensions": "^4.4.2",
|
||||||
"lz4js": "^0.2.0",
|
"lz4js": "^0.2.0",
|
||||||
|
"prettier": "^3.10.2",
|
||||||
"sharp": "^0.34.5",
|
"sharp": "^0.34.5",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
},
|
},
|
||||||
@@ -36,7 +37,6 @@
|
|||||||
"@types/lz4js": "^0.2.1",
|
"@types/lz4js": "^0.2.1",
|
||||||
"@types/three": "^0.180.0",
|
"@types/three": "^0.180.0",
|
||||||
"adm-zip": "^0.5.16",
|
"adm-zip": "^0.5.16",
|
||||||
"crc": "^4.3.2",
|
|
||||||
"dotenv": "^17.2.2",
|
"dotenv": "^17.2.2",
|
||||||
"fast-xml-parser": "^5.3.2",
|
"fast-xml-parser": "^5.3.2",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
@@ -59,9 +59,9 @@
|
|||||||
"packages/scripts": {
|
"packages/scripts": {
|
||||||
"name": "@blitzkit/scripts",
|
"name": "@blitzkit/scripts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzkit/closed": "workspace:*",
|
|
||||||
"@blitzkit/core": "workspace:*",
|
"@blitzkit/core": "workspace:*",
|
||||||
"@blitzkit/i18n": "workspace:*",
|
"@blitzkit/i18n": "workspace:*",
|
||||||
|
"@blitzkit/vfs": "workspace:*",
|
||||||
"@gltf-transform/core": "^4.2.1",
|
"@gltf-transform/core": "^4.2.1",
|
||||||
"@gltf-transform/extensions": "^4.2.1",
|
"@gltf-transform/extensions": "^4.2.1",
|
||||||
"@gltf-transform/functions": "^4.2.1",
|
"@gltf-transform/functions": "^4.2.1",
|
||||||
@@ -72,10 +72,8 @@
|
|||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
"@types/lz4js": "^0.2.1",
|
"@types/lz4js": "^0.2.1",
|
||||||
"@types/progress": "^2.0.7",
|
"@types/progress": "^2.0.7",
|
||||||
"@types/steam-user": "^5.1.0",
|
|
||||||
"@types/three": "^0.180.0",
|
"@types/three": "^0.180.0",
|
||||||
"crc": "^4.3.2",
|
"crc": "^4.3.2",
|
||||||
"csv-parse": "^6.1.0",
|
|
||||||
"decompress": "^4.2.1",
|
"decompress": "^4.2.1",
|
||||||
"dotenv": "^17.2.3",
|
"dotenv": "^17.2.3",
|
||||||
"esbuild": "^0.25.10",
|
"esbuild": "^0.25.10",
|
||||||
@@ -86,9 +84,22 @@
|
|||||||
"progress": "^2.0.3",
|
"progress": "^2.0.3",
|
||||||
"puppeteer": "^24.22.3",
|
"puppeteer": "^24.22.3",
|
||||||
"sharp": "^0.34.4",
|
"sharp": "^0.34.4",
|
||||||
"steam-user": "^5.2.3",
|
|
||||||
"three": "^0.180.0",
|
"three": "^0.180.0",
|
||||||
"ts-proto": "^2.7.7",
|
"ts-proto": "^2.7.7",
|
||||||
|
"yaml": "^2.8.1",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"packages/vfs": {
|
||||||
|
"name": "@blitzkit/vfs",
|
||||||
|
"dependencies": {
|
||||||
|
"@blitzkit/core": "workspace:*",
|
||||||
|
"@blitzkit/i18n": "workspace:*",
|
||||||
|
"@napi-rs/lzma": "^1.5.3",
|
||||||
|
"@types/bun": "^1.3.14",
|
||||||
|
"@types/steam-user": "^5.1.0",
|
||||||
|
"csv-parse": "^6.1.0",
|
||||||
|
"fast-xml-parser": "^5.3.2",
|
||||||
|
"steam-user": "^5.2.3",
|
||||||
"unzipit": "^1.4.3",
|
"unzipit": "^1.4.3",
|
||||||
"yaml": "^2.8.1",
|
"yaml": "^2.8.1",
|
||||||
},
|
},
|
||||||
@@ -102,6 +113,7 @@
|
|||||||
"@astrolib/seo": "^1.0.0-beta.8",
|
"@astrolib/seo": "^1.0.0-beta.8",
|
||||||
"@blitzkit/core": "workspace:*",
|
"@blitzkit/core": "workspace:*",
|
||||||
"@blitzkit/i18n": "workspace:*",
|
"@blitzkit/i18n": "workspace:*",
|
||||||
|
"@blitzkit/vfs": "workspace:*",
|
||||||
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
||||||
"@fontsource-variable/roboto-flex": "^5.3.0",
|
"@fontsource-variable/roboto-flex": "^5.3.0",
|
||||||
"@fontsource/inter": "^5.2.8",
|
"@fontsource/inter": "^5.2.8",
|
||||||
@@ -117,7 +129,6 @@
|
|||||||
"@types/three": "^0.180.0",
|
"@types/three": "^0.180.0",
|
||||||
"@vite-pwa/astro": "^1.1.0",
|
"@vite-pwa/astro": "^1.1.0",
|
||||||
"astro": "^5.14.4",
|
"astro": "^5.14.4",
|
||||||
"astro-favicons": "^3.1.5",
|
|
||||||
"cheerio": "^1.1.2",
|
"cheerio": "^1.1.2",
|
||||||
"compare-versions": "^6.1.1",
|
"compare-versions": "^6.1.1",
|
||||||
"fuzzysort": "^3.1.0",
|
"fuzzysort": "^3.1.0",
|
||||||
@@ -132,7 +143,8 @@
|
|||||||
"react-dom": "^19.3.0",
|
"react-dom": "^19.3.0",
|
||||||
"react-error-boundary": "^6.1.3",
|
"react-error-boundary": "^6.1.3",
|
||||||
"react-promise-suspense": "^0.3.4",
|
"react-promise-suspense": "^0.3.4",
|
||||||
"soapstone": "^1.0.1",
|
"simple-git": "^4.1.0",
|
||||||
|
"soapstone": "^1.2.0",
|
||||||
"three": "^0.180.0",
|
"three": "^0.180.0",
|
||||||
"three-stdlib": "^2.36.0",
|
"three-stdlib": "^2.36.0",
|
||||||
"transliteration": "^2.6.1",
|
"transliteration": "^2.6.1",
|
||||||
@@ -399,6 +411,8 @@
|
|||||||
|
|
||||||
"@blitzkit/scripts": ["@blitzkit/scripts@workspace:packages/scripts"],
|
"@blitzkit/scripts": ["@blitzkit/scripts@workspace:packages/scripts"],
|
||||||
|
|
||||||
|
"@blitzkit/vfs": ["@blitzkit/vfs@workspace:packages/vfs"],
|
||||||
|
|
||||||
"@blitzkit/website": ["@blitzkit/website@workspace:packages/website"],
|
"@blitzkit/website": ["@blitzkit/website@workspace:packages/website"],
|
||||||
|
|
||||||
"@bufbuild/protobuf": ["@bufbuild/[email protected]", "", {}, "sha512-fdRs9PSrBF7QUntpZpq6BTw58fhgGJojgg39m9oFOJGZT+nip9b0so5cYY1oWl5pvemDLr0cPPsH46vwThEbpQ=="],
|
"@bufbuild/protobuf": ["@bufbuild/[email protected]", "", {}, "sha512-fdRs9PSrBF7QUntpZpq6BTw58fhgGJojgg39m9oFOJGZT+nip9b0so5cYY1oWl5pvemDLr0cPPsH46vwThEbpQ=="],
|
||||||
@@ -427,8 +441,12 @@
|
|||||||
|
|
||||||
"@emmetio/stream-reader-utils": ["@emmetio/[email protected]", "", {}, "sha512-ZsZ2I9Vzso3Ho/pjZFsmmZ++FWeEd/txqybHTm4OgaZzdS8V9V/YYWQwg5TC38Z7uLWUV1vavpLLbjJtKubR1A=="],
|
"@emmetio/stream-reader-utils": ["@emmetio/[email protected]", "", {}, "sha512-ZsZ2I9Vzso3Ho/pjZFsmmZ++FWeEd/txqybHTm4OgaZzdS8V9V/YYWQwg5TC38Z7uLWUV1vavpLLbjJtKubR1A=="],
|
||||||
|
|
||||||
|
"@emnapi/core": ["@emnapi/[email protected]", "", { "dependencies": { "@emnapi/wasi-threads": "2.2.0", "tslib": "^2.4.0" } }, "sha512-KA+gOBtbifRATmUa/Gpf5C2B2EJ0r4brHUT3XSgACeHREcuiObXH56xd+B3fFsEFbUT04VBEe6MuZiCtMp0tQg=="],
|
||||||
|
|
||||||
"@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg=="],
|
"@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg=="],
|
||||||
|
|
||||||
|
"@emnapi/wasi-threads": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw=="],
|
||||||
|
|
||||||
"@esbuild/aix-ppc64": ["@esbuild/[email protected]", "", { "os": "aix", "cpu": "ppc64" }, "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw=="],
|
"@esbuild/aix-ppc64": ["@esbuild/[email protected]", "", { "os": "aix", "cpu": "ppc64" }, "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw=="],
|
||||||
|
|
||||||
"@esbuild/android-arm": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "arm" }, "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w=="],
|
"@esbuild/android-arm": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "arm" }, "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w=="],
|
||||||
@@ -619,10 +637,52 @@
|
|||||||
|
|
||||||
"@jridgewell/trace-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],
|
"@jridgewell/trace-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],
|
||||||
|
|
||||||
|
"@kwsites/file-exists": ["@kwsites/[email protected]", "", { "dependencies": { "debug": "^4.1.1" } }, "sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw=="],
|
||||||
|
|
||||||
|
"@kwsites/promise-deferred": ["@kwsites/[email protected]", "", {}, "sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw=="],
|
||||||
|
|
||||||
"@mediapipe/tasks-vision": ["@mediapipe/[email protected]", "", {}, "sha512-CZWV/q6TTe8ta61cZXjfnnHsfWIdFhms03M9T7Cnd5y2mdpylJM0rF1qRq+wsQVRMLz1OYPVEBU9ph2Bx8cxrg=="],
|
"@mediapipe/tasks-vision": ["@mediapipe/[email protected]", "", {}, "sha512-CZWV/q6TTe8ta61cZXjfnnHsfWIdFhms03M9T7Cnd5y2mdpylJM0rF1qRq+wsQVRMLz1OYPVEBU9ph2Bx8cxrg=="],
|
||||||
|
|
||||||
"@monogrid/gainmap-js": ["@monogrid/[email protected]", "", { "dependencies": { "promise-worker-transferable": "^1.0.4" }, "peerDependencies": { "three": ">= 0.159.0" } }, "sha512-Obb0/gEd/HReTlg8ttaYk+0m62gQJmCblMOjHSMHRrBP2zdfKMHLCRbh/6ex9fSUJMKdjjIEiohwkbGD3wj2Nw=="],
|
"@monogrid/gainmap-js": ["@monogrid/[email protected]", "", { "dependencies": { "promise-worker-transferable": "^1.0.4" }, "peerDependencies": { "three": ">= 0.159.0" } }, "sha512-Obb0/gEd/HReTlg8ttaYk+0m62gQJmCblMOjHSMHRrBP2zdfKMHLCRbh/6ex9fSUJMKdjjIEiohwkbGD3wj2Nw=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma": ["@napi-rs/[email protected]", "", { "optionalDependencies": { "@napi-rs/lzma-android-arm-eabi": "1.5.3", "@napi-rs/lzma-android-arm64": "1.5.3", "@napi-rs/lzma-darwin-arm64": "1.5.3", "@napi-rs/lzma-darwin-x64": "1.5.3", "@napi-rs/lzma-freebsd-x64": "1.5.3", "@napi-rs/lzma-linux-arm-gnueabihf": "1.5.3", "@napi-rs/lzma-linux-arm64-gnu": "1.5.3", "@napi-rs/lzma-linux-arm64-musl": "1.5.3", "@napi-rs/lzma-linux-ppc64-gnu": "1.5.3", "@napi-rs/lzma-linux-riscv64-gnu": "1.5.3", "@napi-rs/lzma-linux-s390x-gnu": "1.5.3", "@napi-rs/lzma-linux-x64-gnu": "1.5.3", "@napi-rs/lzma-linux-x64-musl": "1.5.3", "@napi-rs/lzma-wasm32-wasi": "1.5.3", "@napi-rs/lzma-win32-arm64-msvc": "1.5.3", "@napi-rs/lzma-win32-ia32-msvc": "1.5.3", "@napi-rs/lzma-win32-x64-msvc": "1.5.3" } }, "sha512-QSIzELPyd2A7mcaDiJEWjwzApoAOWq9PVl9xYq+CxzIwstufv48s8aBgOUr0sgbjGmb15aYU88YKNaFaCaOuhQ=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-android-arm-eabi": ["@napi-rs/[email protected]", "", { "os": "android", "cpu": "arm" }, "sha512-Jo8Ej9sTXZO+vHVllHPYxcHVoW4dQe30eLx7wk3H786vv2zy/qIIi5KoO6WhK/VsSBhAb13xbIa/vc4maUgp8Q=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-android-arm64": ["@napi-rs/[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-BUEMluJxOJ/9WkZH/IFyyi3viNQGEByodAHDbmJ/k7mVhabGIxjYBea3MmnyTZoIoqZs/ftAKH7jhVCIj+k6mw=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-darwin-arm64": ["@napi-rs/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-ea46AUzmoGqWnrDP8JNea14TCiVMmxWtaD/d5YjRgh1KbL3YfZ9O2BZzfF7DAF+yrVuAQqS52rHveysjnzYlJA=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-darwin-x64": ["@napi-rs/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-/vz8UpAe/9fV7JiTrT+lAV9Xk9bK4F28u8JRDNIYdGaT7lXP0r/e7YjDvBuJZ9bJtStW4nn/08q5Q7yfFmsF1Q=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-freebsd-x64": ["@napi-rs/[email protected]", "", { "os": "freebsd", "cpu": "x64" }, "sha512-gAxemzm8Zk1OaMXihd0L8zeAb/P+71NqhrYnrPVweW3cTXg7XACC+zXQsvENAvHhkroeHCfaMmFupRwfHi+u7A=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-linux-arm-gnueabihf": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-T7ZvCSEAKGoYSw7vIwdKgk1ZaYl8V1JLTgWSlGhnYBau23R9qZP79ONiF7FTosXnvR8G9RLe9peVuVGS5GI7ig=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-linux-arm64-gnu": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-fEfgGb/y8jo2X57cTtMQ62XSD57rxDbpSbT38TSq0gSMKg6A/zq3oOxZLRfoCuZkL3cDtuZMi4fAuo6xIkP5eQ=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-linux-arm64-musl": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-Phe10HwfNrtM7U2XsVLhJGePWOgx0BVW2/EWUBq1hoPkmKuUTjbrFj8y4XSTGS5eHMWABUtehnkbX+MPnN5sKg=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-linux-ppc64-gnu": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-rhuUE76jYbXZaR5oXAWqvfXzxoZKaCFM1nTH3yrdmz2Jtog5mnFcmyJ9WjDFmUgzQo062p1WfXWm3FA8SJOwaA=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-linux-riscv64-gnu": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-ogeKmHMV80J1uGYu5Lg4XVacyQxv9wapsEMEKH6beFtouIpo5wZMod5/zGLNHA+sg0/9HIAQbm/bVFJ5flkiQQ=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-linux-s390x-gnu": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-FvFzkI1zzVUqpX21UQdLZ0efTPxDolaCH1bqIp6k7hMTtx0RNwHJgcrsbGXQisAJ8uLWKRKncwNVL8MzcBVxUg=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-linux-x64-gnu": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-cqF0sRTngwVgnH0y7OV/5zWKWZomMYY71t3gzjtmJou4oPoWQHjxmO1Jo5E3GqUg2bPk+Fp3DcRw1xLAeKs1cg=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-linux-x64-musl": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-ZBMasmon/mQmwIKNCWDJagq/zq45vvDQzhSijJSBSIgyef8IRvoD9O4H2lq62Lrq3toHxhlMD2D85jwUVr4QQw=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-wasm32-wasi": ["@napi-rs/[email protected]", "", { "dependencies": { "@emnapi/core": "2.0.0-beta.3", "@emnapi/runtime": "2.0.0-beta.3", "@napi-rs/wasm-runtime": "~1.2.7" }, "cpu": "none" }, "sha512-gJ2YpVByn8xNbSCbOwQhCN9Jc2ZQY0ERx/K3XFDldbyiFXCphbEnciptp3bwqcp+WUJvIvpZxcKP1+6tcUEj1g=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-win32-arm64-msvc": ["@napi-rs/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-oB9iJluslRc3bZ3upZ7ZD2tJfICX3tjTsqS8jUUWK+d7PpJei/oZ3YklBLNyczmLZ+JXHYZlBbotIeVCaoNGPw=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-win32-ia32-msvc": ["@napi-rs/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-b5HxoRno1C9kS9I9pH9E7uYO9oMEQZ2RuOzAs8+PafoHzcHA5KMzSibNfA//seedILG1w22IS7YfrW4s0+4FvA=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-win32-x64-msvc": ["@napi-rs/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-cPH8uIK0aaD9KZ0FTPBBPTIvncNHQ2Si3DNTP2rjPWyDRVV+syT2dWvlmkiklKgnRipXtx4eJ+tYQZhG30/+9w=="],
|
||||||
|
|
||||||
|
"@napi-rs/wasm-runtime": ["@napi-rs/[email protected]", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3", "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3" } }, "sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ=="],
|
||||||
|
|
||||||
"@nodelib/fs.scandir": ["@nodelib/[email protected]", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="],
|
"@nodelib/fs.scandir": ["@nodelib/[email protected]", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="],
|
||||||
|
|
||||||
"@nodelib/fs.stat": ["@nodelib/[email protected]", "", {}, "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="],
|
"@nodelib/fs.stat": ["@nodelib/[email protected]", "", {}, "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="],
|
||||||
@@ -877,6 +937,10 @@
|
|||||||
|
|
||||||
"@shikijs/vscode-textmate": ["@shikijs/[email protected]", "", {}, "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg=="],
|
"@shikijs/vscode-textmate": ["@shikijs/[email protected]", "", {}, "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg=="],
|
||||||
|
|
||||||
|
"@simple-git/args-pathspec": ["@simple-git/[email protected]", "", {}, "sha512-EtMX6XjRWSastG2SdkmSQByPtJ9dx/NIjnHbpQPCYt62j4RmSx5rgLTGpw0YCjF5h191gZOmBfheOT23cRSFdw=="],
|
||||||
|
|
||||||
|
"@simple-git/argv-parser": ["@simple-git/[email protected]", "", { "dependencies": { "@simple-git/args-pathspec": "^1.0.4" } }, "sha512-MhLm6/9J7PiVZghJnaJG4tOc+rTotsSINJkjbUqZA7lYmYklOXdk+d0UZ8Pm8WFcMuxafx3oSUIYYYnPY92GTQ=="],
|
||||||
|
|
||||||
"@surma/rollup-plugin-off-main-thread": ["@surma/[email protected]", "", { "dependencies": { "ejs": "^3.1.6", "json5": "^2.2.0", "magic-string": "^0.25.0", "string.prototype.matchall": "^4.0.6" } }, "sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ=="],
|
"@surma/rollup-plugin-off-main-thread": ["@surma/[email protected]", "", { "dependencies": { "ejs": "^3.1.6", "json5": "^2.2.0", "magic-string": "^0.25.0", "string.prototype.matchall": "^4.0.6" } }, "sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ=="],
|
||||||
|
|
||||||
"@swc/helpers": ["@swc/[email protected]", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A=="],
|
"@swc/helpers": ["@swc/[email protected]", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A=="],
|
||||||
@@ -887,6 +951,8 @@
|
|||||||
|
|
||||||
"@tweenjs/tween.js": ["@tweenjs/[email protected]", "", {}, "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA=="],
|
"@tweenjs/tween.js": ["@tweenjs/[email protected]", "", {}, "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA=="],
|
||||||
|
|
||||||
|
"@tybys/wasm-util": ["@tybys/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA=="],
|
||||||
|
|
||||||
"@types/adm-zip": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-DNEs/QvmyRLurdQPChqq0Md4zGvPwHerAJYWk9l2jCbD1VPpnzRJorOdiq4zsw09NFbYnhfsoEhWtxIzXpn2yw=="],
|
"@types/adm-zip": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-DNEs/QvmyRLurdQPChqq0Md4zGvPwHerAJYWk9l2jCbD1VPpnzRJorOdiq4zsw09NFbYnhfsoEhWtxIzXpn2yw=="],
|
||||||
|
|
||||||
"@types/babel__core": ["@types/[email protected]", "", { "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", "@types/babel__generator": "*", "@types/babel__template": "*", "@types/babel__traverse": "*" } }, "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA=="],
|
"@types/babel__core": ["@types/[email protected]", "", { "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", "@types/babel__generator": "*", "@types/babel__template": "*", "@types/babel__traverse": "*" } }, "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA=="],
|
||||||
@@ -1027,8 +1093,6 @@
|
|||||||
|
|
||||||
"astro": ["[email protected]", "", { "dependencies": { "@astrojs/compiler": "^2.12.2", "@astrojs/internal-helpers": "0.7.4", "@astrojs/markdown-remark": "6.3.8", "@astrojs/telemetry": "3.3.0", "@capsizecss/unpack": "^3.0.0", "@oslojs/encoding": "^1.1.0", "@rollup/pluginutils": "^5.2.0", "acorn": "^8.15.0", "aria-query": "^5.3.2", "axobject-query": "^4.1.0", "boxen": "8.0.1", "ci-info": "^4.3.0", "clsx": "^2.1.1", "common-ancestor-path": "^1.0.1", "cookie": "^1.0.2", "cssesc": "^3.0.0", "debug": "^4.4.1", "deterministic-object-hash": "^2.0.2", "devalue": "^5.3.2", "diff": "^5.2.0", "dlv": "^1.1.3", "dset": "^3.1.4", "es-module-lexer": "^1.7.0", "esbuild": "^0.25.0", "estree-walker": "^3.0.3", "flattie": "^1.1.1", "fontace": "~0.3.0", "github-slugger": "^2.0.0", "html-escaper": "3.0.3", "http-cache-semantics": "^4.2.0", "import-meta-resolve": "^4.2.0", "js-yaml": "^4.1.0", "kleur": "^4.1.5", "magic-string": "^0.30.18", "magicast": "^0.3.5", "mrmime": "^2.0.1", "neotraverse": "^0.6.18", "p-limit": "^6.2.0", "p-queue": "^8.1.0", "package-manager-detector": "^1.3.0", "picomatch": "^4.0.3", "prompts": "^2.4.2", "rehype": "^13.0.2", "semver": "^7.7.2", "shiki": "^3.12.0", "smol-toml": "^1.4.2", "tinyexec": "^1.0.1", "tinyglobby": "^0.2.14", "tsconfck": "^3.1.6", "ultrahtml": "^1.6.0", "unifont": "~0.6.0", "unist-util-visit": "^5.0.0", "unstorage": "^1.17.0", "vfile": "^6.0.3", "vite": "^6.3.6", "vitefu": "^1.1.1", "xxhash-wasm": "^1.1.0", "yargs-parser": "^21.1.1", "yocto-spinner": "^0.2.3", "zod": "^3.25.76", "zod-to-json-schema": "^3.24.6", "zod-to-ts": "^1.2.0" }, "optionalDependencies": { "sharp": "^0.34.0" }, "bin": { "astro": "astro.js" } }, "sha512-yqgMAO2Whi9GmZkByyiPcG7CiiPr0Me0iBSorMa6M0g+wQk/ewnIqUyr7T/uFCPTQndoKwucnYFTrf0yfb0urw=="],
|
"astro": ["[email protected]", "", { "dependencies": { "@astrojs/compiler": "^2.12.2", "@astrojs/internal-helpers": "0.7.4", "@astrojs/markdown-remark": "6.3.8", "@astrojs/telemetry": "3.3.0", "@capsizecss/unpack": "^3.0.0", "@oslojs/encoding": "^1.1.0", "@rollup/pluginutils": "^5.2.0", "acorn": "^8.15.0", "aria-query": "^5.3.2", "axobject-query": "^4.1.0", "boxen": "8.0.1", "ci-info": "^4.3.0", "clsx": "^2.1.1", "common-ancestor-path": "^1.0.1", "cookie": "^1.0.2", "cssesc": "^3.0.0", "debug": "^4.4.1", "deterministic-object-hash": "^2.0.2", "devalue": "^5.3.2", "diff": "^5.2.0", "dlv": "^1.1.3", "dset": "^3.1.4", "es-module-lexer": "^1.7.0", "esbuild": "^0.25.0", "estree-walker": "^3.0.3", "flattie": "^1.1.1", "fontace": "~0.3.0", "github-slugger": "^2.0.0", "html-escaper": "3.0.3", "http-cache-semantics": "^4.2.0", "import-meta-resolve": "^4.2.0", "js-yaml": "^4.1.0", "kleur": "^4.1.5", "magic-string": "^0.30.18", "magicast": "^0.3.5", "mrmime": "^2.0.1", "neotraverse": "^0.6.18", "p-limit": "^6.2.0", "p-queue": "^8.1.0", "package-manager-detector": "^1.3.0", "picomatch": "^4.0.3", "prompts": "^2.4.2", "rehype": "^13.0.2", "semver": "^7.7.2", "shiki": "^3.12.0", "smol-toml": "^1.4.2", "tinyexec": "^1.0.1", "tinyglobby": "^0.2.14", "tsconfck": "^3.1.6", "ultrahtml": "^1.6.0", "unifont": "~0.6.0", "unist-util-visit": "^5.0.0", "unstorage": "^1.17.0", "vfile": "^6.0.3", "vite": "^6.3.6", "vitefu": "^1.1.1", "xxhash-wasm": "^1.1.0", "yargs-parser": "^21.1.1", "yocto-spinner": "^0.2.3", "zod": "^3.25.76", "zod-to-json-schema": "^3.24.6", "zod-to-ts": "^1.2.0" }, "optionalDependencies": { "sharp": "^0.34.0" }, "bin": { "astro": "astro.js" } }, "sha512-yqgMAO2Whi9GmZkByyiPcG7CiiPr0Me0iBSorMa6M0g+wQk/ewnIqUyr7T/uFCPTQndoKwucnYFTrf0yfb0urw=="],
|
||||||
|
|
||||||
"astro-favicons": ["[email protected]", "", { "dependencies": { "favilib": "^1.0.5", "ultrahtml": "^1.5.3" }, "peerDependencies": { "astro": ">= 4.0.0" } }, "sha512-XFEW0Yk0sSfFu7WAT5wJ61atbT16YpO3y5n/ooxtys1/Uuv0v2XmMFw8OUrxnykmstUKoa+XjqUw22ph9cFn7A=="],
|
|
||||||
|
|
||||||
"async": ["[email protected]", "", {}, "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA=="],
|
"async": ["[email protected]", "", {}, "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA=="],
|
||||||
|
|
||||||
"async-function": ["[email protected]", "", {}, "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA=="],
|
"async-function": ["[email protected]", "", {}, "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA=="],
|
||||||
@@ -1161,14 +1225,10 @@
|
|||||||
|
|
||||||
"clsx": ["[email protected]", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="],
|
"clsx": ["[email protected]", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="],
|
||||||
|
|
||||||
"color": ["[email protected]", "", { "dependencies": { "color-convert": "^2.0.1", "color-string": "^1.9.0" } }, "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A=="],
|
|
||||||
|
|
||||||
"color-convert": ["[email protected]", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="],
|
"color-convert": ["[email protected]", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="],
|
||||||
|
|
||||||
"color-name": ["[email protected]", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="],
|
"color-name": ["[email protected]", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="],
|
||||||
|
|
||||||
"color-string": ["[email protected]", "", { "dependencies": { "color-name": "^1.0.0", "simple-swizzle": "^0.2.2" } }, "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg=="],
|
|
||||||
|
|
||||||
"comma-separated-tokens": ["[email protected]", "", {}, "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg=="],
|
"comma-separated-tokens": ["[email protected]", "", {}, "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg=="],
|
||||||
|
|
||||||
"commander": ["[email protected]", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="],
|
"commander": ["[email protected]", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="],
|
||||||
@@ -1383,8 +1443,6 @@
|
|||||||
|
|
||||||
"fastq": ["[email protected]", "", { "dependencies": { "reusify": "^1.0.4" } }, "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ=="],
|
"fastq": ["[email protected]", "", { "dependencies": { "reusify": "^1.0.4" } }, "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ=="],
|
||||||
|
|
||||||
"favilib": ["[email protected]", "", { "dependencies": { "escape-html": "^1.0.3", "sharp": "^0.33.5", "xml2js": "^0.6.2" } }, "sha512-3Fk5LQRU96QUmHWmyZc3WIMyz1tmte6TPlCVjaairXeHGtPHM4pnLvg11CyXTq6od1v5aaopHoREHNSwN4BKDA=="],
|
|
||||||
|
|
||||||
"fd-slicer": ["[email protected]", "", { "dependencies": { "pend": "~1.2.0" } }, "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g=="],
|
"fd-slicer": ["[email protected]", "", { "dependencies": { "pend": "~1.2.0" } }, "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g=="],
|
||||||
|
|
||||||
"fdir": ["[email protected]", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],
|
"fdir": ["[email protected]", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],
|
||||||
@@ -1643,8 +1701,6 @@
|
|||||||
|
|
||||||
"jimp": ["[email protected]", "", { "dependencies": { "@jimp/core": "1.6.0", "@jimp/diff": "1.6.0", "@jimp/js-bmp": "1.6.0", "@jimp/js-gif": "1.6.0", "@jimp/js-jpeg": "1.6.0", "@jimp/js-png": "1.6.0", "@jimp/js-tiff": "1.6.0", "@jimp/plugin-blit": "1.6.0", "@jimp/plugin-blur": "1.6.0", "@jimp/plugin-circle": "1.6.0", "@jimp/plugin-color": "1.6.0", "@jimp/plugin-contain": "1.6.0", "@jimp/plugin-cover": "1.6.0", "@jimp/plugin-crop": "1.6.0", "@jimp/plugin-displace": "1.6.0", "@jimp/plugin-dither": "1.6.0", "@jimp/plugin-fisheye": "1.6.0", "@jimp/plugin-flip": "1.6.0", "@jimp/plugin-hash": "1.6.0", "@jimp/plugin-mask": "1.6.0", "@jimp/plugin-print": "1.6.0", "@jimp/plugin-quantize": "1.6.0", "@jimp/plugin-resize": "1.6.0", "@jimp/plugin-rotate": "1.6.0", "@jimp/plugin-threshold": "1.6.0", "@jimp/types": "1.6.0", "@jimp/utils": "1.6.0" } }, "sha512-YcwCHw1kiqEeI5xRpDlPPBGL2EOpBKLwO4yIBJcXWHPj5PnA5urGq0jbyhM5KoNpypQ6VboSoxc9D8HyfvngSg=="],
|
"jimp": ["[email protected]", "", { "dependencies": { "@jimp/core": "1.6.0", "@jimp/diff": "1.6.0", "@jimp/js-bmp": "1.6.0", "@jimp/js-gif": "1.6.0", "@jimp/js-jpeg": "1.6.0", "@jimp/js-png": "1.6.0", "@jimp/js-tiff": "1.6.0", "@jimp/plugin-blit": "1.6.0", "@jimp/plugin-blur": "1.6.0", "@jimp/plugin-circle": "1.6.0", "@jimp/plugin-color": "1.6.0", "@jimp/plugin-contain": "1.6.0", "@jimp/plugin-cover": "1.6.0", "@jimp/plugin-crop": "1.6.0", "@jimp/plugin-displace": "1.6.0", "@jimp/plugin-dither": "1.6.0", "@jimp/plugin-fisheye": "1.6.0", "@jimp/plugin-flip": "1.6.0", "@jimp/plugin-hash": "1.6.0", "@jimp/plugin-mask": "1.6.0", "@jimp/plugin-print": "1.6.0", "@jimp/plugin-quantize": "1.6.0", "@jimp/plugin-resize": "1.6.0", "@jimp/plugin-rotate": "1.6.0", "@jimp/plugin-threshold": "1.6.0", "@jimp/types": "1.6.0", "@jimp/utils": "1.6.0" } }, "sha512-YcwCHw1kiqEeI5xRpDlPPBGL2EOpBKLwO4yIBJcXWHPj5PnA5urGq0jbyhM5KoNpypQ6VboSoxc9D8HyfvngSg=="],
|
||||||
|
|
||||||
"jiti": ["[email protected]", "", { "bin": { "jiti": "lib/jiti-cli.mjs" } }, "sha512-VXe6RjJkBPj0ohtqaO8vSWP3ZhAKo66fKrFNCll4BTcwljPLz03pCbaNKfzGP5MbrCYcbJ7v0nOYYwUzTEIdXQ=="],
|
|
||||||
|
|
||||||
"jpeg-js": ["[email protected]", "", {}, "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg=="],
|
"jpeg-js": ["[email protected]", "", {}, "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg=="],
|
||||||
|
|
||||||
"js-tokens": ["[email protected]", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],
|
"js-tokens": ["[email protected]", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],
|
||||||
@@ -1951,7 +2007,7 @@
|
|||||||
|
|
||||||
"potpack": ["[email protected]", "", {}, "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ=="],
|
"potpack": ["[email protected]", "", {}, "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ=="],
|
||||||
|
|
||||||
"prettier": ["prettier@3.6.2", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ=="],
|
"prettier": ["prettier@3.10.2", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-VQGIFOC0JNYLvfT57+Tre9wvgpc1Njx0JcnTDwRD6IFQGPTfPMghvi2A7gSwa/I0emKTK4KpBIN4mWYHyCDNDQ=="],
|
||||||
|
|
||||||
"pretty-bytes": ["[email protected]", "", {}, "sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ=="],
|
"pretty-bytes": ["[email protected]", "", {}, "sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ=="],
|
||||||
|
|
||||||
@@ -2141,7 +2197,7 @@
|
|||||||
|
|
||||||
"side-channel-weakmap": ["[email protected]", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="],
|
"side-channel-weakmap": ["[email protected]", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="],
|
||||||
|
|
||||||
"simple-swizzle": ["simple-[email protected]", "", { "dependencies": { "is-arrayish": "^0.3.1" } }, "sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw=="],
|
"simple-git": ["simple-[email protected]", "", { "dependencies": { "@kwsites/file-exists": "^1.1.1", "@kwsites/promise-deferred": "^1.1.1", "@simple-git/args-pathspec": "1.0.4", "@simple-git/argv-parser": "3.0.0", "debug": "^4.4.0" } }, "sha512-FZJESy4Vxahk4eOadmRsWF5TjhCrfpDP563j8jAMbMEi/phIHPDgzN/tDkRIZ2GyQdLKEeXMPXqA8hhWjAdQZA=="],
|
||||||
|
|
||||||
"simple-xml-to-json": ["[email protected]", "", {}, "sha512-kWJDCr9EWtZ+/EYYM5MareWj2cRnZGF93YDNpH4jQiHB+hBIZnfPFSQiVMzZOdk+zXWqTZ/9fTeQNu2DqeiudA=="],
|
"simple-xml-to-json": ["[email protected]", "", {}, "sha512-kWJDCr9EWtZ+/EYYM5MareWj2cRnZGF93YDNpH4jQiHB+hBIZnfPFSQiVMzZOdk+zXWqTZ/9fTeQNu2DqeiudA=="],
|
||||||
|
|
||||||
@@ -2153,7 +2209,7 @@
|
|||||||
|
|
||||||
"smol-toml": ["[email protected]", "", {}, "sha512-rInDH6lCNiEyn3+hH8KVGFdbjc099j47+OSgbMrfDYX1CmXLfdKd7qi6IfcWj2wFxvSVkuI46M+wPGYfEOEj6g=="],
|
"smol-toml": ["[email protected]", "", {}, "sha512-rInDH6lCNiEyn3+hH8KVGFdbjc099j47+OSgbMrfDYX1CmXLfdKd7qi6IfcWj2wFxvSVkuI46M+wPGYfEOEj6g=="],
|
||||||
|
|
||||||
"soapstone": ["soapstone@1.0.1", "", { "dependencies": { "immer": "^11.1.8", "lodash-es": "^4.18.1" }, "peerDependencies": { "react": "^19.3.0", "typescript": "^5" } }, "sha512-5f6iW2Hybjqcvmn+P+X1gH1NKDhry+ePk4F1rqK0yeFjNICx7tqy0X315tQD0Lhv/zUTNA9dV+8BLW9/o7Wlpw=="],
|
"soapstone": ["soapstone@1.2.0", "", { "dependencies": { "immer": "^11.1.8", "lodash-es": "^4.18.1" }, "peerDependencies": { "react": "^19.3.0", "typescript": "^5" } }, "sha512-kkpRyS5tGFl6KYhXRj+gxBnp9W5DOGWXIRcHgEQ5iVqGseAIfnsXfTfsCBwL70Y1pwycKGzQI5hwb1K5kklgSA=="],
|
||||||
|
|
||||||
"socks": ["[email protected]", "", { "dependencies": { "ip-address": "^10.0.1", "smart-buffer": "^4.2.0" } }, "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A=="],
|
"socks": ["[email protected]", "", { "dependencies": { "ip-address": "^10.0.1", "smart-buffer": "^4.2.0" } }, "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A=="],
|
||||||
|
|
||||||
@@ -2507,7 +2563,7 @@
|
|||||||
|
|
||||||
"xml-parse-from-string": ["[email protected]", "", {}, "sha512-ErcKwJTF54uRzzNMXq2X5sMIy88zJvfN2DmdoQvy7PAFJ+tPRU6ydWuOKNMyfmOjdyBQTFREi60s0Y0SyI0G0g=="],
|
"xml-parse-from-string": ["[email protected]", "", {}, "sha512-ErcKwJTF54uRzzNMXq2X5sMIy88zJvfN2DmdoQvy7PAFJ+tPRU6ydWuOKNMyfmOjdyBQTFREi60s0Y0SyI0G0g=="],
|
||||||
|
|
||||||
"xml2js": ["xml2js@0.6.2", "", { "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" } }, "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA=="],
|
"xml2js": ["xml2js@0.5.0", "", { "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" } }, "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA=="],
|
||||||
|
|
||||||
"xmlbuilder": ["[email protected]", "", {}, "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA=="],
|
"xmlbuilder": ["[email protected]", "", {}, "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA=="],
|
||||||
|
|
||||||
@@ -2563,10 +2619,10 @@
|
|||||||
|
|
||||||
"@babel/preset-env/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
|
"@babel/preset-env/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
|
||||||
|
|
||||||
"@blitzkit/scripts/lodash-es": ["[email protected]", "", {}, "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg=="],
|
|
||||||
|
|
||||||
"@jimp/core/file-type": ["[email protected]", "", { "dependencies": { "readable-web-to-node-stream": "^3.0.0", "strtok3": "^6.2.4", "token-types": "^4.1.1" } }, "sha512-/yFHK0aGjFEgDJjEKP0pWCplsPFPhwyfwevf/pVxiN0tmE4L9LmwWxWukdJSHdoCli4VgQLehjJtwQBnqmsKcw=="],
|
"@jimp/core/file-type": ["[email protected]", "", { "dependencies": { "readable-web-to-node-stream": "^3.0.0", "strtok3": "^6.2.4", "token-types": "^4.1.1" } }, "sha512-/yFHK0aGjFEgDJjEKP0pWCplsPFPhwyfwevf/pVxiN0tmE4L9LmwWxWukdJSHdoCli4VgQLehjJtwQBnqmsKcw=="],
|
||||||
|
|
||||||
|
"@napi-rs/lzma-wasm32-wasi/@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-ayb/PyyLzpwRyFVxeC0uoEHu59QlB1iWGcGsOpXQcaB/Dc+uGfBmNmpCHp3HmTT0t8lSsMmg3j7+tdJW/TlHjQ=="],
|
||||||
|
|
||||||
"@octokit/endpoint/@octokit/types": ["@octokit/[email protected]", "", { "dependencies": { "@octokit/openapi-types": "^25.1.0" } }, "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g=="],
|
"@octokit/endpoint/@octokit/types": ["@octokit/[email protected]", "", { "dependencies": { "@octokit/openapi-types": "^25.1.0" } }, "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g=="],
|
||||||
|
|
||||||
"@octokit/graphql/@octokit/types": ["@octokit/[email protected]", "", { "dependencies": { "@octokit/openapi-types": "^25.1.0" } }, "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g=="],
|
"@octokit/graphql/@octokit/types": ["@octokit/[email protected]", "", { "dependencies": { "@octokit/openapi-types": "^25.1.0" } }, "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g=="],
|
||||||
@@ -2625,8 +2681,6 @@
|
|||||||
|
|
||||||
"extract-zip/get-stream": ["[email protected]", "", { "dependencies": { "pump": "^3.0.0" } }, "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA=="],
|
"extract-zip/get-stream": ["[email protected]", "", { "dependencies": { "pump": "^3.0.0" } }, "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA=="],
|
||||||
|
|
||||||
"favilib/sharp": ["[email protected]", "", { "dependencies": { "color": "^4.2.3", "detect-libc": "^2.0.3", "semver": "^7.6.3" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.33.5", "@img/sharp-darwin-x64": "0.33.5", "@img/sharp-libvips-darwin-arm64": "1.0.4", "@img/sharp-libvips-darwin-x64": "1.0.4", "@img/sharp-libvips-linux-arm": "1.0.5", "@img/sharp-libvips-linux-arm64": "1.0.4", "@img/sharp-libvips-linux-s390x": "1.0.4", "@img/sharp-libvips-linux-x64": "1.0.4", "@img/sharp-libvips-linuxmusl-arm64": "1.0.4", "@img/sharp-libvips-linuxmusl-x64": "1.0.4", "@img/sharp-linux-arm": "0.33.5", "@img/sharp-linux-arm64": "0.33.5", "@img/sharp-linux-s390x": "0.33.5", "@img/sharp-linux-x64": "0.33.5", "@img/sharp-linuxmusl-arm64": "0.33.5", "@img/sharp-linuxmusl-x64": "0.33.5", "@img/sharp-wasm32": "0.33.5", "@img/sharp-win32-ia32": "0.33.5", "@img/sharp-win32-x64": "0.33.5" } }, "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw=="],
|
|
||||||
|
|
||||||
"file-manager/@doctormckay/stdlib": ["@doctormckay/[email protected]", "", {}, "sha512-XhuUOzElz6fnNdt70IYNKqhPAEpGaL4JHOhAvklRh0hAhVPW+/wLxaWT3DWUbaG5Dta5YvIp7+cZK3GhIpAuug=="],
|
"file-manager/@doctormckay/stdlib": ["@doctormckay/[email protected]", "", {}, "sha512-XhuUOzElz6fnNdt70IYNKqhPAEpGaL4JHOhAvklRh0hAhVPW+/wLxaWT3DWUbaG5Dta5YvIp7+cZK3GhIpAuug=="],
|
||||||
|
|
||||||
"filelist/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g=="],
|
"filelist/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g=="],
|
||||||
@@ -2659,8 +2713,6 @@
|
|||||||
|
|
||||||
"pac-proxy-agent/socks-proxy-agent": ["[email protected]", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "^4.3.4", "socks": "^2.8.3" } }, "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw=="],
|
"pac-proxy-agent/socks-proxy-agent": ["[email protected]", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "^4.3.4", "socks": "^2.8.3" } }, "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw=="],
|
||||||
|
|
||||||
"parse-bmfont-xml/xml2js": ["[email protected]", "", { "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" } }, "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA=="],
|
|
||||||
|
|
||||||
"parse5/entities": ["[email protected]", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="],
|
"parse5/entities": ["[email protected]", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="],
|
||||||
|
|
||||||
"pixelmatch/pngjs": ["[email protected]", "", {}, "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg=="],
|
"pixelmatch/pngjs": ["[email protected]", "", {}, "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg=="],
|
||||||
@@ -2683,8 +2735,6 @@
|
|||||||
|
|
||||||
"safe-push-apply/isarray": ["[email protected]", "", {}, "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw=="],
|
"safe-push-apply/isarray": ["[email protected]", "", {}, "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw=="],
|
||||||
|
|
||||||
"simple-swizzle/is-arrayish": ["[email protected]", "", {}, "sha512-m6UrgzFVUYawGBh1dUsWR5M2Clqic9RVXC/9f8ceNlv2IcO9j9J/z8UoCLPqtsPBFNzEpfR3xftohbfqDx8EQA=="],
|
|
||||||
|
|
||||||
"soapstone/immer": ["[email protected]", "", {}, "sha512-EQyQtLiYW029lyoczMl/Hh4Xu7cDecSc58JRYpHyL4tIAu3eqd1yJzQX04d2BZHDkzFFvm6qJEJWOtfDSWAXbQ=="],
|
"soapstone/immer": ["[email protected]", "", {}, "sha512-EQyQtLiYW029lyoczMl/Hh4Xu7cDecSc58JRYpHyL4tIAu3eqd1yJzQX04d2BZHDkzFFvm6qJEJWOtfDSWAXbQ=="],
|
||||||
|
|
||||||
"source-map-support/source-map": ["[email protected]", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="],
|
"source-map-support/source-map": ["[email protected]", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="],
|
||||||
@@ -2821,48 +2871,6 @@
|
|||||||
|
|
||||||
"cliui/wrap-ansi/ansi-styles": ["[email protected]", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
|
"cliui/wrap-ansi/ansi-styles": ["[email protected]", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-darwin-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.0.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-darwin-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.0.4" }, "os": "darwin", "cpu": "x64" }, "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-libvips-darwin-arm64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-libvips-darwin-x64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-libvips-linux-arm": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-libvips-linuxmusl-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-libvips-linuxmusl-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-linux-arm": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.0.5" }, "os": "linux", "cpu": "arm" }, "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.0.4" }, "os": "linux", "cpu": "s390x" }, "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-linuxmusl-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.2.0" }, "cpu": "none" }, "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ=="],
|
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-win32-x64": ["@img/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg=="],
|
|
||||||
|
|
||||||
"favilib/sharp/detect-libc": ["[email protected]", "", {}, "sha512-ecqj/sy1jcK1uWrwpR67UhYrIFQ+5WlGxth34WquCbamhFA6hkkwiu37o6J5xCHdo1oixJRfVRw+ywV+Hq/0Aw=="],
|
|
||||||
|
|
||||||
"favilib/sharp/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
|
|
||||||
|
|
||||||
"filelist/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="],
|
"filelist/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="],
|
||||||
|
|
||||||
"ndarray-pixels/sharp/@img/sharp-darwin-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.2.3" }, "os": "darwin", "cpu": "arm64" }, "sha512-sitdlPzDVyvmINUdJle3TNHl+AG9QcwiAMsXmccqsCOMZNIdW2/7S26w0LyU8euiLVzFBL3dXPwVCq/ODnf2vA=="],
|
"ndarray-pixels/sharp/@img/sharp-darwin-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.2.3" }, "os": "darwin", "cpu": "arm64" }, "sha512-sitdlPzDVyvmINUdJle3TNHl+AG9QcwiAMsXmccqsCOMZNIdW2/7S26w0LyU8euiLVzFBL3dXPwVCq/ODnf2vA=="],
|
||||||
@@ -2933,8 +2941,6 @@
|
|||||||
|
|
||||||
"boxen/string-width/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],
|
"boxen/string-width/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],
|
||||||
|
|
||||||
"favilib/sharp/@img/sharp-wasm32/@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="],
|
|
||||||
|
|
||||||
"ndarray-pixels/sharp/@img/sharp-wasm32/@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="],
|
"ndarray-pixels/sharp/@img/sharp-wasm32/@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="],
|
||||||
|
|
||||||
"widest-line/string-width/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],
|
"widest-line/string-width/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
# BlitzKit Credits
|
|
||||||
|
|
||||||
BlitzKit is a one man band **TrèsAbhi** but I am far from solo. Helpers, in the order of contribution over time:
|
|
||||||
|
|
||||||
### S0AP
|
|
||||||
|
|
||||||
BlitzKit Discord bot verification, testing, advertisement, and the initial encouragement to create BlitzKit.
|
|
||||||
|
|
||||||
### Prince_NA
|
|
||||||
|
|
||||||
BlitzKit Discord bot and website testing and general advise.
|
|
||||||
|
|
||||||
### Vovko
|
|
||||||
|
|
||||||
BlitzKit Discord bot and website rendering pipeline.
|
|
||||||
|
|
||||||
### Maddox
|
|
||||||
|
|
||||||
Game file decompression.
|
|
||||||
|
|
||||||
### Pyogenics
|
|
||||||
|
|
||||||
Game 3D model parsing.
|
|
||||||
|
|
||||||
### Aeson
|
|
||||||
|
|
||||||
Game file layout, general advise, advertisement, and Tankopedia pre-release testing.
|
|
||||||
|
|
||||||
### Minitelrose, ChickenMan7777
|
|
||||||
|
|
||||||
3-caliber rule edge cases.
|
|
||||||
|
|
||||||
### HisRoyalFatness, Synx
|
|
||||||
|
|
||||||
Embed UX.
|
|
||||||
|
|
||||||
### [OPTML] clan, \_34, xkdkw, Droodles Blitz
|
|
||||||
|
|
||||||
Tankopedia pre-release testing.
|
|
||||||
|
|
||||||
### GonnaHetzMe
|
|
||||||
|
|
||||||
Redacted by request.
|
|
||||||
|
|
||||||
### Mark Greene
|
|
||||||
|
|
||||||
GitHub contributor on bug fixes and feature additions.
|
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
# BlitzKit 1.29.10
|
# BlitzKit 1.29.10
|
||||||
|
|
||||||
Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions this update.
|
Thank you to [HitJack](https://github.com/Hitjack007) for your contributions this update.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Combined game mode passive and active abilities into a single dropdown
|
- Combined game mode passive and active abilities into a single dropdown
|
||||||
- Added tier filters to the Guess game [Mark Greene]
|
- Added tier filters to the Guess game [HitJack]
|
||||||
- Changing tiers will break your streak
|
- Changing tiers will break your streak
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- module damage is now properly shown when sorting with it in the tank search [Mark Greene]
|
- module damage is now properly shown when sorting with it in the tank search [HitJack]
|
||||||
- Duplicate abilities in the tank filters are now removed
|
- Duplicate abilities in the tank filters are now removed
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# BlitzKit 1.29.8
|
# BlitzKit 1.29.8
|
||||||
|
|
||||||
Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions this update.
|
Thank you to [HitJack](https://github.com/Hitjack007) for your contributions this update.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
@@ -15,5 +15,5 @@ Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions
|
|||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- The Tankopedia now smoothly resizes when enlarging on interaction
|
- The Tankopedia now smoothly resizes when enlarging on interaction
|
||||||
- Stock turrets now correctly mount the corresponding stock gun [Mark Greene]
|
- Stock turrets now correctly mount the corresponding stock gun [HitJack]
|
||||||
- The consumable and provision buttons in Compare are no longer tiny
|
- The consumable and provision buttons in Compare are no longer tiny
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
# BlitzKit 1.29.9
|
# BlitzKit 1.29.9
|
||||||
|
|
||||||
Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions this update.
|
Thank you to [HitJack](https://github.com/Hitjack007) for your contributions this update.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Reworked tank search filters to be far more compact to make way for new filters
|
- Reworked tank search filters to be far more compact to make way for new filters
|
||||||
- Added the ability to filter tanks by consumables [Mark Greene]
|
- Added the ability to filter tanks by consumables [HitJack]
|
||||||
- Added the ability to filter tanks by provisions and game-mode abilities and powers
|
- Added the ability to filter tanks by provisions and game-mode abilities and powers
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- Consumable and provision icons in Compare are now properly sized
|
- Consumable and provision icons in Compare are now properly sized
|
||||||
- Provisions now properly affect terrain resistances [Mark Greene]
|
- Provisions now properly affect terrain resistances [HitJack]
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# BlitzKit 1.30.7
|
# BlitzKit 1.30.7
|
||||||
|
|
||||||
Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions this update.
|
Thank you to [HitJack](https://github.com/Hitjack007) for your contributions this update.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
@@ -8,13 +8,13 @@ Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions
|
|||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- Clicking on the armor multiple times with HE no longer crashes BlitzKit [Mark Greene]
|
- Clicking on the armor multiple times with HE no longer crashes BlitzKit [HitJack]
|
||||||
- Ricochets that later intersect with external modules no longer falsely claim a successful damaging penetration [Mark Greene]
|
- Ricochets that later intersect with external modules no longer falsely claim a successful damaging penetration [HitJack]
|
||||||
- The lighting animation no longer stops prematurely when BlitzKit is unfocused
|
- The lighting animation no longer stops prematurely when BlitzKit is unfocused
|
||||||
- The spot light angle has been increased to more evenly light up larger tanks
|
- The spot light angle has been increased to more evenly light up larger tanks
|
||||||
- BlitzKit once again uses soft shadows, reducing the pixelated shadows
|
- BlitzKit once again uses soft shadows, reducing the pixelated shadows
|
||||||
- Fixed the weird patterns that formed on the tracks of tanks under self-shadows
|
- Fixed the weird patterns that formed on the tracks of tanks under self-shadows
|
||||||
- Increased the floor size and light decay to create the illusion that the floor is infinite
|
- Increased the floor size and light decay to create the illusion that the floor is infinite
|
||||||
- Safari no longer crashes when unloading textures for unloaded tanks [Mark Greene]
|
- Safari no longer crashes when unloading textures for unloaded tanks [HitJack]
|
||||||
- The gun depression transition between two constraints (like often behind tanks) now uses a gentler zoned and can never be 0
|
- The gun depression transition between two constraints (like often behind tanks) now uses a gentler zoned and can never be 0
|
||||||
- Armor plate names in Static Armor are now properly capitalized in English and translated to other languages [Mark Greene]
|
- Armor plate names in Static Armor are now properly capitalized in English and translated to other languages [HitJack]
|
||||||
+34
-34
@@ -1,75 +1,75 @@
|
|||||||
# BlitzKit 1.32.0
|
# BlitzKit 1.32.0
|
||||||
|
|
||||||
Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions this update.
|
Thank you to [HitJack](https://github.com/Hitjack007) for your contributions this update.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
### Tankopedia & Armor
|
### Tankopedia & Armor
|
||||||
|
|
||||||
- Added a spall liner button to the Tankopedia beside the other equipment [Mark Greene]
|
- Added a spall liner button to the Tankopedia beside the other equipment [HitJack]
|
||||||
- Listed track repair times in the Tankopedia [Mark Greene]
|
- Listed track repair times in the Tankopedia [HitJack]
|
||||||
- The penetration chance is now displayed when penetration testing armor [Mark Greene]
|
- The penetration chance is now displayed when penetration testing armor [HitJack]
|
||||||
- Added a new setting to disable automatically loading tanks in Tankopedia [Mark Greene]
|
- Added a new setting to disable automatically loading tanks in Tankopedia [HitJack]
|
||||||
|
|
||||||
### Tank Performance & Mechanics
|
### Tank Performance & Mechanics
|
||||||
|
|
||||||
- Added Peekaboo DPM [Mark Greene]
|
- Added Peekaboo DPM [HitJack]
|
||||||
- Your Peekaboo DPM is lower than your normal DPM if your reload is faster than 10s as you'll have to wait for the remaining 10s for you to get unspotted before you can poke and shoot
|
- Your Peekaboo DPM is lower than your normal DPM if your reload is faster than 10s as you'll have to wait for the remaining 10s for you to get unspotted before you can poke and shoot
|
||||||
|
|
||||||
### Tank Filters
|
### Tank Filters
|
||||||
|
|
||||||
- The test and owned tank filters are now more intuitive as clicking on them now turns the clicked option on instead of off [Mark Greene]
|
- The test and owned tank filters are now more intuitive as clicking on them now turns the clicked option on instead of off [HitJack]
|
||||||
|
|
||||||
### Game Compatibility
|
### Game Compatibility
|
||||||
|
|
||||||
- Added compatibility for tier XI tanks [Mark Greene]
|
- Added compatibility for tier XI tanks [HitJack]
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
### Tankopedia & Armor
|
### Tankopedia & Armor
|
||||||
|
|
||||||
- The armor no longer disappears when you turn on Dynamic Armor System [Mark Greene]
|
- The armor no longer disappears when you turn on Dynamic Armor System [HitJack]
|
||||||
- Camouflage values in Tankopedia are now more descriptive when shooting [Mark Greene]
|
- Camouflage values in Tankopedia are now more descriptive when shooting [HitJack]
|
||||||
- The penetration chance is now displayed when penetration testing armor [Mark Greene]
|
- The penetration chance is now displayed when penetration testing armor [HitJack]
|
||||||
- Listed track repair times in the Tankopedia [Mark Greene]
|
- Listed track repair times in the Tankopedia [HitJack]
|
||||||
- Added a spall liner button to the Tankopedia beside the other equipment [Mark Greene]
|
- Added a spall liner button to the Tankopedia beside the other equipment [HitJack]
|
||||||
- The flags in the Tankopedia tech tree are no longer offset to the top left [Mark Greene]
|
- The flags in the Tankopedia tech tree are no longer offset to the top left [HitJack]
|
||||||
- The loading bar below the name of the tanks in Tankopedia is now sufficiently spaced below [Mark Greene]
|
- The loading bar below the name of the tanks in Tankopedia is now sufficiently spaced below [HitJack]
|
||||||
- Removed the vertical sliver of pixels found to the right of the Equalizer toggle in Tankopedia
|
- Removed the vertical sliver of pixels found to the right of the Equalizer toggle in Tankopedia
|
||||||
|
|
||||||
### Tank Search & Filters
|
### Tank Search & Filters
|
||||||
|
|
||||||
- The search bar no longer redirects to a seemingly random tank when clicking enter when searching [Mark Greene]
|
- The search bar no longer redirects to a seemingly random tank when clicking enter when searching [HitJack]
|
||||||
- Tank search now properly handles the full names of tanks like the Super Pershing [Mark Greene]
|
- Tank search now properly handles the full names of tanks like the Super Pershing [HitJack]
|
||||||
- The tank search now remains consistent in order even when an added filter does not add/remove tanks from the list [Mark Greene]
|
- The tank search now remains consistent in order even when an added filter does not add/remove tanks from the list [HitJack]
|
||||||
- The test and owned tank filters are now more intuitive as clicking on them now turns the clicked option on instead of off [Mark Greene]
|
- The test and owned tank filters are now more intuitive as clicking on them now turns the clicked option on instead of off [HitJack]
|
||||||
|
|
||||||
### Visuals & UI
|
### Visuals & UI
|
||||||
|
|
||||||
- Removed the Beta badge from the Equalizer button [Mark Greene]
|
- Removed the Beta badge from the Equalizer button [HitJack]
|
||||||
- Updated the background image for the Equalizer button to the actual banner of the new game mode
|
- Updated the background image for the Equalizer button to the actual banner of the new game mode
|
||||||
- The contact shadows on the ground no longer grow & darken when switching between tabs [Mark Greene]
|
- The contact shadows on the ground no longer grow & darken when switching between tabs [HitJack]
|
||||||
- Additionally, the contact shadows stays visible at low angles [Mark Greene]
|
- Additionally, the contact shadows stays visible at low angles [HitJack]
|
||||||
- The "Help Translate BlitzKit" text on the home page is now properly centered vertically
|
- The "Help Translate BlitzKit" text on the home page is now properly centered vertically
|
||||||
- The footer now says "Branch" instead of "CDN" [Mark Greene]
|
- The footer now says "Branch" instead of "CDN" [HitJack]
|
||||||
- The game version in the footer now displays a shorthand version instead of the entire version number [Mark Greene]
|
- The game version in the footer now displays a shorthand version instead of the entire version number [HitJack]
|
||||||
- The reload visualizer now displays just 1 decimal place [Mark Greene]
|
- The reload visualizer now displays just 1 decimal place [HitJack]
|
||||||
- Plot controls for the Static armor tab no longer pokes in from the right on non-Static armor tabs in some languages [Mark Greene]
|
- Plot controls for the Static armor tab no longer pokes in from the right on non-Static armor tabs in some languages [HitJack]
|
||||||
- Mixer's controllers now scale better on smaller screens [Mark Greene]
|
- Mixer's controllers now scale better on smaller screens [HitJack]
|
||||||
- The list of available tanks in the Playlist is no longer excessively wide [Mark Greene]
|
- The list of available tanks in the Playlist is no longer excessively wide [HitJack]
|
||||||
|
|
||||||
### Tank Mechanics & Models
|
### Tank Mechanics & Models
|
||||||
|
|
||||||
- The gun depression visualizer now properly handles the inherent tilt of tanks like the Minotauro [Mark Greene]
|
- The gun depression visualizer now properly handles the inherent tilt of tanks like the Minotauro [HitJack]
|
||||||
- When moving the tracks of tanks, the textures no longer move at different rates [Mark Greene]
|
- When moving the tracks of tanks, the textures no longer move at different rates [HitJack]
|
||||||
|
|
||||||
### Localization
|
### Localization
|
||||||
|
|
||||||
- Users with a preference on a language are once again redirected to the correct localized pages [Mark Greene]
|
- Users with a preference on a language are once again redirected to the correct localized pages [HitJack]
|
||||||
|
|
||||||
### Session & Game Compatibility
|
### Session & Game Compatibility
|
||||||
|
|
||||||
- BlitzKit Session now properly handles tanks removed from the game [Mark Greene]
|
- BlitzKit Session now properly handles tanks removed from the game [HitJack]
|
||||||
|
|
||||||
## Technical Fixes
|
## Technical Fixes
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions
|
|||||||
- This was the last bug standing in the way of BlitzKit Previews
|
- This was the last bug standing in the way of BlitzKit Previews
|
||||||
- Welcome back, BlitzKit Previews!
|
- Welcome back, BlitzKit Previews!
|
||||||
- Removed some dead code from the BlitzKit model mangler
|
- Removed some dead code from the BlitzKit model mangler
|
||||||
- The player discovery loop now persists for longer than 1 iteration [Mark Greene]
|
- The player discovery loop now persists for longer than 1 iteration [HitJack]
|
||||||
- Bun is now forced to run scripts with the `--bun` flag
|
- Bun is now forced to run scripts with the `--bun` flag
|
||||||
|
|
||||||
## Technical Features
|
## Technical Features
|
||||||
@@ -94,5 +94,5 @@ Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions
|
|||||||
- This was the last bug standing in the way of BlitzKit Previews
|
- This was the last bug standing in the way of BlitzKit Previews
|
||||||
- Welcome back, BlitzKit Previews!
|
- Welcome back, BlitzKit Previews!
|
||||||
- Removed some dead code from the BlitzKit model mangler
|
- Removed some dead code from the BlitzKit model mangler
|
||||||
- The player discovery loop now persists for longer than 1 iteration [Mark Greene]
|
- The player discovery loop now persists for longer than 1 iteration [HitJack]
|
||||||
- Bun is now forced to run scripts with the `--bun` flag
|
- Bun is now forced to run scripts with the `--bun` flag
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
# BlitzKit 1.33.0
|
||||||
|
|
||||||
|
Thank you to [HitJack](https://github.com/Hitjack007) for your contributions this update.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Added legendary camouflages to Tankopedia [HitJack]
|
||||||
|
- The rank bars below every statistic in Tankopedia now shows the distribution of every other tank [HitJack]
|
||||||
|
- Added a Credits page for everyone who has contributed to BlitzKit
|
||||||
|
- Added an option to synchronize shells across tanks in Compare [HitJack]
|
||||||
|
|
||||||
|
## Fixes
|
||||||
|
|
||||||
|
- The tank selector popups are now properly sized vertically, stopping them from clipping the top of the page [HitJack]
|
||||||
|
- When the lights recede, there is no longer a 1-pixel spot where the light still shines
|
||||||
|
|
||||||
|
## Technical Changes
|
||||||
|
|
||||||
|
- The BlitzKit API is now split across `legendary.models.blitzkit.app`, `tanks.models.blitzkit.app`, `maps.models.blitzkit.app`, and `api.models.blitzkit.app`
|
||||||
|
- Added some compatibility for the new tier XI tanks
|
||||||
|
- More work is needed in this area to implement the new mechanics they bring
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
# BlitzKit 1.33.1
|
||||||
|
|
||||||
|
Thank you to [HitJack](https://github.com/Hitjack007) for your contributions this update.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Legendary camouflages in Tankopedia are now animated and loop their garage animations [HitJack]
|
||||||
|
- Tankopedia's 3D viewer is now much faster as tank models, armor, and legendary camouflages are drawn in batches
|
||||||
|
- Shadows are now only redrawn when something in the scene changes instead of every frame, saving battery and GPU time
|
||||||
|
|
||||||
|
## Fixes
|
||||||
|
|
||||||
|
- Unused parts of legendary camouflages are now hidden, fixing camouflages like the Maus' [HitJack]
|
||||||
|
- Legendary camouflage parts with no LODs are no longer missing, like the Tiger II's cat and the BDT-5A's engine rings [HitJack]
|
||||||
|
- The ground in Tankopedia is no longer transparent, so it fades out cleanly instead of blending with things behind it
|
||||||
|
|
||||||
|
## Technical Changes
|
||||||
|
|
||||||
|
- Tank and legendary camouflage models build much faster thanks to a faster DDS decoder and native CRC32 checksums [HitJack]
|
||||||
|
- The game client is now downloaded from Wargaming Game Center by default
|
||||||
|
- Added a zip-backed virtual file system for reading game files
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# BlitzKit 1.33.2
|
||||||
|
|
||||||
|
Fixed an issue that caused the armor of some tanks like the Type 71 to crash BlitzKit.
|
||||||
+22
-3
@@ -4,14 +4,33 @@
|
|||||||
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"default": null,
|
"default": null,
|
||||||
"api": null
|
|
||||||
|
"api": null,
|
||||||
|
|
||||||
|
"models_tanks": null,
|
||||||
|
"models_legendary": null,
|
||||||
|
"models_maps": null
|
||||||
},
|
},
|
||||||
|
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"default": "blitzkit/deploy-node-beta.blitzkit.app",
|
"default": "blitzkit/deploy-node-beta.blitzkit.app",
|
||||||
"api": "blitzkit/deploy-node-api.beta.blitzkit.app"
|
|
||||||
|
"api": "blitzkit/deploy-node-api.beta.blitzkit.app",
|
||||||
|
|
||||||
|
"models_tanks": "blitzkit/deploy-node-tanks.models.beta.blitzkit.app",
|
||||||
|
"models_legendary": "blitzkit/deploy-node-legendary.models.beta.blitzkit.app",
|
||||||
|
"models_maps": "blitzkit/deploy-node-maps.models.beta.blitzkit.app"
|
||||||
},
|
},
|
||||||
|
|
||||||
"aliases": {
|
"aliases": {
|
||||||
|
"default": "/",
|
||||||
|
|
||||||
"api": "https://api.beta.blitzkit.app",
|
"api": "https://api.beta.blitzkit.app",
|
||||||
"static": "https://static.beta.blitzkit.app"
|
|
||||||
|
"models_tanks": "https://tanks.models.beta.blitzkit.app",
|
||||||
|
"models_legendary": "https://legendary.models.beta.blitzkit.app",
|
||||||
|
"models_maps": "https://maps.models.beta.blitzkit.app",
|
||||||
|
|
||||||
|
"static": "https://static.blitzkit.app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,11 +4,25 @@
|
|||||||
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"default": null,
|
"default": null,
|
||||||
"api": "api"
|
|
||||||
|
"api": "api",
|
||||||
|
|
||||||
|
"models_tanks": "models/tanks",
|
||||||
|
"models_legendary": "models/legendary",
|
||||||
|
"models_maps": "models/maps"
|
||||||
},
|
},
|
||||||
|
|
||||||
"nodes": {},
|
"nodes": {},
|
||||||
|
|
||||||
"aliases": {
|
"aliases": {
|
||||||
|
"default": "/",
|
||||||
|
|
||||||
"api": "/api",
|
"api": "/api",
|
||||||
|
|
||||||
|
"models_tanks": "/models/tanks",
|
||||||
|
"models_legendary": "/models/legendary",
|
||||||
|
"models_maps": "/models/maps",
|
||||||
|
|
||||||
"static": "https://static.blitzkit.app"
|
"static": "https://static.blitzkit.app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,14 +4,33 @@
|
|||||||
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"default": null,
|
"default": null,
|
||||||
"api": null
|
|
||||||
|
"api": null,
|
||||||
|
|
||||||
|
"models_tanks": null,
|
||||||
|
"models_legendary": null,
|
||||||
|
"models_maps": null
|
||||||
},
|
},
|
||||||
|
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"default": "blitzkit/deploy-node-opentest.blitzkit.app",
|
"default": "blitzkit/deploy-node-opentest.blitzkit.app",
|
||||||
"api": "blitzkit/deploy-node-api.opentest.blitzkit.app"
|
|
||||||
|
"api": "blitzkit/deploy-node-api.opentest.blitzkit.app",
|
||||||
|
|
||||||
|
"models_tanks": "blitzkit/deploy-node-tanks.models.opentest.blitzkit.app",
|
||||||
|
"models_legendary": "blitzkit/deploy-node-legendary.models.opentest.blitzkit.app",
|
||||||
|
"models_maps": "blitzkit/deploy-node-maps.models.opentest.blitzkit.app"
|
||||||
},
|
},
|
||||||
|
|
||||||
"aliases": {
|
"aliases": {
|
||||||
|
"default": "/",
|
||||||
|
|
||||||
"api": "https://api.opentest.blitzkit.app",
|
"api": "https://api.opentest.blitzkit.app",
|
||||||
"static": "https://static.opentest.blitzkit.app"
|
|
||||||
|
"models_tanks": "https://tanks.models.opentest.blitzkit.app",
|
||||||
|
"models_legendary": "https://legendary.models.opentest.blitzkit.app",
|
||||||
|
"models_maps": "https://maps.models.opentest.blitzkit.app",
|
||||||
|
|
||||||
|
"static": "https://static.blitzkit.app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,14 +4,33 @@
|
|||||||
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"default": null,
|
"default": null,
|
||||||
"api": null
|
|
||||||
|
"api": null,
|
||||||
|
|
||||||
|
"models_tanks": null,
|
||||||
|
"models_legendary": null,
|
||||||
|
"models_maps": null
|
||||||
},
|
},
|
||||||
|
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"default": "blitzkit/deploy-node-preview.blitzkit.app",
|
"default": "blitzkit/deploy-node-preview.blitzkit.app",
|
||||||
"api": "blitzkit/deploy-node-api.preview.blitzkit.app"
|
|
||||||
|
"api": "blitzkit/deploy-node-api.preview.blitzkit.app",
|
||||||
|
|
||||||
|
"models_tanks": "blitzkit/deploy-node-tanks.models.preview.blitzkit.app",
|
||||||
|
"models_legendary": "blitzkit/deploy-node-legendary.models.preview.blitzkit.app",
|
||||||
|
"models_maps": "blitzkit/deploy-node-maps.models.preview.blitzkit.app"
|
||||||
},
|
},
|
||||||
|
|
||||||
"aliases": {
|
"aliases": {
|
||||||
|
"default": "/",
|
||||||
|
|
||||||
"api": "https://api.preview.blitzkit.app",
|
"api": "https://api.preview.blitzkit.app",
|
||||||
"static": "https://static.preview.blitzkit.app"
|
|
||||||
|
"models_tanks": "https://tanks.models.preview.blitzkit.app",
|
||||||
|
"models_legendary": "https://legendary.models.preview.blitzkit.app",
|
||||||
|
"models_maps": "https://maps.models.preview.blitzkit.app",
|
||||||
|
|
||||||
|
"static": "https://static.blitzkit.app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,14 +4,33 @@
|
|||||||
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"default": null,
|
"default": null,
|
||||||
"api": null
|
|
||||||
|
"api": null,
|
||||||
|
|
||||||
|
"models_tanks": null,
|
||||||
|
"models_legendary": null,
|
||||||
|
"models_maps": null
|
||||||
},
|
},
|
||||||
|
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"default": "blitzkit/deploy-node-blitzkit.app",
|
"default": "blitzkit/deploy-node-blitzkit.app",
|
||||||
"api": "blitzkit/deploy-node-api.blitzkit.app"
|
|
||||||
|
"api": "blitzkit/deploy-node-api.blitzkit.app",
|
||||||
|
|
||||||
|
"models_tanks": "blitzkit/deploy-node-tanks.models.blitzkit.app",
|
||||||
|
"models_legendary": "blitzkit/deploy-node-legendary.models.blitzkit.app",
|
||||||
|
"models_maps": "blitzkit/deploy-node-maps.models.blitzkit.app"
|
||||||
},
|
},
|
||||||
|
|
||||||
"aliases": {
|
"aliases": {
|
||||||
|
"default": "/",
|
||||||
|
|
||||||
"api": "https://api.blitzkit.app",
|
"api": "https://api.blitzkit.app",
|
||||||
|
|
||||||
|
"models_tanks": "https://tanks.models.blitzkit.app",
|
||||||
|
"models_legendary": "https://legendary.models.blitzkit.app",
|
||||||
|
"models_maps": "https://maps.models.blitzkit.app",
|
||||||
|
|
||||||
"static": "https://static.blitzkit.app"
|
"static": "https://static.blitzkit.app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+2
-10
@@ -1,17 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "blitzkit",
|
"name": "blitzkit",
|
||||||
"version": "1.32.0",
|
"version": "1.33.2",
|
||||||
"license": "BlitzKit License",
|
"license": "BlitzKit License",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
|
||||||
"dev": "cd packages/website && bun --bun run dev",
|
|
||||||
"build": "cd packages/website && bun run build",
|
|
||||||
"discover-ids": "cd packages/scripts && bun run discover-ids",
|
|
||||||
"build-protos": "cd packages/scripts && bun run build-protos",
|
|
||||||
"record-performance": "cd packages/scripts && bun run record-performance",
|
|
||||||
"download-client": "cd packages/scripts && bun run download-client",
|
|
||||||
"clean-astro": "rm -rf packages/website/.astro packages/website/node_modules/.astro packages/website/node_modules/.vite"
|
|
||||||
},
|
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
@@ -19,6 +10,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@gltf-transform/extensions": "^4.4.2",
|
"@gltf-transform/extensions": "^4.4.2",
|
||||||
"lz4js": "^0.2.0",
|
"lz4js": "^0.2.0",
|
||||||
|
"prettier": "^3.10.2",
|
||||||
"sharp": "^0.34.5",
|
"sharp": "^0.34.5",
|
||||||
"typescript": "^5.9.3"
|
"typescript": "^5.9.3"
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
Submodule packages/closed updated: f89f0e0772...c7ba70c33b.
@@ -15,7 +15,6 @@
|
|||||||
"@types/lz4js": "^0.2.1",
|
"@types/lz4js": "^0.2.1",
|
||||||
"@types/three": "^0.180.0",
|
"@types/three": "^0.180.0",
|
||||||
"adm-zip": "^0.5.16",
|
"adm-zip": "^0.5.16",
|
||||||
"crc": "^4.3.2",
|
|
||||||
"dotenv": "^17.2.2",
|
"dotenv": "^17.2.2",
|
||||||
"fast-xml-parser": "^5.3.2",
|
"fast-xml-parser": "^5.3.2",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
export function canSplash(
|
|
||||||
type: ShellDefinition["type"],
|
|
||||||
): type is ShellType.SHELL_TYPE_HE {
|
|
||||||
return type === ShellType.SHELL_TYPE_HE;
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,15 @@
|
|||||||
import { assertSecret } from "../blitzkit";
|
import { BlitzGlossary } from "../types";
|
||||||
import type { BlitzGlossary } from "../types";
|
|
||||||
|
export const WOTB_GLOSSARY_DOMAIN = "https://na.wotblitz.com";
|
||||||
|
export const WOTB_GLOSSARY_PATH = "api/glossary/stuff";
|
||||||
|
|
||||||
export async function fetchGlossary(locale: string) {
|
export async function fetchGlossary(locale: string) {
|
||||||
const response = await fetch(
|
// const response = await fetch(
|
||||||
`${assertSecret(
|
// `${assertSecret(
|
||||||
import.meta.env.WOTB_GLOSSARY_DOMAIN,
|
// import.meta.env.WOTB_GLOSSARY_DOMAIN,
|
||||||
)}/${locale}${assertSecret(import.meta.env.WOTB_GLOSSARY_PATH)}`,
|
// )}/${locale}${assertSecret(import.meta.env.WOTB_GLOSSARY_PATH)}`,
|
||||||
);
|
// );
|
||||||
return (await response.json()) as BlitzGlossary;
|
// return (await response.json()) as BlitzGlossary;
|
||||||
|
|
||||||
|
return {} as BlitzGlossary;
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
export * from "./blitzShellKindToBlitzkit";
|
export * from "./blitzShellKindToBlitzkit";
|
||||||
export * from "./canSplash";
|
|
||||||
export * from "./clans";
|
export * from "./clans";
|
||||||
export * from "./classes";
|
export * from "./classes";
|
||||||
export * from "./equipmentPrice";
|
export * from "./equipmentPrice";
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
export const permanentSkills = [
|
export const permanentSkills = [
|
||||||
'smooth_turn',
|
"smooth_turn",
|
||||||
'soft_recoil',
|
"soft_recoil",
|
||||||
'smooth_driving',
|
"smooth_driving",
|
||||||
'smooth_turret',
|
"smooth_turret",
|
||||||
'virtuoso',
|
"virtuoso",
|
||||||
'camouflage',
|
"camouflage",
|
||||||
|
"repair",
|
||||||
];
|
];
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
import { crc32 } from "crc";
|
|
||||||
import { decompressBlock } from "lz4js";
|
import { decompressBlock } from "lz4js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -26,7 +25,7 @@ export function readDVPL(buffer: Buffer) {
|
|||||||
if (targetBlock.length !== footerData.cSize) {
|
if (targetBlock.length !== footerData.cSize) {
|
||||||
throw new RangeError("DVPL size mismatch");
|
throw new RangeError("DVPL size mismatch");
|
||||||
}
|
}
|
||||||
if (crc32(targetBlock) !== footerData.crc32) {
|
if (Bun.hash.crc32(targetBlock) !== footerData.crc32) {
|
||||||
throw new TypeError("DVPL CRC32 mismatch");
|
throw new TypeError("DVPL CRC32 mismatch");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export function alias(alias: string, path: string) {
|
|||||||
throw new Error(`Invalid alias "${alias}"`);
|
throw new Error(`Invalid alias "${alias}"`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const base = environment.aliases[alias];
|
const base = environment.aliases[alias].replace(/\/$/, "");
|
||||||
|
|
||||||
return `${base}${path}`;
|
return `${base}/${path}`;
|
||||||
}
|
}
|
||||||
@@ -27,14 +27,4 @@ export abstract class AbstractBlitzKitAPI {
|
|||||||
abstract scripts(): Promise<BlitzScripts>;
|
abstract scripts(): Promise<BlitzScripts>;
|
||||||
|
|
||||||
abstract strings(locale: string): Promise<Strings>;
|
abstract strings(locale: string): Promise<Strings>;
|
||||||
|
|
||||||
async tank(id: number) {
|
|
||||||
const tanks = await this.tanks();
|
|
||||||
return tanks.tanks[id];
|
|
||||||
}
|
|
||||||
|
|
||||||
async model(id: number) {
|
|
||||||
const models = await this.models();
|
|
||||||
return models.models[id];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
export function Cache(disableInDev = false) {
|
||||||
|
const cache = new WeakMap<object, Map<string, Promise<unknown>>>();
|
||||||
|
|
||||||
|
return function <This, Arguments extends any[], Return>(
|
||||||
|
target: (this: This, ...args: Arguments) => Promise<Return>,
|
||||||
|
// TODO: evaluate if we need context to make the error trace easier
|
||||||
|
// context: ClassMethodDecoratorContext<
|
||||||
|
// This,
|
||||||
|
// (this: This, ...args: Arguments) => Promise<Return>
|
||||||
|
// >,
|
||||||
|
) {
|
||||||
|
return async function replacementMethod(this: This, ...args: Arguments) {
|
||||||
|
const key = args.join("-");
|
||||||
|
let thisCache: Map<string, Promise<Return>>;
|
||||||
|
|
||||||
|
if (cache.has(this as object)) {
|
||||||
|
thisCache = cache.get(this as object) as Map<string, Promise<Return>>;
|
||||||
|
} else {
|
||||||
|
thisCache = new Map();
|
||||||
|
cache.set(this as object, thisCache);
|
||||||
|
}
|
||||||
|
|
||||||
|
const disabled = disableInDev && import.meta.env.DEV;
|
||||||
|
|
||||||
|
if (thisCache.has(key) && !disabled) {
|
||||||
|
return thisCache.get(key)!;
|
||||||
|
}
|
||||||
|
|
||||||
|
const promise = (async () => {
|
||||||
|
try {
|
||||||
|
return await target.apply(this, args);
|
||||||
|
} catch (error) {
|
||||||
|
thisCache!.delete(key);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
|
thisCache.set(key, promise);
|
||||||
|
|
||||||
|
return promise;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -16,65 +16,77 @@ import { fetchPB } from "../../api";
|
|||||||
import { fetchJSON } from "../../api/fetchJSON";
|
import { fetchJSON } from "../../api/fetchJSON";
|
||||||
import { BlitzScripts } from "../../types/blitzScripts";
|
import { BlitzScripts } from "../../types/blitzScripts";
|
||||||
import { AbstractBlitzKitAPI } from "./abstract";
|
import { AbstractBlitzKitAPI } from "./abstract";
|
||||||
|
import { Cache } from "./cache";
|
||||||
|
|
||||||
export class ClientBlitzKitAPI extends AbstractBlitzKitAPI {
|
export class ClientBlitzKitAPI extends AbstractBlitzKitAPI {
|
||||||
|
@Cache()
|
||||||
game() {
|
game() {
|
||||||
return fetchPB(alias("api", "/definitions/game.pb"), GameDefinitions);
|
return fetchPB(alias("api", "definitions/game.pb"), GameDefinitions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Cache()
|
||||||
consumables() {
|
consumables() {
|
||||||
return fetchPB(
|
return fetchPB(
|
||||||
alias("api", "/definitions/consumables.pb"),
|
alias("api", "definitions/consumables.pb"),
|
||||||
ConsumableDefinitions,
|
ConsumableDefinitions,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Cache()
|
||||||
tanks() {
|
tanks() {
|
||||||
return fetchPB(alias("api", "/definitions/tanks.pb"), TankDefinitions);
|
return fetchPB(alias("api", "definitions/tanks.pb"), TankDefinitions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Cache()
|
||||||
camouflages() {
|
camouflages() {
|
||||||
return fetchPB(
|
return fetchPB(
|
||||||
alias("api", "/definitions/camouflage.pb"),
|
alias("api", "definitions/camouflage.pb"),
|
||||||
CamouflageDefinitions,
|
CamouflageDefinitions,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Cache()
|
||||||
provisions() {
|
provisions() {
|
||||||
return fetchPB(
|
return fetchPB(
|
||||||
alias("api", "/definitions/provisions.pb"),
|
alias("api", "definitions/provisions.pb"),
|
||||||
ProvisionDefinitions,
|
ProvisionDefinitions,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Cache()
|
||||||
models() {
|
models() {
|
||||||
return fetchPB(alias("api", "/definitions/models.pb"), ModelDefinitions);
|
return fetchPB(alias("api", "definitions/models.pb"), ModelDefinitions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Cache()
|
||||||
skills() {
|
skills() {
|
||||||
return fetchPB(alias("api", "/definitions/skills.pb"), SkillDefinitions);
|
return fetchPB(alias("api", "definitions/skills.pb"), SkillDefinitions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Cache()
|
||||||
equipment() {
|
equipment() {
|
||||||
return fetchPB(
|
return fetchPB(
|
||||||
alias("api", "/definitions/equipment.pb"),
|
alias("api", "definitions/equipment.pb"),
|
||||||
EquipmentDefinitions,
|
EquipmentDefinitions,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Cache()
|
||||||
gallery() {
|
gallery() {
|
||||||
return fetchPB(alias("api", "/definitions/gallery.pb"), Gallery);
|
return fetchPB(alias("api", "definitions/gallery.pb"), Gallery);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Cache()
|
||||||
maps() {
|
maps() {
|
||||||
return fetchPB(alias("api", "/definitions/maps.pb"), MapDefinitions);
|
return fetchPB(alias("api", "definitions/maps.pb"), MapDefinitions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Cache()
|
||||||
scripts() {
|
scripts() {
|
||||||
return fetchJSON<BlitzScripts>(alias("api", "/definitions/scripts.json"));
|
return fetchJSON<BlitzScripts>(alias("api", "definitions/scripts.json"));
|
||||||
}
|
}
|
||||||
|
|
||||||
strings(locale: string) {
|
strings(locale: string) {
|
||||||
return fetchJSON<Strings>(alias("api", `/strings/${locale}.json`));
|
return fetchJSON<Strings>(alias("api", `strings/${locale}.json`));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
import { AbstractBlitzKitAPI, AbstractVFS } from "@blitzkit/core";
|
import { AbstractBlitzKitAPI } from "@blitzkit/core";
|
||||||
|
import type { AbstractVFS } from "@blitzkit/vfs";
|
||||||
|
|
||||||
export async function createDynamicAPI(vfs: () => Promise<AbstractVFS>) {
|
export async function createDynamicAPI(vfs: () => Promise<AbstractVFS>) {
|
||||||
let _api: AbstractBlitzKitAPI;
|
let _api: AbstractBlitzKitAPI;
|
||||||
|
|
||||||
if (import.meta.env.SSR) {
|
if (import.meta.env.SSR) {
|
||||||
const { ServerBlitzKitAPI } = await import(
|
const { ServerBlitzKitAPI } = await import(
|
||||||
"@blitzkit/core/src/blitzkit/api/server/index"
|
"@blitzkit/core/src/blitzkit/api/server"
|
||||||
);
|
);
|
||||||
|
|
||||||
_api = await new ServerBlitzKitAPI(await vfs()).init();
|
_api = await new ServerBlitzKitAPI(await vfs()).init();
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
export * from "./abstract";
|
export * from "./abstract";
|
||||||
export * from "./client";
|
export * from "./client";
|
||||||
export * from "./dynamic";
|
export * from "./dynamic";
|
||||||
export * from "./server";
|
|
||||||
@@ -17,7 +17,7 @@ import {
|
|||||||
toUniqueId,
|
toUniqueId,
|
||||||
VehicleDefinitionList,
|
VehicleDefinitionList,
|
||||||
} from "@blitzkit/core";
|
} from "@blitzkit/core";
|
||||||
import { AbstractVFS } from "@blitzkit/core/src/blitzkit/vfs/abstract";
|
import type { AbstractVFS } from "@blitzkit/vfs";
|
||||||
import locales from "@blitzkit/i18n/locales.json";
|
import locales from "@blitzkit/i18n/locales.json";
|
||||||
import {
|
import {
|
||||||
ConsumableTankCategoryFilterCategory,
|
ConsumableTankCategoryFilterCategory,
|
||||||
@@ -87,7 +87,7 @@ export abstract class ServerBlitzKitAPI0 extends AbstractBlitzKitAPI {
|
|||||||
|
|
||||||
protected botPattern = /^.+((tutorial_bot(\d+)?)|(TU))$/;
|
protected botPattern = /^.+((tutorial_bot(\d+)?)|(TU))$/;
|
||||||
|
|
||||||
protected stringsI18n: Record<string, Record<string, string>> = {};
|
private stringsI18n: Record<string, Record<string, string>> = {};
|
||||||
protected nationsDir?: string[];
|
protected nationsDir?: string[];
|
||||||
protected tankStringIdMap: Record<string, number> = {};
|
protected tankStringIdMap: Record<string, number> = {};
|
||||||
protected consumablesCommon: ConsumablesCommon = {};
|
protected consumablesCommon: ConsumablesCommon = {};
|
||||||
@@ -104,6 +104,7 @@ export abstract class ServerBlitzKitAPI0 extends AbstractBlitzKitAPI {
|
|||||||
protected gameTypeSelectorStyles?: SquadBattleTypeStylesYaml;
|
protected gameTypeSelectorStyles?: SquadBattleTypeStylesYaml;
|
||||||
protected combatRoles?: CombatRolesYaml;
|
protected combatRoles?: CombatRolesYaml;
|
||||||
protected tierEqualizer?: string[][];
|
protected tierEqualizer?: string[][];
|
||||||
|
protected version?: string;
|
||||||
|
|
||||||
constructor(vfs: AbstractVFS) {
|
constructor(vfs: AbstractVFS) {
|
||||||
super();
|
super();
|
||||||
@@ -115,95 +116,95 @@ export abstract class ServerBlitzKitAPI0 extends AbstractBlitzKitAPI {
|
|||||||
const { existsSync } = await import("fs");
|
const { existsSync } = await import("fs");
|
||||||
const { readFile, writeFile, mkdir } = await import("fs/promises");
|
const { readFile, writeFile, mkdir } = await import("fs/promises");
|
||||||
|
|
||||||
console.log("Initializing virtual file system...");
|
|
||||||
|
|
||||||
const path = await import("node:path");
|
const path = await import("node:path");
|
||||||
|
|
||||||
this.extname = path.extname;
|
this.extname = path.extname;
|
||||||
this.parsePath = path.parse;
|
this.parsePath = path.parse;
|
||||||
|
|
||||||
await this.vfs.init();
|
|
||||||
|
|
||||||
console.log("Fetching game data...");
|
console.log("Fetching game data...");
|
||||||
this.nationsDir = await this.vfs
|
this.nationsDir = await this.vfs
|
||||||
.dir("Data/XML/item_defs/vehicles")
|
.dir("Data/XML/item_defs/vehicles")
|
||||||
.then((files) => files.filter((nation) => nation !== "common"));
|
.then((files) => files.filter((nation) => nation !== "common"));
|
||||||
|
|
||||||
this.optionalDevices = await this.vfs.xml<{ root: OptionalDevices }>(
|
this.optionalDevices = await this.vfs.xml<{ root: OptionalDevices }>(
|
||||||
"Data/XML/item_defs/vehicles/common/optional_devices.xml",
|
"Data/XML/item_defs/vehicles/common/optional_devices.xml"
|
||||||
);
|
);
|
||||||
this.optionalDeviceSlots = await this.vfs.xml<{
|
this.optionalDeviceSlots = await this.vfs.xml<{
|
||||||
root: OptionalDeviceSlots;
|
root: OptionalDeviceSlots;
|
||||||
}>("Data/XML/item_defs/vehicles/common/optional_device_slots.xml");
|
}>("Data/XML/item_defs/vehicles/common/optional_device_slots.xml");
|
||||||
this.tankmenAvatar = await this.vfs.xml<{ root: TankmenAvatar }>(
|
this.tankmenAvatar = await this.vfs.xml<{ root: TankmenAvatar }>(
|
||||||
"Data/XML/item_defs/tankmen/avatar.xml",
|
"Data/XML/item_defs/tankmen/avatar.xml"
|
||||||
);
|
);
|
||||||
this.mapsYaml = await this.vfs.yaml<MapsYaml>("Data/maps.yaml");
|
this.mapsYaml = await this.vfs.yaml<MapsYaml>("Data/maps.yaml");
|
||||||
this.camouflagesXml = await this.vfs.xml<{ root: CamouflagesXml }>(
|
this.camouflagesXml = await this.vfs.xml<{ root: CamouflagesXml }>(
|
||||||
"Data/XML/item_defs/vehicles/common/camouflages.xml",
|
"Data/XML/item_defs/vehicles/common/camouflages.xml"
|
||||||
);
|
);
|
||||||
this.camouflagesYaml = await this.vfs.yaml<CamouflagesYaml>(
|
this.camouflagesYaml = await this.vfs.yaml<CamouflagesYaml>(
|
||||||
"Data/camouflages.yaml",
|
"Data/camouflages.yaml"
|
||||||
);
|
);
|
||||||
this.squadBattleTypeStyles = await this.vfs.yaml<SquadBattleTypeStylesYaml>(
|
this.squadBattleTypeStyles = await this.vfs.yaml<SquadBattleTypeStylesYaml>(
|
||||||
`Data/UI/Screens3/Lobby/Hangar/Squad/SquadBattleType.yaml`,
|
`Data/UI/Screens3/Lobby/Hangar/Squad/SquadBattleType.yaml`
|
||||||
);
|
);
|
||||||
this.gameTypeSelectorStyles =
|
this.gameTypeSelectorStyles =
|
||||||
await this.vfs.yaml<SquadBattleTypeStylesYaml>(
|
await this.vfs.yaml<SquadBattleTypeStylesYaml>(
|
||||||
`Data/UI/Screens/Lobby/Hangar/GameTypeSelector.yaml`,
|
`Data/UI/Screens/Lobby/Hangar/GameTypeSelector.yaml`
|
||||||
);
|
);
|
||||||
this.combatRoles = await this.vfs.yaml<CombatRolesYaml>(
|
this.combatRoles = await this.vfs.yaml<CombatRolesYaml>(
|
||||||
`Data/XML/item_defs/vehicles/common/combat_roles.yaml`,
|
`Data/XML/item_defs/vehicles/common/combat_roles.yaml`
|
||||||
);
|
);
|
||||||
this.tierEqualizer = await this.vfs.csv(
|
this.tierEqualizer = await this.vfs.csv(
|
||||||
// spell:disable-next-line
|
// spell:disable-next-line
|
||||||
`Data/XML/item_defs/vehicles/common/tier_equializer.csv`,
|
`Data/XML/item_defs/vehicles/common/tier_equializer.csv`,
|
||||||
{ delimiter: ";" },
|
{ delimiter: ";" }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.version = (await this.vfs.text("Data/version.txt")).split(" ")[0];
|
||||||
|
|
||||||
console.log("Fetching game localizations...");
|
console.log("Fetching game localizations...");
|
||||||
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
locales.supported.map(async ({ locale }) => {
|
locales.supported.map(async (supported) => {
|
||||||
const root = "../../temp/game-strings";
|
const root = `../../temp/game-strings/${this.version}`;
|
||||||
const cachePath = `${root}/${locale}.json`;
|
const cachePath = `${root}/${supported.locale}.json`;
|
||||||
|
|
||||||
if (existsSync(cachePath)) {
|
if (existsSync(cachePath)) {
|
||||||
console.log(` Cache hit for ${locale}`);
|
console.log(` Cache hit for ${supported.locale}`);
|
||||||
|
|
||||||
const content = await readFile(cachePath, "utf-8");
|
const content = await readFile(cachePath, "utf-8");
|
||||||
this.stringsI18n[locale] = JSON.parse(content) as BlitzStrings;
|
this.stringsI18n[supported.locale] = JSON.parse(
|
||||||
|
content
|
||||||
|
) as BlitzStrings;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(` Cache miss for ${locale} (this will take a while...)`);
|
console.log(
|
||||||
|
` Cache miss for ${supported.locale} (this will take a while...)`
|
||||||
|
);
|
||||||
|
|
||||||
const blitzLocale = locales.supported.find(
|
const stringsLocale = supported.variant_blitz_strings ?? supported.locale;
|
||||||
(l) => l.locale === locale,
|
|
||||||
)!.variant_blitz_local;
|
|
||||||
const networkStrings = (await fetch(
|
const networkStrings = (await fetch(
|
||||||
`https://stufficons.wgcdn.co/localizations/${blitzLocale}.yaml`,
|
`https://stufficons.wgcdn.co/localizations/${stringsLocale}.yaml`
|
||||||
)
|
)
|
||||||
.then((response) => response.text())
|
.then((response) => response.text())
|
||||||
.then(parseYaml)) as BlitzStrings;
|
.then(parseYaml)) as BlitzStrings;
|
||||||
const localStrings = await this.vfs.yaml<BlitzStrings>(
|
const localStrings = await this.vfs.yaml<BlitzStrings>(
|
||||||
`Data/Strings/${blitzLocale}.yaml`,
|
`Data/Strings/${stringsLocale}.yaml`
|
||||||
);
|
);
|
||||||
const combined = { ...networkStrings, ...localStrings };
|
const combined = { ...networkStrings, ...localStrings };
|
||||||
|
|
||||||
await mkdir(root, { recursive: true });
|
await mkdir(root, { recursive: true });
|
||||||
await writeFile(cachePath, JSON.stringify(combined));
|
await writeFile(cachePath, JSON.stringify(combined));
|
||||||
|
|
||||||
this.stringsI18n[locale] = combined;
|
this.stringsI18n[supported.locale] = combined;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log("Fetching consumable and provision data...");
|
console.log("Fetching consumable and provision data...");
|
||||||
|
|
||||||
for (const match of (
|
for (const match of (
|
||||||
await this.vfs.text(
|
await this.vfs.text(
|
||||||
`Data/XML/item_defs/vehicles/common/consumables/list.xml`,
|
`Data/XML/item_defs/vehicles/common/consumables/list.xml`
|
||||||
)
|
)
|
||||||
).matchAll(/<items path="(.+)\.xml"\/>/g)) {
|
).matchAll(/<items path="(.+)\.xml"\/>/g)) {
|
||||||
if (match[1] === "prototypes") continue;
|
if (match[1] === "prototypes") continue;
|
||||||
@@ -212,15 +213,15 @@ export abstract class ServerBlitzKitAPI0 extends AbstractBlitzKitAPI {
|
|||||||
this.consumablesCommon,
|
this.consumablesCommon,
|
||||||
(
|
(
|
||||||
await this.vfs.xml<{ root: ConsumablesCommon }>(
|
await this.vfs.xml<{ root: ConsumablesCommon }>(
|
||||||
`Data/XML/item_defs/vehicles/common/consumables/${match[1]}.xml`,
|
`Data/XML/item_defs/vehicles/common/consumables/${match[1]}.xml`
|
||||||
)
|
)
|
||||||
).root,
|
).root
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const match of (
|
for (const match of (
|
||||||
await this.vfs.text(
|
await this.vfs.text(
|
||||||
`Data/XML/item_defs/vehicles/common/provisions/list.xml`,
|
`Data/XML/item_defs/vehicles/common/provisions/list.xml`
|
||||||
)
|
)
|
||||||
).matchAll(/<items path="(.+)\.xml"\/>/g)) {
|
).matchAll(/<items path="(.+)\.xml"\/>/g)) {
|
||||||
if (match[1] === "prototypes") continue;
|
if (match[1] === "prototypes") continue;
|
||||||
@@ -229,15 +230,15 @@ export abstract class ServerBlitzKitAPI0 extends AbstractBlitzKitAPI {
|
|||||||
this.provisionsCommon,
|
this.provisionsCommon,
|
||||||
(
|
(
|
||||||
await this.vfs.xml<{ root: ConsumablesCommon }>(
|
await this.vfs.xml<{ root: ConsumablesCommon }>(
|
||||||
`Data/XML/item_defs/vehicles/common/provisions/${match[1]}.xml`,
|
`Data/XML/item_defs/vehicles/common/provisions/${match[1]}.xml`
|
||||||
)
|
)
|
||||||
).root,
|
).root
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const nation of this.nationsDir!) {
|
for (const nation of this.nationsDir!) {
|
||||||
const tankList = await this.vfs.xml<{ root: VehicleDefinitionList }>(
|
const tankList = await this.vfs.xml<{ root: VehicleDefinitionList }>(
|
||||||
`Data/XML/item_defs/vehicles/${nation}/list.xml`,
|
`Data/XML/item_defs/vehicles/${nation}/list.xml`
|
||||||
);
|
);
|
||||||
|
|
||||||
for (const tankKey in tankList.root) {
|
for (const tankKey in tankList.root) {
|
||||||
@@ -253,6 +254,27 @@ export abstract class ServerBlitzKitAPI0 extends AbstractBlitzKitAPI {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected getTankFilterIds(
|
||||||
|
name: string,
|
||||||
|
definitionKey: string,
|
||||||
|
filter: "include" | "exclude"
|
||||||
|
) {
|
||||||
|
const keys = name.trim().split(/\s+/).filter(Boolean);
|
||||||
|
|
||||||
|
return keys.flatMap((key) => {
|
||||||
|
const id = this.tankStringIdMap[key];
|
||||||
|
|
||||||
|
if (id === undefined) {
|
||||||
|
console.warn(
|
||||||
|
`Skipping unavailable tank "${key}" in ${filter} vehicle filter for "${definitionKey}"`
|
||||||
|
);
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
return [id];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
protected getString(name: string) {
|
protected getString(name: string) {
|
||||||
const collection: Record<string, string> = {
|
const collection: Record<string, string> = {
|
||||||
[locales.default]: this.stringsI18n[locales.default][name],
|
[locales.default]: this.stringsI18n[locales.default][name],
|
||||||
@@ -271,50 +293,8 @@ export abstract class ServerBlitzKitAPI0 extends AbstractBlitzKitAPI {
|
|||||||
collection[locale] = localizedString;
|
collection[locale] = localizedString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
collection[locales.default] = collection[locales.default] ?? name;
|
||||||
|
|
||||||
return { locales: collection } satisfies I18nString;
|
return { locales: collection } satisfies I18nString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function Cache(disableInDev = false) {
|
|
||||||
const cache = new WeakMap<object, Map<string, Promise<unknown>>>();
|
|
||||||
|
|
||||||
return function <This, Arguments extends any[], Return>(
|
|
||||||
target: (this: This, ...args: Arguments) => Promise<Return>,
|
|
||||||
// TODO: evaluate if we need context to make the error trace easier
|
|
||||||
// context: ClassMethodDecoratorContext<
|
|
||||||
// This,
|
|
||||||
// (this: This, ...args: Arguments) => Promise<Return>
|
|
||||||
// >,
|
|
||||||
) {
|
|
||||||
return async function replacementMethod(this: This, ...args: Arguments) {
|
|
||||||
const key = args.join("-");
|
|
||||||
let thisCache: Map<string, Promise<Return>>;
|
|
||||||
|
|
||||||
if (cache.has(this as object)) {
|
|
||||||
thisCache = cache.get(this as object) as Map<string, Promise<Return>>;
|
|
||||||
} else {
|
|
||||||
thisCache = new Map();
|
|
||||||
cache.set(this as object, thisCache);
|
|
||||||
}
|
|
||||||
|
|
||||||
const disabled = disableInDev && import.meta.env.DEV;
|
|
||||||
|
|
||||||
if (thisCache.has(key) && !disabled) {
|
|
||||||
return thisCache.get(key)!;
|
|
||||||
}
|
|
||||||
|
|
||||||
const promise = (async () => {
|
|
||||||
try {
|
|
||||||
return await target.apply(this, args);
|
|
||||||
} catch (error) {
|
|
||||||
thisCache!.delete(key);
|
|
||||||
throw error;
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
|
|
||||||
thisCache.set(key, promise);
|
|
||||||
|
|
||||||
return promise;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { fetchGlossary } from "@blitzkit/core";
|
import { fetchGlossary } from "@blitzkit/core";
|
||||||
import locales from "@blitzkit/i18n/locales.json";
|
import locales from "@blitzkit/i18n/locales.json";
|
||||||
import { Avatar, Gallery } from "@blitzkit/protos";
|
import { Avatar, Gallery } from "@blitzkit/protos";
|
||||||
import { Cache } from "./0_base";
|
import { Cache } from "../cache";
|
||||||
import { ServerBlitzKitAPI9 } from "./9_game";
|
import { ServerBlitzKitAPI9 } from "./9_game";
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI10 extends ServerBlitzKitAPI9 {
|
export abstract class ServerBlitzKitAPI10 extends ServerBlitzKitAPI9 {
|
||||||
@@ -12,7 +12,7 @@ export abstract class ServerBlitzKitAPI10 extends ServerBlitzKitAPI9 {
|
|||||||
await Promise.all(
|
await Promise.all(
|
||||||
locales.supported.map(async (supported) => {
|
locales.supported.map(async (supported) => {
|
||||||
const glossary = await fetchGlossary(
|
const glossary = await fetchGlossary(
|
||||||
supported.variant_blitz_local ?? supported.locale,
|
supported.variant_blitz_glossary ?? supported.locale,
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
|
|||||||
@@ -1,25 +1,53 @@
|
|||||||
import { ConsumablesCommon, OptionalDevices } from "../../../types";
|
import type {
|
||||||
import { BlitzEffectScript } from "../../../types/blitzEffectScript";
|
BlitzEffectScript,
|
||||||
import { BlitzScripts } from "../../../types/blitzScripts";
|
BlitzScripts,
|
||||||
import { AbstractVFS } from "../../vfs";
|
ConsumablesCommon,
|
||||||
import { Cache } from "./0_base";
|
OptionalDevices,
|
||||||
|
} from "../../../types";
|
||||||
|
import type { AbstractVFS } from "@blitzkit/vfs";
|
||||||
|
import { Cache } from "../cache";
|
||||||
import { ServerBlitzKitAPI10 } from "./10_avatars";
|
import { ServerBlitzKitAPI10 } from "./10_avatars";
|
||||||
|
|
||||||
function assignNormalizedScript(
|
export abstract class ServerBlitzKitAPI11 extends ServerBlitzKitAPI10 {
|
||||||
target: Record<string, BlitzEffectScript>,
|
// The XML parser keeps switches as text, but the script types declare them as
|
||||||
key: number,
|
// booleans
|
||||||
script?: BlitzEffectScript,
|
private normalizeSwitches<Value>(value: Value): Value {
|
||||||
) {
|
if (typeof value === "string") {
|
||||||
if (script === undefined) return;
|
const lowered = value.toLowerCase();
|
||||||
|
|
||||||
if (script["#text"] === "StaticFactorDevice") {
|
if (lowered === "true") return true as Value;
|
||||||
script["#text"] = script.attribute!;
|
if (lowered === "false") return false as Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Array.isArray(value))
|
||||||
|
return value.map((child) => this.normalizeSwitches(child)) as Value;
|
||||||
|
|
||||||
|
if (typeof value === "object" && value !== null) {
|
||||||
|
return Object.fromEntries(
|
||||||
|
Object.entries(value).map(([key, child]) => [
|
||||||
|
key,
|
||||||
|
this.normalizeSwitches(child),
|
||||||
|
]),
|
||||||
|
) as Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
target[key] = script;
|
private assignNormalizedScript(
|
||||||
}
|
target: Record<number, BlitzEffectScript>,
|
||||||
|
key: number,
|
||||||
|
script?: BlitzEffectScript,
|
||||||
|
) {
|
||||||
|
if (script === undefined) return;
|
||||||
|
|
||||||
|
if (script["#text"] === "StaticFactorDevice") {
|
||||||
|
script["#text"] = script.attribute!;
|
||||||
|
}
|
||||||
|
|
||||||
|
target[key] = this.normalizeSwitches(script);
|
||||||
|
}
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI11 extends ServerBlitzKitAPI10 {
|
|
||||||
@Cache()
|
@Cache()
|
||||||
async scripts() {
|
async scripts() {
|
||||||
const scripts: BlitzScripts = {
|
const scripts: BlitzScripts = {
|
||||||
@@ -35,14 +63,18 @@ export abstract class ServerBlitzKitAPI11 extends ServerBlitzKitAPI10 {
|
|||||||
for (const key in optionalDevices.root) {
|
for (const key in optionalDevices.root) {
|
||||||
const equipment = optionalDevices.root[key];
|
const equipment = optionalDevices.root[key];
|
||||||
|
|
||||||
assignNormalizedScript(scripts.equipment, equipment.id, equipment.script);
|
this.assignNormalizedScript(
|
||||||
|
scripts.equipment,
|
||||||
|
equipment.id,
|
||||||
|
equipment.script,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function assign(
|
const assign = async (
|
||||||
vfs: AbstractVFS,
|
vfs: AbstractVFS,
|
||||||
dir: string,
|
dir: string,
|
||||||
target: keyof BlitzScripts,
|
target: "consumables" | "provisions",
|
||||||
) {
|
) => {
|
||||||
const root = `Data/XML/item_defs/vehicles/common/${dir}`;
|
const root = `Data/XML/item_defs/vehicles/common/${dir}`;
|
||||||
const list = await vfs.text(`${root}/list.xml`);
|
const list = await vfs.text(`${root}/list.xml`);
|
||||||
const pattern = /<items path="(\w+)\.xml"\/>/gm;
|
const pattern = /<items path="(\w+)\.xml"\/>/gm;
|
||||||
@@ -55,14 +87,14 @@ export abstract class ServerBlitzKitAPI11 extends ServerBlitzKitAPI10 {
|
|||||||
for (const key in things.root) {
|
for (const key in things.root) {
|
||||||
const thing = things.root[key];
|
const thing = things.root[key];
|
||||||
|
|
||||||
assignNormalizedScript(
|
this.assignNormalizedScript(
|
||||||
scripts[target],
|
scripts[target],
|
||||||
thing.id,
|
thing.id,
|
||||||
things.root[key].script,
|
things.root[key].script,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
await assign(this.vfs, "consumables", "consumables");
|
await assign(this.vfs, "consumables", "consumables");
|
||||||
await assign(this.vfs, "provisions", "provisions");
|
await assign(this.vfs, "provisions", "provisions");
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import { Strings } from "@blitzkit/i18n";
|
|||||||
import locales from "@blitzkit/i18n/locales.json";
|
import locales from "@blitzkit/i18n/locales.json";
|
||||||
import { DeepPartial } from "@blitzkit/protos";
|
import { DeepPartial } from "@blitzkit/protos";
|
||||||
import { merge } from "lodash-es";
|
import { merge } from "lodash-es";
|
||||||
import { Cache } from "./0_base";
|
|
||||||
import { ServerBlitzKitAPI11 } from "./11_scripts";
|
import { ServerBlitzKitAPI11 } from "./11_scripts";
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI12 extends ServerBlitzKitAPI11 {
|
export abstract class ServerBlitzKitAPI12 extends ServerBlitzKitAPI11 {
|
||||||
@@ -11,7 +10,6 @@ export abstract class ServerBlitzKitAPI12 extends ServerBlitzKitAPI11 {
|
|||||||
{ import: "default" },
|
{ import: "default" },
|
||||||
);
|
);
|
||||||
|
|
||||||
@Cache()
|
|
||||||
async strings(locale: string) {
|
async strings(locale: string) {
|
||||||
const localized = (await this.globbedStrings[
|
const localized = (await this.globbedStrings[
|
||||||
`../../../../../i18n/strings/${locale}.json`
|
`../../../../../i18n/strings/${locale}.json`
|
||||||
|
|||||||
@@ -1,36 +1,320 @@
|
|||||||
import {
|
import {
|
||||||
|
type AugmentAttributeDefinitions,
|
||||||
BlitzCrewType,
|
BlitzCrewType,
|
||||||
BlitzModuleType,
|
BlitzModuleType,
|
||||||
blitzShellKindToBlitzkit,
|
blitzShellKindToBlitzkit,
|
||||||
BlitzTankClass,
|
BlitzTankClass,
|
||||||
ChassisDefinitionsList,
|
ChassisDefinitionsList,
|
||||||
|
type ConsumablesVehicleFilter,
|
||||||
EngineDefinitionsList,
|
EngineDefinitionsList,
|
||||||
GunDefinitionsList,
|
GunDefinitionsList,
|
||||||
ShellDefinitionsList,
|
ShellDefinitionsList,
|
||||||
ShellKind,
|
ShellKind,
|
||||||
sluggify,
|
sluggify,
|
||||||
|
TechTreeLayoutYaml,
|
||||||
toUniqueId,
|
toUniqueId,
|
||||||
TurretDefinitionsList,
|
TurretDefinitionsList,
|
||||||
UnlocksListing,
|
UnlocksListing,
|
||||||
|
UpgradeAttributesXml,
|
||||||
|
UpgradeProgressionXml,
|
||||||
|
UpgradeProgressionXmlNode,
|
||||||
|
UpgradeProgressionXmlRequirement,
|
||||||
|
type VehicleAbilityItem,
|
||||||
|
type VehicleDefinitionGun,
|
||||||
VehicleDefinitionList,
|
VehicleDefinitionList,
|
||||||
VehicleDefinitions,
|
VehicleDefinitions,
|
||||||
} from "@blitzkit/core";
|
} from "@blitzkit/core";
|
||||||
import {
|
import {
|
||||||
|
AbilitySource,
|
||||||
AssaultRanges,
|
AssaultRanges,
|
||||||
|
AugmentAttribute,
|
||||||
|
AugmentNode,
|
||||||
|
AugmentNodeType,
|
||||||
|
AugmentProgression,
|
||||||
|
AugmentRequirement,
|
||||||
Crew,
|
Crew,
|
||||||
Equalizer,
|
Equalizer,
|
||||||
GunDefinition,
|
GunDefinition,
|
||||||
|
ModulePosition,
|
||||||
ModuleType,
|
ModuleType,
|
||||||
ResearchCost,
|
ResearchCost,
|
||||||
|
ShellDefinition,
|
||||||
TankDefinitions,
|
TankDefinitions,
|
||||||
TankPrice,
|
TankPrice,
|
||||||
TankPriceType,
|
TankPriceType,
|
||||||
TankType,
|
TankType,
|
||||||
Unlock,
|
Unlock,
|
||||||
|
type VehicleAbility,
|
||||||
} from "@blitzkit/protos";
|
} from "@blitzkit/protos";
|
||||||
import { Cache, ServerBlitzKitAPI0 } from "./0_base";
|
import { Cache } from "../cache";
|
||||||
|
import { ServerBlitzKitAPI0 } from "./0_base";
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
||||||
|
// A gun the way a tank's turret or a vehicle ability builds it. `gun`
|
||||||
|
// overrides the shared gun entry, which is all an ability has
|
||||||
|
private parseGun(
|
||||||
|
nation: string,
|
||||||
|
gunKey: string,
|
||||||
|
gunList: GunDefinitionsList,
|
||||||
|
shellList: ShellDefinitionsList,
|
||||||
|
gun: Partial<VehicleDefinitionGun>,
|
||||||
|
unlocks: GunDefinition["unlocks"],
|
||||||
|
) {
|
||||||
|
const gunListEntry = gunList.shared[gunKey];
|
||||||
|
const gunType =
|
||||||
|
gun.clip === undefined
|
||||||
|
? "regular"
|
||||||
|
: gun.pumpGunMode
|
||||||
|
? "auto_reloader"
|
||||||
|
: "auto_loader";
|
||||||
|
const gunClipCount = gunType === "regular" ? 1 : gun.clip!.count;
|
||||||
|
const shotDispersionFactors =
|
||||||
|
gun.shotDispersionFactors ?? gunListEntry.shotDispersionFactors;
|
||||||
|
let assault_ranges: AssaultRanges | undefined;
|
||||||
|
|
||||||
|
if (gun.extras?.trayShell) {
|
||||||
|
const types = gun.extras.trayShell.kinds.split(" ").map((string) => {
|
||||||
|
const trimmed = string.trim();
|
||||||
|
|
||||||
|
if (trimmed in blitzShellKindToBlitzkit) {
|
||||||
|
return blitzShellKindToBlitzkit[trimmed as ShellKind];
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new SyntaxError(`Invalid shell kind: ${trimmed}`);
|
||||||
|
});
|
||||||
|
const sectorNames = Object.keys(gun.extras.trayShell.sectors);
|
||||||
|
|
||||||
|
if (sectorNames.length !== 1 || sectorNames[0] !== "sector") {
|
||||||
|
throw new SyntaxError("Invalid tray shell sector");
|
||||||
|
}
|
||||||
|
|
||||||
|
const sector = gun.extras.trayShell.sectors.sector;
|
||||||
|
|
||||||
|
assault_ranges = {
|
||||||
|
types,
|
||||||
|
ranges: sector.map((value) => ({
|
||||||
|
factor: value.factor,
|
||||||
|
distance: value.distance,
|
||||||
|
})),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
id: toUniqueId(nation, gunList.ids[gunKey]),
|
||||||
|
weight: gunListEntry.weight,
|
||||||
|
rotation_speed: gunListEntry.rotationSpeed,
|
||||||
|
name: this.getString(gunListEntry.userString),
|
||||||
|
tier: gunListEntry.level,
|
||||||
|
shells: this.parseShells(nation, gunListEntry, shellList),
|
||||||
|
camouflage_loss:
|
||||||
|
gun.invisibilityFactorAtShot === undefined
|
||||||
|
? 0
|
||||||
|
: typeof gun.invisibilityFactorAtShot === "number"
|
||||||
|
? gun.invisibilityFactorAtShot
|
||||||
|
: gun.invisibilityFactorAtShot.at(-1)!,
|
||||||
|
aim_time: gun.aimingTime ?? gunListEntry.aimingTime,
|
||||||
|
dispersion_base:
|
||||||
|
gun.shotDispersionRadius ?? gunListEntry.shotDispersionRadius,
|
||||||
|
dispersion_damaged: shotDispersionFactors.whileGunDamaged,
|
||||||
|
dispersion_shot: shotDispersionFactors.afterShot,
|
||||||
|
dispersion_traverse: shotDispersionFactors.turretRotation,
|
||||||
|
unlocks,
|
||||||
|
shell_capacity: gun.maxAmmo ?? gunListEntry.maxAmmo,
|
||||||
|
assault_ranges,
|
||||||
|
burst:
|
||||||
|
gun.burst && gun.burst.count > 1
|
||||||
|
? {
|
||||||
|
count: gun.burst.count,
|
||||||
|
interval: 60 / gun.burst.rate,
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
|
gun_type:
|
||||||
|
gunType === "regular"
|
||||||
|
? {
|
||||||
|
$case: "regular",
|
||||||
|
value: {
|
||||||
|
reload: gun.reloadTime ?? 0,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
: gunType === "auto_reloader"
|
||||||
|
? {
|
||||||
|
$case: "auto_reloader",
|
||||||
|
value: {
|
||||||
|
intra_clip: 60 / gun.clip!.rate,
|
||||||
|
shell_count: gunClipCount,
|
||||||
|
shell_reloads: gun.pumpGunReloadTimes!.split(" ").map(Number),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
: {
|
||||||
|
$case: "auto_loader",
|
||||||
|
value: {
|
||||||
|
intra_clip: 60 / gun.clip!.rate,
|
||||||
|
clip_reload: gun.reloadTime ?? 0,
|
||||||
|
shell_count: gunClipCount,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
} satisfies GunDefinition;
|
||||||
|
}
|
||||||
|
|
||||||
|
// The shells a gun fires. Its shots may override a shell's speed, range and
|
||||||
|
// penetration, and otherwise the shell's own values hold
|
||||||
|
private parseShells(
|
||||||
|
nation: string,
|
||||||
|
gunListEntry: GunDefinitionsList["shared"][string],
|
||||||
|
shellList: ShellDefinitionsList,
|
||||||
|
) {
|
||||||
|
return Object.keys(gunListEntry.shots ?? {}).map((shellKey) => {
|
||||||
|
const gunShellEntry = gunListEntry.shots[shellKey];
|
||||||
|
const shell = shellList[shellKey];
|
||||||
|
|
||||||
|
// Newer client data stores shot properties on the shell rather than
|
||||||
|
// repeating them under every gun's <shots> entry
|
||||||
|
const speed =
|
||||||
|
typeof gunShellEntry === "string" ? shell.speed : gunShellEntry.speed;
|
||||||
|
const maxDistance =
|
||||||
|
typeof gunShellEntry === "string"
|
||||||
|
? shell.maxDistance
|
||||||
|
: gunShellEntry.maxDistance;
|
||||||
|
const piercingPower =
|
||||||
|
typeof gunShellEntry === "string"
|
||||||
|
? shell.piercingPower
|
||||||
|
: gunShellEntry.piercingPower;
|
||||||
|
|
||||||
|
const penetrationRaw = piercingPower
|
||||||
|
.split(" ")
|
||||||
|
.filter((penetrationString) => penetrationString !== "")
|
||||||
|
.map(Number);
|
||||||
|
|
||||||
|
return {
|
||||||
|
id: toUniqueId(nation, shell.id),
|
||||||
|
name: this.getString(shell.userString),
|
||||||
|
velocity: speed,
|
||||||
|
armor_damage: shell.damage.armor,
|
||||||
|
module_damage: shell.damage.devices,
|
||||||
|
caliber: shell.caliber,
|
||||||
|
normalization: shell.normalizationAngle,
|
||||||
|
ricochet: shell.ricochetAngle,
|
||||||
|
type: blitzShellKindToBlitzkit[shell.kind],
|
||||||
|
explosion_radius:
|
||||||
|
shell.kind === "HIGH_EXPLOSIVE"
|
||||||
|
? shell.explosionRadius ?? 0
|
||||||
|
: undefined,
|
||||||
|
icon: shell.icon,
|
||||||
|
penetration: {
|
||||||
|
near: penetrationRaw[0],
|
||||||
|
far: penetrationRaw[1],
|
||||||
|
},
|
||||||
|
range: maxDistance,
|
||||||
|
acceleration: shell.acceleration,
|
||||||
|
max_speed: shell.maxSpeed,
|
||||||
|
} satisfies ShellDefinition;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// A vehicle ability's placeholder gun as `nation:gun`, built like a tank's own
|
||||||
|
// guns. An ability's gun has no turret, so its shared entry is all its data
|
||||||
|
private async placeholderGun(reference: string) {
|
||||||
|
const [nation, gunKey] = reference.trim().split(":");
|
||||||
|
const base = `Data/XML/item_defs/vehicles/${nation}/components`;
|
||||||
|
const { root: gunList } = await this.vfs.xml<{
|
||||||
|
root: GunDefinitionsList;
|
||||||
|
}>(`${base}/guns.xml`);
|
||||||
|
const { root: shellList } = await this.vfs.xml<{
|
||||||
|
root: ShellDefinitionsList;
|
||||||
|
}>(`${base}/shells.xml`);
|
||||||
|
const shared = gunList.shared[gunKey];
|
||||||
|
|
||||||
|
if (shared === undefined) {
|
||||||
|
throw new Error(`Vehicle ability gun ${reference} is not in guns.xml`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.parseGun(nation, gunKey, gunList, shellList, shared, []);
|
||||||
|
}
|
||||||
|
|
||||||
|
// The hidden provisions and consumables the game marks as vehicle abilities,
|
||||||
|
// by the key a tank's `extras` names them with
|
||||||
|
private vehicleAbilityItems() {
|
||||||
|
const items = new Map<string, VehicleAbilityItem>();
|
||||||
|
const groups = [
|
||||||
|
[AbilitySource.ABILITY_SOURCE_CONSUMABLE, this.consumablesCommon],
|
||||||
|
[AbilitySource.ABILITY_SOURCE_PROVISION, this.provisionsCommon],
|
||||||
|
] as const;
|
||||||
|
|
||||||
|
for (const [source, group] of groups) {
|
||||||
|
for (const [key, item] of Object.entries(group)) {
|
||||||
|
if (!("isVehicleAbility" in item)) continue;
|
||||||
|
|
||||||
|
// The names in the filter's `include`, or nothing when it doesn't name tanks
|
||||||
|
const vehicle = item.vehicleFilter?.include.vehicle;
|
||||||
|
|
||||||
|
items.set(key, {
|
||||||
|
source,
|
||||||
|
id: item.id,
|
||||||
|
vehicleNames:
|
||||||
|
vehicle !== undefined && "name" in vehicle
|
||||||
|
? vehicle.name.trim().split(/\s+/)
|
||||||
|
: undefined,
|
||||||
|
gun: item.script?.gun,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return items;
|
||||||
|
}
|
||||||
|
|
||||||
|
// The abilities a tank has, from the hidden items its own `extras` names.
|
||||||
|
// Guns name none in the game files today, so one is an error, not a gap
|
||||||
|
private async vehicleAbilitiesOf(
|
||||||
|
nation: string,
|
||||||
|
tankKey: string,
|
||||||
|
root: {
|
||||||
|
extras?: Record<string, unknown>;
|
||||||
|
turrets0?: Record<
|
||||||
|
string,
|
||||||
|
{ guns: Record<string, { extras?: Record<string, unknown> }> }
|
||||||
|
>;
|
||||||
|
},
|
||||||
|
items: Map<string, VehicleAbilityItem>,
|
||||||
|
) {
|
||||||
|
const name = `${nation}:${tankKey}`;
|
||||||
|
|
||||||
|
for (const turret of Object.values(root.turrets0 ?? {})) {
|
||||||
|
for (const gun of Object.values(turret.guns ?? {})) {
|
||||||
|
for (const key of Object.keys(gun.extras ?? {})) {
|
||||||
|
if (items.has(key)) {
|
||||||
|
throw new Error(
|
||||||
|
`Gun extra ${key} on ${name} is a vehicle ability, which is only linked for tanks`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const abilities: VehicleAbility[] = [];
|
||||||
|
|
||||||
|
for (const key of Object.keys(root.extras ?? {})) {
|
||||||
|
const item = items.get(key);
|
||||||
|
if (item === undefined) continue;
|
||||||
|
|
||||||
|
if (item.vehicleNames && !item.vehicleNames.includes(name)) {
|
||||||
|
throw new Error(
|
||||||
|
`${key} is on ${name}, which its vehicle filter does not include`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
abilities.push({
|
||||||
|
source: item.source,
|
||||||
|
id: item.id,
|
||||||
|
gun:
|
||||||
|
item.gun === undefined
|
||||||
|
? undefined
|
||||||
|
: await this.placeholderGun(item.gun),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return abilities;
|
||||||
|
}
|
||||||
|
|
||||||
private parseResearchCost(raw: number | string) {
|
private parseResearchCost(raw: number | string) {
|
||||||
if (typeof raw === "number") {
|
if (typeof raw === "number") {
|
||||||
return {
|
return {
|
||||||
@@ -49,9 +333,133 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private parseAugmentProgression(
|
||||||
|
xml: UpgradeProgressionXml,
|
||||||
|
attributeDefinitions: AugmentAttributeDefinitions,
|
||||||
|
) {
|
||||||
|
const iconName = (path?: string) => path?.split("/").at(-1);
|
||||||
|
|
||||||
|
const types = {
|
||||||
|
NODETYPE_COMMON: AugmentNodeType.AUGMENT_NODE_TYPE_COMMON,
|
||||||
|
NODETYPE_MECHANIC: AugmentNodeType.AUGMENT_NODE_TYPE_MECHANIC,
|
||||||
|
NODETYPE_ALTERNATIVE_MECHANIC:
|
||||||
|
AugmentNodeType.AUGMENT_NODE_TYPE_ALTERNATIVE,
|
||||||
|
} satisfies Record<UpgradeProgressionXmlNode["nodeType"], AugmentNodeType>;
|
||||||
|
|
||||||
|
const parseRequirements = (
|
||||||
|
requiredNodes: UpgradeProgressionXmlNode["requiredNodes"],
|
||||||
|
) =>
|
||||||
|
(requiredNodes === undefined || requiredNodes === ""
|
||||||
|
? []
|
||||||
|
: requiredNodes.node
|
||||||
|
).map((requirement: UpgradeProgressionXmlRequirement) =>
|
||||||
|
typeof requirement === "string"
|
||||||
|
? ({
|
||||||
|
tech_name: requirement,
|
||||||
|
vertical_first: false,
|
||||||
|
} satisfies AugmentRequirement)
|
||||||
|
: ({
|
||||||
|
tech_name: requirement["#text"],
|
||||||
|
vertical_first: requirement["@_verticalFirst"] === "true",
|
||||||
|
} satisfies AugmentRequirement),
|
||||||
|
);
|
||||||
|
|
||||||
|
const parseNode = (node: UpgradeProgressionXmlNode) =>
|
||||||
|
({
|
||||||
|
id: node.id,
|
||||||
|
tech_name: node.techName,
|
||||||
|
type: types[node.nodeType],
|
||||||
|
xp_cost: node.xpCost ?? 0,
|
||||||
|
position:
|
||||||
|
node.gridPosition === undefined
|
||||||
|
? undefined
|
||||||
|
: { x: node.gridPosition.column, y: node.gridPosition.row },
|
||||||
|
requires: parseRequirements(node.requiredNodes),
|
||||||
|
attributes: (node.attributes?.attribute ?? []).map(
|
||||||
|
({ attributeName, value }) => {
|
||||||
|
const definition = attributeDefinitions.get(attributeName);
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: attributeName,
|
||||||
|
value: typeof value === "boolean" ? Number(value) : value,
|
||||||
|
icon: iconName(definition?.icon),
|
||||||
|
title:
|
||||||
|
definition === undefined
|
||||||
|
? undefined
|
||||||
|
: this.getString(definition.title),
|
||||||
|
} satisfies AugmentAttribute;
|
||||||
|
},
|
||||||
|
),
|
||||||
|
name:
|
||||||
|
node.displayName === undefined
|
||||||
|
? undefined
|
||||||
|
: this.getString(node.displayName),
|
||||||
|
} satisfies AugmentNode);
|
||||||
|
|
||||||
|
const parsedNodes = xml.nodes.node.map(parseNode);
|
||||||
|
const byTechName = new Map(
|
||||||
|
parsedNodes.map((node) => [node.tech_name, node]),
|
||||||
|
);
|
||||||
|
const groups =
|
||||||
|
xml.alternativeMechanicGroups?.alternativeMechanicGroup ?? [];
|
||||||
|
|
||||||
|
if (groups.length > 1) {
|
||||||
|
throw new Error(
|
||||||
|
"Upgrade progression with more than one alternative group",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const group = groups.at(0);
|
||||||
|
const alternativeNames = new Set(group?.alternativeNodes.node);
|
||||||
|
|
||||||
|
for (const node of parsedNodes) {
|
||||||
|
if (
|
||||||
|
node.type === AugmentNodeType.AUGMENT_NODE_TYPE_ALTERNATIVE &&
|
||||||
|
!alternativeNames.has(node.tech_name)
|
||||||
|
) {
|
||||||
|
throw new Error(
|
||||||
|
`Alternative upgrade ${node.tech_name} belongs to no group`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
rows: xml.matrix.rows,
|
||||||
|
columns: xml.matrix.columns,
|
||||||
|
nodes: parsedNodes.filter(
|
||||||
|
(node) => node.type !== AugmentNodeType.AUGMENT_NODE_TYPE_ALTERNATIVE,
|
||||||
|
),
|
||||||
|
group:
|
||||||
|
group === undefined
|
||||||
|
? undefined
|
||||||
|
: {
|
||||||
|
tech_name: group.techName,
|
||||||
|
name: this.getString(group.displayName),
|
||||||
|
description: this.getString(group.description),
|
||||||
|
icon: iconName(group.icon),
|
||||||
|
xp_cost: group.xpCost,
|
||||||
|
position: {
|
||||||
|
x: group.gridPosition.column,
|
||||||
|
y: group.gridPosition.row,
|
||||||
|
},
|
||||||
|
requires: parseRequirements(group.requiredNodes),
|
||||||
|
alternatives: group.alternativeNodes.node.map((techName) => {
|
||||||
|
const node = byTechName.get(techName);
|
||||||
|
|
||||||
|
if (node === undefined) {
|
||||||
|
throw new Error(`Unknown alternative upgrade ${techName}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return node;
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
} satisfies AugmentProgression;
|
||||||
|
}
|
||||||
|
|
||||||
@Cache()
|
@Cache()
|
||||||
async tanks() {
|
async tanks() {
|
||||||
const tankDefinitions = TankDefinitions.create();
|
const tankDefinitions = TankDefinitions.create();
|
||||||
|
const abilityItems = this.vehicleAbilityItems();
|
||||||
|
|
||||||
const gameModeNativeNames: Record<string, string> = {};
|
const gameModeNativeNames: Record<string, string> = {};
|
||||||
|
|
||||||
@@ -162,6 +570,23 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
|
|
||||||
const tankXps = new Map<number, ResearchCost>();
|
const tankXps = new Map<number, ResearchCost>();
|
||||||
|
|
||||||
|
// Only some builds ship augment trees
|
||||||
|
const upgradeAttributesPath =
|
||||||
|
"Data/XML/item_defs/vehicles/common/tank_upgrade_attributes.xml";
|
||||||
|
const upgradeAttributeDefinitions: AugmentAttributeDefinitions = new Map();
|
||||||
|
|
||||||
|
if ((await this.vfs.resolve(upgradeAttributesPath)) !== null) {
|
||||||
|
const upgradeAttributes =
|
||||||
|
await this.vfs.xmlWithAttributes<UpgradeAttributesXml>(
|
||||||
|
upgradeAttributesPath,
|
||||||
|
);
|
||||||
|
|
||||||
|
for (const { attributeName, icon, title } of upgradeAttributes.root
|
||||||
|
.attributes.attribute) {
|
||||||
|
upgradeAttributeDefinitions.set(attributeName, { icon, title });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (const nation of this.nationsDir!) {
|
for (const nation of this.nationsDir!) {
|
||||||
const tankList = await this.vfs.xml<{ root: VehicleDefinitionList }>(
|
const tankList = await this.vfs.xml<{ root: VehicleDefinitionList }>(
|
||||||
`Data/XML/item_defs/vehicles/${nation}/list.xml`,
|
`Data/XML/item_defs/vehicles/${nation}/list.xml`,
|
||||||
@@ -362,11 +787,96 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
const name_full =
|
const name_full =
|
||||||
name === canonicalFullName ? undefined : canonicalFullName;
|
name === canonicalFullName ? undefined : canonicalFullName;
|
||||||
|
|
||||||
|
// The client lays modules out automatically unless the tank has its own
|
||||||
|
// file, in which case every cell is placed by hand
|
||||||
|
const module_positions: ModulePosition[] = [];
|
||||||
|
const layoutPath = `Data/Configs/TechTree/${nation}/${tankKey}.yaml`;
|
||||||
|
const resolvedLayoutPath = await this.vfs.resolve(layoutPath);
|
||||||
|
|
||||||
|
if (resolvedLayoutPath !== null) {
|
||||||
|
const layout = await this.vfs.yaml<TechTreeLayoutYaml>(layoutPath);
|
||||||
|
|
||||||
|
if (layout.modules) {
|
||||||
|
for (const [moduleKey, { position }] of Object.entries(
|
||||||
|
layout.modules,
|
||||||
|
)) {
|
||||||
|
// keys look like `#vehicleGun:_85mm_S-53`
|
||||||
|
const [kind, name] = moduleKey.replace(/^#/, "").split(":");
|
||||||
|
let rawId: number | undefined;
|
||||||
|
let type: ModuleType;
|
||||||
|
|
||||||
|
switch (kind) {
|
||||||
|
case "vehicle":
|
||||||
|
rawId = tankList.root[name]?.id;
|
||||||
|
type = ModuleType.MODULE_TYPE_VEHICLE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "vehicleChassis":
|
||||||
|
rawId = chassisList.root.ids[name];
|
||||||
|
type = ModuleType.MODULE_TYPE_TRACKS;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "vehicleEngine":
|
||||||
|
rawId = enginesList.root.ids[name];
|
||||||
|
type = ModuleType.MODULE_TYPE_ENGINE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "vehicleGun":
|
||||||
|
rawId = gunList.root.ids[name];
|
||||||
|
type = ModuleType.MODULE_TYPE_GUN;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "vehicleTurret":
|
||||||
|
rawId = turretList.root.ids[name];
|
||||||
|
type = ModuleType.MODULE_TYPE_TURRET;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
throw new Error(
|
||||||
|
`Unknown module kind in ${layoutPath}: ${kind}`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (rawId === undefined) {
|
||||||
|
throw new Error(
|
||||||
|
`Unknown module in ${layoutPath}: ${moduleKey}`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
module_positions.push({
|
||||||
|
id: toUniqueId(nation, rawId),
|
||||||
|
type,
|
||||||
|
position: { x: position[0], y: position[1] },
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const augment_progression =
|
||||||
|
tankDefinition.root.upgradeProgression === undefined
|
||||||
|
? undefined
|
||||||
|
: this.parseAugmentProgression(
|
||||||
|
(
|
||||||
|
await this.vfs.xmlWithAttributes<{
|
||||||
|
root: { upgradeProgression: UpgradeProgressionXml };
|
||||||
|
}>(`Data/XML/item_defs/vehicles/${nation}/${tankKey}.xml`)
|
||||||
|
).root.upgradeProgression,
|
||||||
|
upgradeAttributeDefinitions,
|
||||||
|
);
|
||||||
|
|
||||||
tankDefinitions.tanks[tankId] = {
|
tankDefinitions.tanks[tankId] = {
|
||||||
ancestors: [],
|
ancestors: [],
|
||||||
successors: [],
|
successors: [],
|
||||||
id: tankId,
|
id: tankId,
|
||||||
dev_name: tankKey,
|
dev_name: tankKey,
|
||||||
|
module_positions,
|
||||||
|
augment_progression,
|
||||||
|
vehicle_abilities: await this.vehicleAbilitiesOf(
|
||||||
|
nation,
|
||||||
|
tankKey,
|
||||||
|
tankDefinition.root,
|
||||||
|
abilityItems,
|
||||||
|
),
|
||||||
roles: {},
|
roles: {},
|
||||||
camouflages: camouflages,
|
camouflages: camouflages,
|
||||||
fixed_camouflage: fixedCamouflage,
|
fixed_camouflage: fixedCamouflage,
|
||||||
@@ -386,11 +896,11 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
type: tankTags.includes("collectible")
|
type: tankTags.includes("collectible")
|
||||||
? TankType.TANK_TYPE_COLLECTOR
|
? TankType.TANK_TYPE_COLLECTOR
|
||||||
: (typeof tank.price === "number" ? false : "gold" in tank.price)
|
: (typeof tank.price === "number" ? false : "gold" in tank.price)
|
||||||
? TankType.TANK_TYPE_PREMIUM
|
? TankType.TANK_TYPE_PREMIUM
|
||||||
: TankType.TANK_TYPE_RESEARCHABLE,
|
: TankType.TANK_TYPE_RESEARCHABLE,
|
||||||
tier: tank.level,
|
tier: tank.level,
|
||||||
class: tankClass,
|
class: tankClass,
|
||||||
testing: tankTags.includes("testTank"),
|
testing: tankTags.includes("testTank") || tank.level === 11,
|
||||||
deprecated: tankTags.includes("deprecated"),
|
deprecated: tankTags.includes("deprecated"),
|
||||||
price: tankPrice,
|
price: tankPrice,
|
||||||
camouflage_still: tankDefinition.root.invisibility.still,
|
camouflage_still: tankDefinition.root.invisibility.still,
|
||||||
@@ -488,149 +998,20 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|
||||||
let gunIndex = 0;
|
|
||||||
for (const gunKey in turret.guns) {
|
for (const gunKey in turret.guns) {
|
||||||
const gun = turret.guns[gunKey];
|
const gun = turret.guns[gunKey];
|
||||||
const gunId = toUniqueId(nation, gunList.root.ids[gunKey]);
|
|
||||||
const gunListEntry = gunList.root.shared[gunKey];
|
|
||||||
const gunName = this.getString(gunListEntry.userString);
|
|
||||||
const gunType =
|
|
||||||
"clip" in gun
|
|
||||||
? gun.pumpGunMode
|
|
||||||
? "autoReloader"
|
|
||||||
: "autoLoader"
|
|
||||||
: "regular";
|
|
||||||
const gunClipCount = gunType === "regular" ? 1 : gun.clip!.count;
|
|
||||||
const shotDispersionFactors =
|
|
||||||
gun.shotDispersionFactors ?? gunListEntry.shotDispersionFactors;
|
|
||||||
let assault_ranges: AssaultRanges | undefined;
|
|
||||||
|
|
||||||
if (gun.extras?.trayShell) {
|
|
||||||
const types = gun.extras.trayShell.kinds
|
|
||||||
.split(" ")
|
|
||||||
.map((string) => {
|
|
||||||
const trimmed = string.trim();
|
|
||||||
|
|
||||||
if (trimmed in blitzShellKindToBlitzkit) {
|
|
||||||
return blitzShellKindToBlitzkit[trimmed as ShellKind];
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new SyntaxError(`Invalid shell kind: ${trimmed}`);
|
|
||||||
});
|
|
||||||
const sectorNames = Object.keys(gun.extras.trayShell.sectors);
|
|
||||||
|
|
||||||
if (sectorNames.length !== 1 || sectorNames[0] !== "sector") {
|
|
||||||
throw new SyntaxError("Invalid tray shell sector");
|
|
||||||
}
|
|
||||||
|
|
||||||
const sector = gun.extras.trayShell.sectors.sector;
|
|
||||||
|
|
||||||
assault_ranges = {
|
|
||||||
types,
|
|
||||||
ranges: sector.map((value) => ({
|
|
||||||
factor: value.factor,
|
|
||||||
distance: value.distance,
|
|
||||||
})),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
totalUnlocks.push(gun.unlocks);
|
totalUnlocks.push(gun.unlocks);
|
||||||
|
tankDefinitions.tanks[tankId].turrets[turretIndex].guns.push(
|
||||||
tankDefinitions.tanks[tankId].turrets[turretIndex].guns.push({
|
this.parseGun(
|
||||||
id: gunId,
|
nation,
|
||||||
weight: gunListEntry.weight,
|
gunKey,
|
||||||
rotation_speed: gunListEntry.rotationSpeed,
|
gunList.root,
|
||||||
name: gunName,
|
shellList.root,
|
||||||
tier: gunListEntry.level,
|
gun,
|
||||||
shells: [],
|
resolveUnlocks(this.blitzModuleTypeToBlitzkit, gun.unlocks),
|
||||||
camouflage_loss:
|
|
||||||
typeof gun.invisibilityFactorAtShot === "number"
|
|
||||||
? gun.invisibilityFactorAtShot
|
|
||||||
: gun.invisibilityFactorAtShot.at(-1)!,
|
|
||||||
aim_time: gun.aimingTime ?? gunListEntry.aimingTime,
|
|
||||||
dispersion_base:
|
|
||||||
gun.shotDispersionRadius ?? gunListEntry.shotDispersionRadius,
|
|
||||||
dispersion_damaged: shotDispersionFactors.whileGunDamaged,
|
|
||||||
dispersion_shot: shotDispersionFactors.afterShot,
|
|
||||||
dispersion_traverse: shotDispersionFactors.turretRotation,
|
|
||||||
unlocks: resolveUnlocks(
|
|
||||||
this.blitzModuleTypeToBlitzkit,
|
|
||||||
gun.unlocks,
|
|
||||||
),
|
),
|
||||||
shell_capacity: gun.maxAmmo ?? gunListEntry.maxAmmo,
|
);
|
||||||
assault_ranges,
|
|
||||||
burst:
|
|
||||||
gun.burst && gun.burst.count > 1
|
|
||||||
? {
|
|
||||||
count: gun.burst.count,
|
|
||||||
interval: 60 / gun.burst.rate,
|
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
gun_type:
|
|
||||||
gunType === "regular"
|
|
||||||
? {
|
|
||||||
$case: "regular",
|
|
||||||
value: {
|
|
||||||
reload: gun.reloadTime,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
: gunType === "autoReloader"
|
|
||||||
? {
|
|
||||||
$case: "auto_reloader",
|
|
||||||
value: {
|
|
||||||
intra_clip: 60 / gun.clip!.rate,
|
|
||||||
shell_count: gunClipCount,
|
|
||||||
shell_reloads: gun
|
|
||||||
.pumpGunReloadTimes!.split(" ")
|
|
||||||
.map(Number),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
: {
|
|
||||||
$case: "auto_loader",
|
|
||||||
value: {
|
|
||||||
intra_clip: 60 / gun.clip!.rate,
|
|
||||||
clip_reload: gun.reloadTime,
|
|
||||||
shell_count: gunClipCount,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} satisfies GunDefinition);
|
|
||||||
|
|
||||||
for (const shellKey in gunListEntry.shots) {
|
|
||||||
const gunShellEntry = gunListEntry.shots[shellKey];
|
|
||||||
const shell = shellList.root[shellKey];
|
|
||||||
const shellId = toUniqueId(nation, shell.id);
|
|
||||||
const shellName = this.getString(shell.userString);
|
|
||||||
const penetrationRaw = gunShellEntry.piercingPower
|
|
||||||
.split(" ")
|
|
||||||
.filter((penetrationString) => penetrationString !== "")
|
|
||||||
.map(Number);
|
|
||||||
|
|
||||||
tankDefinitions.tanks[tankId].turrets[turretIndex].guns[
|
|
||||||
gunIndex
|
|
||||||
].shells.push({
|
|
||||||
id: shellId,
|
|
||||||
name: shellName,
|
|
||||||
velocity: gunShellEntry.speed,
|
|
||||||
armor_damage: shell.damage.armor,
|
|
||||||
module_damage: shell.damage.devices,
|
|
||||||
caliber: shell.caliber,
|
|
||||||
normalization: shell.normalizationAngle,
|
|
||||||
ricochet: shell.ricochetAngle,
|
|
||||||
type: blitzShellKindToBlitzkit[shell.kind],
|
|
||||||
explosion_radius:
|
|
||||||
shell.kind === "HIGH_EXPLOSIVE"
|
|
||||||
? (shell.explosionRadius ?? 0)
|
|
||||||
: undefined,
|
|
||||||
icon: shell.icon,
|
|
||||||
penetration: {
|
|
||||||
near: penetrationRaw[0],
|
|
||||||
far: penetrationRaw[1],
|
|
||||||
},
|
|
||||||
range: gunShellEntry.maxDistance,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
gunIndex++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
turretIndex++;
|
turretIndex++;
|
||||||
|
|||||||
@@ -1,15 +1,60 @@
|
|||||||
import { CamouflageDefinitions } from "@blitzkit/protos";
|
import { CamouflageDefinitions } from "@blitzkit/protos";
|
||||||
import { Cache } from "./0_base";
|
import {
|
||||||
|
Sc2ReadStream,
|
||||||
|
type TankParameters,
|
||||||
|
} from "@blitzkit/core";
|
||||||
|
import { isEqual, times } from "lodash-es";
|
||||||
|
import { Cache } from "../cache";
|
||||||
import { ServerBlitzKitAPI1 } from "./1_tanks";
|
import { ServerBlitzKitAPI1 } from "./1_tanks";
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI2 extends ServerBlitzKitAPI1 {
|
export abstract class ServerBlitzKitAPI2 extends ServerBlitzKitAPI1 {
|
||||||
|
private async skinPresets(vehicle: string) {
|
||||||
|
const [nation, tankKey] = vehicle.split(":");
|
||||||
|
const parameters = await this.vfs.yaml<TankParameters>(
|
||||||
|
`Data/3d/Tanks/Parameters/${nation}/${tankKey}.yaml`,
|
||||||
|
);
|
||||||
|
const sc2 = new Sc2ReadStream(
|
||||||
|
(
|
||||||
|
await this.vfs.file(
|
||||||
|
`Data/3d/${parameters.resourcesPath.blitzModelPath}`,
|
||||||
|
)
|
||||||
|
).buffer as ArrayBuffer,
|
||||||
|
).sc2();
|
||||||
|
const presets = new Set<string>();
|
||||||
|
|
||||||
|
for (const node of sc2["#dataNodes"]) {
|
||||||
|
if (typeof node.configCount !== "number") continue;
|
||||||
|
|
||||||
|
times(node.configCount, (index) => node[`configArchive_${index}`])
|
||||||
|
.filter(
|
||||||
|
(archive) =>
|
||||||
|
!isEqual(archive.textures, node.configArchive_0.textures),
|
||||||
|
)
|
||||||
|
.forEach((archive) => presets.add(archive.configName));
|
||||||
|
}
|
||||||
|
|
||||||
|
return presets;
|
||||||
|
}
|
||||||
|
|
||||||
@Cache()
|
@Cache()
|
||||||
async camouflages() {
|
async camouflages() {
|
||||||
const camouflageDefinitions = CamouflageDefinitions.create();
|
const camouflageDefinitions = CamouflageDefinitions.create();
|
||||||
|
const customization = await this.vfs.yaml<
|
||||||
|
Record<string, { Name: string; Path: string }>
|
||||||
|
>("Data/3d/Customization.yaml");
|
||||||
|
const items = new Map(
|
||||||
|
Object.values(customization).map(({ Name, Path }) => [
|
||||||
|
Name,
|
||||||
|
Path.replace("~res:/", "Data/").replace(/\.sc2$/, ""),
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
const skinPresets = new Map<string, Promise<Set<string>>>();
|
||||||
|
|
||||||
for (const camoKey in this.camouflagesXml!.root.camouflages) {
|
for (const camoKey in this.camouflagesXml!.root.camouflages) {
|
||||||
const camo = this.camouflagesXml!.root.camouflages[camoKey];
|
const camo = this.camouflagesXml!.root.camouflages[camoKey];
|
||||||
|
|
||||||
|
if (!(camoKey in this.camouflagesYaml!)) continue;
|
||||||
|
|
||||||
const yamlEntry = this.camouflagesYaml![camoKey];
|
const yamlEntry = this.camouflagesYaml![camoKey];
|
||||||
const fullName = yamlEntry.userString
|
const fullName = yamlEntry.userString
|
||||||
? this.getString(yamlEntry.userString)
|
? this.getString(yamlEntry.userString)
|
||||||
@@ -20,12 +65,57 @@ export abstract class ServerBlitzKitAPI2 extends ServerBlitzKitAPI1 {
|
|||||||
const resolvedTankName = shortName ?? fullName;
|
const resolvedTankName = shortName ?? fullName;
|
||||||
const resolvedTankNameFull =
|
const resolvedTankNameFull =
|
||||||
resolvedTankName === fullName ? undefined : fullName;
|
resolvedTankName === fullName ? undefined : fullName;
|
||||||
|
const include = camo.vehicleFilter.include;
|
||||||
|
const vehicle =
|
||||||
|
include && !Array.isArray(include) && "vehicle" in include
|
||||||
|
? include.vehicle?.name
|
||||||
|
: undefined;
|
||||||
|
let tankId: number | undefined = undefined;
|
||||||
|
|
||||||
|
if (vehicle && vehicle in this.tankStringIdMap) {
|
||||||
|
const resolvedParts = await Promise.all(
|
||||||
|
Object.values(yamlEntry.customEntities ?? {}).map(
|
||||||
|
async ({ item }) => {
|
||||||
|
const path = items.get(item);
|
||||||
|
|
||||||
|
return (
|
||||||
|
path !== undefined &&
|
||||||
|
(await this.vfs.resolve(`${path}.sc2`)) &&
|
||||||
|
(await this.vfs.resolve(`${path}.scg`))
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
const [nation, tankKey] = vehicle.split(":");
|
||||||
|
// some unique camos only set the preset for their one tank
|
||||||
|
const preset =
|
||||||
|
yamlEntry.preset ??
|
||||||
|
yamlEntry.override?.[nation]?.override?.[tankKey]?.preset;
|
||||||
|
let hasPreset = false;
|
||||||
|
|
||||||
|
if (preset !== undefined) {
|
||||||
|
if (!skinPresets.has(vehicle)) {
|
||||||
|
skinPresets.set(vehicle, this.skinPresets(vehicle));
|
||||||
|
}
|
||||||
|
|
||||||
|
hasPreset = (await skinPresets.get(vehicle)!).has(preset);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (resolvedParts.some(Boolean) || hasPreset) {
|
||||||
|
tankId = this.tankStringIdMap[vehicle];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const name = this.getString(camo.userString);
|
||||||
|
|
||||||
camouflageDefinitions.camouflages[camo.id] = {
|
camouflageDefinitions.camouflages[camo.id] = {
|
||||||
id: camo.id,
|
id: camo.id,
|
||||||
name: this.getString(camo.userString),
|
name,
|
||||||
tank_name: resolvedTankName,
|
tank_name: resolvedTankName,
|
||||||
tank_name_full: resolvedTankNameFull,
|
tank_name_full: resolvedTankNameFull,
|
||||||
|
tank_id: tankId,
|
||||||
|
attachment: camo.kind === "customization",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,21 +2,110 @@ import {
|
|||||||
BlitzCrewType,
|
BlitzCrewType,
|
||||||
ChassisDefinitionsList,
|
ChassisDefinitionsList,
|
||||||
GunDefinitionsList,
|
GunDefinitionsList,
|
||||||
|
I_HAT,
|
||||||
|
J_HAT,
|
||||||
|
K_HAT,
|
||||||
|
parseHierarchies,
|
||||||
|
Sc2ReadStream,
|
||||||
|
ScgReadStream,
|
||||||
TankParameters,
|
TankParameters,
|
||||||
toUniqueId,
|
toUniqueId,
|
||||||
TurretDefinitionsList,
|
TurretDefinitionsList,
|
||||||
VehicleDefinitionArmor,
|
VehicleDefinitionArmor,
|
||||||
VehicleDefinitionList,
|
VehicleDefinitionList,
|
||||||
VehicleDefinitions,
|
VehicleDefinitions,
|
||||||
|
VertexAttribute,
|
||||||
} from "@blitzkit/core";
|
} from "@blitzkit/core";
|
||||||
import { Armor, Crew, ModelDefinitions, Vector3 } from "@blitzkit/protos";
|
import { Armor, Crew, ModelDefinitions, ProtoVector3 } from "@blitzkit/protos";
|
||||||
import { Vector3Tuple } from "three";
|
import { MathUtils, Vector3 as THREEVector3, Vector3Tuple } from "three";
|
||||||
import { Cache } from "./0_base";
|
import { Cache } from "../cache";
|
||||||
import { ServerBlitzKitAPI2 } from "./2_camouflages";
|
import { ServerBlitzKitAPI2 } from "./2_camouflages";
|
||||||
|
|
||||||
|
// The `front` and `back` tags hold "min max range" in degrees
|
||||||
|
function parseExtraPitchLimitValues(raw: string | undefined) {
|
||||||
|
if (raw === undefined) return undefined;
|
||||||
|
|
||||||
|
return raw.trim().split(/\s+/).map(Number);
|
||||||
|
}
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
||||||
private vector3TupleToBlitzkit(tuple: Vector3Tuple) {
|
private vector3TupleToBlitzkit(tuple: Vector3Tuple) {
|
||||||
return { x: tuple[0], y: tuple[1], z: -tuple[2] } satisfies Vector3;
|
return { x: tuple[0], y: tuple[1], z: -tuple[2] } satisfies ProtoVector3;
|
||||||
|
}
|
||||||
|
|
||||||
|
private async collisionBoundingBoxes(
|
||||||
|
nation: string,
|
||||||
|
tankKey: string,
|
||||||
|
turretRotation?: { yaw: number; pitch: number; roll: number },
|
||||||
|
) {
|
||||||
|
const boundingBoxes: Record<
|
||||||
|
string,
|
||||||
|
{ min: Vector3Tuple; max: Vector3Tuple }
|
||||||
|
> = {};
|
||||||
|
const path = `Data/3d/Tanks/CollisionMeshes/${nation}-${tankKey}`;
|
||||||
|
|
||||||
|
if (!(await this.vfs.resolve(`${path}.sc2`))) {
|
||||||
|
throw new Error(`Missing collision mesh for ${nation}-${tankKey}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const sc2 = new Sc2ReadStream(
|
||||||
|
(await this.vfs.file(`${path}.sc2`)).buffer as ArrayBuffer,
|
||||||
|
).sc2();
|
||||||
|
const scg = new ScgReadStream(
|
||||||
|
(await this.vfs.file(`${path}.scg`)).buffer as ArrayBuffer,
|
||||||
|
).scg();
|
||||||
|
|
||||||
|
parseHierarchies(sc2["#hierarchy"], null, (hierarchy, components) => {
|
||||||
|
for (const component of components) {
|
||||||
|
if (component["comp.typename"] !== "RenderComponent") continue;
|
||||||
|
|
||||||
|
const polygonGroup = scg.get(
|
||||||
|
component["rc.renderObj"]["ro.batches"]["0000"]["rb.datasource"],
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!polygonGroup) continue;
|
||||||
|
|
||||||
|
const min: Vector3Tuple = [Infinity, Infinity, Infinity];
|
||||||
|
const max: Vector3Tuple = [-Infinity, -Infinity, -Infinity];
|
||||||
|
const rotate =
|
||||||
|
turretRotation && hierarchy.name.toLowerCase().startsWith("turret");
|
||||||
|
|
||||||
|
polygonGroup.vertices.forEach((vertex) => {
|
||||||
|
vertex.forEach(({ attribute, value }) => {
|
||||||
|
if (attribute !== VertexAttribute.VERTEX) return;
|
||||||
|
|
||||||
|
const position = new THREEVector3(...value);
|
||||||
|
|
||||||
|
if (rotate) {
|
||||||
|
position
|
||||||
|
.applyAxisAngle(
|
||||||
|
I_HAT,
|
||||||
|
-MathUtils.degToRad(turretRotation.pitch),
|
||||||
|
)
|
||||||
|
.applyAxisAngle(J_HAT, -MathUtils.degToRad(turretRotation.roll))
|
||||||
|
.applyAxisAngle(K_HAT, -MathUtils.degToRad(turretRotation.yaw));
|
||||||
|
}
|
||||||
|
|
||||||
|
const coordinates = position.toArray();
|
||||||
|
|
||||||
|
for (let axis = 0; axis < 3; axis++) {
|
||||||
|
min[axis] = Math.min(min[axis], coordinates[axis]);
|
||||||
|
max[axis] = Math.max(max[axis], coordinates[axis]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
boundingBoxes[hierarchy.name.toLowerCase()] = { min, max };
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!boundingBoxes.hull) {
|
||||||
|
throw new Error(`Missing hull collision mesh for ${nation}-${tankKey}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return boundingBoxes;
|
||||||
}
|
}
|
||||||
|
|
||||||
private assignArmor(
|
private assignArmor(
|
||||||
@@ -63,6 +152,12 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
|||||||
const tankParameters = await this.vfs.yaml<TankParameters>(
|
const tankParameters = await this.vfs.yaml<TankParameters>(
|
||||||
`Data/3d/Tanks/Parameters/${nation}/${tankKey}.yaml`,
|
`Data/3d/Tanks/Parameters/${nation}/${tankKey}.yaml`,
|
||||||
);
|
);
|
||||||
|
const collisionBoundingBoxes = await this.collisionBoundingBoxes(
|
||||||
|
nation,
|
||||||
|
tankKey,
|
||||||
|
tankDefinition.root.hull.turretInitialRotation,
|
||||||
|
);
|
||||||
|
const hullBoundingBox = collisionBoundingBoxes.hull;
|
||||||
const turretOrigin = tankDefinition.root.hull.turretPositions.turret
|
const turretOrigin = tankDefinition.root.hull.turretPositions.turret
|
||||||
.split(" ")
|
.split(" ")
|
||||||
.map(Number) as Vector3Tuple;
|
.map(Number) as Vector3Tuple;
|
||||||
@@ -137,12 +232,8 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
|||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
bounding_box: {
|
bounding_box: {
|
||||||
min: this.vector3TupleToBlitzkit(
|
min: this.vector3TupleToBlitzkit(hullBoundingBox.min),
|
||||||
tankParameters.collision.hull.bbox.min,
|
max: this.vector3TupleToBlitzkit(hullBoundingBox.max),
|
||||||
),
|
|
||||||
max: this.vector3TupleToBlitzkit(
|
|
||||||
tankParameters.collision.hull.bbox.max,
|
|
||||||
),
|
|
||||||
},
|
},
|
||||||
turrets: {},
|
turrets: {},
|
||||||
tracks: {},
|
tracks: {},
|
||||||
@@ -204,30 +295,41 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
|||||||
|
|
||||||
turret.userString;
|
turret.userString;
|
||||||
|
|
||||||
|
let turretCollisionName = this.parsePath!(
|
||||||
|
turret.hitTester.collisionModel,
|
||||||
|
).name.toLowerCase();
|
||||||
|
const isFullYaw = -turretYaw[0] + turretYaw[1] === 360;
|
||||||
|
|
||||||
|
if (!collisionBoundingBoxes[turretCollisionName] && isFullYaw) {
|
||||||
|
turretCollisionName = "turret_01";
|
||||||
|
|
||||||
|
console.warn(
|
||||||
|
`HACK: Missing turret collision mesh for ${nation}/${tankKey}; turret key: ${
|
||||||
|
turretKey
|
||||||
|
}; collision model: ${turretCollisionName}; available options: ${Object.keys(
|
||||||
|
collisionBoundingBoxes,
|
||||||
|
).join(", ")}; using ${turretCollisionName} instead`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
let turretBoundingBox = collisionBoundingBoxes[turretCollisionName];
|
||||||
|
|
||||||
|
if (turretBoundingBox === undefined) {
|
||||||
|
console.warn("HACK: missing collision; using 0's");
|
||||||
|
turretBoundingBox = { min: [0, 0, 0], max: [0, 0, 0] };
|
||||||
|
}
|
||||||
|
|
||||||
modelDefinitions.models[tankId].turrets[turretId] = {
|
modelDefinitions.models[tankId].turrets[turretId] = {
|
||||||
armor: turretArmor,
|
armor: turretArmor,
|
||||||
gun_origin: this.vector3TupleToBlitzkit(gunOrigin),
|
gun_origin: this.vector3TupleToBlitzkit(gunOrigin),
|
||||||
model_id: turretModel,
|
model_id: turretModel,
|
||||||
yaw:
|
yaw: isFullYaw
|
||||||
-turretYaw[0] + turretYaw[1] === 360
|
? undefined
|
||||||
? undefined
|
: { min: turretYaw[0], max: turretYaw[1] },
|
||||||
: { min: turretYaw[0], max: turretYaw[1] },
|
|
||||||
guns: {},
|
guns: {},
|
||||||
bounding_box: {
|
bounding_box: {
|
||||||
min: this.vector3TupleToBlitzkit(
|
min: this.vector3TupleToBlitzkit(turretBoundingBox.min),
|
||||||
tankParameters.collision[
|
max: this.vector3TupleToBlitzkit(turretBoundingBox.max),
|
||||||
this.parsePath!(
|
|
||||||
turret.hitTester.collisionModel,
|
|
||||||
).name.toLowerCase()
|
|
||||||
].bbox.min,
|
|
||||||
),
|
|
||||||
max: this.vector3TupleToBlitzkit(
|
|
||||||
tankParameters.collision[
|
|
||||||
this.parsePath!(
|
|
||||||
turret.hitTester.collisionModel,
|
|
||||||
).name.toLowerCase()
|
|
||||||
].bbox.max,
|
|
||||||
),
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -243,20 +345,33 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
|||||||
)
|
)
|
||||||
.split(" ")
|
.split(" ")
|
||||||
.map(Number) as [number, number];
|
.map(Number) as [number, number];
|
||||||
const gunModel = Number(
|
let gunModel = Number(
|
||||||
this.parsePath!(gun.models.undamaged).name.split("_")[1],
|
this.parsePath!(gun.models.undamaged).name.split("_")[1],
|
||||||
);
|
);
|
||||||
const front = gun.extraPitchLimits?.front
|
|
||||||
? gun.extraPitchLimits.front.split(" ").map(Number)
|
if (tankId === 30497) {
|
||||||
: undefined;
|
console.warn(
|
||||||
const back = gun.extraPitchLimits?.back
|
"HACK: using gun_02 for hacker tank instead of gun_01... hehe, that's quite appropriate for this tank haha",
|
||||||
? gun.extraPitchLimits.back.split(" ").map(Number)
|
);
|
||||||
: undefined;
|
|
||||||
const transition = gun.extraPitchLimits?.transition
|
gunModel = 2;
|
||||||
? typeof gun.extraPitchLimits.transition === "number"
|
}
|
||||||
? gun.extraPitchLimits.transition
|
|
||||||
: gun.extraPitchLimits.transition.at(-1)!
|
// The client merges shared and per-tank values one field at a time:
|
||||||
: undefined;
|
// front, back and transition each fall back on the shared gun
|
||||||
|
const extraPitchLimits = {
|
||||||
|
...gunListEntry.extraPitchLimits,
|
||||||
|
...gun.extraPitchLimits,
|
||||||
|
};
|
||||||
|
const front = parseExtraPitchLimitValues(extraPitchLimits.front);
|
||||||
|
const back = parseExtraPitchLimitValues(extraPitchLimits.back);
|
||||||
|
// A repeated tag overwrites the last one, and one value covers both
|
||||||
|
const transition =
|
||||||
|
extraPitchLimits.transition === undefined
|
||||||
|
? undefined
|
||||||
|
: typeof extraPitchLimits.transition === "number"
|
||||||
|
? extraPitchLimits.transition
|
||||||
|
: extraPitchLimits.transition.at(-1)!;
|
||||||
const gunArmor: Armor = { thickness: {}, spaced: [] };
|
const gunArmor: Armor = { thickness: {}, spaced: [] };
|
||||||
const maskName = `gun_${gunModel.toString().padStart(2, "0")}`;
|
const maskName = `gun_${gunModel.toString().padStart(2, "0")}`;
|
||||||
const maskEnabled =
|
const maskEnabled =
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { MapDefinitions } from "@blitzkit/protos";
|
import { MapDefinitions } from "@blitzkit/protos";
|
||||||
import { Cache } from "./0_base";
|
import { Cache } from "../cache";
|
||||||
import { ServerBlitzKitAPI3 } from "./3_models";
|
import { ServerBlitzKitAPI3 } from "./3_models";
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI4 extends ServerBlitzKitAPI3 {
|
export abstract class ServerBlitzKitAPI4 extends ServerBlitzKitAPI3 {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { EquipmentDefinitions, EquipmentSlot } from "@blitzkit/protos";
|
import { EquipmentDefinitions, EquipmentSlot } from "@blitzkit/protos";
|
||||||
import { Cache } from "./0_base";
|
import { Cache } from "../cache";
|
||||||
import { ServerBlitzKitAPI4 } from "./4_maps";
|
import { ServerBlitzKitAPI4 } from "./4_maps";
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI5 extends ServerBlitzKitAPI4 {
|
export abstract class ServerBlitzKitAPI5 extends ServerBlitzKitAPI4 {
|
||||||
|
|||||||
@@ -1,26 +1,56 @@
|
|||||||
import { BlitzTankFilterDefinitionCategory } from "@blitzkit/core";
|
import { BlitzTankFilterDefinitionCategory } from "@blitzkit/core";
|
||||||
import { Consumable, ConsumableDefinitions } from "@blitzkit/protos";
|
import {
|
||||||
import { Cache } from "./0_base";
|
Consumable,
|
||||||
|
ConsumableCategory,
|
||||||
|
ConsumableDefinitions,
|
||||||
|
} from "@blitzkit/protos";
|
||||||
|
import { Cache } from "../cache";
|
||||||
import { ServerBlitzKitAPI5 } from "./5_equipments";
|
import { ServerBlitzKitAPI5 } from "./5_equipments";
|
||||||
|
|
||||||
|
const CATEGORIES = new Map([
|
||||||
|
["free", ConsumableCategory.CONSUMABLE_CATEGORY_FREE],
|
||||||
|
["common", ConsumableCategory.CONSUMABLE_CATEGORY_COMMON],
|
||||||
|
["potent", ConsumableCategory.CONSUMABLE_CATEGORY_POTENT],
|
||||||
|
["radical", ConsumableCategory.CONSUMABLE_CATEGORY_RADICAL],
|
||||||
|
]);
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI6 extends ServerBlitzKitAPI5 {
|
export abstract class ServerBlitzKitAPI6 extends ServerBlitzKitAPI5 {
|
||||||
@Cache()
|
@Cache()
|
||||||
async consumables() {
|
async consumables() {
|
||||||
const consumableDefinitions = ConsumableDefinitions.create();
|
const consumableDefinitions = ConsumableDefinitions.create();
|
||||||
|
|
||||||
Object.entries(this.consumablesCommon).forEach(([, consumable]) => {
|
Object.entries(this.consumablesCommon).forEach(([key, consumable]) => {
|
||||||
|
const includeRaw = consumable.vehicleFilter?.include.vehicle;
|
||||||
|
const excludeRaw = consumable.vehicleFilter?.exclude?.vehicle;
|
||||||
|
// event-only consumables granted by scripts (like on respawn) skip the
|
||||||
|
// gameModeFilter and instead lock out every tank with an empty tier range
|
||||||
|
// these are the consumables the new tier 11's mount to go goblin mode
|
||||||
|
const game_mode_exclusive =
|
||||||
|
"gameModeFilter" in consumable ||
|
||||||
|
(includeRaw !== undefined &&
|
||||||
|
"minLevel" in includeRaw &&
|
||||||
|
includeRaw.minLevel > includeRaw.maxLevel);
|
||||||
|
const category =
|
||||||
|
consumable.category === undefined
|
||||||
|
? ConsumableCategory.CONSUMABLE_CATEGORY_FREE
|
||||||
|
: CATEGORIES.get(consumable.category);
|
||||||
|
|
||||||
|
if (category === undefined) {
|
||||||
|
throw new SyntaxError(
|
||||||
|
`Unhandled consumable category ${consumable.category}`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const entry: Consumable = {
|
const entry: Consumable = {
|
||||||
id: consumable.id,
|
id: consumable.id,
|
||||||
game_mode_exclusive: "gameModeFilter" in consumable,
|
game_mode_exclusive,
|
||||||
|
category,
|
||||||
name: this.getString(consumable.userString),
|
name: this.getString(consumable.userString),
|
||||||
exclude: [],
|
exclude: [],
|
||||||
include: [],
|
include: [],
|
||||||
};
|
};
|
||||||
consumableDefinitions.consumables[consumable.id] = entry;
|
consumableDefinitions.consumables[consumable.id] = entry;
|
||||||
|
|
||||||
const includeRaw = consumable.vehicleFilter?.include.vehicle;
|
|
||||||
const excludeRaw = consumable.vehicleFilter?.exclude?.vehicle;
|
|
||||||
|
|
||||||
if (includeRaw) {
|
if (includeRaw) {
|
||||||
entry.include = [];
|
entry.include = [];
|
||||||
|
|
||||||
@@ -39,9 +69,7 @@ export abstract class ServerBlitzKitAPI6 extends ServerBlitzKitAPI5 {
|
|||||||
filter_type: {
|
filter_type: {
|
||||||
$case: "ids",
|
$case: "ids",
|
||||||
value: {
|
value: {
|
||||||
ids: includeRaw.name.split(/ +/).map((key) => {
|
ids: this.getTankFilterIds(includeRaw.name, key, "include"),
|
||||||
return this.tankStringIdMap[key];
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -67,9 +95,7 @@ export abstract class ServerBlitzKitAPI6 extends ServerBlitzKitAPI5 {
|
|||||||
filter_type: {
|
filter_type: {
|
||||||
$case: "ids",
|
$case: "ids",
|
||||||
value: {
|
value: {
|
||||||
ids: excludeRaw.name.split(/ +/).map((key) => {
|
ids: this.getTankFilterIds(excludeRaw.name, key, "exclude"),
|
||||||
return this.tankStringIdMap[key];
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { BlitzTankFilterDefinitionCategory } from "@blitzkit/core";
|
import { BlitzTankFilterDefinitionCategory } from "@blitzkit/core";
|
||||||
import { Provision, ProvisionDefinitions } from "@blitzkit/protos";
|
import { Provision, ProvisionDefinitions } from "@blitzkit/protos";
|
||||||
import { Cache } from "./0_base";
|
import { Cache } from "../cache";
|
||||||
import { ServerBlitzKitAPI6 } from "./6_consumables";
|
import { ServerBlitzKitAPI6 } from "./6_consumables";
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI7 extends ServerBlitzKitAPI6 {
|
export abstract class ServerBlitzKitAPI7 extends ServerBlitzKitAPI6 {
|
||||||
@@ -8,7 +8,7 @@ export abstract class ServerBlitzKitAPI7 extends ServerBlitzKitAPI6 {
|
|||||||
async provisions() {
|
async provisions() {
|
||||||
const provisionDefinitions = ProvisionDefinitions.create();
|
const provisionDefinitions = ProvisionDefinitions.create();
|
||||||
|
|
||||||
Object.entries(this.provisionsCommon).forEach(([, provision]) => {
|
Object.entries(this.provisionsCommon).forEach(([key, provision]) => {
|
||||||
const entry = Provision.create({
|
const entry = Provision.create({
|
||||||
id: provision.id,
|
id: provision.id,
|
||||||
exclude: [],
|
exclude: [],
|
||||||
@@ -39,9 +39,7 @@ export abstract class ServerBlitzKitAPI7 extends ServerBlitzKitAPI6 {
|
|||||||
filter_type: {
|
filter_type: {
|
||||||
$case: "ids",
|
$case: "ids",
|
||||||
value: {
|
value: {
|
||||||
ids: includeRaw.name.split(/ +/).map((key) => {
|
ids: this.getTankFilterIds(includeRaw.name, key, "include"),
|
||||||
return this.tankStringIdMap[key];
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -67,9 +65,7 @@ export abstract class ServerBlitzKitAPI7 extends ServerBlitzKitAPI6 {
|
|||||||
filter_type: {
|
filter_type: {
|
||||||
$case: "ids",
|
$case: "ids",
|
||||||
value: {
|
value: {
|
||||||
ids: excludeRaw.name
|
ids: this.getTankFilterIds(excludeRaw.name, key, "exclude"),
|
||||||
.split(/ +/)
|
|
||||||
.map((key) => this.tankStringIdMap[key]),
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { BlitzTankClass } from "@blitzkit/core";
|
import { BlitzTankClass } from "@blitzkit/core";
|
||||||
|
|
||||||
import { SkillDefinitions } from "@blitzkit/protos";
|
import { SkillDefinitions } from "@blitzkit/protos";
|
||||||
import { Cache } from "./0_base";
|
import { Cache } from "../cache";
|
||||||
import { ServerBlitzKitAPI7 } from "./7_provisions";
|
import { ServerBlitzKitAPI7 } from "./7_provisions";
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI8 extends ServerBlitzKitAPI7 {
|
export abstract class ServerBlitzKitAPI8 extends ServerBlitzKitAPI7 {
|
||||||
@@ -17,6 +17,19 @@ export abstract class ServerBlitzKitAPI8 extends ServerBlitzKitAPI7 {
|
|||||||
] = { skills: skills.split(" ") };
|
] = { skills: skills.split(" ") };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (const name in this.tankmenAvatar!.root.skills) {
|
||||||
|
const skill = this.tankmenAvatar!.root.skills[name];
|
||||||
|
const values: Record<string, number> = {};
|
||||||
|
|
||||||
|
for (const key in skill) {
|
||||||
|
const value = skill[key as keyof typeof skill];
|
||||||
|
|
||||||
|
if (typeof value === "number") values[key] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
skillDefinitions.constants[name] = { values };
|
||||||
|
}
|
||||||
|
|
||||||
return skillDefinitions;
|
return skillDefinitions;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { AvailableNationsYaml } from "@blitzkit/core";
|
import { AvailableNationsYaml } from "@blitzkit/core";
|
||||||
|
|
||||||
import { GameDefinitions } from "@blitzkit/protos";
|
import { GameDefinitions } from "@blitzkit/protos";
|
||||||
import { Cache } from "./0_base";
|
import { Cache } from "../cache";
|
||||||
import { ServerBlitzKitAPI8 } from "./8_skills";
|
import { ServerBlitzKitAPI8 } from "./8_skills";
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI9 extends ServerBlitzKitAPI8 {
|
export abstract class ServerBlitzKitAPI9 extends ServerBlitzKitAPI8 {
|
||||||
@@ -20,9 +20,7 @@ export abstract class ServerBlitzKitAPI9 extends ServerBlitzKitAPI8 {
|
|||||||
provisionNativeNames[key] = provision.id;
|
provisionNativeNames[key] = provision.id;
|
||||||
});
|
});
|
||||||
|
|
||||||
const version = (await this.vfs.text("Data/version.txt")).split(" ")[0];
|
gameDefinitions.version = this.version!;
|
||||||
|
|
||||||
gameDefinitions.version = version;
|
|
||||||
gameDefinitions.nations = (
|
gameDefinitions.nations = (
|
||||||
await this.vfs.yaml<AvailableNationsYaml>("Data/available_nations.yaml")
|
await this.vfs.yaml<AvailableNationsYaml>("Data/available_nations.yaml")
|
||||||
).available_nations;
|
).available_nations;
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import { SkillDefinitions } from "@blitzkit/protos";
|
||||||
|
import { createDefaultSkills } from "./createDefaultSkills";
|
||||||
|
import { TankEnvironment } from "./tankEnvironment";
|
||||||
|
|
||||||
|
export function createDefaultEnvironment(skills: SkillDefinitions) {
|
||||||
|
return {
|
||||||
|
equalize: false,
|
||||||
|
distance: 0,
|
||||||
|
skills: createDefaultSkills(skills),
|
||||||
|
} satisfies TankEnvironment;
|
||||||
|
}
|
||||||
@@ -1,12 +1,13 @@
|
|||||||
import { SkillDefinitions } from "..";
|
import { SkillDefinitions } from "@blitzkit/protos";
|
||||||
import { permanentSkills } from "../blitz/permanentSkills";
|
import { permanentSkills } from "../blitz/permanentSkills";
|
||||||
|
import { MAX_SKILL_LEVEL } from "../config/skills";
|
||||||
|
|
||||||
export function createDefaultSkills(skillDefinitions: SkillDefinitions) {
|
export function createDefaultSkills(skillDefinitions: SkillDefinitions) {
|
||||||
const skills: Record<string, number> = {};
|
const skills: Record<string, number> = {};
|
||||||
|
|
||||||
Object.values(skillDefinitions.classes).forEach((tankSkills) => {
|
Object.values(skillDefinitions.classes).forEach((tankSkills) => {
|
||||||
tankSkills.skills.forEach((skill) => {
|
tankSkills.skills.forEach((skill) => {
|
||||||
skills[skill] = permanentSkills.includes(skill) ? 7 : 0;
|
skills[skill] = permanentSkills.includes(skill) ? MAX_SKILL_LEVEL : 0;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ export * from "./api";
|
|||||||
export * from "./assertSecret";
|
export * from "./assertSecret";
|
||||||
export * from "./availableProvisions";
|
export * from "./availableProvisions";
|
||||||
export * from "./coefficient";
|
export * from "./coefficient";
|
||||||
|
export * from "./createDefaultEnvironment";
|
||||||
export * from "./createDefaultProvisions";
|
export * from "./createDefaultProvisions";
|
||||||
export * from "./createDefaultSkills";
|
export * from "./createDefaultSkills";
|
||||||
export * from "./degressiveStat";
|
export * from "./degressiveStat";
|
||||||
@@ -12,7 +13,7 @@ export * from "./environment";
|
|||||||
export * from "./eventManager";
|
export * from "./eventManager";
|
||||||
export * from "./getTimeDaysAgo";
|
export * from "./getTimeDaysAgo";
|
||||||
export * from "./isExplosive";
|
export * from "./isExplosive";
|
||||||
export * from "./metaSortTank";
|
export * from "./metaSortTanks";
|
||||||
export * from "./normalizeBoundingBox";
|
export * from "./normalizeBoundingBox";
|
||||||
export * from "./patientFetchJSON";
|
export * from "./patientFetchJSON";
|
||||||
export * from "./popularTanks";
|
export * from "./popularTanks";
|
||||||
@@ -23,12 +24,13 @@ export * from "./romanize";
|
|||||||
export * from "./sluggify";
|
export * from "./sluggify";
|
||||||
export * from "./staticAsset";
|
export * from "./staticAsset";
|
||||||
export * from "./sum";
|
export * from "./sum";
|
||||||
|
export * from "./tankBoundingBox";
|
||||||
export * from "./tankDefinitions";
|
export * from "./tankDefinitions";
|
||||||
|
export * from "./tankEnvironment";
|
||||||
export * from "./tankIcon";
|
export * from "./tankIcon";
|
||||||
export * from "./tankNames";
|
export * from "./tankNames";
|
||||||
export * from "./unionBoundingBox";
|
export * from "./unionBoundingBox";
|
||||||
export * from "./uniqueGuns";
|
export * from "./uniqueGuns";
|
||||||
export * from "./unwrapBlitzkitResponse";
|
export * from "./unwrapBlitzkitResponse";
|
||||||
export * from "./vfs";
|
|
||||||
export * from "./votes";
|
export * from "./votes";
|
||||||
export * from "./youtubers";
|
export * from "./youtubers";
|
||||||
+1
-1
@@ -2,7 +2,7 @@ import { GameDefinitions, TankDefinition } from "@blitzkit/protos";
|
|||||||
import { tankClassOrder } from "../config/tankClassOrder";
|
import { tankClassOrder } from "../config/tankClassOrder";
|
||||||
import { treeTypeOrder } from "../config/treeTypeOrder";
|
import { treeTypeOrder } from "../config/treeTypeOrder";
|
||||||
|
|
||||||
export function metaSortTank(
|
export function metaSortTanks(
|
||||||
tanks: TankDefinition[],
|
tanks: TankDefinition[],
|
||||||
gameDefinitions: GameDefinitions,
|
gameDefinitions: GameDefinitions,
|
||||||
) {
|
) {
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import { BoundingBox, Vector3 } from "../../../protos/src/blitzkit";
|
import { BoundingBox, ProtoVector3 } from "../../../protos/src/blitzkit";
|
||||||
|
|
||||||
export function normalizeBoundingBox(boundingBox: BoundingBox) {
|
export function normalizeBoundingBox(boundingBox: BoundingBox) {
|
||||||
return {
|
return {
|
||||||
x: boundingBox.max!.x - boundingBox.min!.x,
|
x: boundingBox.max!.x - boundingBox.min!.x,
|
||||||
y: boundingBox.max!.y - boundingBox.min!.y,
|
y: boundingBox.max!.y - boundingBox.min!.y,
|
||||||
z: boundingBox.max!.z - boundingBox.min!.z,
|
z: boundingBox.max!.z - boundingBox.min!.z,
|
||||||
} satisfies Vector3;
|
} satisfies ProtoVector3;
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
import { ModelDefinition, TurretModelDefinition } from "../protos";
|
||||||
|
import { unionBoundingBox } from "./unionBoundingBox";
|
||||||
|
|
||||||
|
export function tankBoundingBox(
|
||||||
|
tankModelDefinition: ModelDefinition,
|
||||||
|
turretModelDefinition: TurretModelDefinition,
|
||||||
|
) {
|
||||||
|
const hull = tankModelDefinition.bounding_box!;
|
||||||
|
const turret = turretModelDefinition.bounding_box!;
|
||||||
|
const origin = tankModelDefinition.turret_origin!;
|
||||||
|
|
||||||
|
if (
|
||||||
|
turret.min!.x === turret.max!.x &&
|
||||||
|
turret.min!.y === turret.max!.y &&
|
||||||
|
turret.min!.z === turret.max!.z
|
||||||
|
) {
|
||||||
|
return unionBoundingBox(hull, hull);
|
||||||
|
}
|
||||||
|
|
||||||
|
return unionBoundingBox(hull, {
|
||||||
|
min: {
|
||||||
|
x: turret.min!.x + origin.x,
|
||||||
|
y: turret.min!.y + origin.z,
|
||||||
|
z: turret.min!.z + origin.y,
|
||||||
|
},
|
||||||
|
max: {
|
||||||
|
x: turret.max!.x + origin.x,
|
||||||
|
y: turret.max!.y + origin.z,
|
||||||
|
z: turret.max!.z + origin.y,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { CrewType, ShellType, TankClass, TankType } from "@blitzkit/protos";
|
import { CrewType, ShellType } from "@blitzkit/protos";
|
||||||
import { times } from "lodash-es";
|
import { times } from "lodash-es";
|
||||||
|
|
||||||
export const SHELL_NAMES: Record<ShellType, string> = {
|
export const SHELL_NAMES: Record<ShellType, string> = {
|
||||||
@@ -15,47 +15,7 @@ export const CREW_MEMBER_NAMES = {
|
|||||||
[CrewType.CREW_TYPE_RADIOMAN]: "radioman",
|
[CrewType.CREW_TYPE_RADIOMAN]: "radioman",
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated use svg
|
|
||||||
*/
|
|
||||||
export const TANK_ICONS: Record<TankClass, string> = {
|
|
||||||
[TankClass.TANK_CLASS_TANK_DESTROYER]: "https://i.imgur.com/BIHSEH0.png",
|
|
||||||
[TankClass.TANK_CLASS_LIGHT]: "https://i.imgur.com/CSNha5V.png",
|
|
||||||
[TankClass.TANK_CLASS_MEDIUM]: "https://i.imgur.com/wvf3ltm.png",
|
|
||||||
[TankClass.TANK_CLASS_HEAVY]: "https://i.imgur.com/ECeqlZa.png",
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @deprecated use svg
|
|
||||||
*/
|
|
||||||
export const TANK_ICONS_PREMIUM: Record<TankClass, string> = {
|
|
||||||
[TankClass.TANK_CLASS_TANK_DESTROYER]: "https://i.imgur.com/TCu3EdR.png",
|
|
||||||
[TankClass.TANK_CLASS_LIGHT]: "https://i.imgur.com/zdkpTRb.png",
|
|
||||||
[TankClass.TANK_CLASS_MEDIUM]: "https://i.imgur.com/3z7eHX6.png",
|
|
||||||
[TankClass.TANK_CLASS_HEAVY]: "https://i.imgur.com/P3vbmyA.png",
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @deprecated use svg
|
|
||||||
*/
|
|
||||||
export const TANK_ICONS_COLLECTOR: Record<TankClass, string> = {
|
|
||||||
[TankClass.TANK_CLASS_TANK_DESTROYER]: "https://i.imgur.com/WTjeirB.png",
|
|
||||||
[TankClass.TANK_CLASS_LIGHT]: "https://i.imgur.com/EwhtKkU.png",
|
|
||||||
[TankClass.TANK_CLASS_MEDIUM]: "https://i.imgur.com/u8YDMBh.png",
|
|
||||||
[TankClass.TANK_CLASS_HEAVY]: "https://i.imgur.com/8xRf3nc.png",
|
|
||||||
};
|
|
||||||
export const TIERS = times(10, (index) => index + 1);
|
export const TIERS = times(10, (index) => index + 1);
|
||||||
export const TIER_ROMAN_NUMERALS: Record<number, string> = {
|
|
||||||
1: "I",
|
|
||||||
2: "II",
|
|
||||||
3: "III",
|
|
||||||
4: "IV",
|
|
||||||
5: "V",
|
|
||||||
6: "VI",
|
|
||||||
7: "VII",
|
|
||||||
8: "VIII",
|
|
||||||
9: "IX",
|
|
||||||
10: "X",
|
|
||||||
11: "XI",
|
|
||||||
};
|
|
||||||
|
|
||||||
export const flags: Record<string, string> = {
|
export const flags: Record<string, string> = {
|
||||||
ussr: "<:ussr:1218421042033197197>",
|
ussr: "<:ussr:1218421042033197197>",
|
||||||
@@ -68,8 +28,3 @@ export const flags: Record<string, string> = {
|
|||||||
european: "🇪🇺",
|
european: "🇪🇺",
|
||||||
other: "<:other:1218421572243558482>",
|
other: "<:other:1218421572243558482>",
|
||||||
};
|
};
|
||||||
export const TREE_TYPE_ICONS: Record<TankType, Record<TankClass, string>> = {
|
|
||||||
[TankType.TANK_TYPE_RESEARCHABLE]: TANK_ICONS,
|
|
||||||
[TankType.TANK_TYPE_PREMIUM]: TANK_ICONS_PREMIUM,
|
|
||||||
[TankType.TANK_TYPE_COLLECTOR]: TANK_ICONS_COLLECTOR,
|
|
||||||
};
|
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
export interface TankEnvironment {
|
||||||
|
equalize: boolean;
|
||||||
|
distance: number;
|
||||||
|
skills: Record<string, number>;
|
||||||
|
}
|
||||||
@@ -3,5 +3,5 @@ import { alias } from "@blitzkit/core";
|
|||||||
export const BLITZKIT_TANK_ICON_SIZE = { width: 40 * 16, height: 30 * 16 };
|
export const BLITZKIT_TANK_ICON_SIZE = { width: 40 * 16, height: 30 * 16 };
|
||||||
|
|
||||||
export function tankIcon(id: number, size: "big" | "small" = "big") {
|
export function tankIcon(id: number, size: "big" | "small" = "big") {
|
||||||
return alias("api", `/tanks/${id}/icons/${size}.webp`);
|
return alias("api", `tanks/${id}/icons/${size}.webp`);
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
export * from "./gunTypeOrder";
|
export * from "./gunTypeOrder";
|
||||||
|
export * from "./skills";
|
||||||
export * from "./tankClassOrder";
|
export * from "./tankClassOrder";
|
||||||
export * from "./treeTypeOrder";
|
export * from "./treeTypeOrder";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export const MAX_SKILL_LEVEL = 7;
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
export enum ImgurSize {
|
|
||||||
/**
|
|
||||||
* The default size
|
|
||||||
*/
|
|
||||||
Default = '',
|
|
||||||
/**
|
|
||||||
* Unknown size but really really small
|
|
||||||
*/
|
|
||||||
UltraSmall = 'ss',
|
|
||||||
/**
|
|
||||||
* 90x90
|
|
||||||
*/
|
|
||||||
SmallSquare = 's',
|
|
||||||
/**
|
|
||||||
* 160x160
|
|
||||||
*/
|
|
||||||
BigSquare = 'b',
|
|
||||||
/**
|
|
||||||
* 160x160
|
|
||||||
*/
|
|
||||||
SmallThumbnail = 't',
|
|
||||||
/**
|
|
||||||
* 320x320
|
|
||||||
*/
|
|
||||||
MediumThumbnail = 'm',
|
|
||||||
/**
|
|
||||||
* 640x640
|
|
||||||
*/
|
|
||||||
LargeThumbnail = 'l',
|
|
||||||
/**
|
|
||||||
* 1024x1024
|
|
||||||
*/
|
|
||||||
HugeThumbnail = 'h',
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ImgurOptions {
|
|
||||||
format: 'jpeg' | 'png';
|
|
||||||
size: ImgurSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
const defaultImgurOptions: ImgurOptions = {
|
|
||||||
format: 'png',
|
|
||||||
size: ImgurSize.Default,
|
|
||||||
};
|
|
||||||
|
|
||||||
export function imgur(id: string, imgurOptions?: Partial<ImgurOptions>) {
|
|
||||||
const options = { ...defaultImgurOptions, ...imgurOptions };
|
|
||||||
|
|
||||||
return `https://i.imgur.com/${id}${options.size}.${options.format}`;
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
export * from './imgur';
|
|
||||||
@@ -2,7 +2,6 @@ export * from "./api";
|
|||||||
export * from "./blitz";
|
export * from "./blitz";
|
||||||
export * from "./blitzkit";
|
export * from "./blitzkit";
|
||||||
export * from "./config";
|
export * from "./config";
|
||||||
export * from "./imgur";
|
|
||||||
export * from "./math";
|
export * from "./math";
|
||||||
export * from "./patreon";
|
export * from "./patreon";
|
||||||
export * from "./statistics";
|
export * from "./statistics";
|
||||||
|
|||||||
+145
-203
@@ -1,5 +1,4 @@
|
|||||||
import { times } from "lodash-es";
|
import { times } from "lodash-es";
|
||||||
import type { Vector3Tuple, Vector4Tuple } from "three";
|
|
||||||
import { WindowsReadStream } from "./windows";
|
import { WindowsReadStream } from "./windows";
|
||||||
|
|
||||||
enum DxgiFormat {
|
enum DxgiFormat {
|
||||||
@@ -127,6 +126,16 @@ enum DxgiFormat {
|
|||||||
FORCE_UINT = 0xffffffff,
|
FORCE_UINT = 0xffffffff,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum BlockFormat {
|
||||||
|
BC1,
|
||||||
|
BC2,
|
||||||
|
BC3,
|
||||||
|
}
|
||||||
|
|
||||||
|
// red, green and blue of a packed 5:6:5 color
|
||||||
|
const CHANNEL_SHIFTS = [11, 5, 0];
|
||||||
|
const CHANNEL_MAXIMUMS = [31, 63, 31];
|
||||||
|
|
||||||
enum DdsDimension {
|
enum DdsDimension {
|
||||||
UNKNOWN = 0,
|
UNKNOWN = 0,
|
||||||
BUFFER = 1,
|
BUFFER = 1,
|
||||||
@@ -180,44 +189,18 @@ export class DdsReadStream extends WindowsReadStream {
|
|||||||
switch (dxgiFormat) {
|
switch (dxgiFormat) {
|
||||||
case DxgiFormat.BC1_TYPELESS:
|
case DxgiFormat.BC1_TYPELESS:
|
||||||
case DxgiFormat.BC1_UNORM:
|
case DxgiFormat.BC1_UNORM:
|
||||||
case DxgiFormat.BC1_UNORM_SRGB: {
|
case DxgiFormat.BC1_UNORM_SRGB:
|
||||||
return this.iterateBlocks(header.width, header.height, () => {
|
return this.decodeBlocks(header.width, header.height, BlockFormat.BC1);
|
||||||
const colorInterpolations = this.bc1ColorInterpolations();
|
|
||||||
const colorKeys = this.bc1ColorKeys();
|
|
||||||
return (index) => colorInterpolations[colorKeys[index]];
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
case DxgiFormat.BC2_TYPELESS:
|
case DxgiFormat.BC2_TYPELESS:
|
||||||
case DxgiFormat.BC2_UNORM:
|
case DxgiFormat.BC2_UNORM:
|
||||||
case DxgiFormat.BC2_UNORM_SRGB: {
|
case DxgiFormat.BC2_UNORM_SRGB:
|
||||||
return this.iterateBlocks(header.width, header.height, () => {
|
return this.decodeBlocks(header.width, header.height, BlockFormat.BC2);
|
||||||
const alphaInterpolations = this.bc2AlphaInterpolations();
|
|
||||||
const colorInterpolations = this.bc2ColorInterpolations();
|
|
||||||
const colorKeys = this.bc1ColorKeys();
|
|
||||||
return (index) => {
|
|
||||||
return [
|
|
||||||
...colorInterpolations[colorKeys[index]],
|
|
||||||
alphaInterpolations[index],
|
|
||||||
];
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
case DxgiFormat.BC3_TYPELESS:
|
case DxgiFormat.BC3_TYPELESS:
|
||||||
case DxgiFormat.BC3_UNORM:
|
case DxgiFormat.BC3_UNORM:
|
||||||
case DxgiFormat.BC3_UNORM_SRGB: {
|
case DxgiFormat.BC3_UNORM_SRGB:
|
||||||
return this.iterateBlocks(header.width, header.height, () => {
|
return this.decodeBlocks(header.width, header.height, BlockFormat.BC3);
|
||||||
const alphaInterpolations = this.bc3AlphaInterpolations();
|
|
||||||
const alphaKeys = this.bc3AlphaKeys();
|
|
||||||
const colorInterpolations = this.bc2ColorInterpolations();
|
|
||||||
const colorKeys = this.bc1ColorKeys();
|
|
||||||
return (index) => [
|
|
||||||
...colorInterpolations[colorKeys[index]],
|
|
||||||
alphaInterpolations[alphaKeys[index]],
|
|
||||||
];
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new TypeError(
|
throw new TypeError(
|
||||||
@@ -299,189 +282,148 @@ export class DdsReadStream extends WindowsReadStream {
|
|||||||
throw new RangeError("Width and height must be divisible by 4");
|
throw new RangeError("Width and height must be divisible by 4");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
iterateBlocks(
|
/**
|
||||||
width: number,
|
* writes each 4x4 block straight into the image; a block's palette is worked
|
||||||
height: number,
|
* out from 0 to 1 and rounded to bytes once, as each pixel would round it
|
||||||
blockIterator: () => (index: number) => Vector4Tuple
|
*/
|
||||||
) {
|
decodeBlocks(width: number, height: number, format: BlockFormat) {
|
||||||
this.assetFactor4(width, height);
|
this.assetFactor4(width, height);
|
||||||
const data = Buffer.alloc(width * height * 4);
|
const data = Buffer.alloc(width * height * 4);
|
||||||
const blocksX = width / 4;
|
const bytes = new Uint8Array(this.buffer);
|
||||||
const blocksY = height / 4;
|
// 4 colors of red, green, blue and alpha
|
||||||
|
const colors = new Uint8Array(16);
|
||||||
|
// BC2 has an alpha per pixel, BC3 a palette of 8
|
||||||
|
const alphas = new Uint8Array(16);
|
||||||
|
|
||||||
times(blocksX * blocksY, (index) => {
|
for (let blockY = 0; blockY < height; blockY += 4) {
|
||||||
const blockPosX = (index % blocksX) * 4;
|
for (let blockX = 0; blockX < width; blockX += 4) {
|
||||||
const blockPosY = Math.floor(index / blocksX) * 4;
|
let index = this.index;
|
||||||
const pixelIterator = blockIterator();
|
// BC3's 3 bit alpha keys, 8 pixels to each half
|
||||||
|
let alphaKeysLow = 0;
|
||||||
|
let alphaKeysHigh = 0;
|
||||||
|
|
||||||
times(16, (pixelIndex) => {
|
if (format === BlockFormat.BC2) {
|
||||||
const pixelPosX = pixelIndex % 4;
|
for (let pixel = 0; pixel < 16; pixel++) {
|
||||||
const pixelPosY = Math.floor(pixelIndex / 4);
|
const alpha =
|
||||||
const x = blockPosX + pixelPosX;
|
(bytes[index + (pixel >> 1)] >> ((pixel & 1) * 4)) & 0b1111;
|
||||||
const y = blockPosY + pixelPosY;
|
|
||||||
const bufferIndex = 4 * (y * width + x);
|
|
||||||
|
|
||||||
pixelIterator(pixelIndex).forEach((channel, index) => {
|
alphas[pixel] = Math.round((alpha / 15) * 255);
|
||||||
data[bufferIndex + index] = Math.round(channel * 255);
|
}
|
||||||
});
|
|
||||||
});
|
index += 8;
|
||||||
});
|
} else if (format === BlockFormat.BC3) {
|
||||||
|
this.bc3Alphas(bytes[index] / 255, bytes[index + 1] / 255, alphas);
|
||||||
|
alphaKeysLow =
|
||||||
|
bytes[index + 2] |
|
||||||
|
(bytes[index + 3] << 8) |
|
||||||
|
(bytes[index + 4] << 16);
|
||||||
|
alphaKeysHigh =
|
||||||
|
bytes[index + 5] |
|
||||||
|
(bytes[index + 6] << 8) |
|
||||||
|
(bytes[index + 7] << 16);
|
||||||
|
index += 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
const int0 = bytes[index] | (bytes[index + 1] << 8);
|
||||||
|
const int1 = bytes[index + 2] | (bytes[index + 3] << 8);
|
||||||
|
const colorKeys =
|
||||||
|
bytes[index + 4] |
|
||||||
|
(bytes[index + 5] << 8) |
|
||||||
|
(bytes[index + 6] << 16) |
|
||||||
|
(bytes[index + 7] << 24);
|
||||||
|
|
||||||
|
// only BC1 has a transparent color
|
||||||
|
this.blockColors(
|
||||||
|
int0,
|
||||||
|
int1,
|
||||||
|
format === BlockFormat.BC1 && int0 < int1,
|
||||||
|
colors
|
||||||
|
);
|
||||||
|
this.index = index + 8;
|
||||||
|
|
||||||
|
for (let pixel = 0; pixel < 16; pixel++) {
|
||||||
|
const offset =
|
||||||
|
4 * ((blockY + (pixel >> 2)) * width + blockX + (pixel & 3));
|
||||||
|
const color = 4 * ((colorKeys >>> (pixel * 2)) & 0b11);
|
||||||
|
|
||||||
|
data[offset] = colors[color];
|
||||||
|
data[offset + 1] = colors[color + 1];
|
||||||
|
data[offset + 2] = colors[color + 2];
|
||||||
|
|
||||||
|
if (format === BlockFormat.BC1) {
|
||||||
|
data[offset + 3] = colors[color + 3];
|
||||||
|
} else if (format === BlockFormat.BC2) {
|
||||||
|
data[offset + 3] = alphas[pixel];
|
||||||
|
} else {
|
||||||
|
const alphaKey =
|
||||||
|
pixel < 8
|
||||||
|
? (alphaKeysLow >> (pixel * 3)) & 0b111
|
||||||
|
: (alphaKeysHigh >> ((pixel - 8) * 3)) & 0b111;
|
||||||
|
|
||||||
|
data[offset + 3] = alphas[alphaKey];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return { data, width, height, channels: 4 as const };
|
return { data, width, height, channels: 4 as const };
|
||||||
}
|
}
|
||||||
|
|
||||||
readR5G6B5Int() {
|
blockColors(
|
||||||
return new DataView(this.read(2)).getUint16(0, true);
|
int0: number,
|
||||||
}
|
int1: number,
|
||||||
R5G6B5() {
|
transparent: boolean,
|
||||||
const buffer = this.consumeUint8Array(2);
|
colors: Uint8Array
|
||||||
const r = (buffer[1] & 0b11111000) >>> 3;
|
) {
|
||||||
const g = ((buffer[1] & 0b111) << 3) | ((buffer[0] & 0b11100000) >>> 5);
|
for (let channel = 0; channel < 3; channel++) {
|
||||||
const b = buffer[0] & 0b11111;
|
const shift = CHANNEL_SHIFTS[channel];
|
||||||
|
const maximum = CHANNEL_MAXIMUMS[channel];
|
||||||
|
const value0 = ((int0 >> shift) & maximum) / maximum;
|
||||||
|
const value1 = ((int1 >> shift) & maximum) / maximum;
|
||||||
|
|
||||||
return [r / 31, g / 63, b / 31] as Vector3Tuple;
|
colors[channel] = Math.round(value0 * 255);
|
||||||
}
|
colors[4 + channel] = Math.round(value1 * 255);
|
||||||
R5G6B5A0() {
|
colors[8 + channel] = Math.round(
|
||||||
return [...this.R5G6B5(), 1] as Vector4Tuple;
|
(transparent ? (value0 + value1) / 2 : (2 * value0 + value1) / 3) * 255
|
||||||
}
|
);
|
||||||
A8() {
|
colors[12 + channel] = transparent
|
||||||
return this.uint8() / 255;
|
? 0
|
||||||
|
: Math.round(((value0 + 2 * value1) / 3) * 255);
|
||||||
|
}
|
||||||
|
|
||||||
|
colors[3] = 255;
|
||||||
|
colors[7] = 255;
|
||||||
|
colors[11] = 255;
|
||||||
|
colors[15] = transparent ? 0 : 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
bc1ColorInterpolations() {
|
bc3Alphas(alpha0: number, alpha1: number, alphas: Uint8Array) {
|
||||||
const int0 = this.readR5G6B5Int();
|
|
||||||
const color0 = this.R5G6B5A0();
|
|
||||||
const int1 = this.readR5G6B5Int();
|
|
||||||
const color1 = this.R5G6B5A0();
|
|
||||||
const alpha = int0 < int1;
|
|
||||||
const color2 = alpha
|
|
||||||
? (color0.map(
|
|
||||||
(channel0, index) => (channel0 + color1[index]) / 2
|
|
||||||
) as Vector4Tuple)
|
|
||||||
: (color0.map(
|
|
||||||
(channel0, index) => (2 * channel0 + color1[index]) / 3
|
|
||||||
) as Vector4Tuple);
|
|
||||||
const color3 = alpha
|
|
||||||
? ([0, 0, 0, 0] as Vector4Tuple)
|
|
||||||
: (color0.map(
|
|
||||||
(channel0, index) => (channel0 + 2 * color1[index]) / 3
|
|
||||||
) as Vector4Tuple);
|
|
||||||
|
|
||||||
return {
|
|
||||||
[0b00]: color0,
|
|
||||||
[0b01]: color1,
|
|
||||||
[0b10]: color2,
|
|
||||||
[0b11]: color3,
|
|
||||||
} as Record<number, Vector4Tuple>;
|
|
||||||
}
|
|
||||||
bc1ColorKeys() {
|
|
||||||
const buffer = this.consumeUint8Array(4);
|
|
||||||
const d = (buffer[0] & 0b11000000) >>> 6;
|
|
||||||
const c = (buffer[0] & 0b110000) >>> 4;
|
|
||||||
const b = (buffer[0] & 0b1100) >>> 2;
|
|
||||||
const a = buffer[0] & 0b11;
|
|
||||||
const h = (buffer[1] & 0b11000000) >>> 6;
|
|
||||||
const g = (buffer[1] & 0b110000) >>> 4;
|
|
||||||
const f = (buffer[1] & 0b1100) >>> 2;
|
|
||||||
const e = buffer[1] & 0b11;
|
|
||||||
const l = (buffer[2] & 0b11000000) >>> 6;
|
|
||||||
const k = (buffer[2] & 0b110000) >>> 4;
|
|
||||||
const j = (buffer[2] & 0b1100) >>> 2;
|
|
||||||
const i = buffer[2] & 0b11;
|
|
||||||
const p = (buffer[3] & 0b11000000) >>> 6;
|
|
||||||
const o = (buffer[3] & 0b110000) >>> 4;
|
|
||||||
const n = (buffer[3] & 0b1100) >>> 2;
|
|
||||||
const m = buffer[3] & 0b11;
|
|
||||||
|
|
||||||
return [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p];
|
|
||||||
}
|
|
||||||
bc2AlphaInterpolations() {
|
|
||||||
const buffer = this.consumeUint8Array(8);
|
|
||||||
const d = (buffer[1] & 0b11110000) >>> 4;
|
|
||||||
const c = buffer[1] & 0b1111;
|
|
||||||
const b = (buffer[0] & 0b11110000) >>> 4;
|
|
||||||
const a = buffer[0] & 0b1111;
|
|
||||||
const h = (buffer[3] & 0b11110000) >>> 4;
|
|
||||||
const g = buffer[3] & 0b1111;
|
|
||||||
const f = (buffer[2] & 0b11110000) >>> 4;
|
|
||||||
const e = buffer[2] & 0b1111;
|
|
||||||
const l = (buffer[5] & 0b11110000) >>> 4;
|
|
||||||
const k = buffer[5] & 0b1111;
|
|
||||||
const j = (buffer[4] & 0b11110000) >>> 4;
|
|
||||||
const i = buffer[4] & 0b1111;
|
|
||||||
const p = (buffer[7] & 0b11110000) >>> 4;
|
|
||||||
const o = buffer[7] & 0b1111;
|
|
||||||
const n = (buffer[6] & 0b11110000) >>> 4;
|
|
||||||
const m = buffer[6] & 0b1111;
|
|
||||||
|
|
||||||
return [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p].map(
|
|
||||||
(alpha) => alpha / 15
|
|
||||||
);
|
|
||||||
}
|
|
||||||
bc2ColorInterpolations() {
|
|
||||||
const color0 = this.R5G6B5();
|
|
||||||
const color1 = this.R5G6B5();
|
|
||||||
const color2 = color0.map(
|
|
||||||
(channel0, index) => (2 * channel0 + color1[index]) / 3
|
|
||||||
) as Vector3Tuple;
|
|
||||||
const color3 = color0.map(
|
|
||||||
(channel0, index) => (channel0 + 2 * color1[index]) / 3
|
|
||||||
) as Vector3Tuple;
|
|
||||||
|
|
||||||
return {
|
|
||||||
[0b00]: color0,
|
|
||||||
[0b01]: color1,
|
|
||||||
[0b10]: color2,
|
|
||||||
[0b11]: color3,
|
|
||||||
} as Record<number, Vector3Tuple>;
|
|
||||||
}
|
|
||||||
bc3AlphaInterpolations() {
|
|
||||||
const alpha0 = this.A8();
|
|
||||||
const alpha1 = this.A8();
|
|
||||||
const full = alpha0 > alpha1;
|
const full = alpha0 > alpha1;
|
||||||
|
const values = full
|
||||||
|
? [
|
||||||
|
alpha0,
|
||||||
|
alpha1,
|
||||||
|
(6 * alpha0 + 1 * alpha1) / 7,
|
||||||
|
(5 * alpha0 + 2 * alpha1) / 7,
|
||||||
|
(4 * alpha0 + 3 * alpha1) / 7,
|
||||||
|
(3 * alpha0 + 4 * alpha1) / 7,
|
||||||
|
(2 * alpha0 + 5 * alpha1) / 7,
|
||||||
|
(1 * alpha0 + 6 * alpha1) / 7,
|
||||||
|
]
|
||||||
|
: [
|
||||||
|
alpha0,
|
||||||
|
alpha1,
|
||||||
|
(4 * alpha0 + 1 * alpha1) / 5,
|
||||||
|
(3 * alpha0 + 2 * alpha1) / 5,
|
||||||
|
(2 * alpha0 + 3 * alpha1) / 5,
|
||||||
|
(1 * alpha0 + 4 * alpha1) / 5,
|
||||||
|
0,
|
||||||
|
// kept as the decoder always had it, which wraps to 1 as a byte
|
||||||
|
255,
|
||||||
|
];
|
||||||
|
|
||||||
return {
|
for (let key = 0; key < 8; key++) {
|
||||||
[0b000]: alpha0,
|
alphas[key] = Math.round(values[key] * 255);
|
||||||
[0b001]: alpha1,
|
}
|
||||||
|
|
||||||
...(full
|
|
||||||
? {
|
|
||||||
[0b010]: (6 * alpha0 + 1 * alpha1) / 7,
|
|
||||||
[0b011]: (5 * alpha0 + 2 * alpha1) / 7,
|
|
||||||
[0b100]: (4 * alpha0 + 3 * alpha1) / 7,
|
|
||||||
[0b101]: (3 * alpha0 + 4 * alpha1) / 7,
|
|
||||||
[0b110]: (2 * alpha0 + 5 * alpha1) / 7,
|
|
||||||
[0b111]: (1 * alpha0 + 6 * alpha1) / 7,
|
|
||||||
}
|
|
||||||
: {
|
|
||||||
[0b010]: (4 * alpha0 + 1 * alpha1) / 5,
|
|
||||||
[0b011]: (3 * alpha0 + 2 * alpha1) / 5,
|
|
||||||
[0b100]: (2 * alpha0 + 3 * alpha1) / 5,
|
|
||||||
[0b101]: (1 * alpha0 + 4 * alpha1) / 5,
|
|
||||||
[0b110]: 0,
|
|
||||||
[0b111]: 255,
|
|
||||||
}),
|
|
||||||
} as Record<number, number>;
|
|
||||||
}
|
|
||||||
bc3AlphaKeys() {
|
|
||||||
const buffer = this.consumeUint8Array(6);
|
|
||||||
const h = (buffer[2] & 0b11100000) >>> 5;
|
|
||||||
const g = (buffer[2] & 0b11100) >>> 2;
|
|
||||||
const f = ((buffer[2] & 0b11) << 1) | ((buffer[1] & 0b10000000) >>> 7);
|
|
||||||
const e = (buffer[1] & 0b1110000) >>> 4;
|
|
||||||
const d = (buffer[1] & 0b1110) >>> 1;
|
|
||||||
const c = ((buffer[1] & 0b1) << 2) | ((buffer[0] & 0b11000000) >>> 6);
|
|
||||||
const b = (buffer[0] & 0b111000) >>> 3;
|
|
||||||
const a = buffer[0] & 0b111;
|
|
||||||
const p = (buffer[5] & 0b11100000) >>> 5;
|
|
||||||
const o = (buffer[5] & 0b11100) >>> 2;
|
|
||||||
const n = ((buffer[5] & 0b11) << 1) | ((buffer[4] & 0b10000000) >>> 7);
|
|
||||||
const m = (buffer[4] & 0b1110000) >>> 4;
|
|
||||||
const l = (buffer[4] & 0b1110) >>> 1;
|
|
||||||
const k = ((buffer[4] & 0b1) << 2) | ((buffer[3] & 0b11000000) >>> 6);
|
|
||||||
const j = (buffer[3] & 0b111000) >>> 3;
|
|
||||||
const i = buffer[3] & 0b111;
|
|
||||||
|
|
||||||
return [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -88,6 +88,7 @@ enum PvrChannelType {
|
|||||||
|
|
||||||
enum ResolvedBitRatePixelFormat {
|
enum ResolvedBitRatePixelFormat {
|
||||||
R4G4B4A4,
|
R4G4B4A4,
|
||||||
|
R8G8B8A8,
|
||||||
R5G6B5A0,
|
R5G6B5A0,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -137,6 +138,27 @@ export class PvrReadStream extends ReadStream {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case ResolvedBitRatePixelFormat.R8G8B8A8: {
|
||||||
|
const data = Buffer.alloc(pixelCount * 4);
|
||||||
|
|
||||||
|
times(pixelCount, (index) => {
|
||||||
|
const buffer = this.consumeUint8Array(4);
|
||||||
|
const bufferIndex = index * 4;
|
||||||
|
|
||||||
|
data[bufferIndex] = buffer[0]; // R
|
||||||
|
data[bufferIndex + 1] = buffer[1]; // G
|
||||||
|
data[bufferIndex + 2] = buffer[2]; // B
|
||||||
|
data[bufferIndex + 3] = buffer[3]; // A
|
||||||
|
});
|
||||||
|
|
||||||
|
return {
|
||||||
|
data,
|
||||||
|
width: header.width,
|
||||||
|
height: header.height,
|
||||||
|
channels: 4 as const,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
case ResolvedBitRatePixelFormat.R5G6B5A0: {
|
case ResolvedBitRatePixelFormat.R5G6B5A0: {
|
||||||
const data = Buffer.alloc(pixelCount * 3);
|
const data = Buffer.alloc(pixelCount * 3);
|
||||||
|
|
||||||
@@ -208,10 +230,13 @@ export class PvrReadStream extends ReadStream {
|
|||||||
if (pixelFormat.order === "rgba") {
|
if (pixelFormat.order === "rgba") {
|
||||||
if (isEqual(pixelFormat.bitRates, [4, 4, 4, 4])) {
|
if (isEqual(pixelFormat.bitRates, [4, 4, 4, 4])) {
|
||||||
return ResolvedBitRatePixelFormat.R4G4B4A4;
|
return ResolvedBitRatePixelFormat.R4G4B4A4;
|
||||||
} else
|
} else if (isEqual(pixelFormat.bitRates, [8, 8, 8, 8])) {
|
||||||
|
return ResolvedBitRatePixelFormat.R8G8B8A8;
|
||||||
|
} else {
|
||||||
throw new TypeError(
|
throw new TypeError(
|
||||||
`Unhandled rgba bit rate ${pixelFormat.bitRates.join(", ")}`,
|
`Unhandled rgba bit rate ${pixelFormat.bitRates.join(", ")}`,
|
||||||
);
|
);
|
||||||
|
}
|
||||||
} else if (pixelFormat.order === "rgb\0") {
|
} else if (pixelFormat.order === "rgb\0") {
|
||||||
if (isEqual(pixelFormat.bitRates, [5, 6, 5, 0])) {
|
if (isEqual(pixelFormat.bitRates, [5, 6, 5, 0])) {
|
||||||
return ResolvedBitRatePixelFormat.R5G6B5A0;
|
return ResolvedBitRatePixelFormat.R5G6B5A0;
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ export interface ConfigArchive {
|
|||||||
|
|
||||||
interface EnabledPresets {
|
interface EnabledPresets {
|
||||||
AlphaTest: boolean;
|
AlphaTest: boolean;
|
||||||
|
AlphaBlend?: boolean;
|
||||||
|
AlphaBlendAdditive?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Flags {
|
interface Flags {
|
||||||
@@ -90,6 +92,28 @@ export interface Hierarchy {
|
|||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function parseHierarchies<Parent>(
|
||||||
|
hierarchies: Hierarchy[],
|
||||||
|
parent: Parent,
|
||||||
|
parseHierarchy: (
|
||||||
|
hierarchy: Hierarchy,
|
||||||
|
components: Component[],
|
||||||
|
parent: Parent,
|
||||||
|
) => Parent | undefined,
|
||||||
|
) {
|
||||||
|
for (const hierarchy of hierarchies) {
|
||||||
|
const components = Array.from(
|
||||||
|
{ length: hierarchy.components.count },
|
||||||
|
(_, index) => hierarchy.components[index.toString().padStart(4, "0")],
|
||||||
|
);
|
||||||
|
const child = parseHierarchy(hierarchy, components, parent);
|
||||||
|
|
||||||
|
if (child !== undefined && hierarchy["#hierarchy"]) {
|
||||||
|
parseHierarchies(hierarchy["#hierarchy"], child, parseHierarchy);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 0001, 0002, 0003...: Component
|
// 0001, 0002, 0003...: Component
|
||||||
type Components = {
|
type Components = {
|
||||||
count: number;
|
count: number;
|
||||||
@@ -113,6 +137,13 @@ interface RbAabbox {
|
|||||||
maximum: number[];
|
maximum: number[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ComponentName = Component["comp.typename"];
|
||||||
|
|
||||||
|
export type ComponentOf<Name extends ComponentName> = Extract<
|
||||||
|
Component,
|
||||||
|
{ "comp.typename": Name }
|
||||||
|
>;
|
||||||
|
|
||||||
export type Component =
|
export type Component =
|
||||||
| {
|
| {
|
||||||
"comp.typename": "TransformComponent";
|
"comp.typename": "TransformComponent";
|
||||||
@@ -134,7 +165,11 @@ export type Component =
|
|||||||
"ro.notShadowOnly": boolean;
|
"ro.notShadowOnly": boolean;
|
||||||
"ro.sOclCull": boolean;
|
"ro.sOclCull": boolean;
|
||||||
"ro.sOclIndex": number;
|
"ro.sOclIndex": number;
|
||||||
} & Record<`rb${number}.${"lodIndex" | "switchIndex"}`, number>;
|
} & Record<`rb${number}.${"lodIndex" | "switchIndex"}`, number> &
|
||||||
|
Record<
|
||||||
|
`skinnedObject.batch${number}.targetsData`,
|
||||||
|
ArrayBuffer | undefined
|
||||||
|
>;
|
||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
"comp.typename": "SlotComponent";
|
"comp.typename": "SlotComponent";
|
||||||
@@ -238,7 +273,8 @@ export type Component =
|
|||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
"comp.typename": "MotionComponent";
|
"comp.typename": "MotionComponent";
|
||||||
"motion.filepath": string;
|
// absent on some skins (Oth99_Relic_hull_skin) that only carry playback settings
|
||||||
|
"motion.filepath"?: string;
|
||||||
"motion.playbackRate": number;
|
"motion.playbackRate": number;
|
||||||
"simpleMotion.repeatsCount": number;
|
"simpleMotion.repeatsCount": number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,13 +16,16 @@ interface PolygonGroupRaw {
|
|||||||
vertices: ArrayBuffer;
|
vertices: ArrayBuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
type BlitzkitVertex = { attribute: VertexAttribute; value: number[] }[];
|
export type Vertex = { attribute: VertexAttribute; value: number[] }[];
|
||||||
|
|
||||||
interface BlitzkitPolygonGroup {
|
export interface PolygonGroup {
|
||||||
vertices: BlitzkitVertex[];
|
vertices: Vertex[];
|
||||||
indices: number[];
|
indices: number[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** polygon group id -> polygon group */
|
||||||
|
export type ScgPolygonGroups = Map<bigint, PolygonGroup>;
|
||||||
|
|
||||||
const vertexAttributesArray = Object.values(VertexAttribute).filter(
|
const vertexAttributesArray = Object.values(VertexAttribute).filter(
|
||||||
(value) => typeof value === "number",
|
(value) => typeof value === "number",
|
||||||
);
|
);
|
||||||
@@ -63,7 +66,7 @@ export class ScgReadStream extends ScpgReadStream {
|
|||||||
scg() {
|
scg() {
|
||||||
const header = this.header();
|
const header = this.header();
|
||||||
const polygonGroupsRaw: PolygonGroupRaw[] = [];
|
const polygonGroupsRaw: PolygonGroupRaw[] = [];
|
||||||
const polygonGroups = new Map<bigint, BlitzkitPolygonGroup>();
|
const polygonGroups = new Map<bigint, PolygonGroup>();
|
||||||
|
|
||||||
for (let index = 0; index < header.nodeCount; index++) {
|
for (let index = 0; index < header.nodeCount; index++) {
|
||||||
const polygonGroupRaw = this.ka() as PolygonGroupRaw;
|
const polygonGroupRaw = this.ka() as PolygonGroupRaw;
|
||||||
@@ -83,7 +86,7 @@ export class ScgReadStream extends ScpgReadStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const verticesStream = new ScpgReadStream(polygonGroupRaw.vertices);
|
const verticesStream = new ScpgReadStream(polygonGroupRaw.vertices);
|
||||||
const vertices: BlitzkitVertex[] = [];
|
const vertices: Vertex[] = [];
|
||||||
const { format, stride } = ScgReadStream.parseVertexFormat(
|
const { format, stride } = ScgReadStream.parseVertexFormat(
|
||||||
polygonGroupRaw.vertexFormat,
|
polygonGroupRaw.vertexFormat,
|
||||||
);
|
);
|
||||||
@@ -110,7 +113,7 @@ export class ScgReadStream extends ScpgReadStream {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
return polygonGroups;
|
return polygonGroups satisfies ScgPolygonGroups;
|
||||||
}
|
}
|
||||||
|
|
||||||
static parseVertexFormat(formatInt: number) {
|
static parseVertexFormat(formatInt: number) {
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
// What an augment attribute shows, by attribute name
|
||||||
|
export interface AugmentAttributeDefinition {
|
||||||
|
icon: string;
|
||||||
|
title: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AugmentAttributeDefinitions = Map<
|
||||||
|
string,
|
||||||
|
AugmentAttributeDefinition
|
||||||
|
>;
|
||||||
@@ -4,6 +4,14 @@ export type BlitzEffectScript = RSN & {
|
|||||||
|
|
||||||
cooldown?: number;
|
cooldown?: number;
|
||||||
duration?: number;
|
duration?: number;
|
||||||
|
aimingSpeed?: number;
|
||||||
|
gunDispersionModifier?: number;
|
||||||
|
activateWithoutDamage?: boolean;
|
||||||
|
targetOrder?: boolean;
|
||||||
|
// A placeholder gun the ability fires, as `nation:gun`, and what it resolves to
|
||||||
|
gun?: string;
|
||||||
|
allowSwitchAfterKill?: boolean;
|
||||||
|
allowNonDamagingHits?: boolean;
|
||||||
startCooldown?: number;
|
startCooldown?: number;
|
||||||
|
|
||||||
automatic?: boolean;
|
automatic?: boolean;
|
||||||
@@ -52,10 +60,6 @@ interface ModuleConstants {
|
|||||||
modules: Record<string, number | number[]>;
|
modules: Record<string, number | number[]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ModulesMaxHPFactorsModules {
|
|
||||||
ammoBayHealth: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ChangesToHit {
|
interface ChangesToHit {
|
||||||
crew: number;
|
crew: number;
|
||||||
modules: RSN;
|
modules: RSN;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { BlitzEffectScript } from "./blitzEffectScript";
|
import type { BlitzEffectScript } from "./blitzEffectScript";
|
||||||
|
|
||||||
export interface BlitzScripts {
|
export interface BlitzScripts {
|
||||||
consumables: Record<number, BlitzEffectScript>;
|
consumables: Record<number, BlitzEffectScript>;
|
||||||
|
|||||||
@@ -3,5 +3,12 @@ export type CamouflagesYaml = Record<
|
|||||||
{
|
{
|
||||||
userString?: string;
|
userString?: string;
|
||||||
shortUserString?: string;
|
shortUserString?: string;
|
||||||
|
preset?: string;
|
||||||
|
customEntities?: Record<string, { item: string }>;
|
||||||
|
// nation -> tank
|
||||||
|
override?: Record<
|
||||||
|
string,
|
||||||
|
{ override?: Record<string, { preset?: string }> }
|
||||||
|
>;
|
||||||
}
|
}
|
||||||
>;
|
>;
|
||||||
@@ -7,7 +7,8 @@ export interface ConsumablesCommon {
|
|||||||
userString: string;
|
userString: string;
|
||||||
description: string;
|
description: string;
|
||||||
icon: string;
|
icon: string;
|
||||||
category: string;
|
// absent on built-in vehicle abilities
|
||||||
|
category?: string;
|
||||||
tags: string;
|
tags: string;
|
||||||
vehicleFilter?: {
|
vehicleFilter?: {
|
||||||
include: { vehicle: ConsumablesVehicleFilter; nations?: string };
|
include: { vehicle: ConsumablesVehicleFilter; nations?: string };
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ export interface GunDefinitionsList {
|
|||||||
[key: string]: {
|
[key: string]: {
|
||||||
rotationSpeed: number;
|
rotationSpeed: number;
|
||||||
weight: number;
|
weight: number;
|
||||||
|
reloadTime?: number;
|
||||||
shotDispersionFactors: {
|
shotDispersionFactors: {
|
||||||
turretRotation: number;
|
turretRotation: number;
|
||||||
afterShot: number;
|
afterShot: number;
|
||||||
@@ -17,14 +18,21 @@ export interface GunDefinitionsList {
|
|||||||
tags: string;
|
tags: string;
|
||||||
level: number;
|
level: number;
|
||||||
pitchLimits: string;
|
pitchLimits: string;
|
||||||
|
extraPitchLimits?: {
|
||||||
|
front?: string;
|
||||||
|
back?: string;
|
||||||
|
transition?: number | number[];
|
||||||
|
};
|
||||||
burst?: { count: number; rate: number };
|
burst?: { count: number; rate: number };
|
||||||
clip?: { count: number; rate: number };
|
clip?: { count: number; rate: number };
|
||||||
shots: {
|
shots: {
|
||||||
[key: string]: {
|
[key: string]:
|
||||||
speed: number;
|
| ""
|
||||||
piercingPower: string;
|
| {
|
||||||
maxDistance: number;
|
speed: number;
|
||||||
};
|
piercingPower: string;
|
||||||
|
maxDistance: number;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
|
export * from "./augmentAttributeDefinitions";
|
||||||
export * from "./availableNationsYaml";
|
export * from "./availableNationsYaml";
|
||||||
|
export * from "./blitzEffectScript";
|
||||||
export * from "./blitzModuleType";
|
export * from "./blitzModuleType";
|
||||||
|
export * from "./blitzScripts";
|
||||||
export * from "./blitzStrings";
|
export * from "./blitzStrings";
|
||||||
export * from "./blitzTankFilterDefinitionCategory";
|
export * from "./blitzTankFilterDefinitionCategory";
|
||||||
export * from "./camouflagesXml";
|
export * from "./camouflagesXml";
|
||||||
@@ -21,7 +24,11 @@ export * from "./squadBattleTypeStylesYaml";
|
|||||||
export * from "./tankmenAvatar";
|
export * from "./tankmenAvatar";
|
||||||
export * from "./tankParameters";
|
export * from "./tankParameters";
|
||||||
export * from "./tanksStats";
|
export * from "./tanksStats";
|
||||||
|
export * from "./techTreeLayoutYaml";
|
||||||
export * from "./turretDefinitionsList";
|
export * from "./turretDefinitionsList";
|
||||||
|
export * from "./upgradeProgressionXml";
|
||||||
|
export * from "./vehicleAbilityItem";
|
||||||
export * from "./vehicleDefinitionArmor";
|
export * from "./vehicleDefinitionArmor";
|
||||||
export * from "./vehicleDefinitionList";
|
export * from "./vehicleDefinitionList";
|
||||||
export * from "./vehicleDefinitions";
|
export * from "./vehicleDefinitions";
|
||||||
|
export * from "./vehicleFilter";
|
||||||
@@ -1,17 +1,22 @@
|
|||||||
export type ShellDefinitionsList = Record<
|
// A shell as its shells.xml entry lists it
|
||||||
string,
|
export interface ShellDefinitionXml {
|
||||||
{
|
id: number;
|
||||||
id: number;
|
userString: string;
|
||||||
userString: string;
|
icon: string;
|
||||||
icon: string;
|
kind: ShellKind;
|
||||||
kind: ShellKind;
|
caliber: number;
|
||||||
caliber: number;
|
damage: { armor: number; devices: number };
|
||||||
damage: { armor: number; devices: number };
|
normalizationAngle?: number;
|
||||||
normalizationAngle?: number;
|
ricochetAngle?: number;
|
||||||
ricochetAngle?: number;
|
explosionRadius?: number;
|
||||||
explosionRadius?: number;
|
speed: number;
|
||||||
}
|
maxDistance: number;
|
||||||
> & {
|
acceleration?: number;
|
||||||
|
maxSpeed?: number;
|
||||||
|
piercingPower: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ShellDefinitionsList = Record<string, ShellDefinitionXml> & {
|
||||||
icons: Record<string, string>;
|
icons: Record<string, string>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
export interface TechTreeLayoutYamlModule {
|
||||||
|
position: [number, number];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface TechTreeLayoutYaml {
|
||||||
|
modules?: Record<string, TechTreeLayoutYamlModule>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
// Parsed with attributes and with these elements forced to arrays, see
|
||||||
|
// `AbstractVFS.xmlWithAttributes`
|
||||||
|
|
||||||
|
// Plain text unless the connector carries `verticalFirst`
|
||||||
|
export type UpgradeProgressionXmlRequirement =
|
||||||
|
| string
|
||||||
|
// Attribute values stay strings
|
||||||
|
| { "#text": string; "@_verticalFirst"?: string };
|
||||||
|
|
||||||
|
export interface UpgradeProgressionXmlAttribute {
|
||||||
|
attributeName: string;
|
||||||
|
// Numbers, or `true`/`false` for switches
|
||||||
|
value: number | boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UpgradeProgressionXmlNode {
|
||||||
|
id: number;
|
||||||
|
techName: string;
|
||||||
|
nodeType:
|
||||||
|
| "NODETYPE_COMMON"
|
||||||
|
| "NODETYPE_MECHANIC"
|
||||||
|
| "NODETYPE_ALTERNATIVE_MECHANIC";
|
||||||
|
xpCost?: number;
|
||||||
|
displayName?: string;
|
||||||
|
icon?: string;
|
||||||
|
gridPosition?: { row: number; column: number };
|
||||||
|
// Empty elements parse to an empty string
|
||||||
|
requiredNodes?: "" | { node: UpgradeProgressionXmlRequirement[] };
|
||||||
|
attributes?: { attribute: UpgradeProgressionXmlAttribute[] };
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UpgradeProgressionXmlGroup {
|
||||||
|
techName: string;
|
||||||
|
displayName: string;
|
||||||
|
description: string;
|
||||||
|
icon?: string;
|
||||||
|
xpCost: number;
|
||||||
|
gridPosition: { row: number; column: number };
|
||||||
|
requiredNodes: { node: UpgradeProgressionXmlRequirement[] };
|
||||||
|
alternativeNodes: { node: string[] };
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UpgradeProgressionXml {
|
||||||
|
matrix: { rows: number; columns: number };
|
||||||
|
alternativeMechanicGroups?: {
|
||||||
|
alternativeMechanicGroup: UpgradeProgressionXmlGroup[];
|
||||||
|
};
|
||||||
|
nodes: { node: UpgradeProgressionXmlNode[] };
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UpgradeAttributesXml {
|
||||||
|
root: {
|
||||||
|
attributes: {
|
||||||
|
attribute: {
|
||||||
|
attributeName: string;
|
||||||
|
icon: string;
|
||||||
|
title: string;
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import type { AbilitySource } from "@blitzkit/protos";
|
||||||
|
|
||||||
|
// A hidden provision or consumable the game marks as a vehicle ability.
|
||||||
|
// `vehicleNames` is its filter's list of tanks, when it has one
|
||||||
|
export interface VehicleAbilityItem {
|
||||||
|
source: AbilitySource;
|
||||||
|
id: number;
|
||||||
|
vehicleNames?: string[];
|
||||||
|
// The placeholder gun the ability fires, as `nation:gun`
|
||||||
|
gun?: string;
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { BlitzModuleType } from "@blitzkit/core";
|
import { BlitzModuleType, VehicleDefinitionArmor } from "@blitzkit/core";
|
||||||
|
|
||||||
export interface VehicleDefinitions {
|
export interface VehicleDefinitions {
|
||||||
invisibility: {
|
invisibility: {
|
||||||
@@ -13,6 +13,8 @@ export interface VehicleDefinitions {
|
|||||||
};
|
};
|
||||||
consumableSlots: number;
|
consumableSlots: number;
|
||||||
provisionSlots: number;
|
provisionSlots: number;
|
||||||
|
// Tier 11 tanks only, parsed separately because it needs attributes
|
||||||
|
upgradeProgression?: object;
|
||||||
optDevicePreset: string | string[];
|
optDevicePreset: string | string[];
|
||||||
hull: {
|
hull: {
|
||||||
armor: VehicleDefinitionArmor;
|
armor: VehicleDefinitionArmor;
|
||||||
@@ -76,48 +78,7 @@ export interface VehicleDefinitions {
|
|||||||
collisionModel: string;
|
collisionModel: string;
|
||||||
};
|
};
|
||||||
guns: {
|
guns: {
|
||||||
[key: string]: {
|
[key: string]: VehicleDefinitionGun;
|
||||||
unlocks: UnlocksListing;
|
|
||||||
armor: VehicleDefinitionArmor & {
|
|
||||||
gun?:
|
|
||||||
| number
|
|
||||||
| {
|
|
||||||
chanceToHitByProjectile: number;
|
|
||||||
chanceToHitByExplosion: number;
|
|
||||||
"#text": number;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
invisibilityFactorAtShot: number | number[];
|
|
||||||
reloadTime: number;
|
|
||||||
aimingTime?: number;
|
|
||||||
shotDispersionRadius: number;
|
|
||||||
shotDispersionFactors?: {
|
|
||||||
turretRotation: number;
|
|
||||||
afterShot: number;
|
|
||||||
whileGunDamaged: number;
|
|
||||||
};
|
|
||||||
maxAmmo: number;
|
|
||||||
extraPitchLimits?: {
|
|
||||||
front?: string;
|
|
||||||
back?: string;
|
|
||||||
transition?: number | number[];
|
|
||||||
};
|
|
||||||
pitchLimits?: string | string[];
|
|
||||||
pumpGunMode?: boolean;
|
|
||||||
pumpGunReloadTimes?: string;
|
|
||||||
clip?: { count: number; rate: number };
|
|
||||||
burst?: { count: number; rate: number };
|
|
||||||
models: { undamaged: string };
|
|
||||||
extras?: {
|
|
||||||
trayShell?: {
|
|
||||||
kinds: string;
|
|
||||||
sectors: Record<
|
|
||||||
string,
|
|
||||||
{ id: number; distance: number; factor: number }[]
|
|
||||||
>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -152,3 +113,47 @@ export type BlitzCrewType =
|
|||||||
| "loader";
|
| "loader";
|
||||||
|
|
||||||
export type UnlocksListing = BlitzModuleType | undefined;
|
export type UnlocksListing = BlitzModuleType | undefined;
|
||||||
|
|
||||||
|
// A turret gun as its tank lists it, which overrides the shared gun entry
|
||||||
|
export interface VehicleDefinitionGun {
|
||||||
|
unlocks: UnlocksListing;
|
||||||
|
armor: VehicleDefinitionArmor & {
|
||||||
|
gun?:
|
||||||
|
| number
|
||||||
|
| {
|
||||||
|
chanceToHitByProjectile: number;
|
||||||
|
chanceToHitByExplosion: number;
|
||||||
|
"#text": number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
invisibilityFactorAtShot: number | number[];
|
||||||
|
reloadTime: number;
|
||||||
|
aimingTime?: number;
|
||||||
|
shotDispersionRadius: number;
|
||||||
|
shotDispersionFactors?: {
|
||||||
|
turretRotation: number;
|
||||||
|
afterShot: number;
|
||||||
|
whileGunDamaged: number;
|
||||||
|
};
|
||||||
|
maxAmmo: number;
|
||||||
|
extraPitchLimits?: {
|
||||||
|
front?: string;
|
||||||
|
back?: string;
|
||||||
|
transition?: number | number[];
|
||||||
|
};
|
||||||
|
pitchLimits?: string | string[];
|
||||||
|
pumpGunMode?: boolean;
|
||||||
|
pumpGunReloadTimes?: string;
|
||||||
|
clip?: { count: number; rate: number };
|
||||||
|
burst?: { count: number; rate: number };
|
||||||
|
models: { undamaged: string };
|
||||||
|
extras?: {
|
||||||
|
trayShell?: {
|
||||||
|
kinds: string;
|
||||||
|
sectors: Record<
|
||||||
|
string,
|
||||||
|
{ id: number; distance: number; factor: number }[]
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export interface VehicleFilter {
|
||||||
|
include?: { vehicle?: { name?: string } | { name?: string }[] };
|
||||||
|
}
|
||||||
@@ -36,8 +36,8 @@
|
|||||||
{
|
{
|
||||||
"locale": "zh",
|
"locale": "zh",
|
||||||
|
|
||||||
"variant_blitz_local": "zh_Hans_SG",
|
"variant_blitz_glossary": "zh_Hans_SG",
|
||||||
"variant_blitz_cdn": "zh-Hans",
|
"variant_blitz_strings": "zh-Hans",
|
||||||
|
|
||||||
"flag": "🇨🇳"
|
"flag": "🇨🇳"
|
||||||
}
|
}
|
||||||
|
|||||||
+440
-132
@@ -1,4 +1,179 @@
|
|||||||
{
|
{
|
||||||
|
"navbar": {
|
||||||
|
"home": "Home",
|
||||||
|
"settings": "Settings"
|
||||||
|
},
|
||||||
|
|
||||||
|
"settings": {
|
||||||
|
"language": "Language",
|
||||||
|
"device_preference": "Device preference",
|
||||||
|
"auto_load_models": "Auto-load models",
|
||||||
|
"reduce_motion": {
|
||||||
|
"title": "Reduce motion",
|
||||||
|
"on": "On",
|
||||||
|
"off": "Off"
|
||||||
|
},
|
||||||
|
"developer_mode": "Developer mode"
|
||||||
|
},
|
||||||
|
|
||||||
|
"mixer": {
|
||||||
|
"screenshot": "Screenshot",
|
||||||
|
"randomize": "Randomize"
|
||||||
|
},
|
||||||
|
|
||||||
|
"guesser": {
|
||||||
|
"help": {
|
||||||
|
"title": "Partially reveal tank?",
|
||||||
|
"description": "Reveals the tank without showing the name. This round will be considered incorrect!",
|
||||||
|
"cancel": "Cancel",
|
||||||
|
"reveal": "Reveal"
|
||||||
|
},
|
||||||
|
|
||||||
|
"search": {
|
||||||
|
"skip": "Skip",
|
||||||
|
"guess": "Guess",
|
||||||
|
"next": "Next"
|
||||||
|
},
|
||||||
|
|
||||||
|
"stats": "{correct} / {total} correct, {streak} streak",
|
||||||
|
"stats_untracked": "The score is not tracked when not all tiers are selected",
|
||||||
|
"tier": "Tier {tier}",
|
||||||
|
"select_all": "Select all",
|
||||||
|
"clear": "Clear"
|
||||||
|
},
|
||||||
|
|
||||||
|
"embed": {
|
||||||
|
"coming_soon": "More embeds coming soon.",
|
||||||
|
"suggest": "Suggest ideas.",
|
||||||
|
"preview": {
|
||||||
|
"title": "Example preview",
|
||||||
|
"upload": "Upload test background"
|
||||||
|
},
|
||||||
|
"configuration": {
|
||||||
|
"import": {
|
||||||
|
"title": "Import",
|
||||||
|
"description": "Paste your current URL if you have one already to import your settings",
|
||||||
|
"hint": "Paste URL...",
|
||||||
|
"apply": "Apply",
|
||||||
|
"applied": "Applied!",
|
||||||
|
"idiot_title": "Invalid URL",
|
||||||
|
"idiot_description": "Try pasting the URL that BlitzKit previously generated, you silly goose!",
|
||||||
|
"idiot_button": "Okay, my bad"
|
||||||
|
},
|
||||||
|
"export": {
|
||||||
|
"title": "Export",
|
||||||
|
"description": "Copy all properties for you streaming software",
|
||||||
|
"generate": {
|
||||||
|
"button": "Generate URL",
|
||||||
|
"title": "Generate URL",
|
||||||
|
"subtitle": "Search an account to track",
|
||||||
|
"cancel": "Cancel",
|
||||||
|
"success": {
|
||||||
|
"title": "Copy URL",
|
||||||
|
"info": "Generated the URL for {name}. The embed will start tracking as soon as the URL is pasted. Reset at any time by right-clicking on PC or long-pressing on mobile and then selecting \"Reset\".",
|
||||||
|
"back": "Back",
|
||||||
|
"copy": "Copy URL"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"css": "Copy CSS",
|
||||||
|
"width": "Copy Width",
|
||||||
|
"height": "Copy Height",
|
||||||
|
"framerate": "Copy Framerate"
|
||||||
|
},
|
||||||
|
"customize": {
|
||||||
|
"title": "Customize",
|
||||||
|
"reset": "Reset",
|
||||||
|
"description": "Bells and whistles of your embed"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"types": {
|
||||||
|
"breakdown": {
|
||||||
|
"name": "Breakdown",
|
||||||
|
"reset": "Reset",
|
||||||
|
"options": {
|
||||||
|
"width": "Width",
|
||||||
|
"height": "Height",
|
||||||
|
"show_total": "Show total",
|
||||||
|
"list_gap": "List gap",
|
||||||
|
"list_max_tanks": "Max tanks",
|
||||||
|
"card_radius": "Card radius",
|
||||||
|
"card_header_background_color": "Card header background color",
|
||||||
|
"card_header_padding": "Card header padding",
|
||||||
|
"card_title": "Card title",
|
||||||
|
"card_title_type_color": "Card title type color",
|
||||||
|
"card_title_class_icon": "Card title class icon",
|
||||||
|
"card_body_background_color": "Card body background color",
|
||||||
|
"card_body_padding": "Card body padding",
|
||||||
|
"column_gap": "Column gap",
|
||||||
|
"column_value": "Column value",
|
||||||
|
"column_label": "Column label",
|
||||||
|
"column_1": "Column 1",
|
||||||
|
"column_2": "Column 2",
|
||||||
|
"column_3": "Column 3",
|
||||||
|
"column_4": "Column 4",
|
||||||
|
"column_1_custom_label": "Column 1 label",
|
||||||
|
"column_2_custom_label": "Column 2 label",
|
||||||
|
"column_3_custom_label": "Column 3 label"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"compare": {
|
||||||
|
"no_tanks": {
|
||||||
|
"title": "No tanks to compare",
|
||||||
|
"body": "Add a tank to get started"
|
||||||
|
},
|
||||||
|
"add": {
|
||||||
|
"button": "Add",
|
||||||
|
"title": "Add tank",
|
||||||
|
"description": "Select a tank to add to the comparison"
|
||||||
|
},
|
||||||
|
"swap_dialog": {
|
||||||
|
"title": "Swap tank",
|
||||||
|
"description": "Select a tank to replace this one"
|
||||||
|
},
|
||||||
|
"clear": "Clear",
|
||||||
|
"deltas": {
|
||||||
|
"label": "Deltas",
|
||||||
|
"none": "No deltas",
|
||||||
|
"percentage": "Percentage",
|
||||||
|
"absolute": "Absolute"
|
||||||
|
},
|
||||||
|
"sync_shells": "Sync shells",
|
||||||
|
"equalize": "Equalize",
|
||||||
|
"loadout": "Loadout",
|
||||||
|
"stock": "Stock",
|
||||||
|
"apply_to_all": "Apply to all",
|
||||||
|
"remove": "Remove",
|
||||||
|
"swap": "Swap",
|
||||||
|
"open": "Open in Tankopedia"
|
||||||
|
},
|
||||||
|
|
||||||
|
"performance": {
|
||||||
|
"player_count": "Player count",
|
||||||
|
"tank": "Tank",
|
||||||
|
"total": "Total",
|
||||||
|
"no_tanks": {
|
||||||
|
"title": "No tanks found",
|
||||||
|
"body": "No tanks with statistics match these filters"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"tier_list": {
|
||||||
|
"add": "Add tier",
|
||||||
|
"reset": "Reset",
|
||||||
|
"share": "Share",
|
||||||
|
"edit": {
|
||||||
|
"placeholder": "Tier name",
|
||||||
|
"label": "Label",
|
||||||
|
"color": "Color",
|
||||||
|
"remove": "Remove",
|
||||||
|
"cancel": "Cancel",
|
||||||
|
"apply": "Apply"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
"units": {
|
"units": {
|
||||||
"m": "{value}m",
|
"m": "{value}m",
|
||||||
"mm": "{value}mm",
|
"mm": "{value}mm",
|
||||||
@@ -9,17 +184,99 @@
|
|||||||
"percentage": "{value}%",
|
"percentage": "{value}%",
|
||||||
"deg_s": "{value}°/s",
|
"deg_s": "{value}°/s",
|
||||||
"m_s": "{value}m/s",
|
"m_s": "{value}m/s",
|
||||||
|
"m_s2": "{value}m/s²",
|
||||||
"km_h": "{value}km/h",
|
"km_h": "{value}km/h",
|
||||||
"t": "{value}t",
|
"t": "{value}t",
|
||||||
"bhp": "{value}bhp",
|
"bhp": "{value}bhp",
|
||||||
"bhp_t": "{value}bhp/t",
|
"bhp_t": "{value}bhp/t",
|
||||||
"kN": "{value}kN",
|
"kN": "{value}kN",
|
||||||
"hp_s": "{value}hp/s",
|
"hp_s": "{value}hp/s",
|
||||||
|
"m3": "{value}m³",
|
||||||
"plus": "+{value}",
|
"plus": "+{value}",
|
||||||
"fraction": "{numerator} / {denominator}"
|
"fraction": "{numerator} / {denominator}",
|
||||||
|
"interval": "{min} - {max}"
|
||||||
},
|
},
|
||||||
|
|
||||||
"tanks": {
|
"tanks": {
|
||||||
|
"title": {
|
||||||
|
"all_tanks": "All tanks",
|
||||||
|
"compare": "Compare"
|
||||||
|
},
|
||||||
|
|
||||||
|
"meta": {
|
||||||
|
"full_name": "Full name",
|
||||||
|
"nation": "Nation",
|
||||||
|
"class": "Class",
|
||||||
|
"tier": "Tier",
|
||||||
|
"type": "Type",
|
||||||
|
"dev_id": "DEV: ID",
|
||||||
|
"dev_name": "DEV: NAME",
|
||||||
|
"purchase": "Purchase price",
|
||||||
|
"restoration": "Restoration price",
|
||||||
|
"sale": "Sale price",
|
||||||
|
"research": "Research XP"
|
||||||
|
},
|
||||||
|
|
||||||
|
"antagonist_control": {
|
||||||
|
"calibrated_shells": "Calibrated shells",
|
||||||
|
"enhanced_armor": "Enhanced armor",
|
||||||
|
"equalize": "Equalize"
|
||||||
|
},
|
||||||
|
|
||||||
|
"skin_switcher": {
|
||||||
|
"play_animations": "Play animations",
|
||||||
|
"pause_animations": "Pause animations"
|
||||||
|
},
|
||||||
|
|
||||||
|
"custom_shell": {
|
||||||
|
"title": "Custom shell",
|
||||||
|
"type": "Type",
|
||||||
|
"caliber": "Caliber",
|
||||||
|
"penetration": "Penetration",
|
||||||
|
"normalization": "Normalization",
|
||||||
|
"ricochet": "Ricochet",
|
||||||
|
"explosion_radius": "Explosion radius",
|
||||||
|
"exit": "Exit",
|
||||||
|
"reset": "Reset"
|
||||||
|
},
|
||||||
|
|
||||||
|
"shot_card": {
|
||||||
|
"element": {
|
||||||
|
"primary": "Primary",
|
||||||
|
"spaced": "Spaced",
|
||||||
|
"external": "External",
|
||||||
|
"gap": "Gap",
|
||||||
|
"gun": "Gun",
|
||||||
|
"track": "Tracks"
|
||||||
|
},
|
||||||
|
|
||||||
|
"status": {
|
||||||
|
"penetration": "{damage}hp penetration",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"ricochet": "Ricochet",
|
||||||
|
"splash": "{damage}hp splash"
|
||||||
|
},
|
||||||
|
|
||||||
|
"stats": {
|
||||||
|
"thickness_and_angle": "{thickness}mm {angle}°",
|
||||||
|
"nominal": "{thickness}mm nominal",
|
||||||
|
"ricochet_loss": "{loss}% penetration",
|
||||||
|
"ricochet_divider": "Ricochet (-25% penetration)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"tabs": {
|
||||||
|
"model": "Model",
|
||||||
|
"dynamic_armor": "Dynamic armor",
|
||||||
|
"static_armor": "Static armor"
|
||||||
|
},
|
||||||
|
|
||||||
|
"poses": {
|
||||||
|
"hull_down": "Hull down",
|
||||||
|
"face_hug": "Face hug",
|
||||||
|
"default": "Default"
|
||||||
|
},
|
||||||
|
|
||||||
"toys": {
|
"toys": {
|
||||||
"ricochet": {
|
"ricochet": {
|
||||||
"angle": "Angle",
|
"angle": "Angle",
|
||||||
@@ -37,6 +294,19 @@
|
|||||||
|
|
||||||
"reload": {
|
"reload": {
|
||||||
"skip": "Skip"
|
"skip": "Skip"
|
||||||
|
},
|
||||||
|
|
||||||
|
"flexibility": {
|
||||||
|
"pitch": "Pitch",
|
||||||
|
"yaw": "Yaw",
|
||||||
|
"max": "Max",
|
||||||
|
"min": "Min"
|
||||||
|
},
|
||||||
|
|
||||||
|
"view_range": {
|
||||||
|
"camo": "Camo",
|
||||||
|
"ghost_factory": "Ghost Factory",
|
||||||
|
"dead_rail": "Dead Rail"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -56,14 +326,29 @@
|
|||||||
"flexibility": "Flexibility",
|
"flexibility": "Flexibility",
|
||||||
"maneuverability": "Maneuverability",
|
"maneuverability": "Maneuverability",
|
||||||
"survivability": "Survivability",
|
"survivability": "Survivability",
|
||||||
"concealment": "Concealment"
|
"concealment": "Concealment",
|
||||||
|
|
||||||
|
"steady_aim_system": "Steady aim system",
|
||||||
|
"burst_mode": "Burst mode",
|
||||||
|
"combat_frenzy": "Combat frenzy",
|
||||||
|
"external_ammo_module": "External ammo module",
|
||||||
|
"ramming_configuration": "Ramming configuration",
|
||||||
|
"nitro": "Nitro",
|
||||||
|
"shell_overheat": "Shell overheat",
|
||||||
|
"auxiliary_weapons": "Auxiliary weapons",
|
||||||
|
"unguided_rocket": "Unguided rocket",
|
||||||
|
"assault_shells": "Assault shells"
|
||||||
},
|
},
|
||||||
|
|
||||||
"items": {
|
"items": {
|
||||||
"gun_type": "Gun type",
|
"gun_type": "Gun type",
|
||||||
"dpm": "Damage per minute",
|
"dpm": "Damage per minute",
|
||||||
|
"dpm_effective": "Effective by 60s",
|
||||||
|
"dpm_peekaboo": "Peek-a-boo",
|
||||||
"damage": "Damage",
|
"damage": "Damage",
|
||||||
|
"damage_range": "Range",
|
||||||
"module_damage": "Module damage",
|
"module_damage": "Module damage",
|
||||||
|
"module_damage_range": "Range",
|
||||||
"reload": "Reload",
|
"reload": "Reload",
|
||||||
"reloads": "Reloads",
|
"reloads": "Reloads",
|
||||||
"clipping_potential": "Clipping potential",
|
"clipping_potential": "Clipping potential",
|
||||||
@@ -81,9 +366,16 @@
|
|||||||
"caliber": "Caliber",
|
"caliber": "Caliber",
|
||||||
"normalization": "Normalization",
|
"normalization": "Normalization",
|
||||||
"ricochet": "Ricochet",
|
"ricochet": "Ricochet",
|
||||||
|
"explosion_radius": "Explosion radius",
|
||||||
"aim_time": "Aim time",
|
"aim_time": "Aim time",
|
||||||
"dispersion": "Dispersion",
|
"dispersion": "Dispersion",
|
||||||
"dispersion_angle": "Dispersion angle",
|
"dispersion_angle": "Dispersion angle",
|
||||||
|
"dispersion_penalties": "Dispersion penalties",
|
||||||
|
"dispersion_moving": "Moving",
|
||||||
|
"dispersion_hull_traversing": "Hull traversing",
|
||||||
|
"dispersion_turret_traversing": "Turret traversing",
|
||||||
|
"dispersion_shooting": "After shooting",
|
||||||
|
"dispersion_gun_damaged": "Gun damaged",
|
||||||
"gun_depression": "Gun depression",
|
"gun_depression": "Gun depression",
|
||||||
"gun_elevation": "Gun elevation",
|
"gun_elevation": "Gun elevation",
|
||||||
"gun_frontal_depression": "Frontal depression",
|
"gun_frontal_depression": "Frontal depression",
|
||||||
@@ -92,13 +384,17 @@
|
|||||||
"gun_rear_elevation": "Rear elevation",
|
"gun_rear_elevation": "Rear elevation",
|
||||||
"azimuth_left": "Azimuth left",
|
"azimuth_left": "Azimuth left",
|
||||||
"azimuth_right": "Azimuth right",
|
"azimuth_right": "Azimuth right",
|
||||||
"speed_forward": "Forward",
|
"speed_forward": "Top speed",
|
||||||
"speed_backward": "Backward",
|
"speed_backward": "Reverse speed",
|
||||||
"speeds": "Speed",
|
"speeds": "Speed",
|
||||||
"engine_power": "Engine power",
|
"engine_power": "Engine power",
|
||||||
"brake_force": "Brake force",
|
"brake_force": "Brake force",
|
||||||
"weight": "Weight",
|
"weight": "Weight",
|
||||||
"power_to_weight": "Power to weight",
|
"power_to_weight": "Power to weight",
|
||||||
|
"power_to_weight_on_terrain": "Power to weight on terrain",
|
||||||
|
"power_to_weight_hard": "Hard",
|
||||||
|
"power_to_weight_medium": "Medium",
|
||||||
|
"power_to_weight_soft": "Soft",
|
||||||
"terrain_coefficient": "Terrain coefficients",
|
"terrain_coefficient": "Terrain coefficients",
|
||||||
"raw_terrain_coefficient": "Raw terrain coefficients",
|
"raw_terrain_coefficient": "Raw terrain coefficients",
|
||||||
"hard_terrain_coefficient": "Hard",
|
"hard_terrain_coefficient": "Hard",
|
||||||
@@ -118,11 +414,70 @@
|
|||||||
"fire_chance": "Fire chance",
|
"fire_chance": "Fire chance",
|
||||||
"fire_rate": "Fire rate",
|
"fire_rate": "Fire rate",
|
||||||
"ramming_resistance": "Ramming resistance",
|
"ramming_resistance": "Ramming resistance",
|
||||||
|
"crew_count": "Crew count",
|
||||||
|
"track_repair_time": "Track repair time",
|
||||||
"view_range": "View range",
|
"view_range": "View range",
|
||||||
"camouflage": "Camouflage",
|
"camouflages": "Camouflage",
|
||||||
|
"camouflage": "Still",
|
||||||
|
"camouflage_moving": "Moving",
|
||||||
|
"camouflage_shooting_still": "Shooting still",
|
||||||
|
"camouflage_shooting_moving": "Shooting moving",
|
||||||
|
"camouflage_on_fire": "On fire",
|
||||||
"width": "Width",
|
"width": "Width",
|
||||||
"height": "Height",
|
"height": "Height",
|
||||||
"length": "Length"
|
"length": "Length",
|
||||||
|
|
||||||
|
"steady_aim_system_duration": "Duration",
|
||||||
|
"steady_aim_system_aiming_speed": "Aim time",
|
||||||
|
"steady_aim_system_dispersion": "Dispersion",
|
||||||
|
"steady_aim_system_activation_condition": "Activates on",
|
||||||
|
"burst_mode_count": "Shells",
|
||||||
|
"burst_mode_interval": "First intra-clip",
|
||||||
|
"burst_mode_penetrations": "Penetrations",
|
||||||
|
"burst_mode_target_order": "Same target",
|
||||||
|
"combat_frenzy_reload_bonus": "Reload per stack",
|
||||||
|
"combat_frenzy_max_stacks": "Max stacks",
|
||||||
|
"combat_frenzy_keep_stacks": "Keep on kill",
|
||||||
|
"external_ammo_module_clip_bonus": "Extra shells",
|
||||||
|
"external_ammo_module_transformation": "Transform time",
|
||||||
|
"external_ammo_module_timeout": "Timeout",
|
||||||
|
"external_ammo_module_activation_condition": "Activates on",
|
||||||
|
"ramming_configuration_damage_bonus": "Damage bonus",
|
||||||
|
"ramming_configuration_track_damage_bonus": "Track damage bonus",
|
||||||
|
"ramming_configuration_damage_reduction": "Damage taken",
|
||||||
|
"nitro_duration": "Heat time",
|
||||||
|
"nitro_cooling_duration": "Cool time",
|
||||||
|
"nitro_cooldown": "Cooldown",
|
||||||
|
"nitro_engine_power": "Engine power",
|
||||||
|
"nitro_top_speed": "Top speed",
|
||||||
|
"nitro_rotation_speed": "Hull traverse",
|
||||||
|
"shell_overheat_boost": "Damage boost",
|
||||||
|
"shell_overheat_charge_time": "Charge time",
|
||||||
|
"shell_overheat_activation_delay": "Charge delay",
|
||||||
|
"shell_overheat_decay_time": "Discharge time",
|
||||||
|
"shell_overheat_min_speed": "Min speed",
|
||||||
|
"shell_overheat_max_speed": "Max speed",
|
||||||
|
"auxiliary_weapons_shots": "Shots",
|
||||||
|
"auxiliary_weapons_damage": "Damage",
|
||||||
|
"auxiliary_weapons_penetration": "Penetration",
|
||||||
|
"auxiliary_weapons_shell_speed": "Shell speed",
|
||||||
|
"auxiliary_weapons_interval": "Intra-clip",
|
||||||
|
"auxiliary_weapons_cooldown": "Reload",
|
||||||
|
"unguided_rocket_count": "Rockets",
|
||||||
|
"unguided_rocket_damage": "Damage",
|
||||||
|
"unguided_rocket_penetration": "Penetration",
|
||||||
|
"unguided_rocket_initial_speed": "Initial speed",
|
||||||
|
"unguided_rocket_acceleration": "Acceleration",
|
||||||
|
"unguided_rocket_max_distance": "Range",
|
||||||
|
"unguided_rocket_intra_clip": "Intra-clip",
|
||||||
|
"unguided_rocket_container_reload": "Reload"
|
||||||
|
},
|
||||||
|
|
||||||
|
"flags": {
|
||||||
|
"yes": "Yes",
|
||||||
|
"no": "No",
|
||||||
|
"on_hit": "On hit",
|
||||||
|
"on_damage": "On damage"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -130,6 +485,10 @@
|
|||||||
"title": "Game mode abilities"
|
"title": "Game mode abilities"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"videos": {
|
||||||
|
"title": "Videos"
|
||||||
|
},
|
||||||
|
|
||||||
"navigation": {
|
"navigation": {
|
||||||
"tank": "Tank",
|
"tank": "Tank",
|
||||||
"characteristics": "Characteristics"
|
"characteristics": "Characteristics"
|
||||||
@@ -141,8 +500,20 @@
|
|||||||
"consumables": "Consumables",
|
"consumables": "Consumables",
|
||||||
"provisions": "Provisions",
|
"provisions": "Provisions",
|
||||||
"modules": "Modules",
|
"modules": "Modules",
|
||||||
|
"augments": "Augments",
|
||||||
|
"camouflage": "Camouflage",
|
||||||
|
"module_types": {
|
||||||
|
"turret": "Turret",
|
||||||
|
"gun": "Gun",
|
||||||
|
"engine": "Engine",
|
||||||
|
"chassis": "Chassis"
|
||||||
|
},
|
||||||
"equipment": "Equipment",
|
"equipment": "Equipment",
|
||||||
"shells": "Shells",
|
"shells": "Shells",
|
||||||
|
"clear": "Clear",
|
||||||
|
"maximize": "Maximize",
|
||||||
|
"stock": "Stock",
|
||||||
|
"skills": "Crew skills",
|
||||||
"alternative": "Alt"
|
"alternative": "Alt"
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -152,77 +523,30 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"tools": {
|
"tools": {
|
||||||
"tanks": {
|
"home": "Home",
|
||||||
"name": "Tankopedia",
|
"tanks": "Tankopedia",
|
||||||
"slogan": "Blitz tank encyclopedia",
|
"avatars": "Avatars",
|
||||||
"action": "Find tanks"
|
"backgrounds": "Backgrounds",
|
||||||
},
|
"api": "API",
|
||||||
"avatars": {
|
"players": "Players",
|
||||||
"name": "Avatars",
|
"compare": "Compare",
|
||||||
"slogan": "Blitz player avatars",
|
"performance": "Performance",
|
||||||
"action": "Browse all"
|
"playlist": "Playlist",
|
||||||
},
|
"mixer": "Mixer",
|
||||||
"backgrounds": {
|
"session": "Session",
|
||||||
"name": "Backgrounds",
|
"guesser": "Guesser",
|
||||||
"slogan": "Blitz player backgrounds",
|
"changelogs": "Changelogs",
|
||||||
"action": "View all"
|
"tier_list": "Tier list",
|
||||||
},
|
"embed": "Embed",
|
||||||
"api": {
|
"more": "More",
|
||||||
"name": "API",
|
"credits": "Credits"
|
||||||
"action": "To docs",
|
|
||||||
"slogan": "BlitzKit hosted API"
|
|
||||||
},
|
|
||||||
"players": {
|
|
||||||
"name": "Players",
|
|
||||||
"slogan": "Player statistics",
|
|
||||||
"action": "Stalk player"
|
|
||||||
},
|
|
||||||
"compare": {
|
|
||||||
"name": "Compare",
|
|
||||||
"slogan": "Compare tanks characteristics",
|
|
||||||
"action": "Compare now"
|
|
||||||
},
|
|
||||||
"performance": {
|
|
||||||
"name": "Performance",
|
|
||||||
"slogan": "Tank performance statistics",
|
|
||||||
"action": "View tanks"
|
|
||||||
},
|
|
||||||
"playlist": {
|
|
||||||
"name": "Playlist",
|
|
||||||
"slogan": "Tank playlist generator",
|
|
||||||
"action": "Generate"
|
|
||||||
},
|
|
||||||
"mixer": {
|
|
||||||
"name": "Mixer",
|
|
||||||
"slogan": "Tank module mixer",
|
|
||||||
"action": "Mix and match"
|
|
||||||
},
|
|
||||||
"session": {
|
|
||||||
"name": "Session",
|
|
||||||
"slogan": "Live player statistics",
|
|
||||||
"action": "Track"
|
|
||||||
},
|
|
||||||
"guesser": {
|
|
||||||
"name": "Guesser",
|
|
||||||
"slogan": "Silhouette mini-game",
|
|
||||||
"action": "Play"
|
|
||||||
},
|
|
||||||
"changelogs": {
|
|
||||||
"name": "Changelogs",
|
|
||||||
"slogan": "BlitzKit patch notes",
|
|
||||||
"action": "Read up"
|
|
||||||
},
|
|
||||||
"settings": {
|
|
||||||
"name": "Settings",
|
|
||||||
"slogan": "",
|
|
||||||
"action": ""
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"home": {
|
"home": {
|
||||||
"tanks": "Tanks",
|
"tanks": "Tanks",
|
||||||
"players": "Players",
|
"players": "Players",
|
||||||
"games": "Games",
|
"games": "Games",
|
||||||
|
"tools": "Tools",
|
||||||
"cosmetics": "Cosmetics",
|
"cosmetics": "Cosmetics",
|
||||||
"technical": "Technical"
|
"technical": "Technical"
|
||||||
},
|
},
|
||||||
@@ -236,6 +560,21 @@
|
|||||||
"common": {
|
"common": {
|
||||||
"name": "BlitzKit",
|
"name": "BlitzKit",
|
||||||
|
|
||||||
|
"screenshot": {
|
||||||
|
"title": "Screenshot",
|
||||||
|
"description": "Screenshot the tank with a transparent background.",
|
||||||
|
"cancel": "Cancel",
|
||||||
|
"download": "Download",
|
||||||
|
"copy": "Copy"
|
||||||
|
},
|
||||||
|
|
||||||
|
"search": {
|
||||||
|
"hint_players": "Search players...",
|
||||||
|
"hint_tanks": "Search tanks...",
|
||||||
|
"no_results": "No results",
|
||||||
|
"searching": "Searching..."
|
||||||
|
},
|
||||||
|
|
||||||
"units": {
|
"units": {
|
||||||
"m": "{value}m",
|
"m": "{value}m",
|
||||||
"mm": "{value}mm",
|
"mm": "{value}mm",
|
||||||
@@ -270,9 +609,25 @@
|
|||||||
"d_1": "Yesterday"
|
"d_1": "Yesterday"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"stats": {
|
||||||
|
"winrate": "Winrate",
|
||||||
|
"players": "Players",
|
||||||
|
"damage": "Damage",
|
||||||
|
"survival": "Survival",
|
||||||
|
"xp": "XP",
|
||||||
|
"kills": "Kills",
|
||||||
|
"spots": "Spots",
|
||||||
|
"accuracy": "Accuracy",
|
||||||
|
"shots": "Shots",
|
||||||
|
"hits": "Hits",
|
||||||
|
"damage_ratio": "Dmg. ratio",
|
||||||
|
"damage_taken": "Dmg. taken",
|
||||||
|
"capture_points": "Cap points"
|
||||||
|
},
|
||||||
|
|
||||||
"branches": {
|
"branches": {
|
||||||
"beta": "Beta",
|
"beta": "Beta",
|
||||||
"development": "Development",
|
"development": "Post Malone Edition",
|
||||||
"opentest": "OpenTest",
|
"opentest": "OpenTest",
|
||||||
"preview": "Preview",
|
"preview": "Preview",
|
||||||
"production": "Production"
|
"production": "Production"
|
||||||
@@ -439,21 +794,12 @@
|
|||||||
"body": "This page has moved. Redirecting..."
|
"body": "This page has moved. Redirecting..."
|
||||||
},
|
},
|
||||||
|
|
||||||
"settings": {
|
"not_found": {
|
||||||
"title": "Settings",
|
"title": "404: page not found",
|
||||||
"description": "Change BlitzKit settings",
|
"body": "Where would you like to go?"
|
||||||
"dev_mode": "Development mode",
|
|
||||||
"auto_load_models": "Auto-load models",
|
|
||||||
"language": "Language"
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"common": {
|
"common": {
|
||||||
"player_search": {
|
|
||||||
"hint": "Search players...",
|
|
||||||
"no_results": "No results",
|
|
||||||
"searching": "Searching..."
|
|
||||||
},
|
|
||||||
|
|
||||||
"copy_button": {
|
"copy_button": {
|
||||||
"copied": "Copied!"
|
"copied": "Copied!"
|
||||||
},
|
},
|
||||||
@@ -465,6 +811,7 @@
|
|||||||
"login": "Login to use this",
|
"login": "Login to use this",
|
||||||
"search_bar_hint": "Search tanks...",
|
"search_bar_hint": "Search tanks...",
|
||||||
"recent": "Recently viewed",
|
"recent": "Recently viewed",
|
||||||
|
"recent_empty": "Tanks you view will show up here",
|
||||||
"select_all": "Select all",
|
"select_all": "Select all",
|
||||||
"count_singular": "1 tank",
|
"count_singular": "1 tank",
|
||||||
"count_plural": "{count} tanks",
|
"count_plural": "{count} tanks",
|
||||||
@@ -481,53 +828,15 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"sort": {
|
"sort": {
|
||||||
"meta.none": "none",
|
|
||||||
"survivability.health": "health",
|
|
||||||
"survivability.viewRange": "view range",
|
|
||||||
"survivability.camouflageStill": "camouflage still",
|
|
||||||
"survivability.camouflageMoving": "camouflage moving",
|
|
||||||
"survivability.camouflageShooting": "camouflage shooting",
|
|
||||||
"survivability.volume": "volume",
|
|
||||||
"survivability.length": "length",
|
|
||||||
"fire.dpm": "standard DPM",
|
|
||||||
"fire.dpmPremium": "premium DPM",
|
|
||||||
"fire.reload": "reload",
|
|
||||||
"fire.caliber": "caliber",
|
|
||||||
"fire.standardPenetration": "standard penetration",
|
|
||||||
"fire.premiumPenetration": "premium penetration",
|
|
||||||
"fire.tertiaryPenetration": "tertiary penetration",
|
|
||||||
"fire.damage": "damage",
|
|
||||||
"fire.moduleDamage": "module damage",
|
|
||||||
"fire.shellVelocity": "shell velocity",
|
|
||||||
"fire.shellRange": "shell range",
|
|
||||||
"fire.shellCapacity": "shell capacity",
|
|
||||||
"fire.aimTime": "aim time",
|
|
||||||
"fire.dispersionStill": "dispersion still",
|
|
||||||
"fire.dispersionMoving": "dispersion moving",
|
|
||||||
"fire.gunDepression": "gun depression",
|
|
||||||
"fire.gunElevation": "gun elevation",
|
|
||||||
"maneuverability.forwardsSpeed": "forwards speed",
|
|
||||||
"maneuverability.backwardsSpeed": "backwards speed",
|
|
||||||
"maneuverability.power": "power",
|
|
||||||
"maneuverability.powerToWeight": "power to weight",
|
|
||||||
"maneuverability.weight": "weight",
|
|
||||||
"maneuverability.traverseSpeed": "traverse speed"
|
|
||||||
},
|
|
||||||
"sort_dropdown": {
|
|
||||||
"label": "Sort",
|
"label": "Sort",
|
||||||
"groups": {
|
|
||||||
"sort": {
|
"none": "None",
|
||||||
"no_sort": "No sort",
|
"by": "Sort by",
|
||||||
"label": "Sort by",
|
|
||||||
"fire": "Fire",
|
"direction": {
|
||||||
"maneuverability": "Maneuverability",
|
"label": "Direction",
|
||||||
"survivability": "Survivability"
|
"ascending": "Ascending",
|
||||||
},
|
"descending": "Descending"
|
||||||
"direction": {
|
|
||||||
"label": "Direction",
|
|
||||||
"ascending": "Ascending",
|
|
||||||
"descending": "Descending"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -567,11 +876,10 @@
|
|||||||
|
|
||||||
"footer": {
|
"footer": {
|
||||||
"motto": "Everything World of Tanks Blitz",
|
"motto": "Everything World of Tanks Blitz",
|
||||||
"copyright": "Unaffiliated with Wargaming or any service",
|
"association": "An Open Collective Project",
|
||||||
|
|
||||||
"about": {
|
"about": {
|
||||||
"title": "About",
|
"title": "About",
|
||||||
"credits": "Credits",
|
|
||||||
"discord": "Discord",
|
"discord": "Discord",
|
||||||
"github": "GitHub",
|
"github": "GitHub",
|
||||||
"patches": "Patches"
|
"patches": "Patches"
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{
|
{
|
||||||
"test": {
|
|
||||||
"default": "test",
|
|
||||||
"long": "This is a long test string. You MUST NEVER see this in the UI. My favorite fruit is {fruit} because it has the color of {color}. I like it so much that I will say its name 3 times! {fruit}! {fruit}! {fruit}! Once again, it's {color}, not {not_color}.",
|
|
||||||
"fox": "El rápido zorro marrón salta sobre el perro perezoso."
|
|
||||||
},
|
|
||||||
"common": {
|
"common": {
|
||||||
"name": "BlitzKit",
|
"name": "BlitzKit",
|
||||||
"units": {
|
"units": {
|
||||||
@@ -307,6 +302,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
|
"credits": {
|
||||||
|
"name": "Credits",
|
||||||
|
"button": "View people",
|
||||||
|
"description": "Contributors of BlitzKit",
|
||||||
|
"seo_description": "BlitzKit is the work of many"
|
||||||
|
},
|
||||||
"playlist": {
|
"playlist": {
|
||||||
"reset": "Restablecer",
|
"reset": "Restablecer",
|
||||||
"shuffle": "Shuffle",
|
"shuffle": "Shuffle",
|
||||||
@@ -922,7 +923,6 @@
|
|||||||
"copyright": "No afiliado con Wargaming u otros servicios",
|
"copyright": "No afiliado con Wargaming u otros servicios",
|
||||||
"about": {
|
"about": {
|
||||||
"title": "About",
|
"title": "About",
|
||||||
"credits": "Credits",
|
|
||||||
"discord": "Discord",
|
"discord": "Discord",
|
||||||
"github": "GitHub",
|
"github": "GitHub",
|
||||||
"patches": "Parches"
|
"patches": "Parches"
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{
|
{
|
||||||
"test": {
|
|
||||||
"default": "teste",
|
|
||||||
"long": "Ceci est une longue chaîne de test. Vous ne DEVEZ JAMAIS le voir dans l'interface utilisateur. Mon fruit préféré est {fruit}, car il a la couleur {color}. Je l'aime tellement que je vais dire son nom 3 fois ! {fruit}! {fruit}! {fruit} ! Encore une fois, c'est {color}, pas {not_color}.",
|
|
||||||
"fox": "Le renard brun et rapide saute par-dessus le chien paresseux."
|
|
||||||
},
|
|
||||||
"common": {
|
"common": {
|
||||||
"name": "BlitzKit",
|
"name": "BlitzKit",
|
||||||
"units": {
|
"units": {
|
||||||
@@ -307,6 +302,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
|
"credits": {
|
||||||
|
"name": "Credits",
|
||||||
|
"button": "View people",
|
||||||
|
"description": "Contributors of BlitzKit",
|
||||||
|
"seo_description": "BlitzKit is the work of many"
|
||||||
|
},
|
||||||
"playlist": {
|
"playlist": {
|
||||||
"reset": "Reset",
|
"reset": "Reset",
|
||||||
"shuffle": "Shuffle",
|
"shuffle": "Shuffle",
|
||||||
@@ -922,7 +923,6 @@
|
|||||||
"copyright": "Unaffiliated with Wargaming or any service",
|
"copyright": "Unaffiliated with Wargaming or any service",
|
||||||
"about": {
|
"about": {
|
||||||
"title": "About",
|
"title": "About",
|
||||||
"credits": "Credits",
|
|
||||||
"discord": "Discord",
|
"discord": "Discord",
|
||||||
"github": "GitHub",
|
"github": "GitHub",
|
||||||
"patches": "Patches"
|
"patches": "Patches"
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{
|
{
|
||||||
"test": {
|
|
||||||
"default": "test",
|
|
||||||
"long": "This is a long test string. You MUST NEVER see this in the UI. My favorite fruit is {fruit} because it has the color of {color}. I like it so much that I will say its name 3 times! {fruit}! {fruit}! {fruit}! Once again, it's {color}, not {not_color}.",
|
|
||||||
"fox": "すばしっこい茶色のキツネが怠け者の犬を飛び越した。"
|
|
||||||
},
|
|
||||||
"common": {
|
"common": {
|
||||||
"name": "BlitzKit",
|
"name": "BlitzKit",
|
||||||
"units": {
|
"units": {
|
||||||
@@ -307,6 +302,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
|
"credits": {
|
||||||
|
"name": "Credits",
|
||||||
|
"button": "View people",
|
||||||
|
"description": "Contributors of BlitzKit",
|
||||||
|
"seo_description": "BlitzKit is the work of many"
|
||||||
|
},
|
||||||
"playlist": {
|
"playlist": {
|
||||||
"reset": "リセット",
|
"reset": "リセット",
|
||||||
"shuffle": "Shuffle",
|
"shuffle": "Shuffle",
|
||||||
@@ -922,7 +923,6 @@
|
|||||||
"copyright": "Wargamingやその他のサービスとは関係ありません",
|
"copyright": "Wargamingやその他のサービスとは関係ありません",
|
||||||
"about": {
|
"about": {
|
||||||
"title": "概要",
|
"title": "概要",
|
||||||
"credits": "クレジット",
|
|
||||||
"discord": "Discord",
|
"discord": "Discord",
|
||||||
"github": "GitHub",
|
"github": "GitHub",
|
||||||
"patches": "パッチノート"
|
"patches": "パッチノート"
|
||||||
|
|||||||
+236
-236
@@ -1,9 +1,4 @@
|
|||||||
{
|
{
|
||||||
"test": {
|
|
||||||
"default": "test",
|
|
||||||
"long": "This is a long test string. You MUST NEVER see this in the UI. My favorite fruit is {fruit} because it has the color of {color}. I like it so much that I will say its name 3 times! {fruit}! {fruit}! {fruit}! Once again, it's {color}, not {not_color}.",
|
|
||||||
"fox": "Szybki brązowy lis przeskoczył nad leniwym psem."
|
|
||||||
},
|
|
||||||
"common": {
|
"common": {
|
||||||
"name": "BlitzKit",
|
"name": "BlitzKit",
|
||||||
"units": {
|
"units": {
|
||||||
@@ -19,7 +14,7 @@
|
|||||||
"gun_types": {
|
"gun_types": {
|
||||||
"auto_loader": "Samo ładowacz",
|
"auto_loader": "Samo ładowacz",
|
||||||
"auto_reloader": "Automatyczne przeładowanie",
|
"auto_reloader": "Automatyczne przeładowanie",
|
||||||
"regular": "Regular"
|
"regular": "Regularny"
|
||||||
},
|
},
|
||||||
"shells": {
|
"shells": {
|
||||||
"ap": "AP",
|
"ap": "AP",
|
||||||
@@ -38,10 +33,10 @@
|
|||||||
},
|
},
|
||||||
"branches": {
|
"branches": {
|
||||||
"beta": "Beta",
|
"beta": "Beta",
|
||||||
"development": "Development",
|
"development": "Rozwój",
|
||||||
"opentest": "OpenTest",
|
"opentest": "OtwartyTest",
|
||||||
"preview": "Preview",
|
"preview": "Przegląd",
|
||||||
"production": "Production"
|
"production": "Produkcja"
|
||||||
},
|
},
|
||||||
"locales": {
|
"locales": {
|
||||||
"en": "Angielski",
|
"en": "Angielski",
|
||||||
@@ -102,28 +97,28 @@
|
|||||||
"other": "Hybryda"
|
"other": "Hybryda"
|
||||||
},
|
},
|
||||||
"tank_class_short": {
|
"tank_class_short": {
|
||||||
"-1": "unrecognized",
|
"-1": "nierozpoznany",
|
||||||
"0": "Lekki",
|
"0": "Lekki",
|
||||||
"1": "Średni",
|
"1": "Średni",
|
||||||
"2": "Ciężki",
|
"2": "Ciężki",
|
||||||
"3": "TD"
|
"3": "NC"
|
||||||
},
|
},
|
||||||
"tank_class_short_plural_lowercase": {
|
"tank_class_short_plural_lowercase": {
|
||||||
"0": "lekkie",
|
"0": "lekkie",
|
||||||
"1": "średnie",
|
"1": "średnie",
|
||||||
"2": "ciężkie",
|
"2": "ciężkie",
|
||||||
"3": "TDs"
|
"3": "NC-ów"
|
||||||
},
|
},
|
||||||
"tank_class_medium": {
|
"tank_class_medium": {
|
||||||
"-1": "unrecognized",
|
"-1": "nierozpoznany",
|
||||||
"0": "Lekki",
|
"0": "Lekki",
|
||||||
"1": "Średni",
|
"1": "Średni",
|
||||||
"2": "Ciężki",
|
"2": "Ciężki",
|
||||||
"3": "Niszczyciel czołgów"
|
"3": "Niszczyciel czołgów"
|
||||||
},
|
},
|
||||||
"tree_type": {
|
"tree_type": {
|
||||||
"-1": "unrecognized",
|
"-1": "nierozpoznany",
|
||||||
"0": "Tech tree",
|
"0": "Drzewko technologiczne",
|
||||||
"1": "Premium",
|
"1": "Premium",
|
||||||
"2": "Kolekcjonerski"
|
"2": "Kolekcjonerski"
|
||||||
},
|
},
|
||||||
@@ -187,223 +182,229 @@
|
|||||||
},
|
},
|
||||||
"website": {
|
"website": {
|
||||||
"redirect": {
|
"redirect": {
|
||||||
"title": "301: moved permanently",
|
"title": "301: przeniesiony na stałe",
|
||||||
"body": "This page has moved. Redirecting..."
|
"body": "Ta strona została przeniesiona. Przekierowywanie..."
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"title": "Settings",
|
"title": "Ustawienia",
|
||||||
"description": "Change BlitzKit settings",
|
"description": "Zmień ustawienia BlitzKit",
|
||||||
"dev_mode": "Development mode",
|
"dev_mode": "Tryb deweloperski",
|
||||||
"auto_load_models": "Auto-load models",
|
"auto_load_models": "Automatycznie wczytaj modele",
|
||||||
"language": "Language"
|
"language": "Język"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
"player_search": {
|
"player_search": {
|
||||||
"hint": "Search players...",
|
"hint": "Szukaj graczy...",
|
||||||
"no_results": "No results",
|
"no_results": "Brak wyników",
|
||||||
"searching": "Searching..."
|
"searching": "Wyszukiwanie..."
|
||||||
},
|
},
|
||||||
"copy_button": {
|
"copy_button": {
|
||||||
"copied": "Copied!"
|
"copied": "Skopiowano!"
|
||||||
},
|
},
|
||||||
"tank_search": {
|
"tank_search": {
|
||||||
"select_dialog_title": "Search for tanks",
|
"select_dialog_title": "Szukaj czołgów",
|
||||||
"swap_dialog_title": "Swap tank",
|
"swap_dialog_title": "Zamień czołg",
|
||||||
"clear_filters": "Clear filters",
|
"clear_filters": "Wyczyść filtry",
|
||||||
"login": "Login to use this",
|
"login": "Zaloguj się, aby tego użyć",
|
||||||
"search_bar_hint": "Search tanks...",
|
"search_bar_hint": "Szukaj czołgów...",
|
||||||
"recent": "Recently viewed",
|
"recent": "Ostatnio oglądane",
|
||||||
"select_all": "Select all",
|
"select_all": "Zaznacz wszystko",
|
||||||
"count_singular": "1 tank",
|
"count_singular": "1 czołg",
|
||||||
"count_plural": "{count} tanks",
|
"count_plural": "{count} czołgi",
|
||||||
"sorting_by": "Sorting by {name}",
|
"sorting_by": "Sortowanie według {name}",
|
||||||
"clear": "Clear",
|
"clear": "Wyczyść",
|
||||||
"tier": "Tier {tier}",
|
"tier": "Poziom czołgu {tier}",
|
||||||
"passive": "{name} (Passive)",
|
"passive": "{name} (Pasywny)",
|
||||||
"active": "{name} (Active)",
|
"active": "{name} (Aktywne)",
|
||||||
"no_tanks_found": {
|
"no_tanks_found": {
|
||||||
"body": "No tanks found.",
|
"body": "Nie znaleziono czołgu.",
|
||||||
"search_again": "",
|
"search_again": "",
|
||||||
"clear_filters": "Try clearing filters."
|
"clear_filters": "Spróbuj wyczyścić filtry."
|
||||||
},
|
},
|
||||||
"sort": {
|
"sort": {
|
||||||
"meta.none": "none",
|
"meta.none": "brak",
|
||||||
"survivability.health": "health",
|
"survivability.health": "punkty.życia",
|
||||||
"survivability.viewRange": "view range",
|
"survivability.viewRange": "zasięg widzenia",
|
||||||
"survivability.camouflageStill": "camouflage still",
|
"survivability.camouflageStill": "kamuflaż w bezruchu",
|
||||||
"survivability.camouflageMoving": "camouflage moving",
|
"survivability.camouflageMoving": "kamuflaż w trakcie ruchu",
|
||||||
"survivability.camouflageShooting": "camouflage shooting",
|
"survivability.camouflageShooting": "kamuflaż podczas strzału",
|
||||||
"survivability.volume": "volume",
|
"survivability.volume": "wartość",
|
||||||
"survivability.length": "length",
|
"survivability.length": "długość",
|
||||||
"fire.dpm": "standard DPM",
|
"fire.dpm": "DPM pocisków podstawowych",
|
||||||
"fire.dpmPremium": "premium DPM",
|
"fire.dpmPremium": "DPM pocisków premium",
|
||||||
"fire.reload": "reload",
|
"fire.reload": "przeładowanie",
|
||||||
"fire.caliber": "caliber",
|
"fire.caliber": "kaliber",
|
||||||
"fire.standardPenetration": "standard penetration",
|
"fire.standardPenetration": "Penetracja pocisków standardowych",
|
||||||
"fire.premiumPenetration": "premium penetration",
|
"fire.premiumPenetration": "Penetracja pocisków premium",
|
||||||
"fire.tertiaryPenetration": "tertiary penetration",
|
"fire.tertiaryPenetration": "tertiary penetration",
|
||||||
"fire.damage": "damage",
|
"fire.damage": "uszkodzenia",
|
||||||
"fire.moduleDamage": "module damage",
|
"fire.moduleDamage": "Uszkodzenia modułów",
|
||||||
"fire.shellVelocity": "shell velocity",
|
"fire.shellVelocity": "Prędkość pocisku",
|
||||||
"fire.shellRange": "shell range",
|
"fire.shellRange": "Zasięg pocisku",
|
||||||
"fire.shellCapacity": "shell capacity",
|
"fire.shellCapacity": "Maksymalna ilość pocisków",
|
||||||
"fire.aimTime": "aim time",
|
"fire.aimTime": "Czas celowania",
|
||||||
"fire.dispersionStill": "dispersion still",
|
"fire.dispersionStill": "dispersion still",
|
||||||
"fire.dispersionMoving": "dispersion moving",
|
"fire.dispersionMoving": "dispersion moving",
|
||||||
"fire.gunDepression": "gun depression",
|
"fire.gunDepression": "Depresja działa",
|
||||||
"fire.gunElevation": "gun elevation",
|
"fire.gunElevation": "Elewacja działa",
|
||||||
"maneuverability.forwardsSpeed": "forwards speed",
|
"maneuverability.forwardsSpeed": "Maksymalna prędkość do przodu",
|
||||||
"maneuverability.backwardsSpeed": "backwards speed",
|
"maneuverability.backwardsSpeed": "Maksymalna prędkość do tyłu",
|
||||||
"maneuverability.power": "power",
|
"maneuverability.power": "Moc silnika",
|
||||||
"maneuverability.powerToWeight": "power to weight",
|
"maneuverability.powerToWeight": "Proporcja mocy do masy",
|
||||||
"maneuverability.weight": "weight",
|
"maneuverability.weight": "Masa czołgu",
|
||||||
"maneuverability.traverseSpeed": "traverse speed"
|
"maneuverability.traverseSpeed": "traverse speed"
|
||||||
},
|
},
|
||||||
"sort_dropdown": {
|
"sort_dropdown": {
|
||||||
"label": "Sort",
|
"label": "Filtruj",
|
||||||
"groups": {
|
"groups": {
|
||||||
"sort": {
|
"sort": {
|
||||||
"no_sort": "No sort",
|
"no_sort": "Brak filtrów",
|
||||||
"label": "Sort by",
|
"label": "Filtruj według",
|
||||||
"fire": "Fire",
|
"fire": "Siła ognia",
|
||||||
"maneuverability": "Maneuverability",
|
"maneuverability": "Mobilność ",
|
||||||
"survivability": "Survivability"
|
"survivability": "Przetrwanie"
|
||||||
},
|
},
|
||||||
"direction": {
|
"direction": {
|
||||||
"label": "Direction",
|
"label": "Direction",
|
||||||
"ascending": "Ascending",
|
"ascending": "Rosnąco",
|
||||||
"descending": "Descending"
|
"descending": "Malejąco"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"warnings": {
|
"warnings": {
|
||||||
"test": "Tanks in testing are subject to change and may not represent the final product."
|
"test": "Wartości statystyk czołgów w fazie testowej mogą ulec zmianie."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"discord": {
|
"discord": {
|
||||||
"join_short": "Join cool people!",
|
"join_short": "Dołącz do elity!",
|
||||||
"join_long": "Join super duper cool people!",
|
"join_long": "Dołącz do topowej elity!",
|
||||||
"action": "Discord"
|
"action": "Discord"
|
||||||
},
|
},
|
||||||
"hero": {
|
"hero": {
|
||||||
"credit": "By {name} ❤️"
|
"credit": "Według {name} ♥️"
|
||||||
},
|
},
|
||||||
"hot_tanks": {
|
"hot_tanks": {
|
||||||
"title": "Popular tanks",
|
"title": "Popularne czołgi",
|
||||||
"subtitle": "Last {days} days"
|
"subtitle": "Ostatnie {days} dni"
|
||||||
},
|
},
|
||||||
"other_projects": {
|
"other_projects": {
|
||||||
"title": "Other cool projects"
|
"title": "Inne epickie projekty"
|
||||||
},
|
},
|
||||||
"help_translate": "Please help translate {name} to {language}!",
|
"help_translate": "Proszę pomóż przetłumaczyć {name} na {language}!",
|
||||||
"seo_description": "Tools for everything World of Tanks Blitz"
|
"seo_description": "Narzędzia do wszystkiego World of Tanks Blitz"
|
||||||
},
|
},
|
||||||
"docs": {
|
"docs": {
|
||||||
"patches": {
|
"patches": {
|
||||||
"name": "BlitzKit Changelogs",
|
"name": "Zapisy zmian BlitzKit",
|
||||||
"seo_description": "Changelogs for BlitzKit Discord bot and website"
|
"seo_description": "Zapisy zmian BlitzKit: Discord bot i strona internetowa"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
|
"credits": {
|
||||||
|
"name": "Credits",
|
||||||
|
"button": "View people",
|
||||||
|
"description": "Contributors of BlitzKit",
|
||||||
|
"seo_description": "BlitzKit is the work of many"
|
||||||
|
},
|
||||||
"playlist": {
|
"playlist": {
|
||||||
"reset": "Reset",
|
"reset": "Resetuj",
|
||||||
"shuffle": "Shuffle",
|
"shuffle": "Wymieszaj",
|
||||||
"remove": "Remove played",
|
"remove": "Usuń czołgi, którymi grałem",
|
||||||
"tracking": "BlitzKit is tracking your battles",
|
"tracking": "BlitzKit zapisuje twoje bitwy",
|
||||||
"sort": {
|
"sort": {
|
||||||
"button": "Sort by",
|
"button": "Filtruj według",
|
||||||
"last_played": "Last played",
|
"last_played": "Ostatnio używane czołgi",
|
||||||
"least_played": "Least played"
|
"least_played": "Najmniej używane czołgi"
|
||||||
},
|
},
|
||||||
"table": {
|
"table": {
|
||||||
"index": "#",
|
"index": "#",
|
||||||
"never": "Never",
|
"never": "Nigdy",
|
||||||
"tank": "Tank",
|
"tank": "Czołg",
|
||||||
"last_played": "Last played",
|
"last_played": "Ostatnio używane czołgi",
|
||||||
"battles": "Career battles",
|
"battles": "Wszystkie bitwy na koncie",
|
||||||
"unrecorded": "--",
|
"unrecorded": "--",
|
||||||
"wins": "Zwycięstwa"
|
"wins": "Zwycięstwa"
|
||||||
},
|
},
|
||||||
"large_warning": {
|
"large_warning": {
|
||||||
"title": "That's a lot of tanks!",
|
"title": "To jest mnóstwo czołgów!",
|
||||||
"description": "Are you sure you want to create a playlist of {count} tanks? That's {time} hours of gameplay at 50% winrate!",
|
"description": "Czy na pewno chcesz stworzyć playlistę złożoną z {count} czołgów? To {time} godzin gry przy 50% zwycięstw!",
|
||||||
"cancel": "Cancel",
|
"cancel": "Anuluj",
|
||||||
"proceed": "Proceed"
|
"proceed": "Zatwierdź"
|
||||||
},
|
},
|
||||||
"generate": "Generate playlist",
|
"generate": "Wygeneruj playlistę",
|
||||||
"name": "Playlist",
|
"name": "Playlista",
|
||||||
"description": "Tank playlist generator",
|
"description": "Generator playlisty czołgów",
|
||||||
"seo_description": "Don't know what to play in World of Tanks Blitz? Use BlitzKit Playlist to get suggestions!",
|
"seo_description": "Nie wiesz, którym czołgiem grać w World of Tanks Blitz? Użyj funkcji playlisty BlitzKit, i ułóż własną listę czołgów do gry!",
|
||||||
"button": "Generate",
|
"button": "Wygeneruj",
|
||||||
"pool_size": "{count} possible tanks"
|
"pool_size": "{count} możliwe czołgi"
|
||||||
},
|
},
|
||||||
"mixer": {
|
"mixer": {
|
||||||
"name": "Mixer",
|
"name": "Mikser",
|
||||||
"button": "Mix and match",
|
"button": "Mix and match",
|
||||||
"description": "Mix tank modules",
|
"description": "Mix tank modules",
|
||||||
"seo_description": "Mix and match hulls, turrets, and guns of tanks in World of Tanks Blitz",
|
"seo_description": "Mix and match hulls, turrets, and guns of tanks in World of Tanks Blitz",
|
||||||
"screenshot": "Screenshot",
|
"screenshot": "Zrzut ekranu",
|
||||||
"randomize": "Randomize"
|
"randomize": "Wymieszaj"
|
||||||
},
|
},
|
||||||
"guess": {
|
"guess": {
|
||||||
"name": "Guess",
|
"name": "Zgadnij",
|
||||||
"button": "What could it be?",
|
"button": "What could it be?",
|
||||||
"description": "Silhouette mini-game",
|
"description": "Silhouette mini-game",
|
||||||
"seo_description": "Play a tank guessing game with a silhouette in World of Tanks Blitz",
|
"seo_description": "Play a tank guessing game with a silhouette in World of Tanks Blitz",
|
||||||
"search": {
|
"search": {
|
||||||
"placeholder": "Type to guess...",
|
"placeholder": "Wpisz odpowiedź",
|
||||||
"skip": "Skip",
|
"skip": "Pomiń",
|
||||||
"guess": "Guess",
|
"guess": "Zgaduję",
|
||||||
"next": "Next",
|
"next": "Następny",
|
||||||
"no_results": "Brak wyników"
|
"no_results": "Brak wyników"
|
||||||
},
|
},
|
||||||
"stats": "{correct} / {total} correct, {streak} streak",
|
"stats": "{correct} / {total} correct, {streak} streak",
|
||||||
"help": {
|
"help": {
|
||||||
"title": "Partially reveal tank?",
|
"title": "Odsłonić część czołgu?",
|
||||||
"description": "Reveals the tank without showing the name. This round will be considered incorrect and break your streak!",
|
"description": "Reveals the tank without showing the name. This round will be considered incorrect and break your streak!",
|
||||||
"cancel": "Cancel",
|
"cancel": "Anuluj",
|
||||||
"reveal": "Reveal"
|
"reveal": "Pokaż"
|
||||||
},
|
},
|
||||||
"clear": "Clear",
|
"clear": "Wyczyść",
|
||||||
"select_all": "Select all",
|
"select_all": "Zaznacz wszystko ",
|
||||||
"tier": "Tier {tier}"
|
"tier": "Poziom czołgu {tier}"
|
||||||
},
|
},
|
||||||
"tankopedia": {
|
"tankopedia": {
|
||||||
"search": "Search a stat...",
|
"search": "Wyszukaj statystykę...",
|
||||||
"name": "Tankopedia",
|
"name": "Tankopedia",
|
||||||
"button": "Find tanks",
|
"button": "Znajdź czołg",
|
||||||
"description": "Blitz tank encyclopedia",
|
"description": "Encyklopedia czołgów w WoTb",
|
||||||
"seo_description": "Statistics, armor, and more for all tanks in World of Tanks Blitz",
|
"seo_description": "Statistics, armor, and more for all tanks in World of Tanks Blitz",
|
||||||
"tank_seo_title": "{name} - Tier {tier} {nationality} {class} | {website} Tankopedia | World of Tanks Blitz (WoTB)",
|
"tank_seo_title": "{name} - Tier {tier} {nationality} {class} | {website} Tankopedia | World of Tanks Blitz (WoTB)",
|
||||||
"tank_seo_description": "{name} armor, statistics, equipment, provisions, and more. {dpm} DPM, {alpha}hp alpha, {penetration}mm penetration, {speed}kph top speed, {health}hp health.",
|
"tank_seo_description": "{name} armor, statistics, equipment, provisions, and more. {dpm} DPM, {alpha}hp alpha, {penetration}mm penetration, {speed}kph top speed, {health}hp health.",
|
||||||
"visualizers": {
|
"visualizers": {
|
||||||
"reload": {
|
"reload": {
|
||||||
"skip": "Skip"
|
"skip": "Pomiń"
|
||||||
},
|
},
|
||||||
"assault": {
|
"assault": {
|
||||||
"title": "Assault shells"
|
"title": "Assault shells"
|
||||||
},
|
},
|
||||||
"rotator": {
|
"rotator": {
|
||||||
"hull": "Hull",
|
"hull": "Kadłub",
|
||||||
"turret": "Turret",
|
"turret": "Wieża",
|
||||||
"hard": "Hard",
|
"hard": "Utwardzony",
|
||||||
"medium": "Średni",
|
"medium": "Średni",
|
||||||
"soft": "Soft",
|
"soft": "Miękki",
|
||||||
"effective": "Effective"
|
"effective": "Rzeczywisty"
|
||||||
},
|
},
|
||||||
"ricochet": {
|
"ricochet": {
|
||||||
"angle": "Angle",
|
"angle": "Kąt",
|
||||||
"normalization": "Normalization",
|
"normalization": "Normalization",
|
||||||
"effective_angle": "Effective angle",
|
"effective_angle": "Rzeczywisty kąt nachylenia pancerza",
|
||||||
"armor": "Armor",
|
"armor": "Pancerz",
|
||||||
"no_ricochet": "Explosive shells don't ricochet"
|
"no_ricochet": "Pociski odłamkowe nie rykoszetują."
|
||||||
},
|
},
|
||||||
"view_range": {
|
"view_range": {
|
||||||
"camo": "Camo",
|
"camo": "Kamuflaż",
|
||||||
"ghost_factory": "Ghost Factory",
|
"ghost_factory": "Fabryka duchów",
|
||||||
"dead_rail": "Dead Rail"
|
"dead_rail": "Martwy tor"
|
||||||
},
|
},
|
||||||
"flexibility": {
|
"flexibility": {
|
||||||
"yaw": "Yaw",
|
"yaw": "Yaw",
|
||||||
@@ -443,71 +444,71 @@
|
|||||||
"ricochet": "Ricochet",
|
"ricochet": "Ricochet",
|
||||||
"explosion_radius": "Explosion radius",
|
"explosion_radius": "Explosion radius",
|
||||||
"exit": "Exit",
|
"exit": "Exit",
|
||||||
"reset": "Reset"
|
"reset": "Zresetuj"
|
||||||
},
|
},
|
||||||
"advanced": "Advanced highlighting",
|
"advanced": "Zaawansowane podświetlanie",
|
||||||
"shot_card": {
|
"shot_card": {
|
||||||
"element": {
|
"element": {
|
||||||
"primary": "Primary",
|
"primary": "Główny",
|
||||||
"spaced": "Spaced",
|
"spaced": "Spaced",
|
||||||
"external": "External",
|
"external": "Zewnętrzny",
|
||||||
"gap": "Gap",
|
"gap": "Odstęp",
|
||||||
"gun": "Gun",
|
"gun": "Działo",
|
||||||
"track": "Tracks"
|
"track": "Gąsienice"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"penetration": "{damage}hp penetration",
|
"penetration": "{damage} penetracja punktów wytrzymałości",
|
||||||
"blocked": "Blocked",
|
"blocked": "Zablokowany",
|
||||||
"ricochet": "Ricochet",
|
"ricochet": "Rykoszet",
|
||||||
"splash": "{damage}hp splash"
|
"splash": "{damage} rozprysk punktów wytrzymałości"
|
||||||
},
|
},
|
||||||
"stats": {
|
"stats": {
|
||||||
"thickness_and_angle": "{thickness}mm {angle}°",
|
"thickness_and_angle": "{thickness}mm {angle}",
|
||||||
"nominal": "{thickness}mm nominal",
|
"nominal": "{thickness}mm nominalny",
|
||||||
"ricochet_loss": "{loss}% penetration"
|
"ricochet_loss": "{loss}% penetracji"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static": {
|
"static": {
|
||||||
"name": "Static armor",
|
"name": "Pancerz statyczny",
|
||||||
"primary": "Primary",
|
"primary": "Główny Pancerz",
|
||||||
"spaced": "Spaced",
|
"spaced": "Ekran przeciwkumulacyjny",
|
||||||
"external": "External",
|
"external": "Zewnętrzny",
|
||||||
"edit": {
|
"edit": {
|
||||||
"label": "Edit",
|
"label": "Edytuj",
|
||||||
"reset": "Reset"
|
"reset": "Zresetuj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"back": "Back",
|
"back": "Powrót",
|
||||||
"compare": "Compare",
|
"compare": "Porównaj",
|
||||||
"swap": {
|
"swap": {
|
||||||
"button": "Swap",
|
"button": "Zamień",
|
||||||
"title": "Swap tanks"
|
"title": "Zamień czołgi"
|
||||||
},
|
},
|
||||||
"vanilla": "Vanilla",
|
"vanilla": "Vanilla",
|
||||||
"opentest": "OpenTest",
|
"opentest": "OpenTest",
|
||||||
"full_name": "Full name",
|
"full_name": "Pełna nazwa",
|
||||||
"nation": "Naród",
|
"nation": "Naród",
|
||||||
"class": "Klasa",
|
"class": "Klasa",
|
||||||
"tier": "Poziom",
|
"tier": "Poziom",
|
||||||
"type": "Rodzaj",
|
"type": "Rodzaj",
|
||||||
"dev_id": "DEV: ID",
|
"dev_id": "DEV: ID",
|
||||||
"dev_name": "DEV: NAME",
|
"dev_name": "DEV: NAZWA",
|
||||||
"purchase": "Purchase price",
|
"purchase": "Cena zakupu",
|
||||||
"restoration": "Restoration price",
|
"restoration": "Cena odzyskania",
|
||||||
"sale": "Sale price",
|
"sale": "Sale price",
|
||||||
"research": "Research XP"
|
"research": "Research XP"
|
||||||
},
|
},
|
||||||
"tech_tree": {
|
"tech_tree": {
|
||||||
"title": "Tech tree",
|
"title": "Drzewko technologiczne",
|
||||||
"battle": "1 battle",
|
"battle": "1 bitwa",
|
||||||
"battles": "{count} battles",
|
"battles": "{count} bitew",
|
||||||
"route": "Route {index} of {count}"
|
"route": "Ścieżka {index} z {count}"
|
||||||
},
|
},
|
||||||
"game_modes": {
|
"game_modes": {
|
||||||
"title": "Game mode abilities"
|
"title": "Umiejętności trybu gry"
|
||||||
},
|
},
|
||||||
"review": {
|
"review": {
|
||||||
"title": "Review videos",
|
"title": "Review videos",
|
||||||
@@ -520,26 +521,26 @@
|
|||||||
"equalize": "Equalize"
|
"equalize": "Equalize"
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Modules",
|
"title": "Moduły",
|
||||||
"stock": "Stock",
|
"stock": "Standardowy",
|
||||||
"upgrade": "Upgrade"
|
"upgrade": "Ulepsz"
|
||||||
},
|
},
|
||||||
"equipment": {
|
"equipment": {
|
||||||
"title": "Equipment",
|
"title": "Wyposażenie",
|
||||||
"clear": "Clear"
|
"clear": "Wyczyść"
|
||||||
},
|
},
|
||||||
"provisions": {
|
"provisions": {
|
||||||
"title": "Provisions",
|
"title": "Materiały eksploatacyjne",
|
||||||
"clear": "Clear"
|
"clear": "Wyczyść"
|
||||||
},
|
},
|
||||||
"consumables": {
|
"consumables": {
|
||||||
"title": "Consumables",
|
"title": "Consumables",
|
||||||
"clear": "Clear",
|
"clear": "Wyczyść",
|
||||||
"info": "Yellow consumables do not affect the statistics."
|
"info": "Yellow consumables do not affect the statistics."
|
||||||
},
|
},
|
||||||
"skills": {
|
"skills": {
|
||||||
"title": "Crew skills",
|
"title": "Crew skills",
|
||||||
"clear": "Clear",
|
"clear": "Wyczyść",
|
||||||
"maximize": "Maximize",
|
"maximize": "Maximize",
|
||||||
"info": "Yellow skills only apply under special circumstances. Hold Space to quickly toggle between level 0 and 7."
|
"info": "Yellow skills only apply under special circumstances. Hold Space to quickly toggle between level 0 and 7."
|
||||||
},
|
},
|
||||||
@@ -557,49 +558,49 @@
|
|||||||
},
|
},
|
||||||
"values": {
|
"values": {
|
||||||
"shell_index": "Shell {index}",
|
"shell_index": "Shell {index}",
|
||||||
"at_distance": "At {distance}m",
|
"at_distance": "Z odległości {distance}m",
|
||||||
"at_distance_slider_label": "Distance",
|
"at_distance_slider_label": "Zasięg widzenia",
|
||||||
"dispersion_at_distance": "Dispersion at {distance}m",
|
"dispersion_at_distance": "Rozrzut na {distance}m",
|
||||||
"gun_flexibility": "Gun flexibility",
|
"gun_flexibility": "Elastyczność działa",
|
||||||
"speed": "Speed",
|
"speed": "Prędkość",
|
||||||
"terrain_coefficients": "Terrain coefficients",
|
"terrain_coefficients": "Współczynniki terenu",
|
||||||
"raw_terrain_coefficients": "Raw terrain coefficients",
|
"raw_terrain_coefficients": "Surowe współczynniki terenu",
|
||||||
"power_to_weight_ratio": "Power to weight ratio",
|
"power_to_weight_ratio": "Stosunek mocy do masy",
|
||||||
"hull_traverse_speed": "Hull traverse speed",
|
"hull_traverse_speed": "Prędkość obrotu kadłuba",
|
||||||
"camouflage": "Camouflage",
|
"camouflage": "Kamuflaż",
|
||||||
"reload": "Reload",
|
"reload": "Przeładowanie",
|
||||||
"crewCount": "Crew count",
|
"crewCount": "Liczba członków załogi",
|
||||||
"shellNormalization": "Normalization",
|
"shellNormalization": "Normalization",
|
||||||
"shellRicochet": "Ricochet",
|
"shellRicochet": "Ricochet",
|
||||||
"dpm": "DPM",
|
"dpm": "Uszkodzenia na minutę",
|
||||||
"dpmEffective": "Effective at 60s",
|
"dpmEffective": "Efektywne w 60s",
|
||||||
"peekabooDpm": "Peekaboo DPM",
|
"peekabooDpm": "Obrażenia na minutę w stylu „wychyl i schowaj”",
|
||||||
"peekabooDpmInfo": "Damage per minute assuming you only fire after resetting camouflage (or the reload finishes, if it's slower) — at least 10 seconds between shots.",
|
"peekabooDpmInfo": "Obrażenia na minutę przy założeniu, że strzelisz tylko po zresetowaniu kamuflażu (lub ponownym załadowaniu, jeśli jest wolniejszy) — co najmniej 10 sekund pomiędzy strzałami.",
|
||||||
"shells": "Shells",
|
"shells": "Pociski",
|
||||||
"mostOptimalShellIndex": "Most optimal shell",
|
"mostOptimalShellIndex": "Optymalny pocisk",
|
||||||
"shellReloads": "Reloads",
|
"shellReloads": "Przeładowania",
|
||||||
"shellReload": "Reload",
|
"shellReload": "Przeładowanie",
|
||||||
"intraClip": "Intra-clip",
|
"intraClip": "Czas przeładowania pocisku",
|
||||||
"caliber": "Caliber",
|
"caliber": "Caliber",
|
||||||
"penetration": "Penetration",
|
"penetration": "Penetration",
|
||||||
"damage": "Uszkodzenia",
|
"damage": "Uszkodzenia",
|
||||||
"damageWithoutAssault": "Damage without assault shells",
|
"damageWithoutAssault": "Uszkodzenia bez pocisków szturmowych",
|
||||||
"clipDamage": "Clipping potential",
|
"clipDamage": "Potencjał magazynu",
|
||||||
"moduleDamage": "Module damage",
|
"moduleDamage": "Uszkodzenia modułów",
|
||||||
"explosionRadius": "Explosion radius",
|
"explosionRadius": "Promień eksplozji",
|
||||||
"shellVelocity": "Shell velocity",
|
"shellVelocity": "Prędkość pocisku",
|
||||||
"aimTime": "Aim time",
|
"aimTime": "Czas celowania",
|
||||||
"dispersion": "Still",
|
"dispersion": "Still",
|
||||||
"dispersionMoving": "Moving",
|
"dispersionMoving": "Podczas ruchu",
|
||||||
"dispersionHullTraversing": "Hull traversing",
|
"dispersionHullTraversing": "Obrót kadłuba",
|
||||||
"dispersionTurretTraversing": "Turret traversing",
|
"dispersionTurretTraversing": "Obrót wieży",
|
||||||
"dispersionShooting": "Shooting",
|
"dispersionShooting": "Strzelanie",
|
||||||
"dispersionGunDamaged": "Gun damaged",
|
"dispersionGunDamaged": "Uszkodzone Działo",
|
||||||
"gunDepression": "Depression",
|
"gunDepression": "Limit obrotu działa w dół",
|
||||||
"gunElevation": "Elevation",
|
"gunElevation": "Limit obrotu działa w górę",
|
||||||
"gunFrontalDepression": "Frontal depression",
|
"gunFrontalDepression": "Przedni limit obrotu działa w dół",
|
||||||
"gunFrontalElevation": "Frontal elevation",
|
"gunFrontalElevation": "Przedni limit obrotu działa w górę",
|
||||||
"gunRearDepression": "Rear depression",
|
"gunRearDepression": "Tylne opuszczanie działa",
|
||||||
"gunRearElevation": "Rear elevation",
|
"gunRearElevation": "Rear elevation",
|
||||||
"azimuthLeft": "Azimuth left",
|
"azimuthLeft": "Azimuth left",
|
||||||
"azimuthRight": "Azimuth right",
|
"azimuthRight": "Azimuth right",
|
||||||
@@ -626,7 +627,7 @@
|
|||||||
"trackRepairTime": "Track repair time",
|
"trackRepairTime": "Track repair time",
|
||||||
"viewRange": "View range",
|
"viewRange": "View range",
|
||||||
"camouflageStill": "Still",
|
"camouflageStill": "Still",
|
||||||
"camouflageMoving": "Moving",
|
"camouflageMoving": "Podczas ruchu",
|
||||||
"camouflageShootingStill": "Shooting while still",
|
"camouflageShootingStill": "Shooting while still",
|
||||||
"camouflageShootingMoving": "Shooting while moving",
|
"camouflageShootingMoving": "Shooting while moving",
|
||||||
"camouflageCaughtOnFire": "Caught on fire",
|
"camouflageCaughtOnFire": "Caught on fire",
|
||||||
@@ -648,7 +649,7 @@
|
|||||||
"crew": {
|
"crew": {
|
||||||
"title": "Crew training",
|
"title": "Crew training",
|
||||||
"info": "represents the other roles a crew member can take.",
|
"info": "represents the other roles a crew member can take.",
|
||||||
"count": "Crew count",
|
"count": "Liczba członków załogi",
|
||||||
"commander": "Commander",
|
"commander": "Commander",
|
||||||
"gunner": "Gunner",
|
"gunner": "Gunner",
|
||||||
"driver": "Driver",
|
"driver": "Driver",
|
||||||
@@ -656,14 +657,14 @@
|
|||||||
"loader": "Loader"
|
"loader": "Loader"
|
||||||
},
|
},
|
||||||
"maneuverability": {
|
"maneuverability": {
|
||||||
"title": "Maneuverability"
|
"title": "Mobilność "
|
||||||
},
|
},
|
||||||
"survivability": {
|
"survivability": {
|
||||||
"title": "Survivability"
|
"title": "Przetrwanie"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compare": {
|
"compare": {
|
||||||
"name": "Compare",
|
"name": "Porównaj",
|
||||||
"button": "Compare tanks",
|
"button": "Compare tanks",
|
||||||
"description": "Compare tank statistics",
|
"description": "Compare tank statistics",
|
||||||
"seo_description": "Compare tanks statistics and loadouts in World of Tanks Blitz",
|
"seo_description": "Compare tanks statistics and loadouts in World of Tanks Blitz",
|
||||||
@@ -673,7 +674,7 @@
|
|||||||
"title": "Add tanks",
|
"title": "Add tanks",
|
||||||
"description": "Select tanks to add to comparison"
|
"description": "Select tanks to add to comparison"
|
||||||
},
|
},
|
||||||
"clear": "Clear",
|
"clear": "Wyczyść",
|
||||||
"deltas": {
|
"deltas": {
|
||||||
"none": "No deltas",
|
"none": "No deltas",
|
||||||
"percentage": "Percentage",
|
"percentage": "Percentage",
|
||||||
@@ -686,17 +687,17 @@
|
|||||||
},
|
},
|
||||||
"table": {
|
"table": {
|
||||||
"equipment": {
|
"equipment": {
|
||||||
"clear": "Clear",
|
"clear": "Wyczyść",
|
||||||
"apply_to_all": "Apply to all"
|
"apply_to_all": "Apply to all"
|
||||||
},
|
},
|
||||||
"skills": {
|
"skills": {
|
||||||
"clear": "Clear",
|
"clear": "Wyczyść",
|
||||||
"maximize": "Maximize",
|
"maximize": "Maximize",
|
||||||
"equalize": "Equalize"
|
"equalize": "Equalize"
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"stock": "Stock",
|
"stock": "Standardowy",
|
||||||
"upgrade": "Upgrade"
|
"upgrade": "Ulepsz"
|
||||||
},
|
},
|
||||||
"provisions": {
|
"provisions": {
|
||||||
"clear": "Clear this tank",
|
"clear": "Clear this tank",
|
||||||
@@ -761,14 +762,14 @@
|
|||||||
"seo_description": "Track your stats in real time as you play World of Tanks Blitz",
|
"seo_description": "Track your stats in real time as you play World of Tanks Blitz",
|
||||||
"search": {
|
"search": {
|
||||||
"lookup": "Look up a player to get started",
|
"lookup": "Look up a player to get started",
|
||||||
"hint": "Search players...",
|
"hint": "Szukaj graczy...",
|
||||||
"searching": "Searching...",
|
"searching": "Wyszukiwanie...",
|
||||||
"no_results": "No players found"
|
"no_results": "No players found"
|
||||||
},
|
},
|
||||||
"controls": {
|
"controls": {
|
||||||
"title": "Tracking {name}",
|
"title": "Tracking {name}",
|
||||||
"subtitle": "Since {time}",
|
"subtitle": "Since {time}",
|
||||||
"reset": "Reset",
|
"reset": "Zresetuj",
|
||||||
"change": "Change"
|
"change": "Change"
|
||||||
},
|
},
|
||||||
"no_cc": {
|
"no_cc": {
|
||||||
@@ -792,7 +793,7 @@
|
|||||||
"description": "Rank Blitz tanks",
|
"description": "Rank Blitz tanks",
|
||||||
"seo_description": "Explore tier lists ranking tanks from best to worst, based on player ratings and statistical performance in World of Tanks Blitz",
|
"seo_description": "Explore tier lists ranking tanks from best to worst, based on player ratings and statistical performance in World of Tanks Blitz",
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"reset": "Reset",
|
"reset": "Zresetuj",
|
||||||
"share": "Share"
|
"share": "Share"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -828,7 +829,7 @@
|
|||||||
"success": {
|
"success": {
|
||||||
"title": "Copy URL",
|
"title": "Copy URL",
|
||||||
"info": "Generated the URL for {name}. The embed will start tracking as soon as the URL is pasted. Reset at any time by right-clicking on PC or long-pressing on mobile and then selecting \"Reset\".",
|
"info": "Generated the URL for {name}. The embed will start tracking as soon as the URL is pasted. Reset at any time by right-clicking on PC or long-pressing on mobile and then selecting \"Reset\".",
|
||||||
"back": "Back",
|
"back": "Powrót",
|
||||||
"copy": "Copy URL"
|
"copy": "Copy URL"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -839,7 +840,7 @@
|
|||||||
},
|
},
|
||||||
"customize": {
|
"customize": {
|
||||||
"title": "Customize",
|
"title": "Customize",
|
||||||
"reset": "Reset",
|
"reset": "Zresetuj",
|
||||||
"description": "Bells and whistles of your embed"
|
"description": "Bells and whistles of your embed"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -922,7 +923,6 @@
|
|||||||
"copyright": "Unaffiliated with Wargaming or any service",
|
"copyright": "Unaffiliated with Wargaming or any service",
|
||||||
"about": {
|
"about": {
|
||||||
"title": "About",
|
"title": "About",
|
||||||
"credits": "Credits",
|
|
||||||
"discord": "Discord",
|
"discord": "Discord",
|
||||||
"github": "GitHub",
|
"github": "GitHub",
|
||||||
"patches": "Patches"
|
"patches": "Patches"
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{
|
{
|
||||||
"test": {
|
|
||||||
"default": "teste",
|
|
||||||
"long": "This is a long test string. You MUST NEVER see this in the UI. My favorite fruit is {fruit} because it has the color of {color}. I like it so much that I will say its name 3 times! {fruit}! {fruit}! {fruit}! Once again, it's {color}, not {not_color}.",
|
|
||||||
"fox": "A ágil raposa castanha salta por cima do cão preguiçoso."
|
|
||||||
},
|
|
||||||
"common": {
|
"common": {
|
||||||
"name": "BlitzKit",
|
"name": "BlitzKit",
|
||||||
"units": {
|
"units": {
|
||||||
@@ -41,7 +36,7 @@
|
|||||||
"development": "Development",
|
"development": "Development",
|
||||||
"opentest": "TesteAberto",
|
"opentest": "TesteAberto",
|
||||||
"preview": "Preview",
|
"preview": "Preview",
|
||||||
"production": "Production"
|
"production": "Produção"
|
||||||
},
|
},
|
||||||
"locales": {
|
"locales": {
|
||||||
"en": "Inglês",
|
"en": "Inglês",
|
||||||
@@ -187,11 +182,11 @@
|
|||||||
},
|
},
|
||||||
"website": {
|
"website": {
|
||||||
"redirect": {
|
"redirect": {
|
||||||
"title": "301: moved permanently",
|
"title": "301: movido permanentemente",
|
||||||
"body": "This page has moved. Redirecting..."
|
"body": "This page has moved. Redirecting..."
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"title": "Settings",
|
"title": "Configurações",
|
||||||
"description": "Change BlitzKit settings",
|
"description": "Change BlitzKit settings",
|
||||||
"dev_mode": "Modo de desenvolvimento",
|
"dev_mode": "Modo de desenvolvimento",
|
||||||
"auto_load_models": "Auto-load models",
|
"auto_load_models": "Auto-load models",
|
||||||
@@ -207,9 +202,9 @@
|
|||||||
"copied": "Copiado!"
|
"copied": "Copiado!"
|
||||||
},
|
},
|
||||||
"tank_search": {
|
"tank_search": {
|
||||||
"select_dialog_title": "Search for tanks",
|
"select_dialog_title": "Procura por tanque",
|
||||||
"swap_dialog_title": "Swap tank",
|
"swap_dialog_title": "Swap tank",
|
||||||
"clear_filters": "Clear filters",
|
"clear_filters": "Limpar filtros",
|
||||||
"login": "Login to use this",
|
"login": "Login to use this",
|
||||||
"search_bar_hint": "Procurar tanques...",
|
"search_bar_hint": "Procurar tanques...",
|
||||||
"recent": "Visto recentemente",
|
"recent": "Visto recentemente",
|
||||||
@@ -307,6 +302,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
|
"credits": {
|
||||||
|
"name": "Credits",
|
||||||
|
"button": "View people",
|
||||||
|
"description": "Contributors of BlitzKit",
|
||||||
|
"seo_description": "BlitzKit is the work of many"
|
||||||
|
},
|
||||||
"playlist": {
|
"playlist": {
|
||||||
"reset": "Restaurar",
|
"reset": "Restaurar",
|
||||||
"shuffle": "Shuffle",
|
"shuffle": "Shuffle",
|
||||||
@@ -922,7 +923,6 @@
|
|||||||
"copyright": "Não afiliado à Wargaming ou qualquer serviço",
|
"copyright": "Não afiliado à Wargaming ou qualquer serviço",
|
||||||
"about": {
|
"about": {
|
||||||
"title": "Sobre",
|
"title": "Sobre",
|
||||||
"credits": "Créditos",
|
|
||||||
"discord": "Discord",
|
"discord": "Discord",
|
||||||
"github": "GitHub",
|
"github": "GitHub",
|
||||||
"patches": "Atualizações"
|
"patches": "Atualizações"
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{
|
{
|
||||||
"test": {
|
|
||||||
"default": "тест",
|
|
||||||
"long": "Это длинная тестовая строка. Вы НИКОГДА не должны видеть её в пользовательском интерфейсе. Мой любимый фрукт — {fruit}, потому что это цвет {color}. Он мне так нравится, так что я скажу его 3 раза {fruit}! {fruit}! {fruit}! И ещё раз, это {color}, а не {not_color}.",
|
|
||||||
"fox": "Съешь же ещё этих мягких французских булок, да выпей чаю."
|
|
||||||
},
|
|
||||||
"common": {
|
"common": {
|
||||||
"name": "BlitzKit",
|
"name": "BlitzKit",
|
||||||
"units": {
|
"units": {
|
||||||
@@ -38,10 +33,10 @@
|
|||||||
},
|
},
|
||||||
"branches": {
|
"branches": {
|
||||||
"beta": "Бета",
|
"beta": "Бета",
|
||||||
"development": "Development",
|
"development": "Разработка",
|
||||||
"opentest": "Открытый тест",
|
"opentest": "Открытый тест",
|
||||||
"preview": "Preview",
|
"preview": "Предпросмотр",
|
||||||
"production": "Production"
|
"production": "Производство"
|
||||||
},
|
},
|
||||||
"locales": {
|
"locales": {
|
||||||
"en": "Английский",
|
"en": "Английский",
|
||||||
@@ -194,7 +189,7 @@
|
|||||||
"title": "Настройки",
|
"title": "Настройки",
|
||||||
"description": "Изменить настройки BlitzKit",
|
"description": "Изменить настройки BlitzKit",
|
||||||
"dev_mode": "Режим разработчика",
|
"dev_mode": "Режим разработчика",
|
||||||
"auto_load_models": "Auto-load models",
|
"auto_load_models": "Автозагрузка моделей",
|
||||||
"language": "Язык"
|
"language": "Язык"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -307,6 +302,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
|
"credits": {
|
||||||
|
"name": "Credits",
|
||||||
|
"button": "View people",
|
||||||
|
"description": "Contributors of BlitzKit",
|
||||||
|
"seo_description": "BlitzKit is the work of many"
|
||||||
|
},
|
||||||
"playlist": {
|
"playlist": {
|
||||||
"reset": "Сброс",
|
"reset": "Сброс",
|
||||||
"shuffle": "Перемешать",
|
"shuffle": "Перемешать",
|
||||||
@@ -413,7 +414,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
"load_model": "Load model",
|
"load_model": "Загрузить модель",
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "За холмом",
|
"hull_down": "За холмом",
|
||||||
"face_hug": "В упор",
|
"face_hug": "В упор",
|
||||||
@@ -574,7 +575,7 @@
|
|||||||
"dpm": "ДПМ",
|
"dpm": "ДПМ",
|
||||||
"dpmEffective": "Эффективность за 60с",
|
"dpmEffective": "Эффективность за 60с",
|
||||||
"peekabooDpm": "Peekaboo DPM",
|
"peekabooDpm": "Peekaboo DPM",
|
||||||
"peekabooDpmInfo": "Damage per minute assuming you only fire after resetting camouflage (or the reload finishes, if it's slower) — at least 10 seconds between shots.",
|
"peekabooDpmInfo": "Урон в минуту при условии, если вы сбросите камуфляж(или перезарядка окончена, если она медленнее) - не менее 10 секунд между выстрелами.",
|
||||||
"shells": "Снарядов в барабане",
|
"shells": "Снарядов в барабане",
|
||||||
"mostOptimalShellIndex": "Самый эффективный снаряд",
|
"mostOptimalShellIndex": "Самый эффективный снаряд",
|
||||||
"shellReloads": "Перезарядка",
|
"shellReloads": "Перезарядка",
|
||||||
@@ -922,7 +923,6 @@
|
|||||||
"copyright": "Не связан с Wargaming или иным сервисом",
|
"copyright": "Не связан с Wargaming или иным сервисом",
|
||||||
"about": {
|
"about": {
|
||||||
"title": "О сайте",
|
"title": "О сайте",
|
||||||
"credits": "Авторы",
|
|
||||||
"discord": "Discord",
|
"discord": "Discord",
|
||||||
"github": "GitHub",
|
"github": "GitHub",
|
||||||
"patches": "Патчи"
|
"patches": "Патчи"
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{
|
{
|
||||||
"test": {
|
|
||||||
"default": "тест",
|
|
||||||
"long": "{color}{fruit}",
|
|
||||||
"fox": "Швидка бура лисиця перестрибує через лінивого собаку."
|
|
||||||
},
|
|
||||||
"common": {
|
"common": {
|
||||||
"name": "BlitzKit",
|
"name": "BlitzKit",
|
||||||
"units": {
|
"units": {
|
||||||
@@ -307,6 +302,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
|
"credits": {
|
||||||
|
"name": "Credits",
|
||||||
|
"button": "View people",
|
||||||
|
"description": "Contributors of BlitzKit",
|
||||||
|
"seo_description": "BlitzKit is the work of many"
|
||||||
|
},
|
||||||
"playlist": {
|
"playlist": {
|
||||||
"reset": "Скинути",
|
"reset": "Скинути",
|
||||||
"shuffle": "Перемішати",
|
"shuffle": "Перемішати",
|
||||||
@@ -364,7 +365,7 @@
|
|||||||
"title": "Partially reveal tank?",
|
"title": "Partially reveal tank?",
|
||||||
"description": "Reveals the tank without showing the name. This round will be considered incorrect and break your streak!",
|
"description": "Reveals the tank without showing the name. This round will be considered incorrect and break your streak!",
|
||||||
"cancel": "",
|
"cancel": "",
|
||||||
"reveal": "Reveal"
|
"reveal": "Рівень"
|
||||||
},
|
},
|
||||||
"clear": "Clear",
|
"clear": "Clear",
|
||||||
"select_all": "Вибрати все",
|
"select_all": "Вибрати все",
|
||||||
@@ -922,7 +923,6 @@
|
|||||||
"copyright": "Unaffiliated with Wargaming or any service",
|
"copyright": "Unaffiliated with Wargaming or any service",
|
||||||
"about": {
|
"about": {
|
||||||
"title": "About",
|
"title": "About",
|
||||||
"credits": "Credits",
|
|
||||||
"discord": "Discord",
|
"discord": "Discord",
|
||||||
"github": "GitHub",
|
"github": "GitHub",
|
||||||
"patches": "Patches"
|
"patches": "Patches"
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{
|
{
|
||||||
"test": {
|
|
||||||
"default": "测试",
|
|
||||||
"long": "这是一个测试用长字符串。你绝对不会在用户界面中看见这些。我最喜欢的水果是{fruit}因为它的颜色是{color}的。我如此喜欢它,以至于我会把它的名字念3次!{fruit}!{fruit}!{fruit}!重申一次,它是{color}的而不是{not_color}的。",
|
|
||||||
"fox": "褐色的狐狸迅速地跳过那只懒狗"
|
|
||||||
},
|
|
||||||
"common": {
|
"common": {
|
||||||
"name": "BlitzKit",
|
"name": "BlitzKit",
|
||||||
"units": {
|
"units": {
|
||||||
@@ -307,6 +302,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
|
"credits": {
|
||||||
|
"name": "Credits",
|
||||||
|
"button": "View people",
|
||||||
|
"description": "Contributors of BlitzKit",
|
||||||
|
"seo_description": "BlitzKit is the work of many"
|
||||||
|
},
|
||||||
"playlist": {
|
"playlist": {
|
||||||
"reset": "重置",
|
"reset": "重置",
|
||||||
"shuffle": "换一批",
|
"shuffle": "换一批",
|
||||||
@@ -922,7 +923,6 @@
|
|||||||
"copyright": "本网站与 Wargaming战游网 或任何服务无关",
|
"copyright": "本网站与 Wargaming战游网 或任何服务无关",
|
||||||
"about": {
|
"about": {
|
||||||
"title": "关于",
|
"title": "关于",
|
||||||
"credits": "鸣谢",
|
|
||||||
"discord": "Discord",
|
"discord": "Discord",
|
||||||
"github": "GitHub",
|
"github": "GitHub",
|
||||||
"patches": "补丁"
|
"patches": "补丁"
|
||||||
|
|||||||
@@ -13,4 +13,6 @@ message Camouflage {
|
|||||||
I18nString name = 2;
|
I18nString name = 2;
|
||||||
optional I18nString tank_name = 3;
|
optional I18nString tank_name = 3;
|
||||||
optional I18nString tank_name_full = 4;
|
optional I18nString tank_name_full = 4;
|
||||||
|
optional uint32 tank_id = 5;
|
||||||
|
optional bool attachment = 6;
|
||||||
}
|
}
|
||||||
@@ -14,6 +14,15 @@ message Consumable {
|
|||||||
bool game_mode_exclusive = 5;
|
bool game_mode_exclusive = 5;
|
||||||
repeated TankInclusivityFilter include = 6;
|
repeated TankInclusivityFilter include = 6;
|
||||||
repeated TankInclusivityFilter exclude = 7;
|
repeated TankInclusivityFilter exclude = 7;
|
||||||
|
ConsumableCategory category = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ordered by in-game price, cheapest first
|
||||||
|
enum ConsumableCategory {
|
||||||
|
CONSUMABLE_CATEGORY_FREE = 0;
|
||||||
|
CONSUMABLE_CATEGORY_COMMON = 1;
|
||||||
|
CONSUMABLE_CATEGORY_POTENT = 2;
|
||||||
|
CONSUMABLE_CATEGORY_RADICAL = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message TankInclusivityFilter {
|
message TankInclusivityFilter {
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package blitzkit;
|
||||||
|
|
||||||
|
message ProtoVector2 {
|
||||||
|
float x = 1;
|
||||||
|
float y = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ProtoVector3 {
|
||||||
|
float x = 1;
|
||||||
|
float y = 2;
|
||||||
|
float z = 3;
|
||||||
|
}
|
||||||
@@ -2,13 +2,15 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package blitzkit;
|
package blitzkit;
|
||||||
|
|
||||||
|
import "math.proto";
|
||||||
|
|
||||||
message ModelDefinitions {
|
message ModelDefinitions {
|
||||||
map<uint32, ModelDefinition> models = 1;
|
map<uint32, ModelDefinition> models = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ModelDefinition {
|
message ModelDefinition {
|
||||||
Armor armor = 1;
|
Armor armor = 1;
|
||||||
Vector3 turret_origin = 2;
|
ProtoVector3 turret_origin = 2;
|
||||||
optional InitialTurretRotation initial_turret_rotation = 3;
|
optional InitialTurretRotation initial_turret_rotation = 3;
|
||||||
map<uint32, TurretModelDefinition> turrets = 4;
|
map<uint32, TurretModelDefinition> turrets = 4;
|
||||||
map<uint32, TrackModelDefinition> tracks = 5;
|
map<uint32, TrackModelDefinition> tracks = 5;
|
||||||
@@ -20,12 +22,6 @@ message Armor {
|
|||||||
repeated uint32 spaced = 2;
|
repeated uint32 spaced = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Vector3 {
|
|
||||||
float x = 1;
|
|
||||||
float y = 2;
|
|
||||||
float z = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message InitialTurretRotation {
|
message InitialTurretRotation {
|
||||||
float yaw = 1;
|
float yaw = 1;
|
||||||
float pitch = 2;
|
float pitch = 2;
|
||||||
@@ -36,7 +32,7 @@ message TurretModelDefinition {
|
|||||||
BoundingBox bounding_box = 1;
|
BoundingBox bounding_box = 1;
|
||||||
Armor armor = 2;
|
Armor armor = 2;
|
||||||
uint32 model_id = 3;
|
uint32 model_id = 3;
|
||||||
Vector3 gun_origin = 4;
|
ProtoVector3 gun_origin = 4;
|
||||||
map<uint32, GunModelDefinition> guns = 5;
|
map<uint32, GunModelDefinition> guns = 5;
|
||||||
optional YawLimits yaw = 6;
|
optional YawLimits yaw = 6;
|
||||||
}
|
}
|
||||||
@@ -47,13 +43,13 @@ message YawLimits {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message BoundingBox {
|
message BoundingBox {
|
||||||
Vector3 min = 1;
|
ProtoVector3 min = 1;
|
||||||
Vector3 max = 2;
|
ProtoVector3 max = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message TrackModelDefinition {
|
message TrackModelDefinition {
|
||||||
float thickness = 1;
|
float thickness = 1;
|
||||||
Vector3 origin = 2;
|
ProtoVector3 origin = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GunModelDefinition {
|
message GunModelDefinition {
|
||||||
|
|||||||
@@ -5,8 +5,14 @@ package blitzkit;
|
|||||||
message SkillDefinitions {
|
message SkillDefinitions {
|
||||||
// enums are disallowed as keys so using uint32; convert run-time
|
// enums are disallowed as keys so using uint32; convert run-time
|
||||||
map<uint32, Skill> classes = 1;
|
map<uint32, Skill> classes = 1;
|
||||||
|
// each skill's numeric constants by the client's tag name, like repairSpeedFactorPerLevel
|
||||||
|
map<string, SkillConstants> constants = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Skill {
|
message Skill {
|
||||||
repeated string skills = 1;
|
repeated string skills = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message SkillConstants {
|
||||||
|
map<string, float> values = 1;
|
||||||
|
}
|
||||||
@@ -3,45 +3,128 @@ syntax = "proto3";
|
|||||||
package blitzkit;
|
package blitzkit;
|
||||||
|
|
||||||
import "i18n.proto";
|
import "i18n.proto";
|
||||||
|
import "math.proto";
|
||||||
|
|
||||||
message TankDefinitions {
|
message TankDefinitions {
|
||||||
map<uint32, TankDefinition> tanks = 1;
|
map<uint32, TankDefinition> tanks = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message TankDefinition {
|
message TankDefinition {
|
||||||
uint32 id = 1;
|
uint32 id = 1;
|
||||||
string slug = 2;
|
string slug = 2;
|
||||||
map<string, uint32> roles = 3;
|
map<string, uint32> roles = 3;
|
||||||
bool fixed_camouflage = 5;
|
bool fixed_camouflage = 5;
|
||||||
repeated int32 camouflages = 6;
|
repeated int32 camouflages = 6;
|
||||||
repeated int32 ancestors = 7;
|
repeated int32 ancestors = 7;
|
||||||
repeated int32 successors = 8;
|
repeated int32 successors = 8;
|
||||||
repeated Crew crew = 9;
|
repeated Crew crew = 9;
|
||||||
uint32 health = 10;
|
uint32 health = 10;
|
||||||
string nation = 11;
|
string nation = 11;
|
||||||
I18nString name = 12;
|
I18nString name = 12;
|
||||||
TankType type = 13;
|
TankType type = 13;
|
||||||
uint32 max_consumables = 14;
|
uint32 max_consumables = 14;
|
||||||
uint32 max_provisions = 15;
|
uint32 max_provisions = 15;
|
||||||
uint32 tier = 16;
|
uint32 tier = 16;
|
||||||
TankClass class = 17;
|
TankClass class = 17;
|
||||||
bool testing = 18;
|
bool testing = 18;
|
||||||
bool deprecated = 19;
|
bool deprecated = 19;
|
||||||
repeated TurretDefinition turrets = 20;
|
repeated TurretDefinition turrets = 20;
|
||||||
repeated EngineDefinition engines = 21;
|
repeated EngineDefinition engines = 21;
|
||||||
repeated TrackDefinition tracks = 22;
|
repeated TrackDefinition tracks = 22;
|
||||||
TankPrice price = 23;
|
TankPrice price = 23;
|
||||||
optional ResearchCost research_cost = 24;
|
optional ResearchCost research_cost = 24;
|
||||||
float speed_forwards = 25;
|
float speed_forwards = 25;
|
||||||
float speed_backwards = 26;
|
float speed_backwards = 26;
|
||||||
float camouflage_still = 27;
|
float camouflage_still = 27;
|
||||||
float camouflage_moving = 28;
|
float camouflage_moving = 28;
|
||||||
float camouflage_on_fire = 29;
|
float camouflage_on_fire = 29;
|
||||||
string equipment_preset = 30;
|
string equipment_preset = 30;
|
||||||
uint32 weight = 31;
|
uint32 weight = 31;
|
||||||
string dev_name = 32;
|
string dev_name = 32;
|
||||||
optional Equalizer equalizer = 33;
|
optional Equalizer equalizer = 33;
|
||||||
optional I18nString name_full = 34;
|
optional I18nString name_full = 34;
|
||||||
|
repeated ModulePosition module_positions = 35;
|
||||||
|
optional AugmentProgression augment_progression = 36;
|
||||||
|
repeated VehicleAbility vehicle_abilities = 37;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hand-authored cell in the modules screen grid. Tanks without any use the
|
||||||
|
// automatic layout.
|
||||||
|
message ModulePosition {
|
||||||
|
int32 id = 1;
|
||||||
|
ModuleType type = 2;
|
||||||
|
ProtoVector2 position = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tier 11 augment tree (`upgradeProgression` in the game files). Cells are
|
||||||
|
// placed by hand on a 1-based grid and the connectors are routed by the
|
||||||
|
// client, see the loadout augments layout.
|
||||||
|
message AugmentProgression {
|
||||||
|
uint32 rows = 1;
|
||||||
|
uint32 columns = 2;
|
||||||
|
repeated AugmentNode nodes = 3;
|
||||||
|
optional AugmentGroup group = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
// A hidden provision or consumable the tank has, which the game turns into an
|
||||||
|
// ability. The script itself lives in `scripts.json` under `id`. `gun` is the
|
||||||
|
// placeholder gun the ability fires, when it fires one
|
||||||
|
message VehicleAbility {
|
||||||
|
AbilitySource source = 1;
|
||||||
|
uint32 id = 2;
|
||||||
|
optional GunDefinition gun = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
enum AbilitySource {
|
||||||
|
ABILITY_SOURCE_PROVISION = 0;
|
||||||
|
ABILITY_SOURCE_CONSUMABLE = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: render these differently in the browser
|
||||||
|
enum AugmentNodeType {
|
||||||
|
AUGMENT_NODE_TYPE_COMMON = 0;
|
||||||
|
AUGMENT_NODE_TYPE_MECHANIC = 1;
|
||||||
|
AUGMENT_NODE_TYPE_ALTERNATIVE = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message AugmentNode {
|
||||||
|
int32 id = 1;
|
||||||
|
string tech_name = 2;
|
||||||
|
AugmentNodeType type = 3;
|
||||||
|
// Alternative nodes live in their group and cost nothing on their own
|
||||||
|
int32 xp_cost = 4;
|
||||||
|
// Missing for alternative nodes
|
||||||
|
optional ProtoVector2 position = 5;
|
||||||
|
repeated AugmentRequirement requires = 6;
|
||||||
|
repeated AugmentAttribute attributes = 7;
|
||||||
|
optional I18nString name = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
message AugmentRequirement {
|
||||||
|
string tech_name = 1;
|
||||||
|
// Route the connector along the column before the row
|
||||||
|
bool vertical_first = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message AugmentAttribute {
|
||||||
|
string name = 1;
|
||||||
|
// Switches are stored as 0 or 1
|
||||||
|
float value = 2;
|
||||||
|
// Icon file name, missing for attributes the client has no art for
|
||||||
|
optional string icon = 3;
|
||||||
|
optional I18nString title = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mutually exclusive final choice that all of its requirements lead into
|
||||||
|
message AugmentGroup {
|
||||||
|
string tech_name = 1;
|
||||||
|
I18nString name = 2;
|
||||||
|
I18nString description = 3;
|
||||||
|
optional string icon = 4;
|
||||||
|
int32 xp_cost = 5;
|
||||||
|
ProtoVector2 position = 6;
|
||||||
|
repeated AugmentRequirement requires = 7;
|
||||||
|
repeated AugmentNode alternatives = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Equalizer {
|
message Equalizer {
|
||||||
@@ -87,6 +170,7 @@ message TrackDefinition {
|
|||||||
float resistance_medium = 10;
|
float resistance_medium = 10;
|
||||||
float resistance_soft = 11;
|
float resistance_soft = 11;
|
||||||
repeated Unlock unlocks = 12;
|
repeated Unlock unlocks = 12;
|
||||||
|
float repair_time = 13;
|
||||||
}
|
}
|
||||||
|
|
||||||
message EngineDefinition {
|
message EngineDefinition {
|
||||||
@@ -184,6 +268,8 @@ message ShellDefinition {
|
|||||||
optional float ricochet = 11;
|
optional float ricochet = 11;
|
||||||
optional float explosion_radius = 12;
|
optional float explosion_radius = 12;
|
||||||
uint32 range = 13;
|
uint32 range = 13;
|
||||||
|
optional float acceleration = 14;
|
||||||
|
optional float max_speed = 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ShellType {
|
enum ShellType {
|
||||||
|
|||||||
Loaded 100 of 863 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user