v0.13.7
errors and warnings / manifest

errors and warnings / manifest / E4401

E4401 error

World profile does not match its schema (unknown part, wrong type, a key that is no ID, a UI scale off the game's slider, a character's level outside the flavors' range, a powers key that is no power token, a faction that is not the race's, a race and class no flavor pairs)

area
manifest (x4xxx)
fails the build
yes

A world profile does not match its schema: an unknown part (the emulated world would ignore it), a part of the wrong type, or a key that should be an ID but is not (parts such as items and spells are keyed by IDs). Fields of a part beyond the schema's are allowed and passed on as they are. Two values are checked against the game too: screen.uiScale is a value of the game's UI Scale slider (0.65 to 1.15 in steps of 0.01), the character's level is 1 to the max level of the package's flavors (60 on camelot), and a unit's faction is its race's: an Orc is of the Horde, and only a race of either faction (the Pandaren, the Skyborne) takes the one given. A unit's race and class are a pair the game has in one of the package's flavors: a Classic Era Orc can't be a priest.

Fix the part's name or value. An editor completes the parts when the profile names schema/world-profile-0.1.json in $schema.

Example

× failstests/profiles/rich.jsonjson
{ "monies": 123456 }
✓ compilestests/profiles/rich.jsonjson
{ "money": 123456 }

The compiler reports it like this:

error[E4401]: unknown key `monies` at the top level
  ┌─ tests/profiles/rich.json:1:3
  │
1 │ { "monies": 123456 }
  │   ^^^^^^^^ unknown key
  │
  = help: did you mean `money`?
codemessage
E4400World profile is not valid JSON, or not a JSON object
E4402test.profile or a test file's config({ profile }) names no world profile of the package

Offline

terminal
$ wowlua explain E4401
E4401 (error): World profile does not match its schema (unknown part, wrong type, a key that is no ID, a UI scale off the game's slider, a character's level outside the flavors' range, a powers key that is no power token, a faction that is not the race's, a race and class no flavor pairs)

source on GitHub ↗