[wesnoth-commits] [wesnoth/wesnoth] 618d0a: Implement validation of the core game config WML

GitHub noreply at github.com
Mon Mar 12 04:40:13 UTC 2018


  Branch: refs/heads/schema
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 618d0a4c4181dbd6961da473a8d8c5384b9b4609
      https://github.com/wesnoth/wesnoth/commit/618d0a4c4181dbd6961da473a8d8c5384b9b4609
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-12 (Mon, 12 Mar 2018)

  Changed paths:
    R data/schema-gui.cfg
    R data/schema.cfg
    A data/schema/core/actionwml.cfg
    A data/schema/core/addons.cfg
    A data/schema/core/ai.cfg
    A data/schema/core/conditionalwml.cfg
    A data/schema/core/config.cfg
    A data/schema/core/help.cfg
    A data/schema/core/themes.cfg
    A data/schema/editor/groups.cfg
    A data/schema/editor/misc.cfg
    A data/schema/editor/times.cfg
    A data/schema/filters/_initial.cfg
    A data/schema/filters/base_value.cfg
    A data/schema/filters/location.cfg
    A data/schema/filters/side.cfg
    A data/schema/filters/unit.cfg
    A data/schema/filters/weapon.cfg
    A data/schema/game_config.cfg
    A data/schema/macros.cfg
    A data/schema/terrain/graphics.cfg
    A data/schema/terrain/types.cfg
    A data/schema/types/basic.cfg
    A data/schema/types/formula.cfg
    A data/schema/types/lists.cfg
    A data/schema/types/progressive.cfg
    A data/schema/units/_main.cfg
    A data/schema/units/abilities.cfg
    A data/schema/units/animations.cfg
    A data/schema/units/modifications.cfg
    A data/schema/units/movetypes.cfg
    A data/schema/units/races.cfg
    A data/schema/units/single.cfg
    A data/schema/units/specials.cfg
    A data/schema/units/types.cfg
    M src/commandline_options.cpp
    M src/commandline_options.hpp
    M src/config_cache.cpp
    M src/config_cache.hpp
    M src/game_config_manager.cpp
    M src/serialization/schema_validator.cpp
    M src/serialization/schema_validator.hpp
    M src/serialization/tag.cpp
    M src/serialization/tag.hpp

  Log Message:
  -----------
  Implement validation of the core game config WML
Currently this is disabled by default
Use --validate command-line argument to enable

The following new features were added in the schema format:
* Union, intersection, and list types
* Keys can specify a union of known types on-the-fly
* Key and tag names can include wildcards (* and ?, glob-style)
* Tags support any_key=yes, which means unrecognized subtags will be ignored
* Tags and keys support deprecated=yes (unimplemented)
* Specify max=infinite instead of max=-1


  Commit: 1821fac99cfedd8c5547eb7ec845a89839a1b2f4
      https://github.com/wesnoth/wesnoth/commit/1821fac99cfedd8c5547eb7ec845a89839a1b2f4
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-12 (Mon, 12 Mar 2018)

  Changed paths:
    M data/schema/core/addons.cfg

  Log Message:
  -----------
  Address some feedback


  Commit: 69f937cb8c04d7551be478e05b1771bb8f12ae9a
      https://github.com/wesnoth/wesnoth/commit/69f937cb8c04d7551be478e05b1771bb8f12ae9a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-12 (Mon, 12 Mar 2018)

  Changed paths:
    M data/schema/core/config.cfg
    M data/schema/game_config.cfg
    M data/schema/terrain/graphics.cfg

  Log Message:
  -----------
  Address a few TODO notes


  Commit: 0bd30de98c5e880c1e592b6820ae13c65584b008
      https://github.com/wesnoth/wesnoth/commit/0bd30de98c5e880c1e592b6820ae13c65584b008
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-12 (Mon, 12 Mar 2018)

  Changed paths:
    R data/gui/schema.cfg
    A data/schema/gui.cfg
    M src/gui/gui.cpp

  Log Message:
  -----------
  Move GUI2 schema into the schema directory


  Commit: 69e3cde910052ac73427acab9459a7aa55a46dc6
      https://github.com/wesnoth/wesnoth/commit/69e3cde910052ac73427acab9459a7aa55a46dc6
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-12 (Mon, 12 Mar 2018)

  Changed paths:
    M data/schema/game_config.cfg
    M data/schema/gui.cfg
    M data/schema/types/basic.cfg
    M data/schema/types/formula.cfg
    M src/serialization/tag.cpp

  Log Message:
  -----------
  Get game config and schema to use some common types

This also fixes an invalid type issue in the GUI2 schema,
and allows types to be a direct alias for other types.


  Commit: 8f5275d550d201d86b842c213420baa98cdbafef
      https://github.com/wesnoth/wesnoth/commit/8f5275d550d201d86b842c213420baa98cdbafef
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-12 (Mon, 12 Mar 2018)

  Changed paths:
    M data/schema/gui.cfg
    M src/serialization/schema_validator.cpp
    M src/serialization/schema_validator.hpp
    M src/serialization/tag.cpp
    M src/serialization/tag.hpp

  Log Message:
  -----------
  Enable nesting of [type] tags
Minor cleanup of GUI2 type definitions
Disallow stuff like border=top,all


  Commit: d99b625c4f2660c66586d235982095598c005fff
      https://github.com/wesnoth/wesnoth/commit/d99b625c4f2660c66586d235982095598c005fff
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-12 (Mon, 12 Mar 2018)

  Changed paths:
    M src/serialization/tag.hpp

  Log Message:
  -----------
  Super-rudimentary documentation...


Compare: https://github.com/wesnoth/wesnoth/compare/339059f4bae8...d99b625c4f26


More information about the Commits mailing list