Skip to content

Fix first-run crash when assets config fields are missing#186

Open
michaelfcs25 wants to merge 1 commit intopjasicek:masterfrom
michaelfcs25:fix/first-run-assets-config
Open

Fix first-run crash when assets config fields are missing#186
michaelfcs25 wants to merge 1 commit intopjasicek:masterfrom
michaelfcs25:fix/first-run-assets-config

Conversation

@michaelfcs25
Copy link

Summary

Fixes a first-run startup crash caused by strict parsing of missing Assets fields in config.xml.

What changed

  • Added missing default Assets entries in generated config:
    • AssetsFolder
    • CustomArchive (ASSETS.ZIP)
  • Replaced hard DO_AND_CHECK aborts for these Assets fields with safe fallbacks + warnings:
    • RezArchive
    • CustomArchive
    • ResourceCacheSize
    • SavesFile

Why

On first run (or with incomplete config), missing Assets keys could trigger DO_AND_CHECK and abort the process.
Now the game keeps running using defaults and logs warnings instead.

Scope

  • File changed: OpenClaw/Engine/GameApp/BaseGameApp.cpp
  • No gameplay logic changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant