[Commits] [wesnoth/wesnoth] 6000d6: Add a second version of luaW_type_error

GitHub noreply at github.com
Wed May 10 22:57:14 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 6000d644d86d17d1335df302ca7e215097a989bb
      https://github.com/wesnoth/wesnoth/commit/6000d644d86d17d1335df302ca7e215097a989bb
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_common.cpp
    M src/scripting/lua_common.hpp

  Log Message:
  -----------
  Add a second version of luaW_type_error

This can make some Lua error messages more helpful.
Unfortunately it's rather difficult to deploy, as most
calls to luaW_type_error are within "check" functions,
where the info needed for the new version is unknown.


  Commit: 37f1c490a5ffcc4c64a020d62a6aa042ea9b416d
      https://github.com/wesnoth/wesnoth/commit/37f1c490a5ffcc4c64a020d62a6aa042ea9b416d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M data/ai/lua/ai_helper.lua
    M data/lua/cave_map_generator.lua
    M data/lua/package.lua
    M data/lua/wml-tags.lua

  Log Message:
  -----------
  Lua: Use the second argument to error() where appropriate


  Commit: 9b635994e18d3438dcc37fe5acc7c89174ec4b38
      https://github.com/wesnoth/wesnoth/commit/9b635994e18d3438dcc37fe5acc7c89174ec4b38
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M data/ai/lua/ai_helper.lua
    M data/ai/micro_ais/cas/ca_bottleneck_move.lua
    M data/lua/location_set.lua

  Log Message:
  -----------
  Add location_set.(of|to)_triples (migrated from ai_helper)


  Commit: a98a9a74db89e9063264490cde2b318a10e11785
      https://github.com/wesnoth/wesnoth/commit/a98a9a74db89e9063264490cde2b318a10e11785
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M data/lua/helper.lua

  Log Message:
  -----------
  Deprecate helper.distance_between and implement helper.adjacent_tiles in
terms of wesnoth.map.get_adjacent_tiles


  Commit: 2f0a6d13e4e3bfe931cdb3d3d341d903507ddca4
      https://github.com/wesnoth/wesnoth/commit/2f0a6d13e4e3bfe931cdb3d3d341d903507ddca4
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M data/lua/wml/animate_unit.lua
    M data/scenario-test.cfg

  Log Message:
  -----------
  Make [animate_unit] without flag an error (fixes #1678)


  Commit: 1623efb66c2a94623aa763e7eddc9ce220675d8c
      https://github.com/wesnoth/wesnoth/commit/1623efb66c2a94623aa763e7eddc9ce220675d8c
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M src/units/abilities.cpp
    M src/units/unit.hpp

  Log Message:
  -----------
  Add more documentation to the unit class and use Doxygen groups.


  Commit: b04894fbf3a4e2958ed3ec445024a8b77d3b55d4
      https://github.com/wesnoth/wesnoth/commit/b04894fbf3a4e2958ed3ec445024a8b77d3b55d4
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M src/units/unit.hpp

  Log Message:
  -----------
  Use perfect forwarding for unit::add_attack


  Commit: 6846506860b98ae790dd1368a7c10b0adb3392a4
      https://github.com/wesnoth/wesnoth/commit/6846506860b98ae790dd1368a7c10b0adb3392a4
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M src/scripting/lua_unit.cpp
    M src/units/animation.cpp
    M src/units/animation.hpp
    M src/units/animation_component.cpp
    M src/units/animation_component.hpp

  Log Message:
  -----------
  Lua Units: Add animations key which returns a list of animations defined
Note: It returns only the flags (for use in [animate_unit], not the full animation.)


  Commit: f6c04e7dd17e66600d8eafcc36c3f9abaff9d908
      https://github.com/wesnoth/wesnoth/commit/f6c04e7dd17e66600d8eafcc36c3f9abaff9d908
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M data/ai/lua/ai_helper.lua
    A data/lua/functional.lua

  Log Message:
  -----------
  Add functional.lua which implements higher-order functions

This covers all the main higher-order functions included in WFL, except zip.
The two already implemented in ai_helper have been replaced with redirection stubs.


  Commit: 0539a68eb4f6e5b69fbe9a298a0a03e87d81e56a
      https://github.com/wesnoth/wesnoth/commit/0539a68eb4f6e5b69fbe9a298a0a03e87d81e56a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M data/ai/lua/ai_helper.lua
    M data/ai/micro_ais/cas/ca_herding_sheep_move.lua
    M data/lua/location_set.lua

  Log Message:
  -----------
  Migrate ai_helper.LS_random_hex to location_set:random


  Commit: 396de6721130db19a10ff3a9b9aa8de04a52c752
      https://github.com/wesnoth/wesnoth/commit/396de6721130db19a10ff3a9b9aa8de04a52c752
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M src/scripting/lua_common.cpp

  Log Message:
  -----------
  Lua: Allow using the length operator on translatable strings


  Commit: 0ac01c762250b8bbec3b3d40554cbfbd64e627c5
      https://github.com/wesnoth/wesnoth/commit/0ac01c762250b8bbec3b3d40554cbfbd64e627c5
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M data/lua/wml/set_variable.lua

  Log Message:
  -----------
  Fix [set_variable][join] not working with translatable strings (fixes #1682)


Compare: https://github.com/wesnoth/wesnoth/compare/e0f8b522043d...0ac01c762250


More information about the Commits mailing list