[wesnoth-commits] [wesnoth/wesnoth] 3d1de0: Implement validation of the core game config WML

GitHub noreply at github.com
Sun Mar 11 23:33:38 UTC 2018


  Branch: refs/heads/schema
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 3d1de07ca7355fe33a49636cd1ac007d56a18a66
      https://github.com/wesnoth/wesnoth/commit/3d1de07ca7355fe33a49636cd1ac007d56a18a66
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-11 (Sun, 11 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: 28297c088be33f4374c5fc8e05ba0618821a0177
      https://github.com/wesnoth/wesnoth/commit/28297c088be33f4374c5fc8e05ba0618821a0177
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-11 (Sun, 11 Mar 2018)

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

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


  Commit: 8128614bb6d13ceb0ba71c19b6dd9ced691cf402
      https://github.com/wesnoth/wesnoth/commit/8128614bb6d13ceb0ba71c19b6dd9ced691cf402
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-11 (Sun, 11 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: 19cdacfb6f3f147bbb3ddbc7da7cd1ccc6d52254
      https://github.com/wesnoth/wesnoth/commit/19cdacfb6f3f147bbb3ddbc7da7cd1ccc6d52254
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-11 (Sun, 11 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: d4eeef0d416d7b9c1cc12e4c65e95e263e513c98
      https://github.com/wesnoth/wesnoth/commit/d4eeef0d416d7b9c1cc12e4c65e95e263e513c98
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-11 (Sun, 11 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: 79c7c29d221ddc9c1fe6ae7635847fa99af41203
      https://github.com/wesnoth/wesnoth/commit/79c7c29d221ddc9c1fe6ae7635847fa99af41203
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-11 (Sun, 11 Mar 2018)

  Changed paths:
    M src/commandline_options.cpp
    M src/wesnoth.cpp

  Log Message:
  -----------
  Make --report imply --wconsole on Windows


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

  Changed paths:
    M src/build_info.cpp

  Log Message:
  -----------
  WIP sanitizing build info to omit username


  Commit: d80f279d223ff48d7ee2885776fd13cc9c796c8f
      https://github.com/wesnoth/wesnoth/commit/d80f279d223ff48d7ee2885776fd13cc9c796c8f
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-11 (Sun, 11 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: b4199b6a1289577a0c12d6f6f2565efb63bb7e42
      https://github.com/wesnoth/wesnoth/commit/b4199b6a1289577a0c12d6f6f2565efb63bb7e42
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-11 (Sun, 11 Mar 2018)

  Changed paths:
    M src/serialization/tag.hpp

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


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

  Changed paths:
    M changelog
    M src/units/attack_type.cpp

  Log Message:
  -----------
  Add set_range in [effect]apply_to=attack


Compare: https://github.com/wesnoth/wesnoth/compare/615388792fb6...63ae3576becf


More information about the Commits mailing list