Compare commits

...
811 Commits
Author SHA1 Message Date
TrèsAbhi 7fb64e690f Merge pull request #81 from tresabhi/1.16.1 2024-02-29 16:05:48 -06:00
TrèsAbhi 54798c30b1 feat: changelogs 2024-02-29 16:05:43 -06:00
TrèsAbhi 4c0f7b61e4 fix: reset shot after tank change 2024-02-29 15:58:17 -06:00
TrèsAbhi 206ac373d2 fix: cos domain 2024-02-29 15:54:15 -06:00
TrèsAbhi c626e84f7d feat: no depth read core tracer 2024-02-29 15:38:57 -06:00
TrèsAbhi 90ec5fa80b fix: a few issues 2024-02-29 15:37:04 -06:00
TrèsAbhi d496b46b6f fix: post mid point tracer 2024-02-29 15:30:53 -06:00
TrèsAbhi 7af1fdcf6b feat: animation 2024-02-29 13:17:41 -06:00
TrèsAbhi 199e156e53 feat: more accurate HE 2024-02-29 12:42:15 -06:00
TrèsAbhi f5578ee788 feat: damage 2024-02-29 12:02:14 -06:00
TrèsAbhi c0a3628b3b feat: list 2024-02-29 11:16:00 -06:00
TrèsAbhi fa8922e0a6 feat: he mechanics 2024-02-29 10:40:36 -06:00
TrèsAbhi bf6991ce06 feat: proper ricochet visuals 2024-02-29 10:30:48 -06:00
TrèsAbhi 7f49245f15 feat: more progress 2024-02-28 23:06:37 -06:00
TrèsAbhi f55313e0cd feat: shot display 2024-02-28 22:29:21 -06:00
TrèsAbhi 69c388f243 feat: starting work on on-click armor 2024-02-28 17:41:59 -06:00
TrèsAbhi 35788657a8 fix: remove default tab 2024-02-28 14:59:19 -06:00
TrèsAbhi d531698867 feat: calibrated shells 2024-02-27 18:13:26 -06:00
TrèsAbhi cc4177bf14 feat: enhanced armor 2024-02-27 18:08:50 -06:00
TrèsAbhi d377067441 feat: remove unused code 2024-02-27 17:57:59 -06:00
TrèsAbhi b2f026c212 fix: persist settings 2024-02-27 17:56:01 -06:00
TrèsAbhi 07cdb0788c feat: opaque mode 2024-02-27 17:44:18 -06:00
TrèsAbhi 01f919ddd3 feat: wireframe mode 2024-02-27 17:39:01 -06:00
TrèsAbhi 4b1fda9680 feat: green penetration 2024-02-27 17:36:05 -06:00
TrèsAbhi 79d03233ae feat: he shells 2024-02-27 17:21:41 -06:00
TrèsAbhi 522b40aff1 feat: heat shells 2024-02-27 17:15:24 -06:00
TrèsAbhi 06c878dd2c feat: some cleaning up 2024-02-27 15:34:12 -06:00
TrèsAbhi f5c589373d feat: finalize ap 2024-02-27 13:50:15 -06:00
TrèsAbhi 2689568650 feat: core armor 2024-02-27 11:52:36 -06:00
TrèsAbhi fabf649608 feat: spaced armor finish 2024-02-27 11:02:14 -06:00
TrèsAbhi 080af86e1b feat: shaders 2024-02-27 10:31:49 -06:00
TrèsAbhi e5b58cd5ff fix: format 2024-02-27 09:31:22 -06:00
TrèsAbhi 3500389628 feat: something 2024-02-27 09:29:12 -06:00
TrèsAbhi 1129f0d60b Update layout.tsx 2024-02-27 08:00:16 -06:00
TrèsAbhi b3a6a47a6a feat: start of new engine 2024-02-26 13:29:05 -06:00
TrèsAbhi bdb3844bcc Merge pull request #80 from tresabhi/main 2024-02-26 09:02:28 -06:00
TrèsAbhi f0bb25efc1 Update layout.tsx 2024-02-26 08:45:37 -06:00
TrèsAbhi bfd23db3ff fix: no crons 2024-02-25 20:18:00 -06:00
TrèsAbhi 9c63177f03 fix: all tank icons 2024-02-25 16:09:57 -06:00
TrèsAbhi 24b4e32f50 Merge pull request #79 from tresabhi/1.16.0 2024-02-25 16:01:59 -06:00
TrèsAbhi 2e7bde8861 feat: hide errors 2024-02-25 14:34:06 -06:00
TrèsAbhi 56c626e8a1 fix: remove id lock 2024-02-25 11:57:27 -06:00
TrèsAbhi c12eb9f68a feat: better skyline 2024-02-24 19:34:52 -06:00
TrèsAbhi 8bc94e7c10 feat: donate button 2024-02-24 19:34:02 -06:00
TrèsAbhi e8e6161911 feat: default equipment rammer 2024-02-24 18:49:14 -06:00
TrèsAbhi d4f6b1a003 fix: devkrieg 2024-02-23 18:19:23 -06:00
TrèsAbhi 6cafbc1ffe feat: docs 2024-02-23 18:18:56 -06:00
TrèsAbhi b3336289e8 feat: anylitics 2024-02-23 18:17:17 -06:00
TrèsAbhi 3b92b43cb3 feat: nightly assets 2024-02-23 18:15:46 -06:00
TrèsAbhi 2f3dca8f4c feat: changelogs 2024-02-23 18:07:11 -06:00
TrèsAbhi 0c76f76a5b fix: action branches 2024-02-23 17:07:31 -06:00
TrèsAbhi d37e0390fb fix: ratings command username feild 2024-02-23 17:00:21 -06:00
TrèsAbhi a185dbe644 fix: undefined style 2024-02-23 16:51:04 -06:00
TrèsAbhi 5b9fb1ea00 fix: remove google domain verification file 2024-02-23 16:44:10 -06:00
TrèsAbhi 5106b7c97d fix: version 2024-02-23 16:43:48 -06:00
TrèsAbhi d88cb02d94 fix: a drew redundancies 2024-02-23 16:36:11 -06:00
TrèsAbhi 7fd128ac49 fix: re-enable tankopdia 2024-02-23 16:06:50 -06:00
TrèsAbhi a637dca083 Merge branch 'main' into dev 2024-02-23 16:05:46 -06:00
TrèsAbhi 23a33c7722 Merge branch 'main' into dev 2024-02-23 16:05:29 -06:00
TrèsAbhi 918a0d73b9 fix: ignore yarn 2024-02-23 15:57:50 -06:00
TrèsAbhi ca9f991bcb fix: rename to pushTankopediaPath 2024-02-23 15:54:51 -06:00
TrèsAbhi 2e9388d3c7 fix: no propogation on hull 2024-02-23 15:52:09 -06:00
TrèsAbhi 383196bdd3 feat: clean url handling 2024-02-22 22:07:09 -06:00
TrèsAbhi e69e66f5f7 feat: 8 day dev cooldown 2024-02-22 21:58:03 -06:00
TrèsAbhi b9c5c3c931 feat: better fullscreen 2024-02-22 19:04:44 -06:00
TrèsAbhi edb9104d77 fix: correct yaw mutation call 2024-02-22 18:44:32 -06:00
TrèsAbhi e0feb45f48 fix: no cam pos reset on tank swap 2024-02-22 18:43:10 -06:00
TrèsAbhi bc211822aa fix: armor mesh rotation dysync 2024-02-22 18:36:21 -06:00
TrèsAbhi e33ae0f81b feat: more accurate angle calculation in fragment shader 2024-02-22 18:14:59 -06:00
TrèsAbhi 8467fb98d6 fix: no page memo 2024-02-22 18:11:06 -06:00
TrèsAbhi 62cb2c7217 fix: ricochet penetration as a sphere 2024-02-22 17:57:11 -06:00
TrèsAbhi f2331261cf fix: penetration loss text on ricochet 2024-02-22 17:52:37 -06:00
TrèsAbhi 26ae7bcbdf fix: remove shot after module change 2024-02-22 17:49:05 -06:00
TrèsAbhi 291b93b7d7 fix: use antagonist calibrated shells 2024-02-22 17:47:12 -06:00
TrèsAbhi 73fccbb2bb fix: external modules not contributong to spaced armor detph buffer 2024-02-22 17:28:53 -06:00
TrèsAbhi 7e92f8ac50 feat: united duel data 2024-02-22 16:41:42 -06:00
TrèsAbhi da767213cb fix: don't update armor highlighting on protagonist shell switch 2024-02-22 13:07:13 -06:00
TrèsAbhi d81eddba44 fix: no suspense on shell switching 2024-02-22 12:55:38 -06:00
TrèsAbhi 83599539b5 fix: canvas blocking tabs 2024-02-22 12:43:50 -06:00
TrèsAbhi c145aa9499 feat: few preset provisions and equipments 2024-02-22 12:37:17 -06:00
TrèsAbhi ffeaba6a18 fix: shrink canvas 2024-02-22 12:23:56 -06:00
TrèsAbhi c68df74943 fix: use new model format 2024-02-22 12:20:29 -06:00
TrèsAbhi 1c3e98678f feat: fixed camo 2024-02-22 10:56:45 -06:00
TrèsAbhi b1a1e07f7d fix: something 2024-02-21 13:32:51 -06:00
TrèsAbhi 46f8c72bef feat: only run on main and dev 2024-02-21 13:01:16 -06:00
TrèsAbhi a4f2902365 fix: use ecoding 2024-02-21 12:51:39 -06:00
TrèsAbhi bcda936585 fix: undef handling 2024-02-21 10:12:19 -06:00
TrèsAbhi c16a5f1701 feat: conditional prodiction dep 2024-02-21 09:54:58 -06:00
TrèsAbhi 569f803ab2 Update index.ts 2024-02-21 08:35:01 -06:00
TrèsAbhi 7bd797cb3a Update tankModels.ts 2024-02-21 08:07:27 -06:00
TrèsAbhi 1e875540fc Update tankModels.ts 2024-02-21 07:45:48 -06:00
TrèsAbhi bcde6907c8 feat: improved tools 2024-02-20 22:36:18 -06:00
TrèsAbhi a19c772bba fix: use betakrieg 2024-02-20 22:23:11 -06:00
TrèsAbhi 24ca684db3 feat: experimental warning 2024-02-20 22:10:59 -06:00
TrèsAbhi 6fd8b83d39 fix: proper undefined handling 2024-02-20 21:52:34 -06:00
TrèsAbhi 3ecc87431a feat: concurrency 2024-02-20 21:27:04 -06:00
TrèsAbhi 082e41bd76 fix: gh_token 2024-02-20 13:23:30 -06:00
TrèsAbhi 6f0bfa6b22 feat: print error on blob fail 2024-02-20 12:55:51 -06:00
TrèsAbhi bcb8669898 fix: discord token 2024-02-20 11:52:49 -06:00
TrèsAbhi 4bdb4f47fa feat: fixed sharp 2024-02-20 11:38:50 -06:00
TrèsAbhi a51cbc51de feat: proper lod0 handling 2024-02-20 11:21:01 -06:00
TrèsAbhi 060d00ccc4 fix: ignore engines 2024-02-20 10:14:02 -06:00
TrèsAbhi 1ddc51f6c7 fix: ps syntax 2024-02-20 10:01:35 -06:00
TrèsAbhi b222cbe41c feat: call build script 2024-02-20 09:51:11 -06:00
TrèsAbhi 53b4c0db69 feat: snitch2 2024-02-19 21:52:00 -06:00
TrèsAbhi ebaef28f06 feat: snitch 2024-02-19 21:36:06 -06:00
TrèsAbhi 0948b52957 feat: use cache 2024-02-19 21:30:04 -06:00
TrèsAbhi bc51c59fe1 feat: cache 2024-02-19 21:26:56 -06:00
TrèsAbhi 17a3d45e92 fix: = 2024-02-19 21:19:05 -06:00
TrèsAbhi 2fd8416887 feat: login 2024-02-19 21:14:34 -06:00
TrèsAbhi 46f11af717 feat: windows 2024-02-19 21:10:13 -06:00
TrèsAbhi c0670e9025 feat: run 2024-02-19 21:02:46 -06:00
TrèsAbhi bc9cc4ba2a fix: --add 2024-02-19 21:01:17 -06:00
TrèsAbhi 38ee4c6f12 fix: relative dir 2024-02-19 20:59:14 -06:00
TrèsAbhi 72aa528db2 fix: chmod 2024-02-19 20:58:34 -06:00
TrèsAbhi 5d63b8c239 feat: run 2024-02-19 20:44:44 -06:00
TrèsAbhi f78c1ea75f feat: linux dist 2024-02-19 20:42:30 -06:00
TrèsAbhi 38989689f5 fix: await 2024-02-19 20:37:34 -06:00
TrèsAbhi 1e5094f3ff feat: lock file 2024-02-19 20:36:12 -06:00
TrèsAbhi 067178e94d feat: depot 2024-02-19 20:32:12 -06:00
TrèsAbhi 58002958bf feat: move ammo types to fire 2024-02-19 19:05:49 -06:00
TrèsAbhi ca030688cb feat: things? 2024-02-19 18:45:43 -06:00
TrèsAbhi b883f5b9e2 Update package.json 2024-02-19 08:19:19 -06:00
TrèsAbhi 85f815c538 Delete yarn.lock 2024-02-19 08:09:39 -06:00
TrèsAbhi b2ddd5f286 Update package.json 2024-02-19 08:05:44 -06:00
TrèsAbhi 11bbcc7993 feat: async commit 2024-02-18 19:11:41 -06:00
TrèsAbhi 70f7b862e3 feat: wireframe armor viewer 2024-02-18 16:56:52 -06:00
TrèsAbhi 544eb92a6b feat: improved ventlation 2024-02-18 16:33:29 -06:00
TrèsAbhi 7a123b68db fix: disable crew on non-tech trees 2024-02-18 16:26:26 -06:00
TrèsAbhi b89925e86b feat: removed night 2024-02-18 16:23:10 -06:00
TrèsAbhi fc1f3cdb55 fix: remove pbr badge 2024-02-18 16:19:25 -06:00
TrèsAbhi 19717aeb79 feat: better environment ui 2024-02-18 16:18:56 -06:00
TrèsAbhi 60a115b7d8 feat: more accurate models 2024-02-18 16:17:00 -06:00
TrèsAbhi bc85b354a0 feat: new lighting 2024-02-17 10:52:21 -06:00
TrèsAbhi 1b611fa7c4 feat: removed banner 2024-02-17 10:43:34 -06:00
TrèsAbhi 34ba3ffdde feat: better cropped icons 2024-02-17 10:36:00 -06:00
TrèsAbhi af4d2dbfd0 feat: reactive wide format 2024-02-17 10:23:43 -06:00
TrèsAbhi 0b12f65949 feat: synx quick equipment 2024-02-17 10:20:43 -06:00
TrèsAbhi b8beb6e8be fix: draug moment 2024-02-17 10:05:56 -06:00
TrèsAbhi 09ba8663e6 feat: stat parity 2024-02-17 09:57:52 -06:00
TrèsAbhi b7558c33da feat: rest of provisions 2024-02-16 23:12:53 -06:00
TrèsAbhi 9174f3c9d0 fix: use non-compounding percentages 2024-02-16 23:08:20 -06:00
TrèsAbhi 2c8c04387b feat: crew basics 2024-02-16 21:07:48 -06:00
TrèsAbhi b1e5502b04 fix: clear on fire 2024-02-16 10:25:51 -06:00
TrèsAbhi ddf2c2b2ac fix: dpm using adrelaine and tungesten 2024-02-16 10:25:15 -06:00
TrèsAbhi 2a70602f7e feat: crew 2024-02-16 10:20:20 -06:00
TrèsAbhi c128d8ab0c fix: division by 0 2024-02-16 10:00:09 -06:00
TrèsAbhi 0e57c37296 fix: use gun list for dispersion fallback 2024-02-16 09:48:57 -06:00
TrèsAbhi e0c0ec6fc3 fix: 0 decimals 2024-02-16 09:48:27 -06:00
TrèsAbhi 31bb92c089 feat: camouflage bonus 2024-02-13 20:45:43 -06:00
TrèsAbhi 417385f231 feat: consumables 2024-02-13 19:46:34 -06:00
TrèsAbhi 62bfab0960 feat: smaller icons 2024-02-13 09:42:30 -06:00
TrèsAbhi 809f807da8 feat: consumable timings 2024-02-13 09:40:00 -06:00
TrèsAbhi 8f098d435a fix: penetration deltas 2024-02-12 19:27:50 -06:00
TrèsAbhi 574b1eec92 feat: code split module buttons 2024-02-12 19:24:34 -06:00
TrèsAbhi 7bd8629706 Add files via upload 2024-02-12 09:52:37 -06:00
TrèsAbhi 9d7c60e92d feat: consumables 2024-02-11 14:55:21 -06:00
TrèsAbhi 12cf05cb50 fix: engine accel now affects all engine powers 2024-02-11 14:28:27 -06:00
TrèsAbhi acd7162aa1 fix: ton unit name 2024-02-11 14:25:17 -06:00
TrèsAbhi efbb8376ef fix: caliberated shells now affects stats once again 2024-02-11 14:24:26 -06:00
TrèsAbhi bc4fa60f67 fix: camo net now affects all stats 2024-02-11 14:21:51 -06:00
TrèsAbhi f13b0f2255 feat: center aligned icons 2024-02-11 14:17:41 -06:00
TrèsAbhi 4ea8615fb5 feat: track directions 2024-02-10 00:08:42 -06:00
TrèsAbhi 7877eaa89b feat: named sorting 2024-02-10 00:04:43 -06:00
TrèsAbhi a8a50ac948 feat: move fire to first 2024-02-09 23:44:38 -06:00
TrèsAbhi 4206286c21 feat: remove max count 2024-02-09 23:43:30 -06:00
TrèsAbhi eec9a4c9e6 feat: smaller compact search 2024-02-09 23:37:22 -06:00
TrèsAbhi 469ffa145a feat: brighter flags 2024-02-09 23:36:04 -06:00
TrèsAbhi e1fdab42c0 fix: default listing 2024-02-09 23:35:24 -06:00
TrèsAbhi 39238a6491 fix: shortform dpm 2024-02-09 23:32:52 -06:00
TrèsAbhi fdc662fedf feat: change order 2024-02-09 23:30:40 -06:00
TrèsAbhi 9d805f63d5 fix: use dynamic shells 2024-02-09 23:28:36 -06:00
TrèsAbhi 68273ea295 feat: simplified shell stats 2024-02-09 23:27:47 -06:00
TrèsAbhi def5e4fa4f feat: render tank iamge above shadow 2024-02-09 19:48:33 -06:00
TrèsAbhi f3b1240990 feat: duller flags 2024-02-09 19:47:26 -06:00
TrèsAbhi 8c25037cb8 fix: default order 2024-02-09 19:43:02 -06:00
TrèsAbhi 31936d6e6c feat: equipments 2024-02-09 19:29:54 -06:00
TrèsAbhi cc622ef189 feat: sticky stats 2024-02-09 18:51:28 -06:00
TrèsAbhi 6ef0448d9f feat: deltas 2024-02-09 18:47:53 -06:00
TrèsAbhi 01dc3137d8 feat: begenning or equipment 2024-02-09 18:25:23 -06:00
TrèsAbhi 543e963d1d feat: titles 2024-02-09 18:09:36 -06:00
TrèsAbhi c12a66eeab fix: remove yarn downgrade file 2024-02-09 16:39:01 -06:00
TrèsAbhi a9f2ba776a fix: filter reset 2024-02-09 16:04:09 -06:00
TrèsAbhi e7525006b5 feat: sort options 2024-02-09 16:01:06 -06:00
TrèsAbhi ded71bf4f9 fix: downgrade to yarn 1 2024-02-09 11:05:37 -06:00
TrèsAbhi 1b9cf8b604 fix: remove shot when swithcing shells 2024-02-08 11:26:12 -06:00
TrèsAbhi 01e7353ef4 feat: rest of the stats 2024-02-08 11:18:43 -06:00
TrèsAbhi 73294af296 fix: track click 2024-02-08 11:11:20 -06:00
TrèsAbhi c3dc844167 feat: track tiers 2024-02-08 11:09:33 -06:00
TrèsAbhi 1eaa276b76 feat: tracks 2024-02-08 11:08:22 -06:00
TrèsAbhi 2b37e08f19 feat: more data 2024-02-08 10:58:03 -06:00
TrèsAbhi de52b525fb feat: speed 2024-02-07 21:31:04 -06:00
TrèsAbhi 8c39b6e3df feat: dispersion stats 2024-02-07 21:18:07 -06:00
TrèsAbhi 75c6bf2b68 fix: remove unnesesary use effect 2024-02-07 20:39:11 -06:00
TrèsAbhi 0308a10690 fix: merge 2024-02-07 15:16:48 -06:00
TrèsAbhi eab8bac68c fix: order 2024-02-07 14:56:42 -06:00
TrèsAbhi 19783ccbd6 Update page.tsx 2024-02-07 14:22:30 -06:00
TrèsAbhi 10799e52ce feat: remove logging vars 2024-02-07 13:45:51 -06:00
TrèsAbhi 92bb4af5ec fix: test 2024-02-07 13:40:14 -06:00
TrèsAbhi 846c2a4962 fix: something 2024-02-07 13:32:23 -06:00
TrèsAbhi 84300389f9 feat: future proof 2024-02-07 13:12:44 -06:00
TrèsAbhi cb2846a256 feat: switch to array buffer 2024-02-07 10:34:13 -06:00
TrèsAbhi 9cfa2357b0 feat: rename to cdon 2024-02-07 10:02:00 -06:00
TrèsAbhi eaa67ba1fe fix: use and 2024-02-06 18:29:12 -06:00
TrèsAbhi d8a5f57787 feat: changelogs 2024-02-06 18:26:15 -06:00
TrèsAbhi 13651650ab fix: delta by time 2024-02-06 18:24:29 -06:00
TrèsAbhi 901f1bfe42 feat: ricochet repenetration 2024-02-06 17:57:20 -06:00
TrèsAbhi 8bb5032ee4 feat: environment options 2024-02-06 15:35:48 -06:00
TrèsAbhi bf59d127f9 feat: move some filters 2024-02-06 15:18:18 -06:00
TrèsAbhi 4fb0aa3936 feat: simpler filter ui 2024-02-06 15:10:54 -06:00
TrèsAbhi ed8a1c2f57 fix: no fallback on state change 2024-02-06 15:01:03 -06:00
TrèsAbhi 059358cff4 feat: put other in end 2024-02-06 13:34:23 -06:00
TrèsAbhi 939acad30c feat: compact search 2024-02-06 13:28:05 -06:00
TrèsAbhi 4d09b3deb1 feat: sort order 2024-02-06 13:18:39 -06:00
TrèsAbhi a5c4dad3d4 feat: remove tank card hover animation 2024-02-06 13:10:28 -06:00
TrèsAbhi 2cb5e4e173 fix: gun type names 2024-02-06 13:07:01 -06:00
TrèsAbhi 708bcab2f3 fix: apply fast string comrpession 2024-02-05 18:33:17 -06:00
TrèsAbhi 2de077a3ab feat: utf8 2024-02-05 18:06:18 -06:00
TrèsAbhi 63084d1855 feat: deploy new compression 2024-02-05 17:30:30 -06:00
TrèsAbhi 1575b803c0 feat: more compression 2024-02-05 13:33:23 -06:00
TrèsAbhi afe041f969 feat: speed definitions 2024-02-05 12:57:03 -06:00
TrèsAbhi 9644692084 Merge pull request #65 from tresabhi/1.15.12 2024-02-05 09:35:56 -06:00
TrèsAbhi b52c3c6c68 feat: updates 2024-02-05 09:36:03 -06:00
TrèsAbhi 0260fc6fbc yup 2024-02-04 21:59:45 -06:00
TrèsAbhi 73bd76bcdb huhuh 2024-02-04 21:47:11 -06:00
TrèsAbhi 2960f85671 asdads 2024-02-04 21:45:57 -06:00
TrèsAbhi 34c742555d fix: docs 2024-02-04 21:41:58 -06:00
TrèsAbhi 3b1066fade feat: more compression ig 2024-02-04 21:40:40 -06:00
TrèsAbhi 6753cedd33 feat: complete bkon 2024-02-04 21:10:44 -06:00
TrèsAbhi 2951ccdad5 feat: write stream 2024-02-04 18:48:39 -06:00
TrèsAbhi 93e405c370 feat: read stream 2024-02-04 17:55:48 -06:00
TrèsAbhi 016fe1c3d3 fix: move dev names 2024-02-04 11:58:49 -06:00
TrèsAbhi c816f7a923 feat: centered shot display text 2024-02-04 11:23:39 -06:00
TrèsAbhi 43b6453fcb feat: bkon read 2024-02-04 11:06:26 -06:00
TrèsAbhi 559fb30da9 feat: game filter parity 2024-02-03 16:44:10 -06:00
TrèsAbhi 273ab97d3f fix: ugh 2024-02-03 16:33:33 -06:00
TrèsAbhi fcac511a28 feat: gun rotation speed 2024-02-03 16:28:33 -06:00
TrèsAbhi b811be4284 feat: more values batch 1 2024-02-03 15:54:21 -06:00
TrèsAbhi 1a19e56523 feat: pbr badge 2024-02-03 15:13:19 -06:00
TrèsAbhi e5a235ba41 feat: more credits 2024-02-03 14:54:26 -06:00
TrèsAbhi 1448584f2f feat: no bold discirminoatr 2024-02-03 14:52:07 -06:00
TrèsAbhi 4433855047 feat: dpm docs 2024-02-03 14:50:35 -06:00
TrèsAbhi 02f63ee5f0 fix: full width stats 2024-02-03 13:49:29 -06:00
TrèsAbhi 36f0299e51 fix: heat ricochet 2024-02-03 13:30:38 -06:00
TrèsAbhi 170056cc55 fix: no user select for on canvas elements 2024-02-03 12:47:37 -06:00
TrèsAbhi a212d2142c fix: compare remaining penetration with 0 2024-02-03 12:22:52 -06:00
TrèsAbhi d89575b25d feat: he based gaps 2024-02-03 12:16:33 -06:00
TrèsAbhi 8f9306a3db fix: on click use equipment 2024-02-03 11:51:19 -06:00
TrèsAbhi 5f9e631011 fix: scale by PI/2 2024-02-02 23:29:10 -06:00
TrèsAbhi b290c88c1d fix: use two calibers rule on spaced armor 2024-02-02 23:21:12 -06:00
TrèsAbhi 2e888525c6 feat: cleaner 1 layer penetration 2024-02-02 23:10:43 -06:00
TrèsAbhi d54c08dc4e feat: no duplicate armor peices 2024-02-02 23:07:58 -06:00
TrèsAbhi 821076ae59 fix: spaced and external swapped 2024-02-02 23:01:26 -06:00
TrèsAbhi 13e11e4e09 feat: remove shot on tank switch 2024-02-02 18:17:53 -06:00
TrèsAbhi 0ab53a7825 feat: apply quaternion rotation 2024-02-02 18:10:43 -06:00
TrèsAbhi 15cb472189 feat: allow thicker lines to depth read 2024-02-02 17:53:13 -06:00
TrèsAbhi 39a6e2c38e feat: more thickness 2024-02-02 17:50:48 -06:00
TrèsAbhi 7c6c0a2b81 feat: trace lines 2024-02-02 17:48:18 -06:00
TrèsAbhi 3c63323814 feat: ricochet angle 2024-02-02 17:41:18 -06:00
TrèsAbhi 44f00e042e feat: no angled value for external 2024-02-02 17:03:49 -06:00
TrèsAbhi 3a99205194 feat: layering 2024-02-02 16:59:59 -06:00
TrèsAbhi c2e550e33d feat: on click display 2024-02-02 16:08:41 -06:00
TrèsAbhi b01a03c6ce feat: basic click functionality 2024-02-02 10:31:40 -06:00
TrèsAbhi 0251bfc842 fix: misc map 2024-02-02 09:46:24 -06:00
TrèsAbhi 89d4cadb61 feat: optimal shell index 2024-02-01 13:09:57 -06:00
TrèsAbhi e33fdffd99 feat: advanced dpm 2024-02-01 13:05:09 -06:00
TrèsAbhi 082996b152 feat: show environment 2024-02-01 12:28:56 -06:00
TrèsAbhi e9c3953085 feat: stats organization 2024-02-01 12:06:13 -06:00
TrèsAbhi 9f2ced6bfd feat: new layout 2024-02-01 11:52:48 -06:00
TrèsAbhi 281549add3 yeah 2024-01-29 19:30:45 -06:00
TrèsAbhi 91945a3b27 feat: brighyer ambinent lgihts 2024-01-29 19:25:34 -06:00
TrèsAbhi 162c7c9e59 feat: remove build prefix 2024-01-29 17:14:51 -06:00
TrèsAbhi ba46a2b801 you know 2024-01-29 16:50:58 -06:00
TrèsAbhi 13af8688a3 feat: more birhgt 2024-01-29 16:33:27 -06:00
TrèsAbhi fcf7c5c056 eh 2024-01-29 16:18:06 -06:00
TrèsAbhi ab8c52bb75 you know... the usual 2024-01-29 16:05:12 -06:00
TrèsAbhi 08d4e301d2 fix: warehouse 2024-01-29 15:53:47 -06:00
TrèsAbhi 428a0bbad5 feat: closer tank models 2024-01-29 15:27:21 -06:00
TrèsAbhi 4da4cf5259 feat: size 2024-01-28 20:56:49 -06:00
TrèsAbhi 72a24b2770 feat: bounding boxes 2024-01-28 20:45:50 -06:00
TrèsAbhi 9141f3d63f feat: camo and view range 2024-01-28 19:32:12 -06:00
TrèsAbhi c34edbd3ac feat: fire chance 2024-01-28 19:06:38 -06:00
TrèsAbhi eea2024549 feat: some stas 2024-01-27 19:06:02 -06:00
TrèsAbhi ee74c5ea5b feat: order 2024-01-27 18:21:35 -06:00
TrèsAbhi 158ceca599 feat: small screen compatibility 2024-01-27 18:01:51 -06:00
TrèsAbhi b8f3c3eece feat: change tank functionality 2024-01-27 17:48:32 -06:00
TrèsAbhi e835498e59 feat: no flags 2024-01-27 17:36:29 -06:00
TrèsAbhi 0250546ab5 feat: sides 2024-01-27 17:19:10 -06:00
TrèsAbhi f820d05082 feat: sticky sandbox 2024-01-27 13:53:19 -06:00
TrèsAbhi 9ba239caf0 feat: undo 2024-01-26 23:29:35 -06:00
TrèsAbhi 51a59fe2d4 feat: load model button 2024-01-26 23:28:17 -06:00
TrèsAbhi 6753d8a073 feat: i forgot 2024-01-26 23:14:54 -06:00
TrèsAbhi 46719cd32a feat: collapse 2024-01-26 23:09:53 -06:00
TrèsAbhi 47b8f75447 feat: no right align 2024-01-26 23:04:06 -06:00
TrèsAbhi ea68c8e82c feat: more responsive 2024-01-26 22:44:15 -06:00
TrèsAbhi 8d1745d47e feat: test stats 2024-01-26 22:33:32 -06:00
TrèsAbhi aa93ae6918 feat: better tool titles 2024-01-26 21:34:40 -06:00
TrèsAbhi 66cb197b53 feat: crew 2024-01-26 21:31:59 -06:00
TrèsAbhi 94cf7ebea8 Merge branch '1.16.0' of https://github.com/tresabhi/blitzkrieg into 1.16.0 2024-01-26 12:58:42 -06:00
TrèsAbhi 5405da365b feat: generalized include check 2024-01-26 12:58:41 -06:00
TrèsAbhi a0df425115 fix: oops 2024-01-26 07:38:42 -06:00
TrèsAbhi 62cf1265f8 fix: no negative index 2024-01-26 07:36:08 -06:00
TrèsAbhi ba7e772e56 feat: 113 2024-01-25 13:55:05 -06:00
TrèsAbhi 8f8c91e0b0 feat: provision filtering 2024-01-25 13:51:30 -06:00
TrèsAbhi 5bbe93bcec feat: provisions 2024-01-25 13:10:20 -06:00
TrèsAbhi 561b59d235 feat: camouflage 2024-01-25 12:45:13 -06:00
TrèsAbhi 38870ca3f7 feat: code split 2024-01-25 12:27:24 -06:00
TrèsAbhi cbe7b42fb8 feat: consumable max 2024-01-25 12:20:34 -06:00
TrèsAbhi ad1ad80026 feat: consumable buttons 2024-01-25 11:50:43 -06:00
TrèsAbhi a6c3ac36ef feat: removed shell incides 2024-01-25 10:44:37 -06:00
TrèsAbhi a9e88f6943 feat: shell numbers 2024-01-24 16:15:23 -06:00
TrèsAbhi 77ac1453f3 fix: high precision depth map 2024-01-24 16:05:59 -06:00
TrèsAbhi e094267223 feat: min/max zoom distances 2024-01-24 15:28:14 -06:00
TrèsAbhi b03589f6f0 fix: missing external modules 2024-01-24 14:57:37 -06:00
TrèsAbhi 3486dde8c1 feat: corrected texture resolutions 2024-01-24 14:52:06 -06:00
TrèsAbhi c08bf359f5 feat: downgrade to three 159 2024-01-24 10:31:06 -06:00
TrèsAbhi 002d0d4bc0 fix: missing turrets 2024-01-23 13:37:32 -06:00
TrèsAbhi 7db02aa579 fix: green penetration reactivity 2024-01-23 13:14:43 -06:00
TrèsAbhi b47e6436e7 fix: removed z-fighting 2024-01-22 19:38:45 -06:00
TrèsAbhi 7b6e291a0a feat: simplified shaders 2024-01-22 19:14:24 -06:00
TrèsAbhi b8f6394d94 feat: optimized shell switching 2024-01-22 18:14:09 -06:00
TrèsAbhi 0b5c2e42fb feat: isolated duel 2024-01-22 18:04:13 -06:00
TrèsAbhi fce5f19100 feat: cleaner quick equipment buttons 2024-01-22 17:06:06 -06:00
TrèsAbhi 05ad24c8f5 feat: gun to 0 0 on default 2024-01-22 16:55:09 -06:00
TrèsAbhi 5295aa37be feat: hull origins 2024-01-22 16:54:07 -06:00
TrèsAbhi 3e12d6bb9d fix: all loaders inside 2024-01-22 16:04:06 -06:00
TrèsAbhi 019514b699 feat: loading number 2024-01-22 15:50:41 -06:00
TrèsAbhi a32ee2a344 feat: non-pbr tank lighting and model cache 2024-01-22 15:42:49 -06:00
TrèsAbhi ea480aa365 feat: update versions 2024-01-22 15:27:45 -06:00
TrèsAbhi d70a980058 feat: depot dodnloader node js 2024-01-22 13:40:37 -06:00
TrèsAbhi 3157bc5e1b idk 2024-01-22 10:40:13 -06:00
TrèsAbhi e72b703ab2 uhhhhhhhhh 2024-01-22 10:36:46 -06:00
TrèsAbhi c1f3c0dc6b asgakgkuashlkgskljgashghsa;lgh;lsd 2024-01-22 10:36:20 -06:00
TrèsAbhi 30f7db1bc2 feat: asset workflow 2024-01-22 10:30:33 -06:00
TrèsAbhi 07a147a043 feat: document undef check 2024-01-21 22:11:23 -06:00
TrèsAbhi 9488602f5b feat: ea and cs 2024-01-21 22:11:01 -06:00
TrèsAbhi a0c9895122 fix: window undefined check 2024-01-21 21:06:12 -06:00
TrèsAbhi c1bd91a7f9 Merge pull request #63 from tresabhi/1.15.11 2024-01-21 18:48:12 -06:00
TrèsAbhi 1d65ff3e0c fix: type 2024-01-21 18:46:38 -06:00
TrèsAbhi f7fac5ad26 feat: chagelogs 2024-01-21 18:44:58 -06:00
TrèsAbhi e45f055493 feat: permissions command 2024-01-21 18:43:07 -06:00
TrèsAbhi 8946f115c0 feat: no embed errors 2024-01-21 18:29:32 -06:00
TrèsAbhi 86353dc1cf fix: no gray buttons on no gid 2024-01-21 18:13:53 -06:00
TrèsAbhi 5168fb4098 feat: use dev definitions on localhost 2024-01-21 17:57:40 -06:00
TrèsAbhi c04192e15e feat: full name search 2024-01-21 16:28:26 -06:00
TrèsAbhi 638c2c73da feat: full names and better default names 2024-01-21 16:23:44 -06:00
TrèsAbhi f368769068 feat: full names and better default names 2024-01-21 16:03:38 -06:00
TrèsAbhi 9f347fa1f2 feat: less boxy 2024-01-21 11:09:02 -06:00
TrèsAbhi b44f897528 feat: antagonist selector filters 2024-01-21 11:06:40 -06:00
TrèsAbhi efd1a80ee1 feat: penetration listing 2024-01-21 10:37:26 -06:00
TrèsAbhi a70100c835 feat: persistant tankopedia 2024-01-21 10:34:52 -06:00
TrèsAbhi f51e365ec4 feat: gun up in face hug 2024-01-21 10:20:48 -06:00
TrèsAbhi a5e0f33f02 fix: external module color precision error 2024-01-21 10:14:42 -06:00
TrèsAbhi dc85b49f9c feat: vercel dev 2024-01-21 00:13:02 -06:00
TrèsAbhi 72c90b3e92 feat: vercel dev 2024-01-21 00:10:59 -06:00
TrèsAbhi df566709c8 feat: vercel dev 2024-01-21 00:07:26 -06:00
TrèsAbhi 3617e11792 feat: commit concurrency 2024-01-21 00:01:32 -06:00
TrèsAbhi b243b12d1c feat: i am sleepy 2024-01-20 23:45:45 -06:00
TrèsAbhi d0d28baee0 feat: safer unknown component handling 2024-01-20 23:20:00 -06:00
TrèsAbhi 001b0c356f fix: missing comma 2024-01-20 22:55:38 -06:00
TrèsAbhi 4984c522ba feat: dev use dev branch 2024-01-20 22:46:21 -06:00
TrèsAbhi be64934eb4 feat: optimized blobs 2024-01-20 22:45:25 -06:00
TrèsAbhi 7669c2d76b feat: optimized assets 2024-01-20 22:11:56 -06:00
TrèsAbhi 00244846cb feat: use dev branch for dev activities 2024-01-20 21:35:36 -06:00
TrèsAbhi 480fda34ce feat: move poses 2024-01-20 16:59:18 -06:00
TrèsAbhi 103c1b4338 feat: fixed he-based rounds behind spaced armor 2024-01-20 16:31:20 -06:00
TrèsAbhi 2acee91524 fix: remainging pen going negative 2024-01-20 15:24:20 -06:00
TrèsAbhi 6f42e2835c feat: oops, now it's correct 2024-01-20 15:22:03 -06:00
TrèsAbhi e724069cbd feat: correct he calculations 2024-01-20 15:21:30 -06:00
TrèsAbhi 417858f21a feat: split tutorial bots 2024-01-20 13:43:03 -06:00
TrèsAbhi a362301515 feat: r5g6b5a0 format compatibility 2024-01-20 13:27:56 -06:00
TrèsAbhi 86fd714923 fix: spaced armor bleeding 2024-01-20 12:08:30 -06:00
TrèsAbhi 871b746cce fix: no external module spaced armor occlusion 2024-01-20 12:01:05 -06:00
TrèsAbhi d12440f60a feat: downgraded sharp 2024-01-20 11:46:26 -06:00
TrèsAbhi 4bb78b2532 feat: downgraded sharp 2024-01-20 11:43:57 -06:00
TrèsAbhi 3cd23cd718 fix: min penetration chance 0 2024-01-19 23:33:27 -06:00
TrèsAbhi 59abda933f feat: auto poser 2024-01-19 22:46:10 -06:00
TrèsAbhi 47f5f86da1 feat: yaw and pitch 2024-01-19 22:08:05 -06:00
TrèsAbhi 6094875ffb discord tokens... for some reason? 2024-01-19 21:52:50 -06:00
TrèsAbhi 0644c9a67f Merge pull request #62 from tresabhi/1.15.10 2024-01-19 21:48:33 -06:00
TrèsAbhi c91ab29a23 feat: disabled tankopedia 2024-01-19 21:46:36 -06:00
TrèsAbhi 8f4e33fd5a feat: changelogs 2024-01-19 21:45:23 -06:00
TrèsAbhi 8cf5012602 feat: full region names in /link 2024-01-19 21:35:46 -06:00
TrèsAbhi 23a23e36bb feat: /today alias for /breakdown today 2024-01-19 21:32:46 -06:00
TrèsAbhi 0480445bae feat: easier /link command 2024-01-19 20:53:27 -06:00
TrèsAbhi ae07b8de4c feat: center align text when no image 2024-01-19 20:47:46 -06:00
TrèsAbhi 4c746cbb86 feat: improved error messages 2024-01-19 16:07:15 -06:00
TrèsAbhi 890a4d142b feat: simplified /ratings command 2024-01-19 16:02:03 -06:00
TrèsAbhi ff9bda29cf fix: archive league neighbors 2024-01-19 15:28:02 -06:00
TrèsAbhi 5ca9e29f3d fix: percentile indicator contrast 2024-01-19 15:22:53 -06:00
TrèsAbhi c804a3d564 feat: update version number 2024-01-19 09:53:42 -06:00
TrèsAbhi 369ba08780 fix: tank icons dir 2024-01-17 12:39:02 -06:00
TrèsAbhi 0692933148 feat: optimized tank icon building 2024-01-17 12:31:07 -06:00
TrèsAbhi 26852981ba feat: consistent filters 2024-01-17 12:25:53 -06:00
TrèsAbhi 8199bd550d fix: unified max thicknesses 2024-01-17 12:06:22 -06:00
TrèsAbhi c56eaa258d feat: consumable icons 2024-01-17 11:34:27 -06:00
TrèsAbhi d4e8ec125f feat: consumable definitions 2024-01-16 21:49:15 -06:00
TrèsAbhi 3e3ed35fb0 feat: better auto ricochet check for spaced armor 2024-01-16 20:17:19 -06:00
TrèsAbhi 3530e8d0f0 feat: equipment ui 2024-01-16 17:47:41 -06:00
TrèsAbhi a1f6bbdf1f feat: equipment icons 2024-01-16 17:31:20 -06:00
TrèsAbhi b053018958 feat: equipment definitions 2024-01-16 17:19:46 -06:00
TrèsAbhi 5adc69977b feat: equipment icons 2024-01-16 16:58:00 -06:00
TrèsAbhi a741cc305a feat: updated contributors 2024-01-16 14:46:08 -06:00
TrèsAbhi 96f5ad8b96 fix: no control lock on removed hull yaw 2024-01-16 14:28:47 -06:00
TrèsAbhi 18dbb658ff feat: sun lighting 2024-01-16 14:20:43 -06:00
TrèsAbhi 512134162d feat: fullscreen disabling on old browsers 2024-01-16 14:09:19 -06:00
TrèsAbhi 7e1949ccc7 fix: search result selection 2024-01-16 14:07:29 -06:00
TrèsAbhi db0c4a1d71 feat: new search results 2024-01-16 14:02:50 -06:00
TrèsAbhi 1c64305678 feat: isolated model hooks 2024-01-16 13:16:06 -06:00
TrèsAbhi 95b8532660 feat: moved hooks to src 2024-01-16 13:10:06 -06:00
TrèsAbhi 9b3c7451b7 fix: armor highlighting desync 2024-01-16 12:34:00 -06:00
TrèsAbhi 1911508552 fix: typo 2024-01-16 12:26:15 -06:00
TrèsAbhi f5ac301c7e feat: green penetration mode 2024-01-16 12:22:17 -06:00
TrèsAbhi e37b91c2e3 feat: spaced armor auto-ricochet 2024-01-16 12:10:28 -06:00
TrèsAbhi 0a92dc0d2d fix: bleeding spaced armor 2024-01-16 12:06:39 -06:00
TrèsAbhi 754b16af10 fix: focused element disallow shell switch 2024-01-16 11:19:43 -06:00
TrèsAbhi b434bc4c78 lllll 2024-01-16 10:29:55 -06:00
TrèsAbhi dba2e2f170 huh? 2024-01-16 10:25:26 -06:00
TrèsAbhi 312077a74a adbaskdb 2024-01-16 10:22:26 -06:00
TrèsAbhi 817d77a437 ??? 2024-01-16 10:19:52 -06:00
TrèsAbhi 13b85e7164 ugh 2024-01-16 10:16:29 -06:00
TrèsAbhi 352e174af2 fix: removed deprecated build methods 2024-01-16 10:13:38 -06:00
TrèsAbhi aadcaedae5 feat: removed spaced armor visuals 2024-01-16 10:08:28 -06:00
TrèsAbhi 40c69382a1 fix: no outfile testing 2024-01-16 09:56:21 -06:00
TrèsAbhi 8f4ea5f2fd feat: spaced armor thickness 2024-01-16 09:52:30 -06:00
TrèsAbhi a11975adec fix: spaced armor layering 2024-01-16 09:24:12 -06:00
TrèsAbhi 578f6f4d0f feat: accurate external module thickness 2024-01-16 09:05:07 -06:00
TrèsAbhi ae267adf27 feat: external module thickness 2024-01-16 08:40:27 -06:00
TrèsAbhi c76fc97922 fix: spaced armor highlitging 2024-01-15 21:58:03 -06:00
TrèsAbhi 730ad56677 feat: explosive shells under spaced armor 2024-01-15 21:55:09 -06:00
TrèsAbhi 80b161b9fc feat: 3CR exception mask 2024-01-15 18:01:48 -06:00
TrèsAbhi 66016dedf0 feat: simplified duel state 2024-01-15 15:02:04 -06:00
TrèsAbhi 7314f1d9b1 feat: calmer lighting 2024-01-15 11:19:44 -06:00
TrèsAbhi 605edd547d fix: update on input 2024-01-13 18:50:13 -06:00
TrèsAbhi 864c29933a fix: armor desync 2024-01-13 18:49:03 -06:00
TrèsAbhi ff15a37e10 feat: optimized tank extration by a little 2024-01-13 18:40:28 -06:00
TrèsAbhi 237f676af8 feat: async updates 2024-01-13 18:24:04 -06:00
TrèsAbhi 5e0e80e965 feat: increased lighting brightness 2024-01-13 16:51:16 -06:00
TrèsAbhi 586cd84349 feat: optimized state handling x2 2024-01-13 16:48:20 -06:00
TrèsAbhi 230b2df5fd feat: optimized state handling 2024-01-13 13:44:27 -06:00
TrèsAbhi 033d361cea feat: updated module selection buttons 2024-01-13 13:17:48 -06:00
TrèsAbhi dbbde066f8 feat: uhhh I forgot 2024-01-13 13:11:01 -06:00
TrèsAbhi 785e9650e5 feat: swap tanks 2024-01-12 20:55:42 -06:00
TrèsAbhi 0b697a94bd feat: small tank icon 2024-01-12 20:42:10 -06:00
TrèsAbhi 163c41f568 feat: more precise controls 2024-01-12 20:22:53 -06:00
TrèsAbhi 0582339332 fix: negative hard joint handling... correctly this time 2024-01-12 20:20:51 -06:00
TrèsAbhi 062e6e9626 fix: negative hard joint handling 2024-01-12 19:58:02 -06:00
TrèsAbhi 6dfb727fa2 feat: splash transition 2024-01-12 14:57:46 -06:00
TrèsAbhi d469f990f6 feat: more advanced armor highlighting 2024-01-12 13:57:32 -06:00
TrèsAbhi 909474d4cb fix: no null return before hook 2024-01-11 21:44:44 -06:00
TrèsAbhi c9eee14b21 feat: no splash zones 2024-01-11 21:30:34 -06:00
TrèsAbhi 7fe35243db heat: enhanced heat 2024-01-11 20:45:12 -06:00
TrèsAbhi 647c9240a5 feat: spaced armor in space caught shell 2024-01-11 12:53:19 -06:00
TrèsAbhi fe0fdc0964 feat: opaque he 2024-01-11 12:31:45 -06:00
TrèsAbhi 9dc4483d70 feat: he start 2024-01-11 12:15:24 -06:00
TrèsAbhi 9ed2b79a4b feat: ricochet incapable shells 2024-01-11 12:04:01 -06:00
TrèsAbhi 28a9f9a849 Merge branch '1.16.0' of https://github.com/tresabhi/blitzkrieg into 1.16.0 2024-01-11 11:45:39 -06:00
TrèsAbhi 5044a5be48 fix: 3 caliber auto ricochet 2024-01-11 11:45:38 -06:00
TrèsAbhi c4053b9ba8 feat: naaahhhhh 2024-01-10 22:10:44 -06:00
TrèsAbhi 53c00258ac feat: purple spaced armor 2024-01-10 22:08:03 -06:00
TrèsAbhi 99123b733d fix: hide on rotate 2024-01-10 19:27:58 -06:00
TrèsAbhi 92c81d60db feat: spaced armor toggle 2024-01-10 19:08:23 -06:00
TrèsAbhi 9218eb09d6 feat: spaced armor 2024-01-10 19:04:04 -06:00
TrèsAbhi cae4836e17 feat: france 2024-01-10 18:14:55 -06:00
TrèsAbhi 172b410d82 feat: key press shell switching 2024-01-10 18:01:33 -06:00
TrèsAbhi 371dcad568 feat: shell swapping 2024-01-10 17:57:41 -06:00
TrèsAbhi 32ee10445d feat: penetration 2024-01-10 17:36:11 -06:00
TrèsAbhi f9d0659bd4 feat: opaque amror 2024-01-10 17:29:49 -06:00
TrèsAbhi f6b4bb3923 feat: no armor unload 2024-01-10 16:25:59 -06:00
TrèsAbhi 9ccd183607 fix: discard no armor thickness meshes 2024-01-10 16:22:42 -06:00
TrèsAbhi 5e06a606ef fix: darker lime color 2024-01-10 15:41:55 -06:00
TrèsAbhi 2f6b186ea8 feat: hide armor when rotating 2024-01-10 15:39:18 -06:00
TrèsAbhi dd8875e951 feat: armor gradient 2024-01-10 15:27:14 -06:00
TrèsAbhi 232fc3140c feat: all armor rules... I think? 2024-01-10 14:56:33 -06:00
TrèsAbhi 8e6d2b9873 feat: some armor rules 2024-01-10 14:25:48 -06:00
TrèsAbhi 6239a72bce feat: tank armor position stateful 2024-01-10 13:22:55 -06:00
TrèsAbhi 9e0c4ddb9a feat: isolated tank model 2024-01-10 13:00:37 -06:00
TrèsAbhi 4a6b5e3aa9 feat: custom shaders 2024-01-09 22:31:34 -06:00
TrèsAbhi a7d8f08522 feat: armor display 2024-01-09 18:35:42 -06:00
TrèsAbhi 6aa4686c30 feat: moved to blitzkrieg assets 2024-01-09 13:36:33 -06:00
TrèsAbhi f9ccb06d1f feat: armor chunking 2024-01-09 13:07:27 -06:00
TrèsAbhi 1f378137f1 fix: backwards vertex format 2024-01-08 19:13:54 -06:00
TrèsAbhi 7235291e69 feat: started work on armor extraction 2024-01-08 18:34:04 -06:00
TrèsAbhi 1f39ecefe4 feat: code split build assets 2024-01-07 20:07:45 -06:00
TrèsAbhi 5a25f335cd feat: colored search results 2024-01-07 19:41:37 -06:00
TrèsAbhi 88a6ab2d95 feat: prot and anta 2024-01-07 13:13:27 -06:00
TrèsAbhi 5208cf8678 feat: code split 2024-01-06 18:17:04 -06:00
TrèsAbhi 857cba902a feat: settings basework 2024-01-06 17:59:31 -06:00
TrèsAbhi 6753a72d97 feat: better ui sizing 2024-01-06 17:56:12 -06:00
TrèsAbhi 14fb62bda4 feat: pitch and yaw limits for inputs 2024-01-06 13:21:11 -06:00
TrèsAbhi 21122c620b feat: sky lighting 2024-01-05 15:22:00 -06:00
TrèsAbhi cb6ce4f183 feat: unified loader 2024-01-05 15:01:45 -06:00
TrèsAbhi 884531700b feat: better lighting 2024-01-05 14:28:25 -06:00
TrèsAbhi 6ca9e637dc feat: loading bar 2024-01-04 13:37:36 -06:00
TrèsAbhi 0a4e696bc1 feat: code split 2024-01-04 13:06:40 -06:00
TrèsAbhi 2cf0bda352 fix: no accessor overrides 2024-01-04 12:11:36 -06:00
TrèsAbhi 35d03c9e21 fix: streak lod 2024-01-03 19:18:31 -06:00
TrèsAbhi c10060decc feat: initial turret rotation 2024-01-03 18:52:22 -06:00
TrèsAbhi d408df8b4c feat: generalized prevent default 2024-01-03 18:28:02 -06:00
TrèsAbhi b3ecb1e9b9 feat: track turning 2024-01-03 14:15:34 -06:00
TrèsAbhi 9306773b5b fix: no text selection on drag 2024-01-03 14:07:19 -06:00
TrèsAbhi 1245fab7ae fix: next gun/turret selection 2024-01-03 14:05:06 -06:00
TrèsAbhi a6e8dd6632 feat: pitch limits 2024-01-03 13:50:36 -06:00
TrèsAbhi 56d8392f12 feat: code split containers 2024-01-03 13:07:45 -06:00
TrèsAbhi 39e4bce254 feat: hide grid when looking at bottom 2024-01-03 12:35:10 -06:00
TrèsAbhi b745ad2fa7 feat: controls 2024-01-03 12:21:30 -06:00
TrèsAbhi ff66d99fc6 feat: remove controls 2024-01-03 11:56:37 -06:00
TrèsAbhi f15bee34fb feat: cleaned code 2024-01-02 21:10:04 -06:00
TrèsAbhi 60164cfb78 feat: model definitions 2024-01-02 20:17:10 -06:00
TrèsAbhi d543e42268 feat: gun limits 2024-01-02 14:50:46 -06:00
TrèsAbhi 9bd26ef3bf feat: gun pitch 2024-01-02 14:07:40 -06:00
TrèsAbhi 0d5b2aedc7 feat: better alignment 2024-01-02 13:55:41 -06:00
TrèsAbhi 3ea872c6a4 feat: improved lighting and grid 2024-01-02 13:31:34 -06:00
TrèsAbhi e65582a432 feat: simpler turret rotation 2024-01-01 21:24:54 -06:00
TrèsAbhi 88cc37a6af feat: hull rotation 2024-01-01 21:17:22 -06:00
TrèsAbhi b40b7b2472 feat: inputs 2024-01-01 21:03:27 -06:00
TrèsAbhi 73f7e84192 feat: turret rotation 2024-01-01 20:45:23 -06:00
TrèsAbhi c9d5b46ae8 feat: omition 2024-01-01 15:16:28 -06:00
TrèsAbhi d4e16048e9 feat: module hot swapping 2024-01-01 14:48:46 -06:00
TrèsAbhi daa549e650 Merge pull request #61 from tresabhi/1.15.9 2024-01-01 14:26:13 -06:00
TrèsAbhi fe562915cb feat: docs 2024-01-01 14:24:45 -06:00
TrèsAbhi fff42b61e1 fix: deleted ratings players 2024-01-01 14:22:39 -06:00
TrèsAbhi 90ee71c9ca fix: archived season number 2024-01-01 14:19:13 -06:00
TrèsAbhi a1c80c3d27 feat: mesh occlusion base work 2024-01-01 14:00:41 -06:00
TrèsAbhi 8b10f2cc4a feat: models 2023-12-31 20:47:21 -06:00
TrèsAbhi 28dde23115 feat: gun & turret origins 2023-12-31 19:26:08 -06:00
TrèsAbhi b433129354 feat: mesh omit 2023-12-30 13:02:47 -06:00
TrèsAbhi 7e0fb82905 fix: vec4 tangents 2023-12-30 12:43:46 -06:00
TrèsAbhi 75bacd5586 fix: first max float 32 mesh 2023-12-30 11:45:44 -06:00
TrèsAbhi 21daf9f3bb fix: little endian pvr 2023-12-30 11:44:42 -06:00
TrèsAbhi fa625dc887 fix: bc1 alpha check 2023-12-29 19:59:01 -06:00
TrèsAbhi 376b3f04e5 feat: pvr parser 2023-12-29 19:56:50 -06:00
TrèsAbhi 12ee9d381d feat: more game parity x2 2023-12-29 13:01:45 -06:00
TrèsAbhi b90938108a feat: more game parity 2023-12-29 12:41:21 -06:00
TrèsAbhi 7b136e61a1 feat: texture mutation 2023-12-28 20:58:18 -06:00
TrèsAbhi 0f9f15b268 feat: normalized alpha 2023-12-28 18:36:28 -06:00
TrèsAbhi fdd8aac017 fix: i hate ai copilots doing binary 2023-12-28 17:55:47 -06:00
TrèsAbhi ce4f7a55b6 fix: a few bit swaps 2023-12-28 13:46:22 -06:00
TrèsAbhi def75da1d8 feat: generalization x3 2023-12-28 13:11:52 -06:00
TrèsAbhi 2b81c71c5a feat: generalization x2 2023-12-28 12:54:46 -06:00
TrèsAbhi 436a519db8 feat: generalization 2023-12-28 12:24:09 -06:00
TrèsAbhi c624136dc7 feat: more bc versions 2023-12-27 18:54:03 -06:00
TrèsAbhi cd546b274f feat: dds stream 2023-12-26 20:02:01 -06:00
TrèsAbhi 2f650af0f7 feat: more prog 2023-12-26 13:35:07 -06:00
TrèsAbhi 4ffb7cac7c feat: dds decompression 2023-12-25 20:50:19 -06:00
TrèsAbhi 6361b09129 feat: dds stream 2023-12-25 16:49:40 -06:00
TrèsAbhi cb87a3067c feat: code split streams 2023-12-25 12:37:37 -06:00
TrèsAbhi 510eebd2f4 feat: stride mis-match management 2023-12-25 11:21:39 -06:00
TrèsAbhi 15a8e53e22 feat: rename to attribute 2023-12-24 19:02:47 -06:00
TrèsAbhi 99fb44633e feat: lod distance based model loading 2023-12-24 18:38:13 -06:00
TrèsAbhi 9a8c0399be feat: more pbr polish 2023-12-23 19:23:47 -06:00
TrèsAbhi 3f264d6a49 feat: auto restart every 5 hours 2023-12-23 18:31:45 -06:00
TrèsAbhi 818a6b38cb feat: moved to scpg stream 2023-12-23 14:28:29 -06:00
TrèsAbhi d60a102c0d feat: pbr 2023-12-22 15:59:06 -06:00
TrèsAbhi 0627f678ea feat: use PVRTexToolCLI 2023-12-20 14:39:32 -06:00
TrèsAbhi 4ad10deb00 feat: texturing 2023-12-19 20:11:37 -06:00
TrèsAbhi f61725a021 feat: attempting textures 2023-12-19 14:32:08 -06:00
TrèsAbhi 6d2bb7b131 feat: glb convertion 2023-12-18 17:49:07 -06:00
TrèsAbhi 9db43db3cf feat: sc2 typings 2023-12-18 16:28:15 -06:00
TrèsAbhi 7a22ce5af5 feat: more definition data 2023-12-17 20:47:33 -06:00
TrèsAbhi 68239351b5 Merge pull request #60 from tresabhi/main 2023-12-15 22:01:40 -06:00
TrèsAbhi 61eab0bca8 feat: update docs image 2023-12-15 22:00:20 -06:00
TrèsAbhi 2aefe3f9e3 feat: integrated tank definitions 2023-12-14 22:19:01 -06:00
TrèsAbhi adb0bb2e69 feat: versus tank lookup 2023-12-13 12:47:31 -06:00
TrèsAbhi b1a59aa871 Merge pull request #59 from tresabhi/main 2023-12-13 12:09:11 -06:00
TrèsAbhi 0a19157dbb Merge branch '1.16.0' into main 2023-12-13 12:08:55 -06:00
TrèsAbhi 382a23b661 Merge pull request #58 from tresabhi/1.15.8 2023-12-13 12:03:16 -06:00
TrèsAbhi 98107291f5 feat: changelogs 2023-12-13 12:03:02 -06:00
TrèsAbhi c6779a714b feat: custom titles 2023-12-13 11:59:37 -06:00
TrèsAbhi ef8f0fd72d feat: color previews 2023-12-13 11:46:36 -06:00
TrèsAbhi 634bd2ea07 feat: shell icons and modes 2023-12-12 23:35:08 -06:00
TrèsAbhi f8f88ff8f2 fix: types 2023-12-12 18:11:55 -06:00
TrèsAbhi 8a2dc24f7e feat: more ui 2023-12-12 16:40:22 -06:00
TrèsAbhi dcc3ab6e4e feat: module ui 2023-12-12 15:12:09 -06:00
TrèsAbhi dabeab8612 feat: gun defs 2023-12-12 14:14:26 -06:00
TrèsAbhi 66dbc5b2ed feat: more defs 2023-12-12 13:40:58 -06:00
TrèsAbhi 2e2ab9b2d9 fix: added binary start padding 2023-12-12 12:01:50 -06:00
TrèsAbhi 662e0bb9ce feat: optimizations 2023-12-11 11:21:40 -06:00
TrèsAbhi 3f40e94235 feat: cleanup x2 2023-12-10 17:22:40 -06:00
TrèsAbhi 483b625f2d feat: cleanup 2023-12-10 17:14:05 -06:00
TrèsAbhi d18cf625d0 feat: final compatibility 2023-12-10 17:03:01 -06:00
TrèsAbhi b42df81b48 feat: remove running bot instructions 2023-12-10 12:03:34 -06:00
TrèsAbhi 536fed5448 feat: newer website image 2023-12-10 12:03:02 -06:00
TrèsAbhi dc01eff812 feat: ka 0xff02 handling 2023-12-10 11:57:21 -06:00
TrèsAbhi 5471c7fa32 feat: unconfirmed types 2023-12-10 11:51:54 -06:00
TrèsAbhi 83e28b4dac feat: move versions x2 2023-12-09 19:05:46 -06:00
TrèsAbhi af95897bde feat: move versions 2023-12-09 18:38:24 -06:00
TrèsAbhi 4c2f6bea25 feat: uhh 2023-12-09 15:56:25 -06:00
TrèsAbhi fdf77a43cb feat: sc2 complete 2023-12-08 19:11:40 -06:00
TrèsAbhi f1855a569a feat: removed sub values 2023-12-08 18:45:57 -06:00
TrèsAbhi a0434b6ed2 feat: more sc2 x2 2023-12-08 18:32:11 -06:00
TrèsAbhi 365c714213 feat: more sc2 2023-12-08 18:14:33 -06:00
TrèsAbhi 875abf4d32 feat: sc2 start 2023-12-08 11:36:54 -06:00
TrèsAbhi 6b9bf76da2 feat: model reconstruction 2023-12-08 11:06:56 -06:00
TrèsAbhi 610c75d274 feat: float 2023-12-07 23:36:46 -06:00
TrèsAbhi 81826d0549 feat: more data driven 2023-12-07 22:41:49 -06:00
TrèsAbhi 8caf4069dc feat: more things 2023-12-07 22:13:54 -06:00
TrèsAbhi 6c496e616d feat: scg tests 2023-12-07 12:58:54 -06:00
TrèsAbhi 3d5dd54ec0 feat: start of tank page 2023-12-06 17:58:26 -06:00
TrèsAbhi e7bfe81940 feat: bounded filters 2023-12-06 16:43:36 -06:00
TrèsAbhi fb9c04c779 feat: even cleaner filters 2023-12-06 12:48:19 -06:00
TrèsAbhi 84a1af8100 feat: cleaner filters 2023-12-06 12:40:43 -06:00
TrèsAbhi b804e60bac fix: jumping navbar 2023-12-06 11:33:23 -06:00
TrèsAbhi 604e751bf4 feat: test tank filters 2023-12-06 10:34:43 -06:00
TrèsAbhi 2ce083222e fix: tighter all targets integration 2023-12-06 10:19:13 -06:00
TrèsAbhi 9a44b1fcfb feat: re-added rest of the asset gens 2023-12-06 10:17:42 -06:00
TrèsAbhi 9df47777d0 feat: build assets 2023-12-05 19:14:53 -06:00
TrèsAbhi aa78bc4045 feat: modernized 2023-12-05 18:05:14 -06:00
TrèsAbhi 4bfe34ba53 feat: read dvpl 2023-12-05 17:59:58 -06:00
TrèsAbhi ad0fc69596 feat: move tankopedia to tankDefinitions 2023-12-05 17:36:18 -06:00
TrèsAbhi cfe71e15a4 feat: frosty navbar 2023-12-04 19:46:53 -06:00
TrèsAbhi bf7a319770 feat: better navbar 2023-12-04 19:27:23 -06:00
TrèsAbhi cadc84b32f feat: nation filters 2023-12-04 19:10:26 -06:00
TrèsAbhi 7bde92c7f1 feat: update to new asset format 2023-12-04 18:48:52 -06:00
TrèsAbhi 965d36cdc5 feat: remove more to... array funcs 2023-12-04 18:45:38 -06:00
TrèsAbhi f8ef0063e4 fix: removed toSorted 2023-12-04 18:40:57 -06:00
TrèsAbhi fb4e00afc4 feat: tier display 2023-12-04 18:40:24 -06:00
TrèsAbhi 6ed9a191b9 feat: generalized page turner 2023-12-04 12:39:14 -06:00
TrèsAbhi b503f4fa8f feat: more filters 2023-12-04 12:35:27 -06:00
TrèsAbhi 7020e5641f feat: tier filters 2023-12-04 11:47:33 -06:00
TrèsAbhi 5b4601b671 feat: persistent sorting 2023-12-04 10:25:54 -06:00
TrèsAbhi 3e952faad3 feat: correct flags 2023-12-04 10:13:14 -06:00
TrèsAbhi c51abc1c64 feat: :) 2023-12-03 22:11:37 -06:00
TrèsAbhi c7e2780d17 feat: i am having too much fun 2023-12-03 22:09:08 -06:00
TrèsAbhi 28e2139683 feat: even coooooooooler animations 2023-12-03 21:44:58 -06:00
TrèsAbhi 20c839394a fix: page readjusting on search 2023-12-03 19:51:55 -06:00
TrèsAbhi c5e1a7d6ab feat: page turner 2023-12-03 19:45:43 -06:00
TrèsAbhi 579d7570af feat: better sizing 2023-12-03 18:26:48 -06:00
TrèsAbhi 1d1d751d43 fix: missing tank types 2023-12-03 18:16:59 -06:00
TrèsAbhi 86664b5491 feat: updated dependencies 2023-12-03 18:16:49 -06:00
TrèsAbhi b7e9898163 Merge pull request #57 from tresabhi/main 2023-12-03 10:53:29 -06:00
TrèsAbhi d4c0b01343 Merge pull request #56 from tresabhi/1.15.7 2023-12-03 10:51:33 -06:00
TrèsAbhi af67126156 feat: changelogs 2023-12-03 10:51:15 -06:00
TrèsAbhi 9930360405 feat: session tracker classnames 2023-12-03 10:44:49 -06:00
TrèsAbhi 4fb61d6dbd feat: session tracker themeing 2023-12-03 10:43:42 -06:00
TrèsAbhi bcb7ca5c4c fix: local string for ratings overflow count 2023-12-03 09:57:06 -06:00
TrèsAbhi d1fb5da002 feat: flags path 2023-12-03 09:56:08 -06:00
TrèsAbhi 17935fbe89 feat: better contrast 2023-12-03 09:55:57 -06:00
TrèsAbhi 48578407db feat: icons 2023-12-01 12:36:31 -06:00
TrèsAbhi bda0c4ef1b feat: animations on hove 2023-12-01 12:23:17 -06:00
TrèsAbhi 7ea5e444b3 feat: better icons 2023-11-30 18:00:48 -06:00
TrèsAbhi bef362935a feat: flags 2023-11-30 12:59:37 -06:00
TrèsAbhi f3144be382 feat: tankopedia website 2023-11-30 12:21:20 -06:00
TrèsAbhi 818ee1d447 feat: use userstring 2023-11-30 12:21:15 -06:00
TrèsAbhi 67e45ada85 feat: use short tank name 2023-11-29 12:20:59 -06:00
TrèsAbhi bdc7132337 feat: use new tankopedia 2023-11-29 12:17:21 -06:00
TrèsAbhi c5214f8d89 Merge pull request #55 from tresabhi/main 2023-11-28 10:19:47 -06:00
TrèsAbhi 2be4dbea7a Merge pull request #54 from tresabhi/1.15.6 2023-11-28 10:18:06 -06:00
TrèsAbhi b951c81bf5 feat: changelog 2023-11-28 10:17:56 -06:00
TrèsAbhi 8c221a1295 feat: updated creators with a better format 2023-11-28 10:16:28 -06:00
TrèsAbhi c41f721a96 fix: regions at root 2023-11-28 10:14:45 -06:00
TrèsAbhi 6910f3c95e feat: better multiple file handling 2023-11-27 17:50:02 -06:00
TrèsAbhi e23f898c5f feat: assets writing 2023-11-27 16:52:38 -06:00
TrèsAbhi 3cf81afc4a feat: tree type 2023-11-27 12:26:51 -06:00
TrèsAbhi ca463a0f0e fix: removed dist package 2023-11-27 12:19:20 -06:00
TrèsAbhi a76572ebe3 Merge pull request #53 from tresabhi/main 2023-11-27 12:17:35 -06:00
TrèsAbhi 1a92cbd951 Merge pull request #52 from tresabhi/1.15.5 2023-11-27 12:15:09 -06:00
TrèsAbhi 54c5faf929 fix: changelog version 2023-11-27 12:15:24 -06:00
TrèsAbhi d1d9e9e4d1 feat: changelogs 2023-11-27 12:14:35 -06:00
TrèsAbhi 5ca64f839e fix: exhaustive user and channel indexing 2023-11-27 12:12:57 -06:00
TrèsAbhi 4e7cd6f681 Merge pull request #51 from tresabhi/1.15.4 2023-11-27 12:06:01 -06:00
TrèsAbhi ba9f593716 feat: changelogs 2023-11-27 12:06:00 -06:00
TrèsAbhi 9d3d74c7c5 feat: change ratings root dir to "ratings" 2023-11-27 12:03:17 -06:00
TrèsAbhi aae26523ff feat: renamed blitzkrieg-db to blitzkrieg-assets 2023-11-27 12:01:32 -06:00
TrèsAbhi 338a2a14bf fix: continue after no player found 2023-11-27 12:00:19 -06:00
TrèsAbhi 1a66cab435 feat: change name to have "Ratings" in the front 2023-11-27 11:59:02 -06:00
TrèsAbhi 3363c9ab58 Merge pull request #50 from tresabhi/1.15.3 2023-11-25 21:12:30 -06:00
TrèsAbhi 10f64902aa fix: xml in md 2023-11-25 21:10:53 -06:00
TrèsAbhi 25e1f4caa4 fix: workflow triggers 2023-11-25 21:09:24 -06:00
TrèsAbhi 222fa89422 fix: remove pull request 2023-11-25 21:04:04 -06:00
TrèsAbhi 750e145f03 feat: version lint 2023-11-25 21:03:29 -06:00
TrèsAbhi 3bbbbfa402 feat: changelogs 2023-11-25 20:57:58 -06:00
TrèsAbhi f728751fa9 feat: better debug 2023-11-25 20:46:20 -06:00
TrèsAbhi f5425d0e54 fix: more accurate user count 2023-11-25 20:45:00 -06:00
TrèsAbhi debaaccf4c feat: presence 2023-11-25 20:40:11 -06:00
TrèsAbhi a3e20501af feat: new credits transfer 2023-11-25 20:08:01 -06:00
TrèsAbhi c87a75f3fd feat: combined ratings archive workflows 2023-11-25 20:01:12 -06:00
TrèsAbhi 55729c5eda feat: ratings leaderboard archive explicit target 2023-11-25 19:46:56 -06:00
TrèsAbhi 06cbcc2339 fix: "Midnight" in name 2023-11-23 14:39:04 -06:00
TrèsAbhi 1afe860e76 feat: change workflow file name to midnight 2023-11-23 14:38:04 -06:00
TrèsAbhi c0ac935652 feat: remove manual asia leaderboard trigger 2023-11-23 14:36:40 -06:00
TrèsAbhi 7c76b0f5a5 feat: Asia leaderboard manual trigger 2023-11-22 23:51:52 -06:00
TrèsAbhi 42091c54b7 fix: illegal json invocation 2023-11-22 23:49:24 -06:00
TrèsAbhi 396b48d017 feat: smaller fetching size 2023-11-20 13:32:53 -06:00
TrèsAbhi 5bf83da726 feat: ratings leaderboard efficiency plot script 2023-11-20 13:16:44 -06:00
TrèsAbhi bb1c0c7625 Merge pull request #49 from tresabhi/1.15.2 2023-11-19 14:05:46 -06:00
TrèsAbhi 1170676141 feat: changelogs 2023-11-19 14:05:39 -06:00
TrèsAbhi 7baaaa9db9 fix: remove seeding player neighbor checking 2023-11-19 14:02:00 -06:00
TrèsAbhi c1ecef0179 fix: add max target position 2023-11-19 13:55:11 -06:00
TrèsAbhi 393da234e4 feat: tankopedia images 2023-11-16 12:57:46 -06:00
TrèsAbhi 032d98e6bd fix: version number 2023-11-16 11:53:13 -06:00
TrèsAbhi f4a90cd531 Merge pull request #48 from tresabhi/1.15.1 2023-11-16 11:51:58 -06:00
TrèsAbhi 82f03583fe feat: updated docs with latest info 2023-11-16 11:51:10 -06:00
TrèsAbhi 81c1a50052 fix: guide link 2023-11-16 11:47:32 -06:00
TrèsAbhi c7207799e2 feat: changelogs 2023-11-16 11:45:44 -06:00
TrèsAbhi e0a719ee93 fix: patient JSON parsing 2023-11-16 11:41:52 -06:00
TrèsAbhi ee6d2e7d82 feat: remove neighbor relative positional caching 2023-11-16 11:14:38 -06:00
TrèsAbhi 14710b5218 fix: use non-caching apis for ratings command 2023-11-16 11:13:51 -06:00
TrèsAbhi 4b5e0d1c1c feat: american neighbor spelling 2023-11-16 10:58:19 -06:00
TrèsAbhi 9968e8346c Merge pull request #47 from tresabhi/1.15.0 2023-11-15 19:54:03 -06:00
TrèsAbhi bc4da17f10 feat: changelogs 2023-11-15 19:53:34 -06:00
TrèsAbhi da56c563fc feat: more advanced PSAs 2023-11-15 19:30:03 -06:00
TrèsAbhi 95f4dbf6a0 fix: missing season 2023-11-15 19:23:18 -06:00
TrèsAbhi 6c36f343ea fix: current season score jumping 2023-11-15 19:21:08 -06:00
TrèsAbhi 9257ebdd1e feat: skeletons 2023-11-15 16:42:56 -06:00
TrèsAbhi 8f1017195f fix: league jumping for current season 2023-11-15 16:42:52 -06:00
TrèsAbhi 20da294b36 feat: empty no-rewards 2023-11-15 12:18:32 -06:00
TrèsAbhi a63415461a feat: non-loaded page blocking 2023-11-15 12:16:49 -06:00
TrèsAbhi 2bb4c78551 fix: smart neighbor count for next page caching 2023-11-15 12:00:57 -06:00
TrèsAbhi 2909e61721 feat: middle-most caching 2023-11-14 21:13:09 -06:00
TrèsAbhi 171da2a194 fix: no search caching 2023-11-14 21:00:54 -06:00
TrèsAbhi 933c468e2d feat: split id and score 2023-11-14 20:56:27 -06:00
TrèsAbhi 0d1eb9b12e feat: better reward handling 2023-11-14 20:12:34 -06:00
TrèsAbhi 02a03b4d68 feat: advanced PSAs 2023-11-14 13:42:15 -06:00
TrèsAbhi ef9f3bd361 feat: rewards 2023-11-14 13:07:17 -06:00
TrèsAbhi f18b6ee754 feat: radix table 2023-11-14 12:40:49 -06:00
TrèsAbhi deb9e463e1 feat: highlighted player stats 2023-11-14 11:24:38 -06:00
TrèsAbhi c799534009 feat: position relative neighbor caching 2023-11-14 10:42:38 -06:00
TrèsAbhi aea01072fb fix: fetch neighbors after redundancy check 2023-11-14 10:37:09 -06:00
TrèsAbhi ca8dd5a702 fix: no existing cache overwrites for neighbors 2023-11-14 10:29:57 -06:00
TrèsAbhi e79c4a1e3f fix: no cache neighbors 2023-11-14 10:24:10 -06:00
TrèsAbhi e19d0d948a fix: removed ratings info caching 2023-11-14 07:34:47 -06:00
TrèsAbhi a160ccd095 feat: reintroduced overwriting 2023-11-13 23:06:43 -06:00
TrèsAbhi d2d0477186 fix: remove number fetcher 2023-11-13 23:03:28 -06:00
TrèsAbhi c742c0725d feat: removed swr caching 2023-11-13 23:00:57 -06:00
TrèsAbhi 9e6343a111 feat: remove overwrite avoidance 2023-11-13 22:47:17 -06:00
TrèsAbhi faf33b5f2d fix: punctuation 2023-11-13 22:27:26 -06:00
TrèsAbhi 8a78ac7d82 feat: removed /today command 2023-11-13 22:20:09 -06:00
TrèsAbhi d7c7814b3a feat: credits command 2023-11-13 22:19:49 -06:00
TrèsAbhi 15bf02f829 feat: CORS proxy for neighbors 2023-11-13 21:52:21 -06:00
TrèsAbhi 4f62a594b3 feat: button page turning exception 2023-11-13 21:41:37 -06:00
TrèsAbhi 64253d0120 feat: page turning in current season 2023-11-13 21:31:36 -06:00
TrèsAbhi 286936131d feat: simpler welcome message 2023-11-13 21:16:45 -06:00
TrèsAbhi 95588ef6b6 feat: patient fetching 2023-11-13 21:14:56 -06:00
TrèsAbhi daef04ccd8 feat: lowered retry time to 1 second 2023-11-13 13:15:55 -06:00
TrèsAbhi 86e385c548 feat: rewrote jump to score for current season 2023-11-13 12:52:39 -06:00
TrèsAbhi cc193b99d6 fix: bug fixes 2023-11-13 12:27:06 -06:00
TrèsAbhi c026007937 fix: first page caching 2023-11-11 23:07:13 -06:00
TrèsAbhi dbc117a9d4 fix: archived jump to score 2023-11-11 22:20:36 -06:00
TrèsAbhi 34665bd97a fix: fixed archived search results 2023-11-11 22:10:32 -06:00
TrèsAbhi 6d05e607b3 feat: fixed rows per page 2023-11-11 21:42:26 -06:00
TrèsAbhi 14bfc3018b feat: proxy APIs 2023-11-11 21:37:59 -06:00
TrèsAbhi 7e4f195f94 feat: optimized highlighted players 2023-11-11 20:59:48 -06:00
TrèsAbhi 4b6de934a5 feat: current season already cached checking 2023-11-11 20:51:48 -06:00
TrèsAbhi 14fbb595fd fix: better loading screen 2023-11-08 19:38:59 -06:00
TrèsAbhi 18a5fb80d0 feat: more code polish 2023-11-08 19:28:22 -06:00
TrèsAbhi 551ef79f03 feat: jump to position for current season 2023-11-08 17:50:00 -06:00
TrèsAbhi 81aec6bad2 feat: search players for current season 2023-11-08 12:17:08 -06:00
TrèsAbhi d08949c597 feat: jump to league for current season 2023-11-08 11:16:51 -06:00
TrèsAbhi 212aee0373 feat: current season traversal 2023-11-07 20:47:20 -06:00
TrèsAbhi 059b78c9fb feat: page turner disabling buttons 2023-11-07 19:22:28 -06:00
TrèsAbhi 11ba5fc28e feat: more robust deleted player handling 2023-11-07 19:15:41 -06:00
TrèsAbhi fbde9ec64f fix: no double fetch and caching 2023-11-07 18:58:19 -06:00
TrèsAbhi 6600bba58c feat: better layout 2023-11-07 17:33:41 -06:00
TrèsAbhi 9e340d2e16 fix: deleted clan handling 2023-11-07 17:24:51 -06:00
TrèsAbhi 6f784e9e94 feat: remove clan apis 2023-11-07 17:24:36 -06:00
TrèsAbhi 62f6aabf05 feat: better jump buttons 2023-11-07 11:55:27 -06:00
TrèsAbhi 46457a8bdc feat: jump to score 2023-11-07 11:50:51 -06:00
TrèsAbhi 1081e836f5 fix: region based player search 2023-11-07 11:40:46 -06:00
TrèsAbhi dfe1e37592 feat: public blitzkrieg-db 2023-11-07 11:36:08 -06:00
TrèsAbhi 0b9db21c10 feat: deleted user handling 2023-11-07 11:13:30 -06:00
TrèsAbhi 57527115d4 feat: jump to league 2023-11-07 11:02:11 -06:00
TrèsAbhi 8d2679c458 feat: better page turner 2023-11-07 10:50:41 -06:00
TrèsAbhi ca00f18a6a feat: jump to position 2023-11-07 10:47:28 -06:00
TrèsAbhi 466f68701f feat: archived player lookup 2023-11-07 10:32:01 -06:00
TrèsAbhi 1bb83da253 feat: per-page theming 2023-11-07 10:06:15 -06:00
TrèsAbhi bd1e17bac9 feat: tankopedia extractor 2023-11-06 23:02:26 -06:00
TrèsAbhi 322f95e42e feat: rows per page 2023-11-02 11:14:13 -05:00
TrèsAbhi 3ea77f5899 feat: autocomplete size limits 2023-11-01 11:45:19 -05:00
TrèsAbhi 882e61ff44 feat: isolated first archived season number 2023-11-01 11:27:41 -05:00
TrèsAbhi d991be4934 fix: user error now results in user friendly message 2023-11-01 11:21:30 -05:00
TrèsAbhi dfba8bd15f feat: better blitz fetch error management 2023-10-31 15:32:35 -05:00
TrèsAbhi 87e23673fb feat: clan cache 2023-10-31 15:31:03 -05:00
TrèsAbhi 8fbd1acf4a fix: set region 2023-10-31 15:24:00 -05:00
TrèsAbhi d7dfbaa799 feat: username display 2023-10-31 15:20:37 -05:00
TrèsAbhi 04ce20857e feat: no cap 2023-10-31 13:32:08 -05:00
TrèsAbhi 4550246d63 feat: players rendering 2023-10-31 13:30:47 -05:00
TrèsAbhi dd673f44ae feat: use swr 2023-10-31 13:15:28 -05:00
TrèsAbhi 3245284ecc feat: website apis 2023-10-31 12:58:24 -05:00
TrèsAbhi 3d9872a671 feat: patient ratings leaderboard building 2023-10-31 12:41:27 -05:00
TrèsAbhi f02db2a2d8 feat: data driven latest archived season number 2023-10-31 12:35:32 -05:00
TrèsAbhi d1ebb79432 feat: simpler non-user error messaging 2023-10-31 11:56:06 -05:00
TrèsAbhi 44f03a1fce fix: cors url 2023-10-31 11:43:28 -05:00
TrèsAbhi 6b6ee94d9b feat: use corsproxy.io 2023-10-31 11:41:04 -05:00
TrèsAbhi 81c2ca80bc feat: better ratings toolbar 2023-10-30 21:57:22 -05:00
TrèsAbhi c83cec8ed7 feat: simpler descs 2023-10-30 21:56:01 -05:00
TrèsAbhi 93ffe5c507 feat: options for ratings tool 2023-10-29 13:40:32 -05:00
TrèsAbhi 8cd1a70333 feat: isolated tankopediaInfo 2023-10-29 11:54:23 -05:00
TrèsAbhi 06ae024c2c Merge pull request #46 from tresabhi/1.14.4 2023-10-25 10:29:24 -05:00
TrèsAbhi ce8fd0f22f feat: package version 2023-10-25 10:28:07 -05:00
TrèsAbhi 7dc1aff1dc feat: changelogs 2023-10-25 10:27:56 -05:00
TrèsAbhi a60003127f feat: instructions for streamers 2023-10-25 10:26:35 -05:00
TrèsAbhi 7d1ba58806 feat: updated hero logo 2023-10-20 11:31:59 -05:00
TrèsAbhi 963d71e221 Merge pull request #38 from tresabhi/imgbot 2023-10-20 11:29:08 -05:00
TrèsAbhi 2a804fda1c Merge pull request #44 from tresabhi/dependabot/npm_and_yarn/babel/traverse-7.23.2 2023-10-20 11:28:46 -05:00
TrèsAbhi 597a1a04d2 Merge pull request #45 from tresabhi/1.14.3 2023-10-20 11:26:24 -05:00
TrèsAbhi aec6f49ea1 Update 1.14.2.md 2023-10-20 11:26:13 -05:00
TrèsAbhi e1ad710de5 fix: corrected version number 2023-10-20 11:26:03 -05:00
TrèsAbhi edc8447617 feat: changelogs 2023-10-20 11:24:19 -05:00
TrèsAbhi f726d4f8e8 feat: don't manage queue after task completion 2023-10-20 11:12:06 -05:00
TrèsAbhi 1f333f6b88 fix: manage queue after space available 2023-10-20 11:11:41 -05:00
TrèsAbhi 9b855fca47 fix: fetchBlitz return type 2023-10-20 11:08:22 -05:00
TrèsAbhi c5f433fdf4 feat: removed unnesesary type 2023-10-20 10:57:24 -05:00
TrèsAbhi fd61dae1c1 feat: added queues to fetchBlitz 2023-10-20 10:50:54 -05:00
TrèsAbhi 2c45f9759f fix: removed lie about username inference 2023-10-20 10:29:01 -05:00
TrèsAbhi 0d3261f748 feat: named asia region short name "ASIA" 2023-10-20 10:28:41 -05:00
TrèsAbhi d38e873800 feat: used short region names for username autocomplete 2023-10-20 10:28:20 -05:00
TrèsAbhi ca38914095 feat: chunked images in breakdown 2023-10-20 10:22:12 -05:00
TrèsAbhi ee5beeea45 fix: preserve image order 2023-10-20 10:12:01 -05:00
dependabot[bot] a9d40d9f49 build(deps): bump @babel/traverse from 7.22.20 to 7.23.2
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.20 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-10-18 13:18:13 +00:00
ImgBotApp e3864b86a4 [ImgBot] Optimize images
*Total -- 21,554.66kb -> 14,287.64kb (33.71%)

