[wesnoth-commits] [wesnoth/wesnoth] a87d1a: Add stack traces on Lua warnings

Celtic Minstrel noreply at github.com
Wed Feb 17 18:38:22 UTC 2021


  Branch: refs/heads/lua_gamemap
  Home:   https://github.com/wesnoth/wesnoth
  Commit: a87d1a074b58840247b33845fa6c2d05203eca03
      https://github.com/wesnoth/wesnoth/commit/a87d1a074b58840247b33845fa6c2d05203eca03
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-02-16 (Tue, 16 Feb 2021)

  Changed paths:
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Add stack traces on Lua warnings

This means that any deprecation message triggered from Lua now explains exactly where it triggered.

The message still triggers only once, so you would need multiple passes to fix every case, but it seems like an improvement.


  Commit: 51abfbec79e4664943843aa06dcbd423a39f51f5
      https://github.com/wesnoth/wesnoth/commit/51abfbec79e4664943843aa06dcbd423a39f51f5
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-02-16 (Tue, 16 Feb 2021)

  Changed paths:
    M data/lua/core.lua
    M doc/man/wesnoth.6
    M src/commandline_options.cpp
    M src/commandline_options.hpp
    M src/game_config.cpp
    M src/game_config.hpp
    M src/scripting/lua_kernel_base.cpp
    M src/wesnoth.cpp

  Log Message:
  -----------
  Add a command-line option that makes deprecated Lua stuff evaporate


  Commit: 46a7a1f8831f7f659be5e796b0fbea82d4f92999
      https://github.com/wesnoth/wesnoth/commit/46a7a1f8831f7f659be5e796b0fbea82d4f92999
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M src/scripting/lua_terrainmap.cpp

  Log Message:
  -----------
  Restore the optional replace_if_failed argument on set_terrain


  Commit: cb7a61993fe236f14cac5ca097152b36a01383c4
      https://github.com/wesnoth/wesnoth/commit/cb7a61993fe236f14cac5ca097152b36a01383c4
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M src/scripting/lua_kernel_base.cpp
    M src/scripting/lua_map_location_ops.cpp
    M src/scripting/lua_map_location_ops.hpp

  Log Message:
  -----------
  Add wesnoth.map.get_tiles_in_radius


  Commit: 6f5d14ab1f9eb1ebaa9f4bd91527ec69755be8df
      https://github.com/wesnoth/wesnoth/commit/6f5d14ab1f9eb1ebaa9f4bd91527ec69755be8df
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M src/scripting/lua_terrainmap.cpp

  Log Message:
  -----------
  Add on_board method to map userdata


  Commit: c50b03c8edcce56ba2897ecef4bdbbad196d6289
      https://github.com/wesnoth/wesnoth/commit/c50b03c8edcce56ba2897ecef4bdbbad196d6289
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M data/lua/core.lua
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Rename wesnoth.map.get_locations -> wesnoth.map.find_locations

Also rename get_hexes -> find_hexes

This is more consistent with the terminology in the units and side modules, where find takes a filter and returns a list but get takes a unique identifier and returns a single element.


Compare: https://github.com/wesnoth/wesnoth/compare/49d03821e383...c50b03c8edcc



More information about the Commits mailing list