Commit Graph
177 Commits
Author SHA1 Message Date
tresabhi b68755df35 island tanks 2026-11-22 18:58:05 -06:00
tresabhi ff051106e7 migrated embed 2026-11-19 16:59:43 -06:00
tresabhi 8cf000cbe6 navbars 2026-11-18 22:31:10 -06:00
tresabhi 0578f47914 performance table rewrite and shared sort direction 2026-11-17 22:01:46 -06:00
tresabhi 79129ff3c0 augment trees, pitch-limit fallback, and cached definitions 2026-11-15 17:28:43 -06:00
tresabhi c311a6ab8b migrate compare and tankopedia loadout to new data-driven components, splitting the old monolithic loadout and compare UI into smaller pieces and adding shared Table, Dialog and Scroller primitives 2026-11-14 01:17:38 -06:00
tresabhi c72ee930bf migrate guesser 2026-11-12 15:14:01 -06:00
tresabhi fe545c415e antagonist settings 2026-11-09 23:23:04 -06:00
tresabhi 7ff386cecc animation pause button 2026-11-09 22:07:56 -06:00
tresabhi 5477be35e7 Merge branch 'main' into data-driven 2026-11-05 16:46:42 -06:00
tresabhi c82d2ccf1c Merge branch 'main' into pr/Hitjack007/378-2 2026-11-01 13:26:16 -06:00
tresabhi 8d9549f7d5 get over it 2026-10-31 18:06:49 -05:00
tresabhi 75f91467ab loaders 2026-10-31 13:57:56 -05:00
tresabhi 11088ee3dc attachments 2026-10-31 13:48:15 -05:00
tresabhi b3064cdd3a some small fixes 2026-10-31 13:41:41 -05:00
tresabhi a15e331681 Merge branch 'main' into data-driven 2026-10-31 13:38:57 -05:00
tresabhi d96f77bf05 i am tired boss 2026-10-29 15:29:37 -05:00
Mark Greene c772d47a07 Fix: Unify Tankopedia model, camouflage and attachment loaders
- Tankopedia state uses `loaders: { model, skin, attachment }` with `requested` and `loaded`
- useSkin swaps the camouflage halfway through the lighting transition for both cached and downloaded skins
- Remove the leftover "Unreleased" camouflage name handling
2026-10-30 07:11:31 +13:00
Mark Greene 0f299335d6 Fix: Legendary camouflage parts, materials, names and attachments
Fixes a batch of legendary camouflage problems in the Tankopedia viewer, adds three missing unique camouflages and lets attachments be shown together with a camouflage.

## Camouflage parts (state switchers)
- Camouflages now choose which tank pieces show the same way the game does. Each switcher's load-time scenario script runs at export time (checks for attached camouflage items, or compares the camouflage preset), along with its state-switch actions. This replaces the old guess from part names (new `core/blitzkit/switcherStates.ts`).
- Fixes missing roof MGs, fenders and fuel tanks (IS-3 Bear, Obj. 140 Terror, IS-7, IS-4, FV215b 183, AMX 50 B, KV-1S) and default parts mixed into camouflages (Pershing Speedfire, Forest Witch Fullmetal, Waffenträger Goldstreifen).
- Switchers inside camouflage parts now show one state instead of all of them stacked (Obj. Kust double net, Goldstreifen stowage, Tiger II cat).
- States are matched by original node names, because the GLTF loader renames duplicates.
- Camouflage part meshes with no LODs (`lodIndex -1`) are kept, which restores the Tiger II cat body and missing pieces on about 11 other camouflages.

## Materials
- `AlphaBlend` materials export as transparent. `AlphaBlendAdditive` materials export as additive and are applied in `jsxTree`, and unlit `Textured` materials export as unlit (IS-8 Raroh flames, dinosaur holograms, and glass and screens on a few base tanks).
- Camouflage part materials that share a name with the tank's material no longer replace the tank's camouflage material (Bisonte C45 Unbreakable).

## Names
- With a legendary camouflage selected, the title shows the tank's in-battle name ("GuP Type 95 Ha-Go", "KV-1 Warrior", "Shinobi").
- Camouflages without a name in the game files yet show "Unreleased" in orange instead of their raw string key, and no longer crash the tank names list.

## Attachments
- Attachments (`kind: customization`) are listed in their own group under the camouflages and can be turned on together with a camouflage. They load the same way as camouflages and fade with the same transition.

## Other
- Liberté, You Rock! and Ozzie (single-tank camouflages that only set a preset through `override`) are now available.
- Mastery gun mark meshes (`custom_gun_marks_*`) are no longer drawn (Helsing, HWT20 FalconFire and two camouflage guns).

## Not included
- Pixel Wave, Digital Trace and Forest Shadow are tiled pattern camouflages, which the viewer can't render yet.
- FV301 Corbie's drone position and the dinosaur heads' glow depend on camouflage animations and emissive materials, which are separate PRs.

Fixes #417
Fixes #419
Fixes #421
2026-10-29 15:28:11 +13:00
tresabhi 89d272166f Merge branch 'main' into data-driven 2026-10-25 18:49:49 -05:00
Mark Greene a495a5f208 Feature: Legendary camouflages in the Tankopedia viewer 2026-10-22 16:12:03 +13:00
tresabhi b00a63a9f8 sorting 2026-10-15 00:38:01 -05:00
tresabhi ae2839cb83 ranks 2026-10-11 15:44:42 -05:00
tresabhi e1bc11644d hull traverse speeds 2026-10-11 01:36:34 -05:00
tresabhi 1b08393f65 Merge branch 'main' into data-driven 2026-10-11 00:34:39 -05:00
TrèsAbhi b45f281cb9 Merge branch 'main' into compare-switch-all-shells 2026-10-09 17:39:15 -05:00
Mark Greene d93b202ee8 Feature: Switch all shells in Compare 2026-10-08 18:36:17 +13:00
Mark Greene fbdfa2c063 Feature: Penetration chance in the armor shot card
Shows the chance a shot penetrates in the dynamic armor shot card, right-aligned on the shot's result line.

- Penetration varies by ±5% (the same randomisation the armor highlighter shader uses), so the chance is the share of that range where the shot's final outcome is a penetration
- Re-runs the existing shot calculation at different penetration values, so spaced armor, HEAT gap losses and ricochets are taken into account
- For ricochets the chance is shown on the ricocheted shot's line; HE splashes don't count as penetrations
- Adds the `shot_card.stats.penetration_chance` string

Fixes #342
2026-10-08 18:00:57 +13:00
TrèsAbhi de03a2ab95 Merge branch 'main' into tier-eleven-compatibility 2026-10-07 16:23:11 -05:00
Mark Greene 541da65bfc Feature: option to turn off automatic tank model loading
Lets people on limited data stop the Tankopedia from downloading 3D models automatically.

- Added an Automatically load 3D models switch to the settings page, on by default
- When off, the tank page hero shows a Load 3D model button where the loading bar sits
- Held back every model download on the tank page until requested, including the dynamic armor switcher and the gun flexibility visualizer
- Wrapped the tank sandbox in its own suspense boundary so the loading bar shows real progress instead of the whole page waiting on the model
- Measured loading progress from when each loading bar appears so it always starts empty
- Added the English strings; other languages fall back until translated

Fixes #311
2026-10-05 19:52:46 +13:00
Mark Greene e4e92d76b4 Feature: tier XI compatibility
Prepares BlitzKit for tier XI tanks ahead of their release. Tier X was hardcoded as the maximum in the tank search filters, the guesser and the tech tree, and had no roman numeral beyond X.

- Added `XI` to `TIER_ROMAN_NUMERALS`
- Added an awaitable tier list derived from the highest tier in the tank definitions, so nothing changes until tier XI tanks exist
- Used it for the tank search tier filters and the guesser tier picker and defaults
- Made the tech tree check for successors instead of assuming tier X is the last tier

Fixes #302
2026-10-05 18:18:19 +13:00
tresabhi 474e71843d assaultDamageCoefficient 2026-10-04 17:57:12 -05:00
tresabhi 6ebb2810ad Merge branch 'main' into data-driven 2026-10-04 16:33:53 -05:00
Mark Greene cef393473f Fix: testing and unlocked filters off by default and exclusive
Both buttons in the testing and unlocked filter pairs started on, so showing only one kind meant turning the other kind off.

Start all four filters off, treat a pair with neither button on as showing everything, and make the buttons in each pair mutually exclusive: turning one on turns its partner off, and clicking an active one turns it off. The playlist page now sets the unlocked filter on (and locked off) explicitly, since the old default no longer provides that.
2026-10-04 14:39:30 +13:00
tresabhi af85fb74cb haha characteristics render! 2026-10-01 15:52:14 -05:00
tresabhi 1ee6cdabe5 SpacedArmorScene 2026-09-30 17:36:51 -05:00
tresabhi 593ae760e7 proto imports 2026-09-27 17:19:39 -05:00
tresabhi 127c55ec93 migrate to soapstone 2026-09-27 17:04:15 -05:00
tresabhi e5b44d4eb8 flatten armor dir 2026-09-27 16:46:22 -05:00
tresabhi e18d6f58f9 somewhat through PrimaryArmorSceneComponent 2026-09-27 16:26:28 -05:00
tresabhi 960279bf00 huh i forgor 2026-09-23 17:37:52 -05:00
tresabhi 1c505818a4 to core 2026-09-23 16:58:36 -05:00
tresabhi 33bb8ead3c reorganize 2026-09-23 10:25:47 -05:00
tresabhi e911f36ea3 createTankStatus 2026-09-23 10:22:57 -05:00
tresabhi 4e470599e8 speed 2026-09-22 16:39:51 -05:00
tresabhi 99965118b3 useProtagonist 2026-09-22 16:20:39 -05:00
tresabhi 7d02f6311f tank states 2026-09-22 16:13:27 -05:00
tresabhi b6f9ae9187 some more updates to imports 2026-08-30 15:02:01 -05:00
tresabhi 5f737d940d rename methods 2026-08-30 14:26:08 -05:00
tresabhi 4a0fccc526 tank search 2026-08-28 16:59:07 -05:00