/docs/public/assets/images/hero.png -- 8.27kb -> 4.13kb (50.07%)
/public/assets/banners/tankopedia.png -- 2,422.26kb -> 1,285.27kb (46.94%)
/public/assets/banners/profile.png -- 2,004.61kb -> 1,143.78kb (42.94%)
/public/assets/banners/inactive.png -- 2,675.88kb -> 1,700.96kb (36.43%)
/public/assets/banners/ratings.png -- 3,878.81kb -> 2,495.66kb (35.66%)
/public/assets/banners/more.png -- 8,407.57kb -> 5,532.24kb (34.2%)
/public/assets/banners/session.png -- 2,157.27kb -> 2,125.60kb (1.47%)

Signed-off-by: ImgBotApp <[email protected]>
2023-10-01 22:45:47 +00:00
326 changed files with 20147 additions and 3443 deletions

No files matched your search

@@ -1,34 +0,0 @@
name: CD Asia Ratings Latest
on:
schedule:
- cron: "0 0 * * *"
jobs:
host:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- name: Install Yarn
run: npm install --location=global yarn
- name: Use node_modules cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn
- name: Generate leaderboard
run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=asia --latest
@@ -1,34 +0,0 @@
name: CD Asia Ratings Leaderboards
on:
schedule:
- cron: "0 17 * * *"
jobs:
host:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- name: Install Yarn
run: npm install --location=global yarn
- name: Use node_modules cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn
- name: Generate leaderboard
run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=asia
+53
View File
@@ -0,0 +1,53 @@
name: CD Build Assets
on:
push:
branches: dev
workflow_dispatch:
# schedule:
# - cron: '0 0 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install Yarn
run: npm install --location=global yarn
- name: Use node_modules cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn
- name: Add fixed sharp
run: yarn add [email protected] --ignore-engines
- name: Setup DepotDownloader
run: yarn setup:depotdownloader
- name: Run DepotDownloader
run: ./temp/depotDownloader/DepotDownloader.exe -app 444200 -username ${{ secrets.DEPOT_DOWNLOADER_USERNAME }} -password "${{ secrets.DEPOT_DOWNLOADER_PASSWORD }}"
- name: Build assets
run: |
$env:GH_TOKEN = "${{ secrets.GH_TOKEN }}"
$env:DISCORD_TOKEN = "${{ secrets.DISCORD_TOKEN }}"
yarn build:assets --all-targets --depot ${{ github.ref == 'refs/heads/main' && '--production' || '' }}
+1 -1
View File
@@ -2,7 +2,7 @@ name: CD Docs
on:
push:
branches: [main]
branches: main
jobs:
build:
+3 -1
View File
@@ -1,8 +1,10 @@
name: CD Host
on:
push:
branches: main
schedule:
- cron: '0 */6 * * *'
- cron: '0 */5 * * *'
workflow_dispatch:
concurrency:
@@ -1,8 +1,12 @@
name: CD Europe Ratings Latest
name: CD Ratings Asia
# latest: '0 0 * * *'
# asia midnight: '0 17 * * *'
on:
schedule:
- cron: "0 0 * * *"
- cron: '0 0 * * *'
- cron: '0 17 * * *'
jobs:
host:
@@ -16,7 +20,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache: 'npm'
- name: Install Yarn
run: npm install --location=global yarn
@@ -24,11 +28,11 @@ jobs:
- name: Use node_modules cache
uses: actions/cache@v3
with:
path: "**/node_modules"
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn
- name: Generate leaderboard
run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=eu --latest
run: GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} yarn publish:ratingsleaderboard --region=asia --target=${{ github.event.schedule == '0 0 * * *' && 'latest' || 'midnight' }}
@@ -1,8 +1,12 @@
name: CD North America Ratings Latest
name: CD Ratings Europe
# latest: '0 0 * * *'
# eu midnight: '0 23 * * *'
on:
schedule:
- cron: '0 0 * * *'
- cron: '0 23 * * *'
jobs:
host:
@@ -31,4 +35,4 @@ jobs:
run: yarn
- name: Generate leaderboard
run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=na --latest
run: GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} yarn publish:ratingsleaderboard --region=eu --target=${{ github.event.schedule == '0 0 * * *' && 'latest' || 'midnight' }}
@@ -1,8 +1,12 @@
name: CD Europe Ratings Leaderboards
name: CD Ratings North America
# latest: '0 0 * * *'
# na midnight: '0 5 * * *'
on:
schedule:
- cron: "0 23 * * *"
- cron: '0 0 * * *'
- cron: '0 5 * * *'
jobs:
host:
@@ -16,7 +20,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache: 'npm'
- name: Install Yarn
run: npm install --location=global yarn
@@ -24,11 +28,11 @@ jobs:
- name: Use node_modules cache
uses: actions/cache@v3
with:
path: "**/node_modules"
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn
- name: Generate leaderboard
run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=eu
run: GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} yarn publish:ratingsleaderboard --region=na --target=${{ github.event.schedule == '0 0 * * *' && 'latest' || 'midnight' }}
+1 -1
View File
@@ -1,6 +1,6 @@
name: CI Build Bot
on: [push, pull_request]
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
+1 -1
View File
@@ -1,6 +1,6 @@
name: CI Build Docs
on: [push, pull_request]
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
+1 -1
View File
@@ -1,6 +1,6 @@
name: CI Build Website
on: [push, pull_request]
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -1,8 +1,6 @@
name: CD North America Ratings Leaderboards
name: CI Version
on:
schedule:
- cron: '0 5 * * *'
on: push
jobs:
host:
@@ -31,4 +29,4 @@ jobs:
run: yarn
- name: Generate leaderboard
run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=na
run: yarn lint:version
+5 -1
View File
@@ -13,4 +13,8 @@ test.*
/docs/.vitepress/cache
servers.csv
.next/
tsconfig.tsbuildinfo
tsconfig.tsbuildinfo
temp/
/.yarn
/.VSCodeCounter
/.yarn
+99 -1
View File
@@ -1,53 +1,151 @@
{
"cSpell.words": [
"AABBOX",
"Abhi",
"accountinfo",
"aeson",
"alphatest",
"apcr",
"artefacts",
"atgm",
"AYUV",
"bbox",
"bepaint",
"betakrieg",
"BINORMAL",
"Binormals",
"bkwd",
"blitzstars",
"Camo",
"CDON",
"classname",
"cleandist",
"cockroackdb",
"Coef",
"cooldown",
"corsproxy",
"CUBEMAP",
"CUBETEXCOORD",
"customperiod",
"datasource",
"Ddpf",
"Ddsd",
"debugflags",
"deburr",
"decalmask",
"defence",
"degressive",
"devkrieg",
"diacriticless",
"donotremove",
"drei",
"Droodles",
"dvpl",
"DVPLCRC",
"dxgi",
"Everytime",
"FASTNAME",
"FOURCC",
"fsformat",
"Fullscreen",
"fullstats",
"fuzzysort",
"gamemode",
"glsl",
"GLTF",
"haha",
"highp",
"iife",
"immer",
"Inclusivity",
"JOINTINDEX",
"JOINTWEIGHT",
"kranvagn",
"krieg",
"Leaderboard",
"leaderboards",
"lerp",
"LINEARSIZE",
"loddist",
"lods",
"metallicness",
"minitelrose",
"MIPMAPCOUNT",
"modeltransform",
"MURICA",
"NEGATIVEX",
"NEGATIVEY",
"NEGATIVEZ",
"nmatname",
"noout",
"normalmap",
"Oopsy",
"OPTML",
"outdir",
"outfile",
"ownedtanks",
"PIXELFORMAT",
"playerachievements",
"playerinfo",
"pngjs",
"POSITIVEX",
"POSITIVEY",
"POSITIVEZ",
"Promisable",
"Pyogenics",
"ratingsleaderboard",
"ratingsplot",
"raycaster",
"researchable",
"Resvg",
"roboto",
"SCPG",
"searchclans",
"searchplayers",
"searchtanks",
"SHAREDEXP",
"SKLLD",
"Smri",
"Specularity",
"SSAO",
"startcase",
"statsfull",
"steamapps",
"Stringifying",
"struct",
"structs",
"strvk",
"subnation",
"Synx",
"tankaverages",
"Tankerch",
"tankopedia",
"tankopedias",
"tankstats",
"texconv",
"TEXCOORD",
"tresabhi",
"tungstentip",
"TYPELESS",
"ubjson",
"Unicum",
"UNORM",
"Unregistering",
"vickers",
"vitepress",
"Vovko",
"wargaming",
"webp",
"winrate",
"wireframe",
"wotblitz",
"xffn",
"xkdkw",
"XMLDVPL",
"YAMLDVPL",
"zustand"
],
"deno.enable": false,
"deno.unstable": false
"deno.unstable": false,
"cSpell.enableFiletypes": ["glsl"]
}
+2 -23
View File
@@ -14,31 +14,10 @@ Go to [application directory for Blitzkrieg](https://discord.com/application-dir
### https://blitz-krieg.vercel.app/
![Blitzkrieg website](https://i.imgur.com/QOXUP63.png)
![Blitzkrieg website](https://i.imgur.com/eRIZe5P.png)
## Visit the documentation website
### https://tresabhi.github.io/blitzkrieg/
![Blitzkrieg documentation website](https://i.imgur.com/mCZCZEI.png)
## Run the bot
### Install dependencies
```bash
yarn
```
### Create `.env`
```env
GH_TOKEN={YOUR_GITHUB_TOKEN_HERE}
DISCORD_TOKEN={YOUR_DISCORD_TOKE_HERE}
```
### Run the command
```bash
yarn dev:bot
```
![Blitzkrieg documentation website](https://i.imgur.com/TOt5fMx.png)
+1 -1
View File
@@ -13,7 +13,7 @@ export default defineConfig({
themeConfig: {
nav: [
{ text: 'Home', link: '/' },
{ text: 'Guide', link: '/guide/about' },
{ text: 'Guide', link: '/guide/introduction' },
],
sidebar: [
+1 -1
View File
@@ -1,4 +1,4 @@
# Blitzkrieg 1.14.1
# Blitzkrieg 1.14.2
A late night hot fix for my homies
+24
View File
@@ -0,0 +1,24 @@
# Blitzkrieg 1.14.3
Pull your brush out and start polishing.
## Changes
![HisRoyalFatness' career breakdown](https://i.imgur.com/GhgMTnS.png)
- Rows in `/breakdown` are now chunked into `8` per image
- This is true unless the number of pages exceeds `10` in which case the rows are even distributed across all `10` pages
- `10` is the maximum number of images that Discord allows
- Short region names are used in username autocomplete instead of their full names
- Example: "North America" is "NA" now
## Fixes
- Removed reference to username inference in the username option description
- Removed an unnecessary type `asd` that did absolutely nothing used nowhere
## Technical changes
- Image orders are now preserved even if processed in parallel and all completed out of order
- `fetchBlitz` is now throttled to `10` requests per second
- Request overflows are managed by queueing
+7
View File
@@ -0,0 +1,7 @@
# Blitzkrieg 1.14.4
Streamers get some knowledge today
## Changes
- Added a video in the embed button prompt
+72
View File
@@ -0,0 +1,72 @@
# Blitzkrieg 1.15.0
Ratings will never be the same.
## Features
![Blitzkrieg Ratings. Elevate your game. Keep it simple.](https://i.imgur.com/7PZVAGQ.png)
- Blitzkrieg ratings leaderboard
- Available at https://blitz-krieg.vercel.app/tools/ratings
- **Highly experimental; [please report bugs on Discord server](https://discord.gg/nDt7AjGJQH)**
- Current season leaderboards are live meaning that there may be scores and positions that are out of order
- Options
- Regions can be swapped between NA, EU, and Asia
- The current season and all archived season (from 49 and onwards) are available
- Jump: used to jump to certain players
- Score: finds the first player with at least your desired score
- Position: finds the player at that position
- League: finds the top-most player in that league
- Player: finds the player
- **Jumping to scores and positions for the current season is a compounding function (hence the loading screen) and is limited to the speed of Wargaming's APIs which is pretty darn slow**
- Page controls
- Flip between pages left and right
- 33 players are loaded at once
- Left control is disabled on the first page and vice versa
- Page turning controls are also disabled if the next/previous page hasn't loaded yet
- Page numbers can be manually typed in the text field too
- This is available both at the top and the bottom of the screen
- Players
- Shows the position of the player
- Shows the player nickname and clan name
- "Deleted player ID" us shown when loading a deleted player
- A skeleton is shown when the player and clan is loading
- Shows the player percentile
- Shows reward for the position
- This is blank when there is no reward
- This column isn't available for archived seasons
- Shows the score
- A skeleton is shown when loading
- Click on a row to highlight it
- Using a jump button also highlights a row
- `/credits`: thanks who helped made this project
## Changes
- Error messages that user face are now even more simplified
- Increased username and clan autocomplete size limits to `25`
- Added capability for per-page accent theming
- Example: the ratings page is red while the session tracker is blue
- Simplified welcome message for SKLLD clan server
## Technical Changes
- Isolated tankopedia info
- Implemented `corsproxy.io` for non-timeout tolerant endpoints
- Latest archived season number is now data driven
- Ratings archives are now public
- This eliminates the need of `octokit`
- Ratings leaderboard archiver is now error tolerant
- Fetch attempts are made every `1000ms`
- Blitz errors are now managed better freeing up the queue faster
- Isolated first archived season number
- Added more advanced PSAs
- These can now feature images or embeds
- These can now modify message contents
- These can also now be secret
## Experimental Changes
- Added tankopedia extractor
- Retrieves tankopedia data from the game files
- This is not utilized as of right now
+24
View File
@@ -0,0 +1,24 @@
# Blitzkrieg 1.15.1
'MURICA!
## Changes
- "Neighbor" is now spelled in the American way
- Updated documentation website with the latest information
## Fixes
- Fixed the guide link on the documentation website
## Technical features
- Added capability to fetch patiently while also parsing the JSON
## Technical changes
- Removed neighbor relative position caching
## Technical fixes
- `/ratings` now uses the non-caching APIs
+23
View File
@@ -0,0 +1,23 @@
# Blitzkrieg 1.15.10
The 10th patch for the `1.15` update is here, breaking the record of the most patches for a single update!
## Features
- Added `/today`
- This is a direct alias for `/breakdown today`
- Drastically simplified ratings command
- `/ratings current` and `/ratings archive` have been now merged
- Where the data is fetched from is now decided directly from the chosen season number
- Simplified many error messages
- Title bar description text is now centered when there is no image
- It always felt awkward when there was no image on the left but the left still aligned to the right
- Removed `/link`'s requirement to select a username explicitly from the search results
- Full names for regions are now used in the `/link` command
- So "NA" turns into "North America"
## Fixes
- Fixed contrast issues with WN8 percentile colors behind white text
- Archived ratings neighbors now functions once again
- Disabled tankopedia; this feature isn't finished yet and the changes were accidentally leaked
+11
View File
@@ -0,0 +1,11 @@
# Blitzkrieg 1.15.11
There's an easter egg somewhere in this update 🤔
## Features
- Added `/permissions` which lists all permissions required to run the bot and checks if the bot has them or not
## Changes
- Error messages now do no use embeds, instead utilize simple headings and paragraphs
+8
View File
@@ -0,0 +1,8 @@
# Blitzkrieg 1.15.12
Sometimes embeds need love too.
## Changes
- Session embeds are now translucent by default
- Session embed titles are now the username of the player by default
+7
View File
@@ -0,0 +1,7 @@
# Blitzkrieg 1.15.13
I have run out of things to say here. This patch fixes like 1 thing haha.
# Technical Fixes
- Tank deltas are now filtered by last battle time
+9
View File
@@ -0,0 +1,9 @@
# Blitzkrieg 1.15.2
Infinity reduced to a finite value.
## Fixes
- Added a maximum value to the jump to position button
- Removed neighbor checking for the seeding player
- This fixes the jump to position button not loading at all
+30
View File
@@ -0,0 +1,30 @@
# Blitzkrieg 1.15.3
The bot now gets more expressive!
## Features
- The bot can now have presence messages; examples:
- "Living in {number} servers"
- "Server {number} users"
- "Observing {number} channels"
- More will be added in the future! Give me some ideas
## Changes
- Moved `/credits` to `/about creators`
- `/debug` command now ditches embeds and has better information to serve
## Technical Features
- Added a workflow and lint for package and changelog version miss match
## Technical Changes
- Removed manual trigger for Asian latest ratings leaderboard archiver
- Leaderboard archiver now accepts an explicit target like `midnight` or `latest`
- Combined midnight and latest leaderboard archival workflow into one file
## Technical Fixed
- Reviewed all workflow triggers and updated them
+13
View File
@@ -0,0 +1,13 @@
# Blitzkrieg 1.15.4
Unlocking future potential
## Technical Changes
- Moved the word "Ratings" to the front of the workflow name
- Renamed `blitzkrieg-db` to `blitzkrieg-assets`
- Moved the region folders from the root to `regions`
## Technical Fixes
- The ratings leaderboard archiver now correctly skips undefined players
+7
View File
@@ -0,0 +1,7 @@
# Blitzkrieg 1.15.5
Oops, this should've been in the last patch.
## Fixes
- User and channel cache is now guild cache exhaustive
+11
View File
@@ -0,0 +1,11 @@
# Blitzkrieg 1.15.6
This should have also been in the last update lol.
## Changes
- Changed the format of `/about creators` and added one more person
## Fixes
- Archived ratings leaderboards are now fetched from the correct URL path
+20
View File
@@ -0,0 +1,20 @@
# Blitzkrieg 1.15.7
Simple yet powerful theming options for the session tracker
## Features
- The accent color of the session tracker (hence the embed too) can now be tweaked
- Access this setting via the dropdown from Options > Accent color
## Fixes
- Reimplemented the commas for last numbers in the overflow count of the ratings leaderboard
- For example, "+1234567 more" will now read "+1,234,567 more"
## Technical Features
- Added class names for more in-depth customization for those who are comfortable with CSS
- `session-tracker-root`
- `session-tracker-row`
- `session-tracker-row-stat`
+9
View File
@@ -0,0 +1,9 @@
# Blitzkrieg 1.15.8
A request fulfilled \:\)
## Features
- Added custom titles in session tracker
- Change the title through Options > Edit title...
- Colors are shown when selecting a theme color for the session tracker
+13
View File
@@ -0,0 +1,13 @@
# Blitzkrieg 1.15.9
~~Curiosity killed the cat~~ Ratings killed the Blitzkrieg
## Fixes
- Deleted ratings players are now handled properly
## Technical Fixes
- Latest archived season number
- Is now cached properly
- Is now fetched in a chaining fashion correctly
+72
View File
@@ -0,0 +1,72 @@
# Blitzkrieg 1.16.0
This version introduces the long awaited (and desperately needed) Blitzkrieg Tankopedia.
## Credits
- [Pyogenics](https://github.com/pyogenics): technical documentation on WoTB 3d models
- [aeson](https://discord.gg/WHdER7ZPAD): human encyclopedia on WoTB file layout
- [\[OPTML\]](https://discord.gg/Su8w9KtEVE), [\_34](https://www.twitch.tv/34wotb), [Droodles_YT](https://www.youtube.com/@DroodlesBlitz): Tankopedia beta-testing
- Minitelrose, ChickenMan7777: external module exceptions
## Features
- Added Tankopedia
- Check out the tool here: https://blitz-krieg.vercel.app/tools/tankopedia
- The root page features a search engine for efficiently finding tanks
- Search bar: lets you search tanks via it's name
- Sort: lets you sort tanks by their statistics and generic things like names and tiers
- Reset button (trash icon): resets all filters and sorts
- Test tanks: lets you control wether you want to include test tanks
- Tree type filter: filters tech tree, premium, and collector tanks
- Nations: filters tanks by nation
- Tank type filter: filters tanks by tank designation
- Tier filter: filters tanks by tier
- The search result itself displays the national flag, tier, type, image, and name of the tank
- Clicking on the tank redirects you to the tank's page
- Tankopedia page
- Tank sandbox: the first thing you'll see is a 3D model of the tank
- On slim mobile devices, click "Load model" to reveal it
- Model tab
- This model has all PBR features and is identical to the one in the game
- You can click and drag the turret to rotate it
- You can do the same with the gun but with the added control of elevating and depressing it
- Armor tab
- Shows red where the tank (the protagonist) cannot be penetrated
- You can switch the shells that the shooter (the antagonist) shoots
- By default, the antagonist tank is the same as the protagonist
- You can change antagonists using the antagonist bar
- Searching through antagonists is identical to the root search page
- You may also swap the protagonist and antagonist using the swap button
- Click on the tank's armor anywhere to get intimate details about it
- Shows spaced armor, gaps between layers of armor, ricochets, penetration losses over events, thickness, angled thicknesses, and angles
- View button (eye icon): allows you to pose the tank in a few preset configurations
- Sandbox settings
- Green penetration: shows the penetrable parts of the tank as green instead of using transparency
- Show grid: shows a grid under the tank
- View environment: shows the lighting environment around the tank
- Lighting: preset lighting environments
- Wireframe: displays armor as vertices instead of faces
- Fullscreen button: toggles fullscreen
- Note that some functionalities are disabled in fullscreen
- Modules: switch around modules to view it change live in the 3D model and affect stats
- Provisions, equipments, miscellaneous, and consumables also affect stats
- Stats
- As you switch around the configurations of the tank, the change in stats are displayed using green and red arrows with delta numbers
- Statistics also display their units
- Fire section
- This deals with statistics relating to the firepower of the tank
- You can switch shells that the stats are based on using the buttons to the right of the title
- You can also view the penetration loss over distance using the slider if available under the penetration section
- Statistics for maneuverability, survivability, and crew training are also displayed
## Changes
- Navigation bar
- Added credit to myself along with the logo and moved the whole thing to the left side
- Added a link to the discord icon to the right
- Removed polka dots from the background
## Fixes
- The `/ratings` command once again has the username field as an optional parameter
+28
View File
@@ -0,0 +1,28 @@
# Blitzkrieg 1.16.1
Armor sandbox gains 25% rendering speed and 40% memory efficiency with added accuracy and features.
## Features
- Multiple layers of spaced armors are now calculated properly by the visual armor highlighting
- Added opaque mode to view armor highlighting without any transparency
- Added breakdown on layers of armor penetrated
- Penetration of each layer is shown represented by a color and an index
- Green: penetration
- Red: blocked
- Yellow: ricochet
- This also shows layers encountered after a ricochet
## Fixes
- Accuracy now doesn't drop the further the shot is placed from the origin
- HE shells no longer loose penetration like how HEAT shells do when traveling between layers of armor
- Persistent settings are now merged in the correct order making them truly persistent now
- Enhanced armor and calibrated shells are now properly synced from the get go
## Technical Changes
- Spaced armor and external module scenes have been merged
- They now use additive blending
- Colors are now normalized by the penetration value instead of maximum armor plate thickness
- Shell normalization now doesn't violate arccosine's domain
+101
View File
@@ -0,0 +1,101 @@
# Cedilla Object Notation
This documentation uses an experimental binary notation syntax called "Buffer Up".
1. JSON compressed as CDON, written directly to disk (a direct 50% reduction).
2. CDON further compressed with LZ4 (a clean 90% reduction).
3. The raw JSON file as fetched from a random data source.
4. CDON decompressed once again to JSON. Note that this file is a little larger than the original JSON file as it contains a lot more decimal places due to float precision (this shouldn't affect the size in memory).
![an image of file sizes](https://i.imgur.com/AHJiFpq.png)
FS stands for "Fast String".
```cpp
primary CedillaObjectNotation {
utf8"CDON" magic;
Header header;
primary Body<header.fsFormat> body;
}
Header {
uint16 version;
FSFormat fsFormat;
StringTable<fsFormat> stringTable;
}
FSFormat enum<uint8> {
Format8,
Format16,
Format32,
}
FSPrimitive<FSFormat fsFormat> match(fsFormat) {
Format8: uint8;
Format16: uint16;
Format32: uint32;
}
StringTable<FSFormat fsFormat> {
FSPrimitive<fsFormat> count;
String[count] strings;
}
Body<FSFormat fsFormat> {
primary Value<fsFormat> object;
}
ValueType enum<uint8> {
Null,
Boolean,
Uint8,
Uint16,
Uint32,
Uint64,
Int8,
Int16,
Int32,
Int64,
Float32,
Float64,
String,
FS,
Array,
Object,
}
String {
uint32 length;
primary utf8<length> value;
}
StringValue Value & { (ValueType.String | ValueType.FS) type }
Value<FSFormat fsFormat> {
ValueType type;
match<type> {
Boolean: { uint8 value; }
Uint8: { uint8 value; }
Uint16: { uint16 value; }
Uint32: { uint32 value; }
Uint64: { uint64 value; }
Int8: { int8 value; }
Int16: { int16 value; }
Int32: { int32 value; }
Int64: { int64 value; }
Float32: { float32 value; }
Float64: { float64 value; }
String: { String value; }
FS: { FSPrimitive<fsFormat> index; }
Array: {
uint32 count;
Value[count] values;
}
Object: {
uint32 count;
StringValue[count] keys;
Value[count] values;
}
}
}
```
+15
View File
@@ -0,0 +1,15 @@
# Team
- TrèsAbhi: creator & programmer
- Prince_NA: game advisor & tester
# Contributors
- S0AP: bot verification process & initial advertizement platform
- Vovko: discord bot rendering pipeline
- Maddox: game file decompression
- Pyogenics: tank model decompression
- Aeson: game files layout
- Minitelrose, ChickenMan7777: 3-caliber rule edge cases
- \_34, HisRoyalFatness, Synx, xkdkw: embed UX
- [OPTML], Aeson, \_34, Droodles: beta testing tankopedia
+17
View File
@@ -0,0 +1,17 @@
# Damage Per Minute (DPM)
The damage per minute of a tank is the average damage that can be dealt in that tank with the first shell (usually AP) in 60 seconds.
## Regular and Auto Loaders
The damage per minute for these types of guns are calculated by allowing the gun to shoot as soon as the shell is loaded (and in the case of auto loaders, the clip is dumped as fast as the inter-clip time will allow).
## Auto Reloaders
These types of guns have 3 DPM values.
- Damage per minute: calculated if you were to treat the shells like a normal auto loader where you dump all shells, wait for all shells to reload, and repeat.
- Maximum: some tanks gain DPM the deeper they go into the clip and others maintain a higher DPM the less shells used. The "maximum" DPM is calculated if you were to treat the gun as a single-shot regular gun with the shell with the lowest reload. The shell with the highest DPM is listed as "Optimal shell index."
- Effective: this is the maximum DPM tacked on with dumping the remaining shells at the beginning or the end of the 60 seconds.
- If "Optimal shell index" is 1, the clip must be dumped first then used as a single shot.
- If "Optimal shell index" is any other number, the gun should be treated as a single shot then dumped for the highest effective DPM.
-17
View File
@@ -1,17 +0,0 @@
# Installing Blitzkrieg
It's easy as 1, 2, 3!
## Step 1
Join a server that already has Blitzkrieg or [join our official Discord server](https://discord.gg/nDt7AjGJQH).
## Step 2
View the bot's profile and click "Add to Server".
<video src="https://i.imgur.com/Zq0P3m2.mp4" autoplay loop muted width=320 title="how to install"></video>
## Step 3
Review the permissions the bot is asking for and add it to your server!
+13 -1
View File
@@ -1,6 +1,10 @@
# Introduction
Blitzkrieg is a multipurpose bot for anything and everything World of Tanks Blitz.
🎉 Services for everything and anything World of Tanks Blitz
## Bot
Blitzkrieg is available as a Discord bot and can be [installed very easily](/guide/invite).
- Track statistics
- Find inactive players in a clan
@@ -8,3 +12,11 @@ Blitzkrieg is a multipurpose bot for anything and everything World of Tanks Blit
- Create embeds for streams
- Track a player/tanks statistical evolution
- ...and a variety of other similar things
## Website
Provides a bunch of very helpful tools; https://blitz-krieg.vercel.app/
- Session tracker
- Ratings leaderboard
- Way more to come
-7
View File
@@ -1,7 +0,0 @@
# Permissions
The following Discord permissions are required by the bot to ensure full functionality:
- Manage nicknames
- Read messages / view channels
- Attach files
+2 -2
View File
@@ -12,10 +12,10 @@ hero:
actions:
- theme: brand
text: Add to Discord Server
link: guide/install
link: /guide/invite
- theme: alt
text: Guide
link: /guide/about
link: /guide/introduction
features:
- title: Clean and Efficient UI
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 183 KiB

+11 -2
View File
@@ -1,12 +1,21 @@
import { createVanillaExtractPlugin } from '@vanilla-extract/next-plugin';
const withVanillaExtract = createVanillaExtractPlugin();
const withVanillaExtract = createVanillaExtractPlugin({ tests: /\.css$/ });
/** @type {import('next').NextConfig} */
const nextConfig = {
...withVanillaExtract(),
...withVanillaExtract({
webpack: (config) => {
config.module.rules.push({
test: /\.glsl$/,
type: 'asset/source',
});
return config;
},
}),
distDir: 'dist/website',
reactStrictMode: false,
};
export default nextConfig;
-7
View File
@@ -1,7 +0,0 @@
{
"main": "server.js",
"type": "module",
"scripts": {
"start": "node --enable-source-maps server.cjs"
}
}
+39 -7
View File
@@ -1,6 +1,6 @@
{
"name": "blitzkrieg",
"version": "1.14.0",
"version": "1.16.0",
"description": "🎉 Tools for everything World of Tanks Blitz",
"main": "src/server.ts",
"type": "module",
@@ -9,6 +9,9 @@
"build:website": "next build",
"build:docs": "vitepress build docs",
"build:ratingsleaderboard": "vite-node --script scripts/buildRatingsLeaderboard",
"build:assets": "vite-node --max_old_space_size=16384 --script scripts/buildAssets/index",
"build:test": "vite-node --script scripts/buildTest",
"build:ratingsplot": "vite-node --script scripts/buildRatingsPlot",
"dev:bot": "yarn build:bot && yarn start:bot",
"dev:docs": "vitepress dev docs",
"dev:website": "next dev",
@@ -16,54 +19,83 @@
"start:website": "next start",
"host:docs": "vitepress preview docs",
"publish:ratingsleaderboard": "vite-node --script scripts/buildRatingsLeaderboard --publish",
"zip": "zip -r dist.zip dist",
"lint": "npx tsc",
"lint:website": "next lint",
"format": "prettier --write \"**/*.@(json|js|jsx|css|md|ts|tsx|html|xml|yml|gltf)\"",
"lint:version": "vite-node --script scripts/checkVersionMissMatch",
"knip": "knip",
"update": "yarn upgrade --latest"
"update": "yarn upgrade --latest",
"setup:depotdownloader": "vite-node --script scripts/setupDepotDownloader"
},
"license": "MIT",
"dependencies": {
"@gltf-transform/core": "^3.9.0",
"@octokit/plugin-throttling": "^8.1.3",
"@octokit/rest": "^20.0.1",
"@prisma/client": "^5.4.1",
"@radix-ui/colors": "^3.0.0-rc.4",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/themes": "^1.1.2",
"@radix-ui/themes": "^2.0.1",
"@react-three/drei": "^9.93.0",
"@react-three/fiber": "^8.15.14",
"@resvg/resvg-js": "^2.4.1",
"@types/three": "^0.160.0",
"@vanilla-extract/css": "^1.13.0",
"@vercel/analytics": "^1.2.2",
"bepaint": "^0.1.0-beta.3",
"decompress": "^4.2.1",
"discord.js": "^14.13.0",
"dotenv": "^16.3.1",
"esbuild": "^0.19.3",
"express": "^4.18.2",
"false": "^0.0.4",
"fuzzysort": "^2.0.4",
"immer": "^10.0.2",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"lz4js": "^0.2.0",
"markdown-escape": "^2.0.0",
"next": "^13.5.2",
"next": "^14.1.0",
"parse-dds": "^1.2.1",
"postprocessing": "^6.34.1",
"react": "^18.2.0",
"react-device-detect": "^2.2.3",
"react-dom": "^18.2.0",
"react-fuzzysort": "^1.0.1",
"react-promise-suspense": "^0.3.4",
"react-spinners": "^0.13.8",
"satori": "^0.10.8",
"sharp": "0.33.1",
"three": "0.159.0",
"three-stdlib": "^2.29.4",
"vite-node": "^0.34.5",
"vitepress": "^1.0.0-rc.20",
"vitepress-plugin-auto-sidebar": "^1.1.0",
"yaml": "^2.3.4",
"zustand": "^4.4.1"
},
"devDependencies": {
"@total-typescript/ts-reset": "^0.5.1",
"@types/decompress": "^4.2.7",
"@types/escape-html": "^1.0.2",
"@types/express": "^4.17.18",
"@types/js-yaml": "^4.0.8",
"@types/lodash": "^4.14.199",
"@types/lz4": "^0.6.4",
"@types/markdown-escape": "^1.1.0",
"@types/node": "^20.6.5",
"@types/parse-dds": "^1.0.3",
"@types/pngjs": "^6.0.4",
"@types/react": "^18.2.22",
"@vanilla-extract/next-plugin": "^2.3.1",
"compare-versions": "^6.1.0",
"knip": "^2.27.1",
"crc": "^4.3.2",
"fast-xml-parser": "^4.3.2",
"knip": "^3.4.0",
"lz4": "^0.6.5",
"prettier": "^3.0.3",
"prisma": "^5.4.1",
"typescript": "^5.2.2"
}
},
"packageManager": "[email protected]"
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 MiB

After

Width:  |  Height:  |  Size: 5.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 MiB

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

+1 -1
View File
@@ -27,7 +27,7 @@ readdir('src/workers').then((workers) => {
bundle: true,
sourcemap: true,
minifyIdentifiers: false, // cause goofy errors
minifyIdentifiers: false, // causes goofy errors
minifySyntax: true,
minifyWhitespace: true,
+48
View File
@@ -0,0 +1,48 @@
import { readdir } from 'fs/promises';
import sharp from 'sharp';
import { readDVPLFile } from '../../src/core/blitz/readDVPLFile';
import { readStringDVPL } from '../../src/core/blitz/readStringDVPL';
import { commitAssets } from '../../src/core/blitzkrieg/commitAssets';
import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles';
import { DATA, POI } from './constants';
export async function boosterIcons(production: boolean) {
const boosterFiles = (await readdir(`${DATA}/${POI.boosterIcons}`)).filter(
(file) => !file.endsWith('@2x.txt.dvpl') && !file.startsWith('texture0'),
);
const image = sharp(
await readDVPLFile(`${DATA}/${POI.boosterIcons}/texture0.packed.webp.dvpl`),
);
const changes: FileChange[] = [];
await Promise.all(
boosterFiles.map(async (file) => {
const name = file.match(/booster_(.+).txt.dvpl/)![1];
const sizes = (
await readStringDVPL(`${DATA}/${POI.boosterIcons}/${file}`)
)
.split('\n')[4]
.split(' ')
.map(Number);
const content = (
await image
.clone()
.extract({
left: sizes[0],
top: sizes[1],
width: sizes[2],
height: sizes[3],
})
.toBuffer()
).toString('base64');
changes.push({
path: `icons/boosters/${name}.webp`,
content,
encoding: 'base64',
});
}),
);
await commitAssets('booster icons', changes, production);
}
+20
View File
@@ -0,0 +1,20 @@
import { readDVPLFile } from '../../src/core/blitz/readDVPLFile';
import { commitAssets } from '../../src/core/blitzkrieg/commitAssets';
import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles';
import { DATA, POI } from './constants';
export async function camouflageIcons(production: boolean) {
console.log('Building camouflage icons...');
const content = await readDVPLFile(
`${DATA}/${POI.defaultCamoIcon.replace('.webp', '.packed.webp.dvpl')}`,
).then((content) => content.toString('base64'));
const changes: FileChange[] = [
{
content,
encoding: 'base64',
path: 'icons/camo.webp',
},
];
await commitAssets('camo icons', changes, production);
}
+29
View File
@@ -0,0 +1,29 @@
import { readdir } from 'fs/promises';
import { readBase64DVPL } from '../../src/core/blitz/readBase64DVPL';
import { commitAssets } from '../../src/core/blitzkrieg/commitAssets';
import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles';
import { DATA, POI } from './constants';
export async function circleFlags(production: boolean) {
const flags = await readdir(`${DATA}/${POI.flags}`);
const changes = await Promise.all(
flags
.filter(
(flag) =>
flag.startsWith('flag_profile-stat_') &&
!flag.endsWith('@2x.packed.webp.dvpl'),
)
.map(async (flag) => {
const content = await readBase64DVPL(`${DATA}/${POI.flags}/${flag}`);
const name = flag.match(/flag_profile-stat_(.+)\.packed\.webp/)![1];
return {
content,
encoding: 'base64',
path: `flags/circle/${name}.webp`,
} satisfies FileChange;
}),
);
await commitAssets('circle flags', changes, production);
}
+39
View File
@@ -0,0 +1,39 @@
import { readdir } from 'fs/promises';
import { argv } from 'process';
const isDepot = argv.includes('--depot');
export const DATA = isDepot
? await (async () => {
const [installationVersion] = await readdir('depots/444202');
return `depots/444202/${installationVersion}/Data`;
})()
: 'C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz/Data';
export const POI = {
vehicleDefinitions: 'XML/item_defs/vehicles',
strings: 'Strings',
cachedStrings: 'https://stufficons.wgcdn.co/localizations/en.yaml',
tankParameters: '3d/Tanks/Parameters',
smallIcons: 'Gfx/UI/BattleScreenHUD/SmallTankIcons',
bigIcons: 'Gfx/UI/BigTankIcons',
flags: 'Gfx/Lobby/flags',
'3d': '3d',
bigShellIcons: 'Gfx/Shared/tank-supply/ammunition/big',
moduleIcons: 'Gfx/UI/ModulesTechTree',
collisionMeshes: '3d/Tanks/CollisionMeshes',
optionalDevices: 'XML/item_defs/vehicles/common/optional_devices.xml',
optionalDeviceSlots:
'XML/item_defs/vehicles/common/optional_device_slots.xml',
optionalDeviceImageMappings:
'UI/Screens3/Lobby/Inventory/OptionalDevices/OptionalDevicesItemImage.style.yaml',
optionalDevicesImage:
'Gfx/UI/InventoryIcons/Big/OptionalDevices/texture0.packed.webp',
consumablesCommon: 'XML/item_defs/vehicles/common/consumables/common.xml',
consumableIcons: 'Gfx/UI/InventoryIcons/Big/Consumables',
provisionIcons: 'Gfx/UI/InventoryIcons/Big/Provisions',
equipmentItemImageMappings:
'UI/Screens3/Lobby/Inventory/Equipment/EquipmentItemImage.style.yaml',
provisionsCommon: 'XML/item_defs/vehicles/common/provisions/common.xml',
defaultCamoIcon: 'Gfx/UI/Hangar/IconCamouflage.webp',
boosterIcons: 'Gfx/Shared/boosters',
} as const;
@@ -0,0 +1,164 @@
import sharp from 'sharp';
import { readDVPLFile } from '../../src/core/blitz/readDVPLFile';
import { readStringDVPL } from '../../src/core/blitz/readStringDVPL';
import { readXMLDVPL } from '../../src/core/blitz/readXMLDVPL';
import { readYAMLDVPL } from '../../src/core/blitz/readYAMLDVPL';
import { commitAssets } from '../../src/core/blitzkrieg/commitAssets';
import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles';
import { DATA, POI } from './constants';
import { ConsumablesCommon, ProvisionsCommon } from './definitions';
interface Mappings {
Header: { version: number };
StyleSheets: {
selectors: string[];
properties: { 'bg-sprite': string };
}[];
}
export async function consumableProvisionIcons(production: boolean) {
console.log('Building consumable and provision icons...');
const changes: FileChange[] = [];
const consumablesTexture = sharp(
await readDVPLFile(
`${DATA}/${POI.consumableIcons}/texture0.packed.webp.dvpl`,
),
);
const provisionsTexture = sharp(
await readDVPLFile(
`${DATA}/${POI.provisionIcons}/texture0.packed.webp.dvpl`,
),
);
const equipmentItemImageMappings = await readYAMLDVPL<Mappings>(
`${DATA}/${POI.equipmentItemImageMappings}.dvpl`,
);
const consumablesCommon = await readXMLDVPL<{
root: ConsumablesCommon;
}>(`${DATA}/${POI.consumablesCommon}.dvpl`);
const provisionsCommon = await readXMLDVPL<{
root: ProvisionsCommon;
}>(`${DATA}/${POI.provisionsCommon}.dvpl`);
const styleSheets = Object.values(equipmentItemImageMappings.StyleSheets);
await Promise.all(
Object.values(consumablesCommon.root).map(async (consumable) => {
const styleSheet = styleSheets.find((styleSheet) =>
styleSheet.selectors.includes(
`.equipment_item.${consumable.icon} * .equipment-img`,
),
);
if (!styleSheet) {
console.warn(
`No style sheet found for consumable ${consumable.icon}; skipping...`,
);
return;
}
const configPath = styleSheet.properties['bg-sprite']
.replace('~res:/', '')
.replace('.psd', '')
.replace('.txt', '');
if (configPath.startsWith('Gfx/Shared')) {
const image = sharp(
await readDVPLFile(`${DATA}/${configPath}.packed.webp.dvpl`),
);
const content = (
await image.trim({ threshold: 100 }).toBuffer()
).toString('base64');
changes.push({
path: `icons/consumables/${consumable.id}.webp`,
encoding: 'base64',
content,
});
} else {
const sizes = (await readStringDVPL(`${DATA}/${configPath}.txt.dvpl`))
.split('\n')[4]
.split(' ')
.map(Number);
const content = (
await consumablesTexture
.clone()
.extract({
left: sizes[0],
top: sizes[1],
width: sizes[2],
height: sizes[3],
})
.toBuffer()
).toString('base64');
changes.push({
path: `icons/consumables/${consumable.id}.webp`,
encoding: 'base64',
content,
});
}
}),
);
await Promise.all(
Object.values(provisionsCommon.root).map(async (provision) => {
const styleSheet = styleSheets.find((styleSheet) =>
styleSheet.selectors.includes(
`.equipment_item.${provision.icon} * .equipment-img`,
),
);
if (!styleSheet) {
console.warn(
`No style sheet found for provision ${provision.icon}; skipping...`,
);
return;
}
const configPath = styleSheet.properties['bg-sprite']
.replace('~res:/', '')
.replace('.psd', '')
.replace('.txt', '');
if (configPath.startsWith('Gfx/Shared')) {
const image = sharp(
await readDVPLFile(`${DATA}/${configPath}.packed.webp.dvpl`),
);
const content = (
await image.trim({ threshold: 100 }).toBuffer()
).toString('base64');
changes.push({
path: `icons/provisions/${provision.id}.webp`,
encoding: 'base64',
content,
});
} else {
const sizes = (await readStringDVPL(`${DATA}/${configPath}.txt.dvpl`))
.split('\n')[4]
.split(' ')
.map(Number);
const content = (
await provisionsTexture
.clone()
.extract({
left: sizes[0],
top: sizes[1],
width: sizes[2],
height: sizes[3],
})
.toBuffer()
).toString('base64');
changes.push({
path: `icons/provisions/${provision.id}.webp`,
encoding: 'base64',
content,
});
}
}),
);
await commitAssets('consumable and provision icons', changes, production);
}
File diff suppressed because it is too large. Load diff
+93
View File
@@ -0,0 +1,93 @@
import sharp from 'sharp';
import { readDVPLFile } from '../../src/core/blitz/readDVPLFile';
import { readStringDVPL } from '../../src/core/blitz/readStringDVPL';
import { readXMLDVPL } from '../../src/core/blitz/readXMLDVPL';
import { readYAMLDVPL } from '../../src/core/blitz/readYAMLDVPL';
import { commitAssets } from '../../src/core/blitzkrieg/commitAssets';
import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles';
import { DATA, POI } from './constants';
import { OptionalDevices } from './definitions';
interface Mappings {
Header: { version: number };
StyleSheets: {
selectors: string[];
properties: { 'bg-sprite': string };
}[];
}
export async function equipmentIcons(production: boolean) {
console.log('Building equipment icons...');
const changes: FileChange[] = [];
const optionalDevices = await readXMLDVPL<{ root: OptionalDevices }>(
`${DATA}/${POI.optionalDevices}.dvpl`,
);
const mappings = await readYAMLDVPL<Mappings>(
`${DATA}/${POI.optionalDeviceImageMappings}.dvpl`,
);
const image = sharp(
await readDVPLFile(`${DATA}/${POI.optionalDevicesImage}.dvpl`),
);
await Promise.all(
Object.entries(optionalDevices.root).map(
async ([optionalDeviceKey, optionalDevice]) => {
if (optionalDeviceKey === 'nextAvailableId') return;
const mapping = mappings.StyleSheets.find((mapping) =>
mapping.selectors.includes(
`.optional_device_item.${optionalDevice.icon} #Img`,
),
);
if (!mapping) {
console.warn(
`No mapping found for ${optionalDevice.icon}; skipping...`,
);
return;
}
const configPathRaw = mapping.properties['bg-sprite'];
const configPath = configPathRaw.replace('~res:/', '');
if (configPath.startsWith('Gfx/Lobby')) {
const configPathWebp = configPath.replace('.txt', '');
const image = sharp(
await readDVPLFile(`${DATA}/${configPathWebp}.packed.webp.dvpl`),
);
const content = (await image.trim().toBuffer()).toString('base64');
changes.push({
path: `icons/equipment/${optionalDevice.id}.webp`,
encoding: 'base64',
content,
});
} else {
const config = await readStringDVPL(`${DATA}/${configPath}.dvpl`);
const sizes = config.split('\n')[4].split(' ').map(Number);
const content = (
await image
.clone()
.extract({
left: sizes[0],
top: sizes[1],
width: sizes[2],
height: sizes[3],
})
.toBuffer()
).toString('base64');
changes.push({
path: `icons/equipment/${optionalDevice.id}.webp`,
encoding: 'base64',
content,
});
}
},
),
);
await commitAssets('equipment icons', changes, production);
}
+45
View File
@@ -0,0 +1,45 @@
import { config } from 'dotenv';
import { argv } from 'process';
config();
const allTargets = argv.includes('--all-targets');
const targets = argv
.find((argument) => argument.startsWith('--target'))
?.split('=')[1]
.split(',');
const production = argv.includes('--production');
import { boosterIcons } from './boosterIcons';
import { camouflageIcons } from './camouflageIcons';
import { circleFlags } from './circleFlags';
import { consumableProvisionIcons } from './consumableProvisionIcons';
import { definitions } from './definitions';
import { equipmentIcons } from './equipmentIcons';
import { moduleIcons } from './moduleIcons';
import { scratchedFlags } from './scratchedFlags';
import { shellIcons } from './shellIcons';
import { tankArmors } from './tankArmors';
import { tankIcons } from './tankIcons';
import { tankModels } from './tankModels';
if (!targets && !allTargets) throw new Error('No target(s) specified');
const methods = [
definitions,
tankIcons,
scratchedFlags,
circleFlags,
shellIcons,
moduleIcons,
equipmentIcons,
consumableProvisionIcons,
camouflageIcons,
boosterIcons,
tankArmors,
tankModels,
];
for (const method of methods) {
if (allTargets || targets?.includes(method.name)) await method(production);
}
+32
View File
@@ -0,0 +1,32 @@
import { readdir } from 'fs/promises';
import { readBase64DVPL } from '../../src/core/blitz/readBase64DVPL';
import { commitAssets } from '../../src/core/blitzkrieg/commitAssets';
import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles';
import { DATA, POI } from './constants';
export async function moduleIcons(production: boolean) {
console.log('Building module icons...');
const changes = await Promise.all(
(await readdir(`${DATA}/${POI.moduleIcons}`))
.filter(
(file) =>
!file.endsWith('@2x.packed.webp.dvpl') && file.startsWith('vehicle'),
)
.map(async (file) => {
const nameRaw = file.match(/vehicle(.+)\.packed\.webp\.dvpl/)![1];
const name = nameRaw[0].toLowerCase() + nameRaw.slice(1);
const content = await readBase64DVPL(
`${DATA}/${POI.moduleIcons}/${file}`,
);
return {
content,
path: `icons/modules/${name}.webp`,
encoding: 'base64',
} satisfies FileChange;
}),
);
await commitAssets('module icons', changes, production);
}
+31
View File
@@ -0,0 +1,31 @@
import { readdir } from 'fs/promises';
import { readBase64DVPL } from '../../src/core/blitz/readBase64DVPL';
import { commitAssets } from '../../src/core/blitzkrieg/commitAssets';
import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles';
import { DATA, POI } from './constants';
export async function scratchedFlags(production: boolean) {
console.log('Building scratched flags...');
const flags = await readdir(`${DATA}/${POI.flags}`);
const changes = await Promise.all(
flags
.filter(
(flag) =>
flag.startsWith('flag_tutor-tank_') &&
!flag.endsWith('@2x.packed.webp.dvpl'),
)
.map(async (flag) => {
const content = await readBase64DVPL(`${DATA}/${POI.flags}/${flag}`);
const name = flag.match(/flag_tutor-tank_(.+)\.packed\.webp/)![1];
return {
content,
encoding: 'base64',
path: `flags/scratched/${name}.webp`,
} satisfies FileChange;
}),
);
await commitAssets('scratched flags', changes, production);
}
+49
View File
@@ -0,0 +1,49 @@
import { readdir } from 'fs/promises';
import sharp from 'sharp';
import { readDVPLFile } from '../../src/core/blitz/readDVPLFile';
import { readStringDVPL } from '../../src/core/blitz/readStringDVPL';
import { commitAssets } from '../../src/core/blitzkrieg/commitAssets';
import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles';
import { DATA, POI } from './constants';
export async function shellIcons(production: boolean) {
console.log('Building shell icons...');
const image = sharp(
await readDVPLFile(
`${DATA}/${POI.bigShellIcons}/texture0.packed.webp.dvpl`,
),
);
const changes = await Promise.all(
(await readdir(`${DATA}/${POI.bigShellIcons}`))
.filter((file) => file.endsWith('_l.txt.dvpl'))
.map(async (file) => {
const name = file.match(/(.+)_l\.txt\.dvpl/)![1];
const sizes = (
await readStringDVPL(`${DATA}/${POI.bigShellIcons}/${file}`)
)
.split('\n')[4]
.split(' ')
.map(Number);
return {
content: (
await image
.clone()
.extract({
left: sizes[0],
top: sizes[1],
width: sizes[2],
height: sizes[3],
})
.toBuffer()
).toString('base64'),
encoding: 'base64',
path: `icons/shells/${name}.webp`,
} satisfies FileChange;
}),
);
await commitAssets('shell icons', changes, production);
}
+49
View File
@@ -0,0 +1,49 @@
import { NodeIO } from '@gltf-transform/core';
import { readdir } from 'fs/promises';
import { extractArmor } from '../../src/core/blitz/extractArmor';
import { readXMLDVPL } from '../../src/core/blitz/readXMLDVPL';
import { toUniqueId } from '../../src/core/blitz/toUniqueId';
import { commitAssets } from '../../src/core/blitzkrieg/commitAssets';
import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles';
import { DATA, POI } from './constants';
import { VehicleDefinitionList } from './definitions';
export async function tankArmors(production: boolean) {
console.log('Building tank armors...');
const changes: FileChange[] = [];
const nodeIO = new NodeIO();
const nations = await readdir(`${DATA}/${POI.vehicleDefinitions}`).then(
(nations) => nations.filter((nation) => nation !== 'common'),
);
await Promise.all(
nations.map(async (nation) => {
const tanks = await readXMLDVPL<{ root: VehicleDefinitionList }>(
`${DATA}/${POI.vehicleDefinitions}/${nation}/list.xml.dvpl`,
);
await Promise.all(
Object.entries(tanks.root).map(async ([tankKey, tank]) => {
if (tankKey.includes('tutorial_bot')) return;
const id = toUniqueId(nation, tank.id);
console.log(`Building armor ${id} @ ${nation}/${tankKey}`);
const model = await extractArmor(DATA, `${nation}-${tankKey}`);
changes.push({
path: `3d/tanks/armor/${id}.glb`,
encoding: 'base64',
content: Buffer.from(await nodeIO.writeBinary(model)).toString(
'base64',
),
});
}),
);
}),
);
await commitAssets('tank armor', changes, production);
}
+80
View File
@@ -0,0 +1,80 @@
import { readdir } from 'fs/promises';
import { Vector3Tuple } from 'three';
import { NATION_IDS } from '../../src/constants/nations';
import { readBase64DVPL } from '../../src/core/blitz/readBase64DVPL';
import { readXMLDVPL } from '../../src/core/blitz/readXMLDVPL';
import { readYAMLDVPL } from '../../src/core/blitz/readYAMLDVPL';
import { commitAssets } from '../../src/core/blitzkrieg/commitAssets';
import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles';
import { DATA, POI } from './constants';
import { VehicleDefinitionList } from './definitions';
export interface TankParameters {
resourcesPath: {
smallIconPath: string;
bigIconPath: string;
blitzModelPath: string;
};
collision: {
[key: string]: {
points: Vector3Tuple;
bbox: {
min: Vector3Tuple;
max: Vector3Tuple;
};
averageThickness?: Record<string, number>;
};
};
}
export async function tankIcons(production: boolean) {
console.log('Building tank icons...');
const changes: FileChange[] = [];
const nations = await readdir(`${DATA}/${POI.vehicleDefinitions}`).then(
(nations) => nations.filter((nation) => nation !== 'common'),
);
await Promise.all(
nations.map(async (nation) => {
const tanks = await readXMLDVPL<{ root: VehicleDefinitionList }>(
`${DATA}/${POI.vehicleDefinitions}/${nation}/list.xml.dvpl`,
);
await Promise.all(
Object.entries(tanks.root).map(async ([tankKey, tank]) => {
if (tankKey.includes('tutorial_bot')) return;
const nationVehicleId = tank.id;
const id = (nationVehicleId << 8) + (NATION_IDS[nation] << 4) + 1;
const parameters = await readYAMLDVPL<TankParameters>(
`${DATA}/${POI.tankParameters}/${nation}/${tankKey}.yaml.dvpl`,
);
const small = `${DATA}/${parameters.resourcesPath.smallIconPath
.replace(/~res:\//, '')
.replace(/\..+/, '')}.packed.webp.dvpl`;
const big = `${DATA}/${parameters.resourcesPath.bigIconPath
.replace(/~res:\//, '')
.replace(/\..+/, '')}.packed.webp.dvpl`;
if (big) {
changes.push({
content: await readBase64DVPL(big),
encoding: 'base64',
path: `icons/tanks/big/${id}.webp`,
});
}
if (small) {
changes.push({
content: await readBase64DVPL(small),
encoding: 'base64',
path: `icons/tanks/small/${id}.webp`,
});
}
}),
);
}),
);
await commitAssets('tank icons', changes, production);
}
+77
View File
@@ -0,0 +1,77 @@
import { NodeIO } from '@gltf-transform/core';
import { readdir } from 'fs/promises';
import { Vector3Tuple } from 'three';
import { extractModel } from '../../src/core/blitz/extractModel';
import { readXMLDVPL } from '../../src/core/blitz/readXMLDVPL';
import { readYAMLDVPL } from '../../src/core/blitz/readYAMLDVPL';
import { toUniqueId } from '../../src/core/blitz/toUniqueId';
// import { AssetCommit } from '../../src/core/github/assetCommit';
import { commitAssets } from '../../src/core/blitzkrieg/commitAssets';
import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles';
import { DATA, POI } from './constants';
import { VehicleDefinitionList } from './definitions';
import { TankParameters } from './tankIcons';
interface VehicleCustomization {
armorColor: string;
}
export async function tankModels(production: boolean) {
console.log('Building tank models...');
const nodeIO = new NodeIO();
const nations = await readdir(`${DATA}/${POI.vehicleDefinitions}`).then(
(nations) => nations.filter((nation) => nation !== 'common'),
);
for (const nationIndex in nations) {
const nation = nations[nationIndex];
const changes: FileChange[] = [];
// const assetCommit = new AssetCommit(`tank models ${nation}`, production);
const tanks = await readXMLDVPL<{ root: VehicleDefinitionList }>(
`${DATA}/${POI.vehicleDefinitions}/${nation}/list.xml.dvpl`,
);
const customization = await readXMLDVPL<{ root: VehicleCustomization }>(
`${DATA}/${POI.vehicleDefinitions}/${nation}/customization.xml.dvpl`,
);
const baseColor = customization.root.armorColor
.split(' ')
.slice(0, 3)
.map(Number)
.map((channel) => channel / 255) as Vector3Tuple;
console.log(`Building models for ${nation}`);
await Promise.all(
Object.entries(tanks.root).map(async ([tankKey, tank]) => {
if (tankKey.includes('tutorial_bot')) return;
const id = toUniqueId(nation, tank.id);
console.log(`Building model ${id} @ ${nation}/${tankKey}`);
const parameters = await readYAMLDVPL<TankParameters>(
`${DATA}/${POI.tankParameters}/${nation}/${tankKey}.yaml.dvpl`,
);
const model = await extractModel(
DATA,
parameters.resourcesPath.blitzModelPath.replace(/\.sc2$/, ''),
baseColor,
);
// writeFile(`test.${tankKey}.glb`, await nodeIO.writeBinary(model));
changes.push({
path: `3d/tanks/models/${id}.glb`,
content: Buffer.from(await nodeIO.writeBinary(model)).toString(
'base64',
),
encoding: 'base64',
});
}),
);
// assetCommit.push();
await commitAssets(`tank models ${nation}`, changes, production);
}
}
+29 -33
View File
@@ -1,37 +1,39 @@
import { Octokit } from '@octokit/rest';
import { rm, writeFile } from 'fs/promises';
import { argv, env } from 'process';
import { argv } from 'process';
import {
RatingsInfo,
RatingsNeighbors,
RatingsPlayer,
} from '../src/commands/ratings';
import commitMultipleFiles from './commitMultipleFiles.js';
import commitMultipleFiles from '../src/core/blitzkrieg/commitMultipleFiles.js';
import { patientFetchJSON } from '../src/core/blitzkrieg/patientFetchJSON';
/*
* Central North American Time (UTC-5): use 0 5 * * *.
* Central European Time (UTC+1): use 0 23 * * *.
* Central Asia Standard Time (UTC+7): use 0 17 * * *.
*
* na/ratings/49/info.json: season info like rewards, start & end time, etc.
* na/ratings/49/latest.json: the absolute latest leaderboard recorded at UTC+0 midnight
* na/ratings/49/midnight.json: last midnight's leaderboard relative to the region
* [region]/ratings/[season]/info.json: season info like rewards, start & end time, etc.
* [region]/ratings/[season]/latest.json: the absolute latest leaderboard recorded at UTC+0 midnight
* [region]/ratings/[season]/midnight.json: last midnight's leaderboard relative to the region
*/
export type BlitzkriegRatingsLeaderboard = { id: number; score: number }[];
export type BlitzkriegRatingsLeaderboardEntry = { id: number; score: number };
export type BlitzkriegRatingsLeaderboard = BlitzkriegRatingsLeaderboardEntry[];
const publish = argv.includes('--publish');
const latest = argv.includes('--latest');
const target = argv
.find((arg) => arg.startsWith('--target='))
?.split('=')[1] as 'midnight' | 'latest' | undefined;
const server = argv.find((arg) => arg.startsWith('--region='))?.split('=')[1];
if (!target) throw new Error('Target parameter not specified');
if (!server) throw new Error('Region parameter not specified');
const NEIGHBORS = 1000;
const PLAYERS = await fetch(
const NEIGHBORS = 2 ** 8;
const PLAYERS = await patientFetchJSON<RatingsInfo>(
`https://${server}.wotblitz.com/en/api/rating-leaderboards/season/`,
)
.then((response) => response.json() as Promise<RatingsInfo>)
.then((data) => (data.detail === undefined ? data.count : undefined));
).then((data) => (data.detail === undefined ? data.count : undefined));
if (PLAYERS === undefined) {
throw new Error('No current ratings season running');
@@ -42,9 +44,9 @@ const leaderboard: BlitzkriegRatingsLeaderboard = [];
let registered = 0;
async function branchFromPlayer(id: number) {
const { neighbors } = await fetch(
const { neighbors } = await patientFetchJSON<RatingsNeighbors>(
`https://${server}.wotblitz.com/en/api/rating-leaderboards/user/${id}/?neighbors=${NEIGHBORS}`,
).then((response) => response.json() as Promise<RatingsNeighbors>);
);
const firstPlayer = neighbors[0];
const lastPlayer = neighbors[neighbors.length - 1];
@@ -73,9 +75,9 @@ async function branchFromPlayer(id: number) {
}
async function branchFromLeague(id: number) {
const { result } = await fetch(
const { result } = await patientFetchJSON<{ result: RatingsPlayer[] }>(
`https://${server}.wotblitz.com/en/api/rating-leaderboards/league/${id}/top/`,
).then((response) => response.json() as Promise<{ result: RatingsPlayer[] }>);
);
const firstPlayer = result[0];
const lastPlayer = result[result.length - 1];
@@ -98,7 +100,10 @@ await Promise.all([
console.log('Converting to an array...');
for (let index = 0; index < PLAYERS; index++) {
const listing = players[index + 1];
if (!listing) console.warn(`Position ${index + 1} had no player`);
if (!listing) {
console.warn(`Position ${index + 1} had no player`);
continue;
}
leaderboard[index] = {
id: listing.spa_id,
@@ -109,32 +114,23 @@ for (let index = 0; index < PLAYERS; index++) {
const leaderboardJSON = JSON.stringify(leaderboard);
if (publish) {
const octokit = new Octokit({ auth: env.GH_TOKEN });
const info = await fetch(
const info = await patientFetchJSON<RatingsInfo & { detail: undefined }>(
`https://${server}.wotblitz.com/en/api/rating-leaderboards/season/`,
).then(
(response) =>
response.json() as Promise<RatingsInfo & { detail: undefined }>,
);
const normalizedServer = server === 'na' ? 'com' : server;
const infoPath = `${normalizedServer}/ratings/${info.current_season}/info.json`;
const leaderboardPath = `${normalizedServer}/ratings/${info.current_season}/${
latest ? 'latest' : 'midnight'
}.json`;
const infoPath = `regions/${normalizedServer}/ratings/${info.current_season}/info.json`;
const leaderboardPath = `regions/${normalizedServer}/ratings/${info.current_season}/${target}.json`;
const infoJSON = JSON.stringify(info);
console.log(`Publishing to season ${info.current_season}...`);
commitMultipleFiles(
octokit,
'tresabhi',
'blitzkrieg-db',
'blitzkrieg-assets',
'main',
new Date().toString(),
[
{ path: infoPath, content: infoJSON },
{ path: leaderboardPath, content: leaderboardJSON },
{ path: infoPath, content: infoJSON, encoding: 'utf-8' },
{ path: leaderboardPath, content: leaderboardJSON, encoding: 'utf-8' },
],
);
} else {
+46
View File
@@ -0,0 +1,46 @@
import { writeFile } from 'fs/promises';
import { Region } from '../src/constants/regions';
import { getRatingsNeighbors } from '../src/core/blitz/getRatingsNeighbors';
const REGION: Region = 'com';
const PLAYER = 1041988373;
const ITERATIONS = 2 ** 4;
const MAX_NEIGHBORS = 2 ** 7;
const data: [number, number][] = [];
let finished = 0;
for (let index = 0; index < ITERATIONS; index++) {
const neighbors = Math.round((Math.random() * MAX_NEIGHBORS) / 2) * 2;
const start = Date.now();
console.log(`🟡 Iteration ${index} with ${neighbors} neighbors`);
try {
await getRatingsNeighbors(REGION, PLAYER, neighbors);
finished++;
console.log(
`🟢 (${Math.round(
100 * (finished / ITERATIONS),
)}%) Iteration ${index} with ${neighbors} neighbors`,
);
const end = Date.now();
const time = end - start;
data.push([neighbors, time]);
} catch (error) {
console.log(
`🔴 Iteration ${index} with ${neighbors} neighbors\n\n${error}`,
);
}
}
console.log('🟢 Done, sorting');
data.sort(([neighborsA], [neighborsB]) => neighborsA - neighborsB);
console.log('🟢 Writing');
writeFile(
'dist/ratingsPlot.csv',
data.map(([neighbors, time]) => `${neighbors},${time}`).join('\n'),
);
+12
View File
@@ -0,0 +1,12 @@
import { readdir } from 'fs/promises';
import packageJSON from '../package.json';
const { version } = packageJSON;
const changelogs = await readdir('docs/changelogs');
const hasVersion = changelogs.includes(`${version}.md`);
if (hasVersion) {
console.log(`Version ${version} found in changelogs`);
} else {
throw new Error(`Version ${version} not found in changelogs`);
}
-70
View File
@@ -1,70 +0,0 @@
import { Octokit } from '@octokit/rest';
export default async function commitMultipleFiles(
octokit: Octokit,
owner: string,
repo: string,
branch: string,
message: string,
changes: { path: string; content: string }[],
) {
// Get the latest commit SHA on the specified branch
const { data: refData } = await octokit.git.getRef({
owner,
repo,
ref: `heads/${branch}`,
});
const latestCommitSha = refData.object.sha;
// Get the tree SHA for the latest commit
const { data: commitData } = await octokit.git.getCommit({
owner,
repo,
commit_sha: latestCommitSha,
});
const treeSha = commitData.tree.sha;
// Create blobs for each file
const blobs = await Promise.all(
changes.map(async (change) => {
const { data: blobData } = await octokit.git.createBlob({
owner,
repo,
content: change.content,
encoding: 'utf-8',
});
return {
sha: blobData.sha,
path: change.path,
mode: '100644',
type: 'blob',
} as const;
}),
);
// Create a new tree with the new blobs
const { data: treeData } = await octokit.git.createTree({
owner,
repo,
base_tree: treeSha,
tree: blobs,
});
// Create a new commit with the new tree
const { data: newCommitData } = await octokit.git.createCommit({
owner,
repo,
message,
tree: treeData.sha,
parents: [latestCommitSha],
});
// Update the branch reference to point to the new commit
await octokit.git.updateRef({
owner,
repo,
ref: `heads/${branch}`,
sha: newCommitData.sha,
});
}
+33
View File
@@ -0,0 +1,33 @@
import decompress from 'decompress';
import { existsSync } from 'fs';
import { mkdir, readdir, writeFile } from 'fs/promises';
if (!existsSync('temp')) {
console.log('Creating temp directory...');
await mkdir('temp');
}
console.log('Downloading depot downloader...');
await fetch(
'https://api.github.com/repos/SteamRE/DepotDownloader/releases/latest',
)
.then(
(response) =>
response.json() as Promise<{
assets: { browser_download_url: string; name: string }[];
}>,
)
.then(({ assets }) => {
const asset = assets.find(({ name }) => name.includes('windows-x64'));
if (!asset) throw new Error('No asset found');
return fetch(asset.browser_download_url);
})
.then((response) => response.arrayBuffer())
.then((arrayBuffer) =>
writeFile('temp/depotDownloader.zip', Buffer.from(arrayBuffer)),
);
console.log('Unzipping...');
await decompress('temp/depotDownloader.zip', 'temp/depotDownloader');
console.log('Download complete; files:', await readdir('temp/depotDownloader'));
@@ -0,0 +1,10 @@
import { NextResponse } from 'next/server';
import { Region } from '../../../../../../constants/regions';
import getRatingsInfo from '../../../../../../core/blitz/getRatingsInfo';
export async function GET(
request: Request,
{ params }: { params: { region: Region } },
) {
return NextResponse.json(await getRatingsInfo(params.region));
}
@@ -0,0 +1,12 @@
import { NextResponse } from 'next/server';
import { Region } from '../../../../../../../constants/regions';
import { getRatingsLeague } from '../../../../../../../core/blitz/getRatingsLeague';
export async function GET(
request: Request,
{ params }: { params: { region: Region; league: number } },
) {
return NextResponse.json(
await getRatingsLeague(params.region, params.league, true),
);
}
@@ -0,0 +1,12 @@
import { NextResponse } from 'next/server';
import { Region } from '../../../../../../../constants/regions';
import { searchCurrentRatingsPlayers } from '../../../../../../../core/blitz/searchCurrentRatingsPlayers';
export async function GET(
request: Request,
{ params }: { params: { region: Region; username: string } },
) {
return NextResponse.json(
await searchCurrentRatingsPlayers(params.region, params.username),
);
}
-6
View File
@@ -1,6 +0,0 @@
import { NextResponse } from 'next/server';
import { tankopedia } from '../../../core/blitzstars/tankopedia';
export async function GET() {
return NextResponse.json(await tankopedia);
}
+111 -100
View File
@@ -3,25 +3,31 @@
import { ContextMenu } from '@radix-ui/themes';
import { useEffect, useState } from 'react';
import * as Breakdown from '../../../components/Breakdown';
import { TreeTypeEnum } from '../../../components/Tanks';
import { WARGAMING_APPLICATION_ID } from '../../../constants/wargamingApplicationID';
import fetchBlitz from '../../../core/blitz/fetchWargaming';
import { tankAverages } from '../../../core/blitzstars/tankAverages';
import fetchBlitz from '../../../core/blitz/fetchBlitz';
import {
TankopediaEntry,
tankopedia,
} from '../../../core/blitzstars/tankopedia';
TankDefinition,
tankDefinitions,
} from '../../../core/blitzkrieg/tankDefinitions';
import { tankAverages } from '../../../core/blitzstars/tankAverages';
import calculateWN8 from '../../../core/statistics/calculateWN8';
import { deltaTankStats } from '../../../core/statistics/deltaTankStats';
import getWN8Percentile from '../../../core/statistics/getWN8Percentile';
import { resetSession, useSession } from '../../../stores/session';
import mutateSession, {
resetSession,
useSession,
} from '../../../stores/session';
import { IndividualTankStats, TanksStats } from '../../../types/tanksStats';
import { CustomColumnDisplay } from '../../tools/session/components/CustomColumn';
import { Menu } from '../../tools/session/components/Menu';
const REFRESH_RATE = 1 / 5;
export default function SessionPage() {
interface SessionPageProps {
naked?: boolean;
}
export default function SessionPage({ naked = true }: SessionPageProps) {
const session = useSession();
const since = session.isTracking ? new Date(session.time) : undefined;
const [diff, setDiff] = useState<
@@ -30,7 +36,7 @@ export default function SessionPage() {
list: {
stats: IndividualTankStats;
tankopedia?: TankopediaEntry;
tankDefinitions?: TankDefinition;
career: IndividualTankStats;
currentWN8?: number;
careerWN8?: number;
@@ -72,6 +78,14 @@ export default function SessionPage() {
0,
) / careerBattles;
useEffect(() => {
if (session.title === 'Untitled session') {
mutateSession((draft) => {
if (draft.isTracking) draft.title = draft.nickname;
});
}
}, [session.title]);
useEffect(() => {
async function recalculateDiff() {
if (session.isTracking) {
@@ -88,7 +102,7 @@ export default function SessionPage() {
}),
{},
);
const awaitedTankopedia = await tankopedia;
const awaitedTankDefinitions = await tankDefinitions;
const awaitedTankAverages = await tankAverages;
const careerWN8 =
careerRaw[id].reduce(
@@ -114,12 +128,12 @@ export default function SessionPage() {
list: (
Object.values(
deltaTankStats(session.tankStats, career),
deltaTankStats(session.tankStats, career, session.time / 1000),
) as IndividualTankStats[]
).map((stats) => {
return {
stats,
tankopedia: awaitedTankopedia[stats.tank_id],
tankDefinitions: awaitedTankDefinitions[stats.tank_id],
career: career[stats.tank_id],
currentWN8: awaitedTankAverages[stats.tank_id]
? calculateWN8(
@@ -207,15 +221,10 @@ export default function SessionPage() {
since !== undefined &&
diff !== undefined && (
<Breakdown.Row
naked={naked}
color={session.color}
minimized={!session.showCareer}
title={`Since ${since.toLocaleString(undefined, {
hour: 'numeric',
minute: 'numeric',
hour12: true,
month: 'short',
year: 'numeric',
day: 'numeric',
})}`}
title={session.title}
stats={session.customColumns.map((customColumn) => {
const rowStat = totalRowStats[customColumn.display];
@@ -237,89 +246,91 @@ export default function SessionPage() {
.sort(
(a, b) => b.stats.last_battle_time - a.stats.last_battle_time,
)
.map(({ stats, tankopedia, career, careerWN8, currentWN8 }) => {
const rowStats: Record<
CustomColumnDisplay,
Breakdown.RowStatItem | undefined
> = {
battles: {
title: 'Battles',
current: stats.all.battles.toLocaleString(),
career: career.all.battles.toLocaleString(),
},
winrate: {
title: 'Winrate',
current: `${(
100 *
(stats.all.wins / stats.all.battles)
).toFixed(2)}%`,
career: `${(
100 *
(career.all.wins / career.all.battles)
).toFixed(2)}%`,
delta:
stats.all.wins / stats.all.battles -
career.all.wins / career.all.battles,
},
wn8: {
title: 'WN8',
current:
currentWN8 === undefined
? undefined
: Math.round(currentWN8).toLocaleString(),
career:
careerWN8 === undefined
? undefined
: Math.round(careerWN8).toLocaleString(),
percentile:
currentWN8 === undefined
? undefined
: getWN8Percentile(currentWN8),
},
damage: {
title: 'Damage',
current: Math.round(
stats.all.damage_dealt / stats.all.battles,
).toLocaleString(),
career: Math.round(
career.all.damage_dealt / career.all.battles,
).toLocaleString(),
delta:
stats.all.damage_dealt / stats.all.battles -
career.all.damage_dealt / career.all.battles,
},
none: undefined,
};
.map(
({ stats, tankDefinitions, career, careerWN8, currentWN8 }) => {
const rowStats: Record<
CustomColumnDisplay,
Breakdown.RowStatItem | undefined
> = {
battles: {
title: 'Battles',
current: stats.all.battles.toLocaleString(),
career: career.all.battles.toLocaleString(),
},
winrate: {
title: 'Winrate',
current: `${(
100 *
(stats.all.wins / stats.all.battles)
).toFixed(2)}%`,
career: `${(
100 *
(career.all.wins / career.all.battles)
).toFixed(2)}%`,
delta:
stats.all.wins / stats.all.battles -
career.all.wins / career.all.battles,
},
wn8: {
title: 'WN8',
current:
currentWN8 === undefined
? undefined
: Math.round(currentWN8).toLocaleString(),
career:
careerWN8 === undefined
? undefined
: Math.round(careerWN8).toLocaleString(),
percentile:
currentWN8 === undefined
? undefined
: getWN8Percentile(currentWN8),
},
damage: {
title: 'Damage',
current: Math.round(
stats.all.damage_dealt / stats.all.battles,
).toLocaleString(),
career: Math.round(
career.all.damage_dealt / career.all.battles,
).toLocaleString(),
delta:
stats.all.damage_dealt / stats.all.battles -
career.all.damage_dealt / career.all.battles,
},
none: undefined,
};
return (
<Breakdown.Row
key={stats.tank_id}
minimized={!session.showCareer}
title={tankopedia?.name ?? `Unknown tank ${stats.tank_id}`}
type="tank"
tankType={tankopedia?.type}
treeType={(() => {
if (tankopedia?.is_collectible)
return TreeTypeEnum.Collector;
if (tankopedia?.is_premium) return TreeTypeEnum.Premium;
})()}
stats={session.customColumns.map((customColumn) => {
const rowStat = rowStats[customColumn.display];
return (
<Breakdown.Row
naked={naked}
color={session.color}
key={stats.tank_id}
minimized={!session.showCareer}
title={
tankDefinitions?.name ?? `Unknown tank ${stats.tank_id}`
}
type="tank"
tankType={tankDefinitions?.type}
treeType={tankDefinitions?.treeType}
stats={session.customColumns.map((customColumn) => {
const rowStat = rowStats[customColumn.display];
if (!rowStat) return undefined;
if (!rowStat) return undefined;
return {
...rowStat,
delta:
customColumn.showDelta &&
rowStat.percentile === undefined
? rowStat.delta
: undefined,
};
})}
/>
);
})}
return {
...rowStat,
delta:
customColumn.showDelta &&
rowStat.percentile === undefined
? rowStat.delta
: undefined,
};
})}
/>
);
},
)}
</Breakdown.Root>
</div>
</ContextMenu.Trigger>
+112 -6
View File
@@ -1,15 +1,25 @@
'use client';
import { Flex, Theme } from '@radix-ui/themes';
import { CaretRightIcon } from '@radix-ui/react-icons';
import { AlertDialog, Button, Flex, Text, Theme } from '@radix-ui/themes';
import '@radix-ui/themes/styles.css';
import { Analytics } from '@vercel/analytics/react';
import { config } from 'dotenv';
import { Roboto_Flex } from 'next/font/google';
import { usePathname } from 'next/navigation';
import { ReactNode } from 'react';
import { ReactNode, useEffect, useState } from 'react';
import { SkyLine } from '../assets/art/SkyLine';
import Navbar from '../components/Navbar';
import PageWrapper from '../components/PageWrapper';
import isDev from '../core/blitzkrieg/isDev';
import { isLocalhost } from '../core/blitzkrieg/isLocalhost';
import { useApp } from '../stores/app';
import { mintTheme } from '../themes/mint';
config();
const DEV_BUILD_AGREEMENT_COOLDOWN = 8 * 24 * 60 * 60 * 1000;
interface RootLayoutProps {
children: ReactNode;
}
@@ -22,6 +32,16 @@ const robotoFlex = Roboto_Flex({
export default function RootLayout({ children }: RootLayoutProps) {
const pathname = usePathname();
const isEmbed = pathname.split('/')[1] === 'embeds';
const [showDevBuildAlert, setShowDevBuildAlert] = useState(false);
useEffect(() => {
setShowDevBuildAlert(
isDev() &&
!isLocalhost() &&
Date.now() - useApp.getState().devBuildAgreementTime >=
DEV_BUILD_AGREEMENT_COOLDOWN,
);
}, []);
return (
<html lang="en" className={robotoFlex.className}>
@@ -36,20 +56,106 @@ export default function RootLayout({ children }: RootLayoutProps) {
<body
style={{
margin: 0,
background: isEmbed
? 'transparent'
: 'url(https://i.imgur.com/PhS06NJ.png)',
paddingTop: isEmbed ? 0 : '3.25rem',
backgroundColor: isEmbed ? 'transparent' : undefined,
}}
>
<Analytics />
<Theme
appearance="dark"
panelBackground="translucent"
radius="full"
accentColor="blue"
suppressHydrationWarning
suppressContentEditableWarning
>
{!isEmbed && <Navbar />}
<AlertDialog.Root open={showDevBuildAlert}>
<AlertDialog.Content>
<AlertDialog.Title>Experimental version!</AlertDialog.Title>
<AlertDialog.Description>
This version may have a lot of issues. Report issues to{' '}
<a href="https://discord.gg/nDt7AjGJQH" target="_blank">
the official Discord server
</a>
. Also consider using{' '}
<a href="https://blitz-krieg.vercel.app/">
the more stable release version
</a>
. You will be asked again in 8 days.
</AlertDialog.Description>
<Flex justify="end">
<Button
variant="solid"
onClick={() => {
setShowDevBuildAlert(false);
useApp.setState({ devBuildAgreementTime: Date.now() });
}}
>
Continue
</Button>
</Flex>
</AlertDialog.Content>
</AlertDialog.Root>
<Flex direction="column">{children}</Flex>
{!isEmbed && (
<PageWrapper>
<a
target="_blank"
href="https://ko-fi.com/tresabhi"
style={{ textDecoration: 'none' }}
>
<Flex
align="center"
style={{
padding: 16,
borderRadius: 8,
backgroundColor: mintTheme.colors.componentInteractive,
position: 'relative',
overflow: 'hidden',
}}
>
<Flex
direction="column"
gap="1"
style={{
flex: 1,
zIndex: 1,
}}
>
<Text size="4" color="mint">
Blitzkrieg. Free forever. For everyone.
</Text>
<Text color="mint">
<b>Consider supporting today 🍀</b>
</Text>
</Flex>
<Text
color="mint"
style={{
zIndex: 1,
}}
>
<Flex>
<CaretRightIcon width={32} height={32} />
</Flex>
</Text>
<SkyLine
style={{
position: 'absolute',
right: 'min(8vw, 15%)',
top: '5%',
}}
/>
</Flex>
</a>
</PageWrapper>
)}
</Theme>
</body>
</html>
+1 -1
View File
@@ -3,7 +3,7 @@ import { theme } from '../stitches.config';
export const tool = styleVariants({
enabled: {
boxShadow: `inset 0 -192px 128px -128px ${theme.colors.appBackground1}`,
boxShadow: `inset 0 -256px 512px -128px ${theme.colors.appBackground1}`,
':hover': {
boxShadow: `inset 0 -160px 128px -128px ${theme.colors.appBackground1}`,
+2 -1
View File
@@ -30,7 +30,8 @@ export default function Page() {
({
node: (
<Link
href={`/tools/${tool.id}`}
href={tool.href ?? `/tools/${tool.id}`}
target={tool.href ? '_blank' : undefined}
className={
tool.disabled ? styles.tool.disabled : styles.tool.enabled
}
+52
View File
@@ -0,0 +1,52 @@
import { blackA } from '@radix-ui/colors';
import { Flex, Text } from '@radix-ui/themes';
import { PuffLoader } from 'react-spinners';
import { theme } from '../../../stitches.config';
const NAV_HEIGHT = 52.65;
interface LoaderProps {
naked?: boolean;
color?: string;
progress?: number;
}
export function Loader({ naked, color, progress }: LoaderProps) {
const animation = (
<div style={{ position: 'relative' }}>
{progress !== undefined && (
<Text
style={{
position: 'absolute',
left: '50%',
top: '50%',
transform: 'translate(calc(-50% + 5px), calc(-50% + 5px))',
}}
>
{Math.round(progress * 100)}%
</Text>
)}
<PuffLoader color={color ?? theme.colors.solidBackground} />
</div>
);
if (naked) return animation;
return (
<Flex
style={{
backgroundColor: blackA.blackA10,
position: 'fixed',
top: NAV_HEIGHT,
left: 0,
width: '100%',
height: `calc(100% - ${NAV_HEIGHT}px)`,
padding: theme.spaces.paddingMajor,
}}
align="center"
justify="center"
>
{animation}
</Flex>
);
}
+55 -45
View File
@@ -1,9 +1,11 @@
'use client';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { ReactNode } from 'react';
import { ReactNode, Suspense } from 'react';
import { TOOLS } from '../../constants/tools';
import { theme } from '../../stitches.config';
import { Loader } from './components/Loader';
interface ToolsLayoutProps {
children: ReactNode;
@@ -11,59 +13,67 @@ interface ToolsLayoutProps {
export default function ToolsLayout({ children }: ToolsLayoutProps) {
const pathname = usePathname();
const toolId = pathname.split('/').at(-1);
const pathSplit = pathname.split('/');
const toolId = pathSplit.at(2);
const tool = TOOLS.find((tool) => tool.id === toolId);
return (
<>
<div
style={{
height: 128,
boxShadow: `inset 0 -192px 128px -128px ${theme.colors.appBackground1}`,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
gap: 4,
flexDirection: 'column',
position: 'relative',
overflow: 'hidden',
}}
>
{tool && <title>{tool.title}</title>}
{pathSplit.length === 3 && (
<div
style={{
position: 'absolute',
backgroundImage: `url(/assets/banners/${toolId}.webp)`,
backgroundSize: 'cover',
backgroundPosition: 'center',
width: '100%',
height: '100%',
top: 0,
left: 0,
zIndex: -1,
filter: 'blur(4px)',
transform: 'scale(calc((128 + 8) / 128))',
}}
/>
<span
style={{
color: theme.colors.textHighContrast,
fontSize: 32,
height: 128,
boxShadow: `inset 0 -192px 128px -128px ${theme.colors.appBackground1}`,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'column',
position: 'relative',
overflow: 'hidden',
}}
>
{tool?.title}
</span>
<span
style={{
color: theme.colors.textLowContrast,
fontSize: 16,
}}
>
{tool?.description}
</span>
</div>
<div
style={{
position: 'absolute',
backgroundImage: `url(/assets/banners/${toolId}.webp)`,
backgroundSize: 'cover',
backgroundPosition: 'center',
width: '100%',
height: '100%',
top: 0,
left: 0,
zIndex: -1,
filter: 'blur(4px)',
transform: 'scale(calc((128 + 8) / 128))',
}}
/>
{children}
<Link
href={`/tools/${toolId}`}
style={{
textDecoration: 'none',
fontWeight: 900,
color: theme.colors.textHighContrast,
fontSize: 32,
letterSpacing: -1,
}}
>
{tool?.title}
</Link>
<span
style={{
color: theme.colors.textLowContrast,
fontSize: 16,
}}
>
{tool?.description}
</span>
</div>
)}
<Suspense fallback={<Loader />}>{children}</Suspense>
</>
);
}
@@ -0,0 +1,13 @@
import { keyframes, style } from '@vanilla-extract/css';
const spinKeyframes = keyframes({
from: { transform: 'rotate(0deg)' },
to: { transform: 'rotate(360deg)' },
});
export const infiniteSpin = style({
animationName: spinKeyframes,
animationIterationCount: 'infinite',
animationTimingFunction: 'linear',
animationDuration: '1s',
});
@@ -0,0 +1,97 @@
import {
CaretLeftIcon,
CaretRightIcon,
SymbolIcon,
} from '@radix-ui/react-icons';
import { Button, Flex, TextField } from '@radix-ui/themes';
import { range } from 'lodash';
import { useEffect, useRef } from 'react';
import { infiniteSpin } from './index.css';
interface PageTurnerProps {
leaderboard: Record<number, number>;
page: number;
rowsPerPage: number;
pages: number;
onPageChange: (page: number, isButtonClick: boolean) => void;
totalPlayers: number;
}
export function PageTurner({
page,
rowsPerPage,
onPageChange,
pages,
leaderboard,
totalPlayers,
}: PageTurnerProps) {
const pageInput = useRef<HTMLInputElement>(null);
const rightLoading = range(
page * rowsPerPage,
Math.min(totalPlayers - 1, page * rowsPerPage + rowsPerPage + 1),
).some((index) => !(index in leaderboard));
const leftLoading = range(
Math.max(0, page * rowsPerPage - 1),
Math.max(0, page * rowsPerPage - rowsPerPage - 1) + 1,
).some((index) => !(index in leaderboard));
useEffect(() => {
if (pageInput.current) pageInput.current.value = `${page + 1}`;
}, [page]);
return (
<Flex justify="center" wrap="wrap" gap="2">
<Flex gap="2">
<Button
variant="soft"
onClick={() => onPageChange(Math.max(page - 1, 0), true)}
disabled={page === 0 || leftLoading}
>
{leftLoading ? (
<SymbolIcon className={infiniteSpin} />
) : (
<CaretLeftIcon />
)}
</Button>
<TextField.Root>
<TextField.Slot>Page</TextField.Slot>
<TextField.Input
type="number"
ref={pageInput}
style={{ width: 64, textAlign: 'center' }}
min={1}
max={pages}
onBlur={(event) => {
onPageChange(
Math.max(
0,
Math.min(pages - 1, event.target.valueAsNumber - 1),
),
false,
);
}}
onKeyDown={(event) => {
if (event.key === 'Enter') {
(event.target as HTMLInputElement).blur();
}
}}
/>
<TextField.Slot>out of {pages}</TextField.Slot>
</TextField.Root>
<Button
variant="soft"
onClick={() => {
onPageChange(Math.min(page + 1, pages - 1), true);
}}
disabled={page === pages - 1 || rightLoading}
>
{rightLoading ? (
<SymbolIcon className={infiniteSpin} />
) : (
<CaretRightIcon />
)}
</Button>
</Flex>
</Flex>
);
}
File diff suppressed because it is too large. Load diff
@@ -23,8 +23,6 @@ export function CustomColumn({ column, Builder }: CustomColumn) {
<Builder.SubTrigger>Column {column + 1}</Builder.SubTrigger>
<Builder.SubContent>
<Builder.Label>Display</Builder.Label>
<Builder.RadioGroup
value={customColumn.display}
onValueChange={(event) =>
+118 -28
View File
@@ -1,4 +1,21 @@
import { ContextMenu, DropdownMenu } from '@radix-ui/themes';
import {
Button,
ContextMenu,
Dialog,
DropdownMenu,
Flex,
Heading,
TextField,
} from '@radix-ui/themes';
import { createColors } from 'bepaint';
import { useRef, useState } from 'react';
import {
ACCENT_COLORS,
AccentColor,
GRAY_COLORS,
GrayColor,
PALETTES,
} from '../../../../constants/radixColors';
import { useSession } from '../../../../stores/session';
import { CustomColumn } from './CustomColumn';
@@ -9,38 +26,111 @@ interface ContextMenuProps {
export function Menu({ Builder, reset }: ContextMenuProps) {
const session = useSession();
const [showTitleEditor, setShowTitleEditor] = useState(false);
const titleInput = useRef<HTMLInputElement>(null);
return (
<Builder.Content>
<CustomColumn Builder={Builder} column={0} />
<CustomColumn Builder={Builder} column={1} />
<CustomColumn Builder={Builder} column={2} />
<CustomColumn Builder={Builder} column={3} />
<>
<Dialog.Root open={showTitleEditor} onOpenChange={setShowTitleEditor}>
<Dialog.Content>
<Flex direction="column" gap="4">
<Heading size="4">Edit title</Heading>
<Builder.Separator />
<Flex gap="2" style={{ width: '100%' }}>
<TextField.Root style={{ flex: 1 }}>
<TextField.Input
ref={titleInput}
defaultValue={session.title}
placeholder="Enter title..."
onKeyDown={(event) => {
if (event.key === 'Enter' && titleInput.current) {
setShowTitleEditor(false);
useSession.setState({ title: titleInput.current!.value });
}
}}
/>
</TextField.Root>
<Builder.CheckboxItem
checked={session.showTotal}
onCheckedChange={(checked) =>
useSession.setState({ showTotal: checked })
}
>
Show total
</Builder.CheckboxItem>
<Builder.CheckboxItem
checked={session.showCareer}
onCheckedChange={(checked) =>
useSession.setState({ showCareer: checked })
}
>
Show career
</Builder.CheckboxItem>
<Dialog.Close>
<Button
onClick={() =>
useSession.setState({ title: titleInput.current!.value })
}
>
Set
</Button>
</Dialog.Close>
</Flex>
</Flex>
</Dialog.Content>
</Dialog.Root>
<Builder.Separator />
<Builder.Content>
<Builder.Sub>
<Builder.SubTrigger>Accent color</Builder.SubTrigger>
<Builder.Item color="red" onClick={reset}>
Reset
</Builder.Item>
</Builder.Content>
<Builder.SubContent>
<Builder.RadioGroup
value={session.color}
onValueChange={(value) =>
useSession.setState({ color: value as AccentColor | GrayColor })
}
>
{[...ACCENT_COLORS, ...GRAY_COLORS].map((color) => (
<Builder.RadioItem value={color} key={color}>
<Flex gap="2" align="center">
<div
style={{
backgroundColor: createColors(PALETTES[color])
.solidBackground,
width: 16,
height: 16,
borderRadius: '100%',
}}
/>
{`${color.charAt(0).toUpperCase()}${color.slice(1)}`}
</Flex>
</Builder.RadioItem>
))}
</Builder.RadioGroup>
</Builder.SubContent>
</Builder.Sub>
<Builder.Separator />
<Builder.Item onClick={() => setShowTitleEditor(true)}>
Edit title...
</Builder.Item>
<CustomColumn Builder={Builder} column={0} />
<CustomColumn Builder={Builder} column={1} />
<CustomColumn Builder={Builder} column={2} />
<CustomColumn Builder={Builder} column={3} />
<Builder.Separator />
<Builder.CheckboxItem
checked={session.showTotal}
onCheckedChange={(checked) =>
useSession.setState({ showTotal: checked })
}
>
Show total
</Builder.CheckboxItem>
<Builder.CheckboxItem
checked={session.showCareer}
onCheckedChange={(checked) =>
useSession.setState({ showCareer: checked })
}
>
Show career
</Builder.CheckboxItem>
<Builder.Separator />
<Builder.Item color="red" onClick={reset}>
Reset
</Builder.Item>
</Builder.Content>
</>
);
}
+17 -14
View File
@@ -51,7 +51,7 @@ export default function Page() {
}, [session]);
return (
<PageWrapper>
<PageWrapper color="blue">
<div className={styles.toolBar}>
<div style={{ flex: 1, boxSizing: 'border-box', position: 'relative' }}>
<TextField.Root>
@@ -124,7 +124,7 @@ export default function Page() {
<Button
variant="soft"
onClick={(event) => {
if (!session.promptBeforeReset) {
if (!session.resetPrompt) {
event.preventDefault();
resetSession();
}
@@ -153,7 +153,7 @@ export default function Page() {
mr="1"
onCheckedChange={(checked) =>
useSession.setState({
promptBeforeReset: !checked,
resetPrompt: !checked,
})
}
/>
@@ -183,7 +183,7 @@ export default function Page() {
variant="soft"
className={styles.toolbarButton}
onClick={(event) => {
if (!session.showEmbedPrompt) {
if (!session.embedPrompt) {
event.preventDefault();
resetSession();
}
@@ -202,14 +202,17 @@ export default function Page() {
Copied link to your clipboard
</AlertDialog.Title>
<AlertDialog.Description>
Keep in mind:
<ul>
<li>Paste this link into your browser to view the embed</li>
<li>Embeds abide your custom options</li>
<li>
Options do not transfer across websites/streaming softwares
</li>
</ul>
Instructions for streamers:
<iframe
style={{
width: '100%',
aspectRatio: '16 / 9',
border: 'none',
}}
src="https://www.youtube-nocookie.com/embed/e--GwjyrJAE?si=ftEiCmpbMI2FUY5N"
title="YouTube video player"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
></iframe>
</AlertDialog.Description>
<Text size="2">
@@ -217,7 +220,7 @@ export default function Page() {
mr="1"
onCheckedChange={(checked) =>
useSession.setState({
showEmbedPrompt: !checked,
embedPrompt: !checked,
})
}
/>
@@ -245,7 +248,7 @@ export default function Page() {
</div>
</div>
<SessionPage />
<SessionPage naked={false} />
</PageWrapper>
);
}
@@ -0,0 +1,274 @@
import { CaretRightIcon, Cross1Icon, ShuffleIcon } from '@radix-ui/react-icons';
import {
Button,
Card,
Dialog,
Flex,
Heading,
Tabs,
Text,
Tooltip,
} from '@radix-ui/themes';
import { useRouter } from 'next/navigation';
import { useState } from 'react';
import { ModuleButton } from '../../../../../components/ModuleButtons/ModuleButton';
import { ShellButton } from '../../../../../components/ModuleButtons/ShellButton';
import { SmallTankIcon } from '../../../../../components/SmallTankIcon';
import { resolveNearPenetration } from '../../../../../core/blitz/resolveNearPenetration';
import { pushTankopediaPath } from '../../../../../core/blitzkrieg/pushTankopediaPath';
import {
SHELL_NAMES,
TIER_ROMAN_NUMERALS,
} from '../../../../../core/blitzkrieg/tankDefinitions';
import { mutateDuel, useDuel } from '../../../../../stores/duel';
import {
mutateTankopediaTemporary,
useTankopediaPersistent,
} from '../../../../../stores/tankopedia';
import { TankSearch } from '../../components/TankSearch';
interface AntagonistBarProps {
floating?: boolean;
}
export function AntagonistBar({ floating }: AntagonistBarProps) {
const antagonist = useDuel((state) => state.antagonist!);
const mode = useTankopediaPersistent((state) => state.mode);
const [tab, setTab] = useState('search');
const [antagonistSelectorOpen, setAntagonistSelectorVisible] =
useState(false);
const router = useRouter();
if (mode !== 'armor') return null;
return (
<Card
style={
floating
? {
position: 'absolute',
bottom: 8,
left: '50%',
transform: 'translateX(-50%)',
}
: undefined
}
>
<Flex align="center" justify="between" gap="6">
<Flex>
{antagonist.gun.shells.map((shell, index) => {
return (
<ShellButton
selected={antagonist.shell.id === shell.id}
shell={shell.icon}
rowChild
first={index === 0}
key={shell.id}
last={index === antagonist.gun.shells.length - 1}
onClick={() => {
mutateDuel((draft) => {
draft.antagonist!.shell = shell;
mutateTankopediaTemporary((draft) => {
draft.shot = undefined;
});
});
}}
/>
);
})}
</Flex>
<Flex align="center" gap="4">
{!floating && <Text>Versus</Text>}
{floating && (
<Flex gap="2" align="center">
Versus {antagonist.tank.name}
<SmallTankIcon id={antagonist.tank.id} size={16} />
</Flex>
)}
{!floating && (
<Dialog.Root
open={antagonistSelectorOpen}
onOpenChange={setAntagonistSelectorVisible}
>
<Dialog.Trigger>
<Button variant="ghost">
<Flex gap="2" align="center">
{antagonist.tank.name}
<SmallTankIcon id={antagonist.tank.id} size={16} />
<CaretRightIcon />
</Flex>
</Button>
</Dialog.Trigger>
<Dialog.Content>
<Tabs.Root
value={tab}
onValueChange={setTab}
style={{ position: 'relative' }}
>
<Dialog.Close>
<Button
variant="ghost"
style={{ position: 'absolute', right: 0, top: 8 }}
>
<Cross1Icon />
</Button>
</Dialog.Close>
<Flex gap="4" direction="column">
<Tabs.List>
<Tabs.Trigger value="search">Search</Tabs.Trigger>
<Tabs.Trigger value="configure">Configure</Tabs.Trigger>
</Tabs.List>
<Tabs.Content value="search">
<Flex
direction="column"
gap="4"
style={{ flex: 1 }}
justify="center"
>
<TankSearch
compact
onSelect={(tank) => {
mutateDuel((draft) => {
draft.antagonist!.tank = tank;
draft.antagonist!.engine = tank.engines.at(-1)!;
draft.antagonist!.track = tank.tracks.at(-1)!;
draft.antagonist!.turret = tank.turrets.at(-1)!;
draft.antagonist!.gun =
draft.antagonist!.turret.guns.at(-1)!;
draft.antagonist!.shell =
draft.antagonist!.gun.shells[0];
});
setAntagonistSelectorVisible(false);
}}
/>
</Flex>
</Tabs.Content>
<Tabs.Content value="configure">
<Flex direction="column" gap="4">
<Flex direction="column" gap="2" style={{ flex: 1 }}>
<Heading size="4">
{antagonist.tank.name} modules
</Heading>
<Flex gap="2" wrap="wrap">
<Flex>
{antagonist.tank.turrets.map((turret, index) => (
<Tooltip content={turret.name} key={turret.id}>
<ModuleButton
rowChild
first={index === 0}
last={
index ===
antagonist.tank.turrets.length - 1
}
key={turret.id}
onClick={() => {
mutateDuel((draft) => {
draft.antagonist!.turret = turret;
draft.antagonist!.gun =
turret.guns.at(-1)!;
draft.antagonist!.shell =
draft.antagonist!.gun.shells[0];
});
mutateTankopediaTemporary((draft) => {
draft.shot = undefined;
});
}}
selected={
antagonist.turret.id === turret.id
}
discriminator={
TIER_ROMAN_NUMERALS[turret.tier]
}
module="turret"
/>
</Tooltip>
))}
</Flex>
<Flex>
{antagonist.turret.guns.map((gun, index) => (
<Tooltip content={gun.name} key={gun.id}>
<ModuleButton
rowChild
first={index === 0}
last={
index ===
antagonist.turret.guns.length - 1
}
onClick={() => {
mutateDuel((draft) => {
draft.antagonist!.gun = gun;
draft.antagonist!.shell = gun.shells[0];
});
}}
selected={antagonist.gun.id === gun.id}
discriminator={
TIER_ROMAN_NUMERALS[gun.tier]
}
module="gun"
/>
</Tooltip>
))}
</Flex>
</Flex>
</Flex>
<Flex direction="column" style={{ flex: 1 }}>
<Heading size="4">Properties</Heading>
<ul>
<li>
Turret: <b>{antagonist.turret.name}</b>
</li>
<li>
Gun: <b>{antagonist.gun.name}</b>
</li>
<li>Shells:</li>
<ul>
{antagonist.gun.shells.map((shell) => (
<li key={shell.id}>
{SHELL_NAMES[shell.type]}:{' '}
<b>
{resolveNearPenetration(shell.penetration)}
mm
</b>
, {shell.damage.armor}HP
</li>
))}
</ul>
</ul>
</Flex>
</Flex>
</Tabs.Content>
</Flex>
</Tabs.Root>
</Dialog.Content>
</Dialog.Root>
)}
</Flex>
<Button
variant="ghost"
onClick={() => {
mutateDuel((draft) => {
[draft.protagonist, draft.antagonist] = [
draft.antagonist,
draft.protagonist,
];
pushTankopediaPath(draft.antagonist!.tank.id);
});
}}
>
<ShuffleIcon /> Swap
</Button>
</Flex>
</Card>
);
}
@@ -0,0 +1,12 @@
import { ReactNode } from 'react';
import * as styles from '../../../../page.css';
interface ConfigurationChildWrapperProps {
children: ReactNode;
}
export function ConfigurationChildWrapper({
children,
}: ConfigurationChildWrapperProps) {
return <div className={styles.configurationChild}>{children}</div>;
}
@@ -0,0 +1,75 @@
import { Flex, Heading } from '@radix-ui/themes';
import { use } from 'react';
import { ConsumableButton } from '../../../../../../../components/ModuleButtons/ConsumableButton';
import { checkConsumableProvisionInclusivity } from '../../../../../../../core/blitzkrieg/checkConsumableProvisionInclusivity';
import { consumableDefinitions } from '../../../../../../../core/blitzkrieg/consumableDefinitions';
import { useEquipment } from '../../../../../../../hooks/useEquipment';
import { mutateDuel, useDuel } from '../../../../../../../stores/duel';
import { ConfigurationChildWrapper } from './ConfigurationChildWrapper';
export function Consumables() {
const protagonist = useDuel((state) => state.protagonist!);
const awaitedConsumableDefinitions = use(consumableDefinitions);
const consumables = useDuel((state) => state.protagonist!.consumables);
const consumablesList = Object.values(awaitedConsumableDefinitions).filter(
(consumable) =>
checkConsumableProvisionInclusivity(
consumable,
protagonist.tank,
protagonist.gun,
),
);
const cooldownBooster = useDuel(
(state) => state.protagonist!.cooldownBooster,
);
const hasConsumableDeliverySystem = useEquipment(118);
const hasHighEndConsumables = useEquipment(101);
return (
<ConfigurationChildWrapper>
<Heading size="4">Consumables</Heading>
<Flex wrap="wrap">
{consumablesList.map((consumable, index) => {
const selected = consumables.includes(consumable.id);
return (
<ConsumableButton
duration={
typeof consumable.duration === 'number'
? consumable.duration * (hasHighEndConsumables ? 0.7 : 1)
: undefined
}
cooldown={
consumable.cooldown *
(hasConsumableDeliverySystem ? 0.85 : 1) *
(1 - cooldownBooster * 0.1)
}
key={consumable.id}
first={index === 0}
last={index === consumablesList.length - 1}
rowChild
disabled={
protagonist.tank.consumables === consumables.length && !selected
}
consumable={consumable.id}
selected={selected}
onClick={() => {
mutateDuel((draft) => {
if (selected) {
draft.protagonist!.consumables =
draft.protagonist!.consumables.filter(
(id) => id !== consumable.id,
);
} else {
draft.protagonist!.consumables.push(consumable.id);
}
});
}}
/>
);
})}
</Flex>
</ConfigurationChildWrapper>
);
}
@@ -0,0 +1,62 @@
import { Flex, Heading } from '@radix-ui/themes';
import { use } from 'react';
import { EquipmentButton } from '../../../../../../../components/ModuleButtons/EquipmentButton';
import { equipmentDefinitions } from '../../../../../../../core/blitzkrieg/equipmentDefinitions';
import { mutateDuel, useDuel } from '../../../../../../../stores/duel';
import { ConfigurationChildWrapper } from './ConfigurationChildWrapper';
export function Equipments() {
const protagonist = useDuel((state) => state.protagonist!);
const awaitedEquipmentDefinitions = use(equipmentDefinitions);
const equipmentRows =
awaitedEquipmentDefinitions.presets[protagonist.tank.equipment];
const equipmentMatrix = useDuel((state) => state.protagonist!.equipment);
return (
<ConfigurationChildWrapper>
<Heading size="4">Equipments</Heading>
<Flex direction="column" gap="2">
{equipmentRows.map((equipmentRow, rowIndex) => (
<Flex gap="2" key={rowIndex}>
{equipmentRow.map((equipment, columnIndex) => (
<Flex key={columnIndex}>
<EquipmentButton
equipment={equipment[0]}
first
rowChild
selected={equipmentMatrix[rowIndex][columnIndex] === -1}
onClick={() => {
mutateDuel((draft) => {
if (equipmentMatrix[rowIndex][columnIndex] === -1) {
draft.protagonist!.equipment[rowIndex][columnIndex] = 0;
} else {
draft.protagonist!.equipment[rowIndex][columnIndex] =
-1;
}
});
}}
/>
<EquipmentButton
equipment={equipment[1]}
last
rowChild
selected={equipmentMatrix[rowIndex][columnIndex] === 1}
onClick={() => {
mutateDuel((draft) => {
if (equipmentMatrix[rowIndex][columnIndex] === 1) {
draft.protagonist!.equipment[rowIndex][columnIndex] = 0;
} else {
draft.protagonist!.equipment[rowIndex][columnIndex] = 1;
}
});
}}
/>
</Flex>
))}
</Flex>
))}
</Flex>
</ConfigurationChildWrapper>
);
}
@@ -0,0 +1,95 @@
import { CaretDownIcon, CaretUpIcon } from '@radix-ui/react-icons';
import { Flex, Text } from '@radix-ui/themes';
import { ReactNode } from 'react';
import { theme } from '../../../../../../../stitches.config';
export interface InfoProps {
name: ReactNode;
children?: ReactNode;
unit?: string;
indent?: boolean;
highlight?: boolean;
delta?: number;
decimals?: number;
prefix?: string;
deltaType?: 'higherIsBetter' | 'lowerIsBetter';
}
export function Info({
name,
children,
unit,
indent = false,
highlight,
delta,
decimals,
prefix,
deltaType = 'higherIsBetter',
}: InfoProps) {
return (
<Flex
align="center"
style={{ width: '100%', paddingLeft: indent ? 24 : 0 }}
gap="4"
>
<Text color={highlight ? 'amber' : undefined}>
{name}
{unit != undefined && (
<>
{' '}
<Text color="gray" size="1">
{unit}
</Text>
</>
)}
</Text>
{children !== undefined && (
<div
style={{
flex: 1,
height: 1,
backgroundColor: highlight
? theme.colors.componentCallToActionInteractive_amberAlpha
: theme.colors.componentCallToActionInteractive_alpha,
}}
/>
)}
{children !== undefined && (
<Flex align="center" gap="1">
{delta !== undefined && delta !== 0 && (
<>
<Text
color={
delta * (deltaType === 'lowerIsBetter' ? -1 : 1) > 0
? 'green'
: 'tomato'
}
>
{decimals !== undefined
? Math.abs(delta).toFixed(decimals)
: Math.abs(delta)}
</Text>
<Text
color={
delta * (deltaType === 'lowerIsBetter' ? -1 : 1) > 0
? 'green'
: 'tomato'
}
>
{delta > 0 ? <CaretUpIcon /> : <CaretDownIcon />}
</Text>
</>
)}
<Text color={highlight ? 'amber' : undefined}>
{prefix}
{decimals !== undefined && typeof children === 'number'
? children.toFixed(decimals)
: children}
</Text>
</Flex>
)}
</Flex>
);
}
@@ -0,0 +1,16 @@
import { useDelta } from '../../../../../../../hooks/useDelta';
import { Info, InfoProps } from './Info';
interface InfoWithDeltaProps extends InfoProps {
children: number;
}
export function InfoWithDelta({ children, ...props }: InfoWithDeltaProps) {
const delta = useDelta(children);
return (
<Info {...props} delta={delta}>
{children}
</Info>
);
}
@@ -0,0 +1,138 @@
import { Flex, Heading, Slider, TextField } from '@radix-ui/themes';
import { clamp, debounce } from 'lodash';
import { useEffect, useMemo, useRef, useState } from 'react';
import { GenericTankComponentButton } from '../../../../../../../components/ModuleButtons/GenericTankComponentButton';
import { asset } from '../../../../../../../core/blitzkrieg/asset';
import { mutateDuel, useDuel } from '../../../../../../../stores/duel';
import { ConfigurationChildWrapper } from './ConfigurationChildWrapper';
export function Miscellaneous() {
const camouflage = useDuel((state) => state.protagonist!.camouflage);
const cooldownBooster = useDuel(
(state) => state.protagonist!.cooldownBooster,
);
const crewMastery = useDuel((state) => state.protagonist!.crewMastery);
const crewInput = useRef<HTMLInputElement>(null);
const [crewMasteryDraft, setCrewMasteryDraft] = useState(crewMastery);
const { tank } = useDuel((state) => state.protagonist!);
const debouncedApplyDraft = useMemo(
() =>
debounce((value) => {
mutateDuel((draft) => {
draft.protagonist!.crewMastery = value;
});
}, 500),
[],
);
useEffect(() => {
setCrewMasteryDraft(crewMastery);
if (!crewInput.current) return;
crewInput.current.value = `${Math.round(crewMastery * 100)}`;
}, [crewMastery]);
return (
<ConfigurationChildWrapper>
<Heading size="4">Miscellaneous</Heading>
<Flex gap="2" align="center">
{!tank.fixedCamouflage && (
<GenericTankComponentButton
icon={asset('icons/camo.webp')}
selected={camouflage}
iconStyles={{
top: '50%',
left: '50%',
transform: 'translate(calc(-50% + 4px), calc(-50% + 4px))',
}}
first
last
onClick={() => {
mutateDuel((draft) => {
draft.protagonist!.camouflage = !camouflage;
});
}}
/>
)}
<GenericTankComponentButton
icon={asset('icons/boosters/equipment.webp')}
selected={cooldownBooster > 0}
first
last
banner={
cooldownBooster === 0
? undefined
: cooldownBooster === 1
? '#afb0abc0'
: cooldownBooster === 2
? '#5f72cbc0'
: '#9b3cc0c0'
}
iconStyles={{
transform: 'translate(-50%, -50%) scale(0.8)',
}}
onClick={() => {
mutateDuel((draft) => {
draft.protagonist!.cooldownBooster++;
if (draft.protagonist!.cooldownBooster === 4)
draft.protagonist!.cooldownBooster = 0;
});
}}
/>
{tank.treeType === 'researchable' && (
<Flex
align="center"
direction="column"
gap="1"
justify="end"
style={{ width: 180 }}
>
<TextField.Root>
<TextField.Slot>Crew</TextField.Slot>
<TextField.Input
ref={crewInput}
defaultValue={Math.round(crewMastery * 100)}
style={{ textAlign: 'right' }}
onBlur={() => {
const newValue = Number(crewInput.current!.value) / 100;
if (isNaN(newValue)) {
crewInput.current!.value = `${Math.round(crewMastery * 100)}`;
return;
}
mutateDuel((draft) => {
draft.protagonist!.crewMastery = clamp(
newValue / 100,
0.5,
1,
);
});
}}
onKeyUp={(event) => {
if (event.key === 'Enter') {
crewInput.current?.blur();
}
}}
/>
<TextField.Slot>%</TextField.Slot>
</TextField.Root>
<Slider
min={50}
max={100}
value={[crewMasteryDraft * 100]}
style={{ width: '100%' }}
onValueChange={([value]) => {
setCrewMasteryDraft(value / 100);
debouncedApplyDraft(value / 100);
}}
/>
</Flex>
)}
</Flex>
</ConfigurationChildWrapper>
);
}
@@ -0,0 +1,108 @@
import { Flex, Heading } from '@radix-ui/themes';
import { ModuleButton } from '../../../../../../../components/ModuleButtons/ModuleButton';
import { TIER_ROMAN_NUMERALS } from '../../../../../../../core/blitzkrieg/tankDefinitions';
import { mutateDuel, useDuel } from '../../../../../../../stores/duel';
import { mutateTankopediaTemporary } from '../../../../../../../stores/tankopedia';
import { ConfigurationChildWrapper } from './ConfigurationChildWrapper';
export function Modules() {
const protagonist = useDuel((state) => state.protagonist!);
return (
<ConfigurationChildWrapper>
<Heading size="4">Modules</Heading>
<Flex gap="2" wrap="wrap">
<Flex>
{protagonist.tank.turrets.map((turret, index) => {
return (
<ModuleButton
key={turret.id}
selected={protagonist.turret.id === turret.id}
module="turret"
discriminator={TIER_ROMAN_NUMERALS[turret.tier]}
first={index === 0}
last={index === protagonist.tank.turrets.length - 1}
rowChild
onClick={() => {
mutateDuel((draft) => {
draft.protagonist!.turret = turret;
draft.protagonist!.gun = turret.guns.at(-1)!;
draft.protagonist!.shell = turret.guns.at(-1)!.shells[0];
});
mutateTankopediaTemporary((draft) => {
draft.shot = undefined;
});
}}
/>
);
})}
</Flex>
<Flex>
{protagonist.turret.guns.map((gun, index) => {
return (
<ModuleButton
key={gun.id}
module="gun"
discriminator={TIER_ROMAN_NUMERALS[gun.tier]}
selected={protagonist.gun.id === gun.id}
first={index === 0}
last={index === protagonist.turret.guns.length - 1}
rowChild
onClick={() => {
mutateDuel((draft) => {
draft.protagonist!.gun = gun;
draft.protagonist!.shell = gun.shells[0];
});
}}
/>
);
})}
</Flex>
<Flex>
{protagonist.tank.engines.map((engine, index) => {
return (
<ModuleButton
key={engine.id}
module="engine"
discriminator={TIER_ROMAN_NUMERALS[engine.tier]}
selected={protagonist.engine.id === engine.id}
first={index === 0}
last={index === protagonist.tank.engines.length - 1}
rowChild
onClick={() => {
mutateDuel((draft) => {
draft.protagonist!.engine = engine;
});
}}
/>
);
})}
</Flex>
<Flex>
{protagonist.tank.tracks.map((track, index) => {
return (
<ModuleButton
key={track.id}
module="chassis"
discriminator={TIER_ROMAN_NUMERALS[track.tier]}
selected={protagonist.track.id === track.id}
first={index === 0}
last={index === protagonist.tank.tracks.length - 1}
rowChild
onClick={() => {
mutateDuel((draft) => {
draft.protagonist!.track = track;
});
}}
/>
);
})}
</Flex>
</Flex>
</ConfigurationChildWrapper>
);
}
@@ -0,0 +1,54 @@
import { Flex, Heading } from '@radix-ui/themes';
import { use } from 'react';
import { ProvisionButton } from '../../../../../../../components/ModuleButtons/ProvisionButton';
import { availableProvisions } from '../../../../../../../core/blitzkrieg/availableProvisions';
import { provisionDefinitions } from '../../../../../../../core/blitzkrieg/provisionDefinitions';
import { mutateDuel, useDuel } from '../../../../../../../stores/duel';
import { ConfigurationChildWrapper } from './ConfigurationChildWrapper';
export function Provisions() {
const { tank, gun } = useDuel((state) => state.protagonist!);
const provisions = useDuel((state) => state.protagonist!.provisions);
const awaitedProvisionDefinitions = use(provisionDefinitions);
const provisionsList = availableProvisions(
tank,
gun,
awaitedProvisionDefinitions,
);
return (
<ConfigurationChildWrapper>
<Heading size="4">Provisions</Heading>
<Flex wrap="wrap">
{provisionsList.map((provision, index) => {
const selected = provisions.includes(provision.id);
return (
<ProvisionButton
key={provision.id}
first={index === 0}
last={index === provisionsList.length - 1}
rowChild
disabled={tank.provisions === provisions.length && !selected}
provision={provision.id}
selected={selected}
onClick={() => {
mutateDuel((draft) => {
if (selected) {
draft.protagonist!.provisions =
draft.protagonist!.provisions.filter(
(id) => id !== provision.id,
);
} else {
draft.protagonist!.provisions.push(provision.id);
}
});
}}
/>
);
})}
</Flex>
</ConfigurationChildWrapper>
);
}
@@ -0,0 +1,653 @@
import { AccessibilityIcon } from '@radix-ui/react-icons';
import { Flex, Heading, Slider, Text, TextField } from '@radix-ui/themes';
import { debounce } from 'lodash';
import { use, useEffect, useRef, useState } from 'react';
import { lerp } from 'three/src/math/MathUtils';
import { ShellButton } from '../../../../../../components/ModuleButtons/ShellButton';
import { isExplosive } from '../../../../../../core/blitz/isExplosive';
import { resolveNearPenetration } from '../../../../../../core/blitz/resolveNearPenetration';
import { coefficient } from '../../../../../../core/blitzkrieg/coefficient';
import { degressiveStat } from '../../../../../../core/blitzkrieg/degressiveStat';
import { modelDefinitions } from '../../../../../../core/blitzkrieg/modelDefinitions';
import { normalizeBoundingBox } from '../../../../../../core/blitzkrieg/normalizeBoundingBox';
import { progressiveStat } from '../../../../../../core/blitzkrieg/progressiveStat';
import { resolveDpm } from '../../../../../../core/blitzkrieg/resolveDpm';
import { sum } from '../../../../../../core/blitzkrieg/sum';
import {
CREW_MEMBER_NAMES,
GUN_TYPE_NAMES,
SHELL_NAMES,
} from '../../../../../../core/blitzkrieg/tankDefinitions';
import { unionBoundingBox } from '../../../../../../core/blitzkrieg/unionBoundingBox';
import { useConsumable } from '../../../../../../hooks/useConsumable';
import { useEquipment } from '../../../../../../hooks/useEquipment';
import { useProvision } from '../../../../../../hooks/useProvision';
import { useProvisions } from '../../../../../../hooks/useProvisions';
import { mutateDuel, useDuel } from '../../../../../../stores/duel';
import { Info } from './components/Info';
import { InfoWithDelta } from './components/InfoWithDelta';
export function Characteristics() {
const awaitedModelDefinitions = use(modelDefinitions);
const { tank, turret, gun, engine, track, shell } = useDuel(
(state) => state.protagonist!,
);
const hasImprovedVentilation = useEquipment(102);
const provisions = useProvisions();
const crewMastery = useDuel((state) => state.protagonist!.crewMastery);
const provisionCrewBonus =
provisions.reduce(
(total, provision) =>
provision.crew ? total + provision.crew / 100 : total,
0,
) + (hasImprovedVentilation ? 0.05 : 0);
const commanderMastery = crewMastery + provisionCrewBonus;
const crewMemberMastery = commanderMastery * 1.1;
const stockEngine = tank.engines[0];
const stockTrack = tank.tracks[0];
const stockTurret = tank.turrets[0];
const stockGun = stockTurret.guns[0];
const tankModelDefinition = awaitedModelDefinitions[tank.id];
const turretModelDefinition = tankModelDefinition.turrets[turret.id];
const gunModelDefinition = turretModelDefinition.guns[gun.id];
const size = normalizeBoundingBox(
unionBoundingBox(
tankModelDefinition.boundingBox,
turretModelDefinition.boundingBox,
),
);
const weight =
tank.weight + engine.weight + track.weight + turret.weight + gun.weight;
const weightTons = weight / 1000;
const stockWeight =
tank.weight +
stockEngine.weight +
stockTrack.weight +
stockTurret.weight +
stockGun.weight;
const [penetrationDistance, setPenetrationDistance] = useState(250);
const camouflage = useDuel((state) => state.protagonist!.camouflage);
const hasRammer = useEquipment(100);
const hasCalibratedShells = useEquipment(103);
const hasEnhancedGunLayingDrive = useEquipment(104);
const hasSupercharger = useEquipment(107);
const hasVerticalStabilizer = useEquipment(105);
const hasRefinedGun = useEquipment(106);
const hasImprovedAssembly = useEquipment(111);
const hasImprovedOptics = useEquipment(114);
const hasImprovedControl = useEquipment(116);
const hasEngineAccelerator = useEquipment(117);
const hasCamouflageNet = useEquipment(115);
const hasImprovedVerticalStabilizer = useEquipment(122);
const hasImprovedSuspension = useEquipment(123);
const penetrationDistanceInput = useRef<HTMLInputElement>(null);
const hasEnginePowerBoost = useConsumable(14);
const hasImprovedEnginePowerBoost = useConsumable(27);
const hasAdrenaline = useConsumable(18);
const hasTungsten = useConsumable(45);
const hasReticleCalibration = useConsumable(28);
const hasShellReloadBoost = useConsumable(29);
const hasStandardFuel = useProvision(18);
const hasImprovedFuel = useProvision(19);
const hasProtectiveKit = useProvision(22);
const hasSandbagArmor = useProvision(28);
const hasEnhancedSandbagArmor = useProvision(29);
const hasImprovedGunPowder = useProvision(46);
const hasGearOil = useProvision(44);
const hasImprovedGearOil = useProvision(45);
const healthCoefficient = coefficient(
[hasSandbagArmor, 0.03],
[hasEnhancedSandbagArmor, 0.06],
[hasImprovedAssembly, 0.06],
);
const reloadCoefficient =
(coefficient([hasRammer, -0.07]) *
coefficient([true, degressiveStat(crewMemberMastery)])) /
coefficient([hasAdrenaline && gun.type === 'regular', 0.2]);
const penetrationCoefficient = coefficient([
hasCalibratedShells,
isExplosive(shell.type) ? 0.1 : 0.05,
]);
const damageCoefficient = coefficient(
// TODO: add max rolls
[hasTungsten, 0.15],
);
const interClipCoefficient = coefficient([hasShellReloadBoost, -0.3]);
const shellVelocityCoefficient = coefficient(
[hasSupercharger, 0.3],
[hasImprovedGunPowder, 0.3],
);
const penetrationLossOverDistanceCoefficient = coefficient([
hasSupercharger,
-0.5,
]);
const aimTimeCoefficient =
coefficient(
[hasEnhancedGunLayingDrive, -0.1],
[hasReticleCalibration, -0.4],
) * coefficient([true, degressiveStat(crewMemberMastery)]);
const dispersionStillCoefficient =
coefficient([hasRefinedGun, -0.1], [hasReticleCalibration, -0.4]) *
coefficient([true, degressiveStat(crewMemberMastery)]);
const dispersionMovingCoefficient = coefficient([
hasVerticalStabilizer,
-0.15,
]);
const enginePowerCoefficient = coefficient(
[
hasEngineAccelerator && (tank.type === 'light' || tank.type === 'medium'),
0.05,
],
[
hasEngineAccelerator &&
(tank.type === 'heavy' || tank.type === 'tankDestroyer'),
0.07,
],
[hasEnginePowerBoost, 0.2],
[hasImprovedEnginePowerBoost, 0.4],
[hasStandardFuel, 0.03],
[hasImprovedFuel, 0.1],
[hasGearOil, 0.03],
[hasImprovedGearOil, 0.06],
);
const turretTraverseCoefficient =
coefficient([hasStandardFuel, 0.03], [hasImprovedFuel, 0.1]) *
coefficient([true, progressiveStat(crewMemberMastery)]);
const hullTraverseCoefficient =
coefficient(
[hasImprovedControl, 0.1],
[hasImprovedEnginePowerBoost, 0.05],
) * coefficient([true, progressiveStat(crewMemberMastery)]);
const resistanceCoefficient = coefficient([hasImprovedSuspension, -0.25]);
const viewRangeCoefficient =
coefficient([
hasImprovedOptics,
tank.type === 'tankDestroyer' ? 0.05 : tank.type === 'heavy' ? 0.07 : 0.1,
]) * coefficient([true, progressiveStat(commanderMastery)]);
const fireChanceCoefficient = coefficient([hasProtectiveKit, -0.2]);
const speedForwardsSum = sum(
[hasImprovedEnginePowerBoost, 5],
[hasGearOil, 2],
[hasImprovedGearOil, 4],
);
const speedBackwardsSum = sum(
[hasImprovedEnginePowerBoost, 10],
[hasGearOil, 2],
[hasImprovedGearOil, 4],
);
const camouflageSumMoving = sum(
[
hasCamouflageNet,
tank.type === 'heavy'
? 0.03
: tank.type === 'tankDestroyer'
? 0.07
: 0.05,
],
[
camouflage,
tank.type === 'tankDestroyer'
? 0.04
: tank.type === 'heavy'
? 0.03
: 0.02,
],
);
const camouflageSumStill = sum(
[
hasCamouflageNet,
2 *
(tank.type === 'heavy'
? 0.03
: tank.type === 'tankDestroyer'
? 0.07
: 0.05),
],
[
camouflage,
tank.type === 'tankDestroyer'
? 0.04
: tank.type === 'heavy'
? 0.03
: 0.02,
],
);
const resolvedEnginePower = engine.power * enginePowerCoefficient;
const dpm = resolveDpm(
gun,
shell,
damageCoefficient,
reloadCoefficient,
interClipCoefficient,
);
useEffect(() => {
if (penetrationDistanceInput.current) {
penetrationDistanceInput.current.value = `${penetrationDistance}`;
}
}, [penetrationDistance]);
return (
<Flex direction="column" gap="8" style={{ width: '100%' }}>
<Flex direction="column" gap="2">
<Flex align="center" gap="4">
<Heading size="5">Fire</Heading>
<Flex>
{gun.shells.map((thisShell, index) => {
return (
<ShellButton
key={thisShell.id}
shell={thisShell.icon}
discriminator={SHELL_NAMES[thisShell.type]}
selected={thisShell.id === shell.id}
first={index === 0}
last={index === gun.shells.length - 1}
rowChild
onClick={() => {
mutateDuel((draft) => {
draft.protagonist!.shell = thisShell;
});
}}
/>
);
})}
</Flex>
</Flex>
<Info name="Gun type">{GUN_TYPE_NAMES[gun.type]}</Info>
<InfoWithDelta name="DPM" decimals={0} unit="hp / min">
{dpm}
</InfoWithDelta>
{gun.type === 'autoReloader' && (
<>
<InfoWithDelta decimals={0} indent name="Maximum" unit="hp / min">
{gun.reload.at(-1)! < gun.reload.at(-2)!
? (shell.damage.armor / (gun.reload.at(-1)! + gun.interClip)) *
60
: (shell.damage.armor / gun.reload[0]) * 60}
</InfoWithDelta>
<InfoWithDelta
decimals={0}
indent
name="Effective at 60s"
unit="hp / min"
>
{gun.reload.at(-1)! < gun.reload.at(-2)!
? (shell.damage.armor / (gun.reload.at(-1)! + gun.interClip)) *
(60 -
(gun.reload.slice(0, -1).length - 1) * gun.interClip) +
shell.damage.armor * gun.reload.slice(0, -1).length
: (shell.damage.armor / (gun.reload[0] + gun.interClip)) *
(60 - (gun.reload.slice(1).length - 1) * gun.interClip) +
shell.damage.armor * gun.reload.slice(1).length}
</InfoWithDelta>
<Info
indent
name={
<a
target="_blank"
href="https://tresabhi.github.io/blitzkrieg/guide/dpm.html"
>
What's the difference?
</a>
}
/>
<Info indent name="Optimal shell index">
{gun.reload.at(-1)! < gun.reload.at(-2)! ? gun.reload.length : 1}
</Info>
</>
)}
{gun.type === 'autoReloader' ? (
<>
<Info name="Reload" unit="s" />
{gun.reload.map((reload, index) => (
<InfoWithDelta
key={index}
indent
name={`Shell ${index + 1}`}
decimals={2}
deltaType="lowerIsBetter"
>
{reload}
</InfoWithDelta>
))}
</>
) : (
<InfoWithDelta
decimals={2}
name="Reload"
unit="s"
deltaType="lowerIsBetter"
>
{gun.reload * reloadCoefficient}
</InfoWithDelta>
)}
{gun.type === 'autoLoader' && (
<InfoWithDelta
indent
decimals={2}
name="Inter-clip reload"
unit="s"
deltaType="lowerIsBetter"
>
{gun.interClip * interClipCoefficient}
</InfoWithDelta>
)}
<InfoWithDelta name="Caliber" decimals={0} unit="mm">
{shell.caliber}
</InfoWithDelta>
<InfoWithDelta decimals={0} name="Penetration" unit="mm">
{resolveNearPenetration(shell.penetration) * penetrationCoefficient}
</InfoWithDelta>
{typeof shell.penetration !== 'number' && (
<>
<InfoWithDelta
indent
decimals={0}
name={`At ${penetrationDistance}m`}
>
{lerp(
shell.penetration[0],
shell.penetration[1],
(penetrationDistance * penetrationLossOverDistanceCoefficient) /
500,
) * penetrationCoefficient}
</InfoWithDelta>
<Flex align="center" gap="2" style={{ paddingLeft: 24 }}>
<Text>Distance</Text>
<Slider
key={penetrationDistance}
min={0}
max={500}
style={{ flex: 1 }}
defaultValue={[penetrationDistance]}
onValueChange={debounce(([value]) => {
setPenetrationDistance(value);
}, 500)}
/>
<TextField.Root style={{ width: 64 }}>
<TextField.Input
ref={penetrationDistanceInput}
defaultValue={penetrationDistance}
onBlur={() => {
setPenetrationDistance(
Math.min(
parseInt(penetrationDistanceInput.current!.value),
500,
),
);
}}
onKeyDown={(event) => {
if (event.key === 'Enter') {
event.currentTarget.blur();
}
}}
/>
<TextField.Slot>m</TextField.Slot>
</TextField.Root>
</Flex>
</>
)}
<InfoWithDelta name="Damage" unit="hp" decimals={0}>
{shell.damage.armor * damageCoefficient}
</InfoWithDelta>
<InfoWithDelta name="Module damage" unit="hp" decimals={0}>
{shell.damage.module * damageCoefficient}
</InfoWithDelta>
<InfoWithDelta name="Shell velocity" unit="m/s" decimals={0}>
{shell.speed * shellVelocityCoefficient}
</InfoWithDelta>
<InfoWithDelta
decimals={2}
name="Aim time"
unit="s"
deltaType="lowerIsBetter"
>
{gun.aimTime * aimTimeCoefficient}
</InfoWithDelta>
<Info name="Dispersion at 100m" />
<InfoWithDelta
decimals={3}
indent
name="Still"
unit="m"
deltaType="lowerIsBetter"
>
{gun.dispersion.base * dispersionStillCoefficient}
</InfoWithDelta>
<InfoWithDelta
prefix="+ "
decimals={3}
indent
name="Moving"
deltaType="lowerIsBetter"
>
{track.dispersion.move * dispersionMovingCoefficient}
</InfoWithDelta>
<InfoWithDelta
decimals={3}
prefix="+ "
indent
name="Hull traversing"
deltaType="lowerIsBetter"
>
{track.dispersion.traverse * dispersionMovingCoefficient}
</InfoWithDelta>
<InfoWithDelta
decimals={3}
prefix="+ "
indent
name="Turret traversing"
deltaType="lowerIsBetter"
>
{gun.dispersion.traverse * dispersionMovingCoefficient}
</InfoWithDelta>
<InfoWithDelta
decimals={3}
prefix="+ "
indent
name="After shooting"
deltaType="lowerIsBetter"
>
{gun.dispersion.shot * dispersionMovingCoefficient}
</InfoWithDelta>
<InfoWithDelta
decimals={1}
prefix="x "
indent
name="Gun damaged"
unit="scalar"
deltaType="lowerIsBetter"
>
{gun.dispersion.damaged * dispersionMovingCoefficient}
</InfoWithDelta>
<Info name="Gun flexibility" unit="°" />
<InfoWithDelta decimals={1} indent name="Depression">
{gunModelDefinition.pitch.max +
(hasImprovedVerticalStabilizer ? 3 : 0)}
</InfoWithDelta>
<InfoWithDelta decimals={1} indent name="Elevation">
{-gunModelDefinition.pitch.min +
(hasImprovedVerticalStabilizer ? 3 : 0)}
</InfoWithDelta>
{gunModelDefinition.pitch.front && (
<>
<InfoWithDelta decimals={1} indent name="Frontal depression">
{gunModelDefinition.pitch.front.max}
</InfoWithDelta>
<InfoWithDelta decimals={1} indent name="Frontal elevation">
{-gunModelDefinition.pitch.front.min}
</InfoWithDelta>
</>
)}
{gunModelDefinition.pitch.back && (
<>
<InfoWithDelta decimals={1} indent name="Rear depression">
{gunModelDefinition.pitch.back.max}
</InfoWithDelta>
<InfoWithDelta decimals={1} indent name="Rear elevation">
{-gunModelDefinition.pitch.back.min}
</InfoWithDelta>
</>
)}
{turretModelDefinition.yaw && (
<>
<InfoWithDelta decimals={1} indent name="Azimuth left">
{-turretModelDefinition.yaw.min}
</InfoWithDelta>
<InfoWithDelta decimals={1} indent name="Azimuth right">
{turretModelDefinition.yaw.max}
</InfoWithDelta>
</>
)}
</Flex>
<Flex direction="column" gap="2">
<Heading size="5">Maneuverability</Heading>
<Info name="Speed" unit="km/hr" />
<InfoWithDelta decimals={0} indent name="Forwards">
{tank.speed.forwards + speedForwardsSum}
</InfoWithDelta>
<InfoWithDelta decimals={0} indent name="Backwards">
{tank.speed.backwards + speedBackwardsSum}
</InfoWithDelta>
<InfoWithDelta decimals={0} name="Power" unit="hp">
{resolvedEnginePower}
</InfoWithDelta>
<Info name="Power to weight ratio" unit="hp/tn" />
<InfoWithDelta decimals={1} indent name="On hard terrain">
{resolvedEnginePower /
weightTons /
(track.resistance.hard * resistanceCoefficient)}
</InfoWithDelta>
<InfoWithDelta decimals={1} indent name="On medium terrain">
{resolvedEnginePower /
weightTons /
(track.resistance.medium * resistanceCoefficient)}
</InfoWithDelta>
<InfoWithDelta decimals={1} indent name="On soft terrain">
{resolvedEnginePower /
weightTons /
(track.resistance.soft * resistanceCoefficient)}
</InfoWithDelta>
<InfoWithDelta
decimals={1}
name="Weight"
unit="tn"
deltaType="lowerIsBetter"
>
{weightTons}
</InfoWithDelta>
<InfoWithDelta name="Turret traverse speed" unit="°/s" decimals={0}>
{turret.traverseSpeed * turretTraverseCoefficient}
</InfoWithDelta>
<Info name="Effective traverse speed" unit="°/s" />
<InfoWithDelta decimals={1} indent name="On hard terrain">
{(resolvedEnginePower / stockEngine.power) *
track.traverseSpeed *
hullTraverseCoefficient *
(track.resistance.hard /
(track.resistance.hard * resistanceCoefficient)) *
(stockWeight / weight)}
</InfoWithDelta>
<InfoWithDelta decimals={1} indent name="On medium terrain">
{(resolvedEnginePower / stockEngine.power) *
track.traverseSpeed *
hullTraverseCoefficient *
(track.resistance.hard /
(track.resistance.medium * resistanceCoefficient)) *
(stockWeight / weight)}
</InfoWithDelta>
<InfoWithDelta decimals={1} indent name="On soft terrain">
{(resolvedEnginePower / stockEngine.power) *
track.traverseSpeed *
hullTraverseCoefficient *
(track.resistance.hard /
(track.resistance.soft * resistanceCoefficient)) *
(stockWeight / weight)}
</InfoWithDelta>
</Flex>
<Flex direction="column" gap="2">
<Heading size="5">Survivability</Heading>
<InfoWithDelta name="Health" unit="hp" decimals={0}>
{(tank.health + turret.health) * healthCoefficient}
</InfoWithDelta>
<InfoWithDelta name="Fire chance" unit="%" deltaType="lowerIsBetter">
{Math.round(engine.fireChance * fireChanceCoefficient * 100)}
</InfoWithDelta>
<InfoWithDelta name="View range" unit="m" decimals={0}>
{turret.viewRange * viewRangeCoefficient}
</InfoWithDelta>
<Info name="Camouflage" unit="%" />
<InfoWithDelta indent name="Still" decimals={2}>
{(tank.camouflage.still + camouflageSumStill) * 100}
</InfoWithDelta>
<InfoWithDelta indent name="Moving" decimals={2}>
{(tank.camouflage.moving + camouflageSumMoving) * 100}
</InfoWithDelta>
<InfoWithDelta indent name="Shooting still" decimals={2}>
{(tank.camouflage.still * gun.camouflageLoss + camouflageSumStill) *
100}
</InfoWithDelta>
<InfoWithDelta indent name="Shooting on move" decimals={2}>
{(tank.camouflage.moving * gun.camouflageLoss + camouflageSumMoving) *
100}
</InfoWithDelta>
<InfoWithDelta indent name="Caught on fire" decimals={2}>
{(tank.camouflage.onFire * tank.camouflage.still +
camouflageSumStill) *
100}
</InfoWithDelta>
<Info name="Size" unit="m">
{size[0].toFixed(2)} x {size[2].toFixed(2)} x {size[1].toFixed(2)}
</Info>
</Flex>
<Flex direction="column" gap="2">
<Heading size="5">Crew training</Heading>
{tank.crew.map((member) => {
const count = member.count ?? 1;
return (
<>
<InfoWithDelta
key={`${member.type}-root`}
name={`${CREW_MEMBER_NAMES[member.type]}${count > 1 ? ` x ${count}` : ''}`}
unit="%"
decimals={0}
>
{(member.type === 'commander'
? commanderMastery
: crewMemberMastery) * 100}
</InfoWithDelta>
{member.substitute && (
<Info
key={`${member.type}-substitute`}
indent
name={
<>
<Flex align="center" gap="1">
<AccessibilityIcon />
{member.substitute
.map((sub, index) =>
index === 0 ? CREW_MEMBER_NAMES[sub] : sub,
)
.join(', ')}
</Flex>
</>
}
/>
)}
</>
);
})}
</Flex>
</Flex>
);
}
Loaded 100 of 326 files, more files were not shown because too many files have changed in this diff. Show more