diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index b2d8fc82f..c0efb42b9 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -31,6 +31,9 @@ env: STEAM_OS: windows STEAM_FINGERPRINT: Manifest_UFSFiles_Win64.txt + # debug + DOTNET_EnableDiagnostics: 1 + jobs: build: name: Build chunk ${{ matrix.chunk }} @@ -75,11 +78,9 @@ jobs: - name: Download Steam game run: scripts/download_game.sh - - run: | - dotnet --info - dotnet --list-runtimes - bun --version - node --version + - name: Enable core dumps + run: | + ulimit -c unlimited - name: Build run: bun run build-website diff --git a/packages/website-ue/src/game/game.ts b/packages/website-ue/src/game/game.ts index 163f8c0ab..dae67e6c0 100644 --- a/packages/website-ue/src/game/game.ts +++ b/packages/website-ue/src/game/game.ts @@ -7,14 +7,20 @@ import { assertDiscoveryTag } from "./assertDiscoveryTag"; let _game: GameInterface | null = null; if (!clientUnmounted && import.meta.env.SSR) { + console.log("Pre-import"); + const { GameInterface } = await import("@blitzkit/game"); + console.log("Pre-creation"); + _game = new GameInterface( assertSecret(import.meta.env.PUBLIC_WOTB_CLIENT), assertSecret(import.meta.env.WOTB_USMAP), "../../temp", ); + console.log("Pre-tags"); + const tankTags: string[] = []; for (const item of api.metadata.group("TankEntity")) { @@ -24,7 +30,11 @@ if (!clientUnmounted && import.meta.env.SSR) { tankTags.push(tag); } + console.log("Pre-discovery"); + _game.discoverTextures(tankTags); + + console.log("Post-discovery"); } export const game = _game;