setup.bat to generate synthetic test content and import it into the Unreal project chunks. Then run package_project_for_upload.bat to build and package the project. The output appears in {ProjectDir}/Saved/StagedBuilds/Android_ASTC/.| File / Directory | What it demonstrates | Key concepts |
|---|---|---|
setup.bat | One-time project setup | Keystore generation, synthetic content creation, automated import |
package_project_for_upload.bat | Build and package automation | Incremental store version updates, BuildCookRun invocation |
upload_package.bat | Upload to Meta Horizon | APK + OBB extraction, required/optional file configuration |
scripts/GenBigBmp.ps1 | Large file generation | Creating incompressible 16384x16384 24-bit BMP files (~768 MB) |
scripts/import_bmps.py | Chunk population | Importing assets to specific Unreal content paths |
Content/Chunk100/ | Chunk 100 assets | Primary Asset Label-based chunk assignment |
Content/Chunk200/ | Chunk 200 assets | Secondary chunk with isolated content |
Config/DefaultEngine.ini | OBB packaging settings | Force small OBBs, enable patch and overflow OBBs |
Config/DefaultGame.ini | Chunk generation settings | Enable chunk generation, IoStore, and pak files |
bPackageDataInsideApk=False bForceSmallOBBFiles=True bAllowPatchOBBFile=True bAllowOverflowOBBFiles=True
bForceSmallOBBFiles=True forces Unreal to split content into smaller OBB files. bAllowPatchOBBFile=True and bAllowOverflowOBBFiles=True enable additional OBB types for overflow content.Content/Chunk100/ and Content/Chunk200/. The scripts/import_bmps.py script imports synthetic BMP files into the correct chunk directories, ensuring each chunk contains approximately 2.3 GB of content. Chunk generation is enabled in Config/DefaultGame.ini with bGenerateChunks=True.scripts/GenUploadConfigJSON.ps1 script generates a JSON configuration that marks files as required or optional:Get-ChildItem -Path $InputDir -File | ForEach-Object {
$jsonObj[$_.Name] = [ordered]@{ required = $true }
}
ovr-platform-util.exe via the --asset_files_config parameter.scripts/GenBigBmp.ps1 script creates incompressible test files using cryptographically random pixel data. Each BMP is 16384x16384 pixels at 24-bit color depth (~768 MB per file), ensuring OBB files remain large even after compression.