forge_api_unsupported

CompileSeen in: The editor, Charts, Runs

What happened

A file declares the Forge API level it was written for with a FORGE_API line. When the engine that runs it does not support that level, the script is refused before it runs.

What to do

Set FORGE_API to a level the engine supports. The supported levels are listed on Versions and the Forge API.

Example

json
{
  "request_id": "7d2b1c44-95a0-4e3b-8a6f-1c0d9e2f5a37",
  "ok": false,
  "error": {
    "code": "forge_api_unsupported",
    "message": "The script targets a Forge API level this engine does not support.",
    "detail": {}
  }
}

Ask about this in the forum