Skip to content

Error reading schemas not defined in schema.min.json (dat file with no fields) #44

@zaafar

Description

@zaafar

There are some Enums in the schema.min.json with no values e.g.

enum AchievementSets @indexing(first: 0) { _ }

These are different from enums that have values e.g.

enum ActiveSkillTargetTypes @indexing(first: 1) {
  TARGETABLE_GROUND
  ENEMY
  WALKABLE_GROUND
  ANYWHERE_SELF_TARGET
  ITEM
  CORPSE
  _
  NO_LINE_OF_SIGHT
  BEHIND_MONSTER
  SELF_ORIGIN
  ROTATE_TO_TARGET
}

Libggpk2 crashes on these undefined enums as shown below.

image

It would be good if Libggpk2 don't crash on them and just consider them as integer starting from what's given in bracket i.e. (first: 1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDat FileProblem handling .dat files in Bundles2/DataWon't FixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions