[wesnoth-commits] [wesnoth/wesnoth] 116de9: Move the Lua global variable helpers from WC to a ...

Celtic Minstrel noreply at github.com
Tue May 11 04:25:29 UTC 2021


  Branch: refs/heads/lua_reorg
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 116de9cc7d9ad22547ea4702b0b7e3852b90909f
      https://github.com/wesnoth/wesnoth/commit/116de9cc7d9ad22547ea4702b0b7e3852b90909f
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M data/campaigns/World_Conquest/lua/game_mechanics/utils.lua
    M data/lua/core/wml.lua

  Log Message:
  -----------
  Move the Lua global variable helpers from WC to a new "experimental" module


  Commit: 2b14a8ca548dfa7ced367e5bacf66964bd69019d
      https://github.com/wesnoth/wesnoth/commit/2b14a8ca548dfa7ced367e5bacf66964bd69019d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M data/lua/core/sides.lua
    M data/test/scenarios/test_create_side.cfg
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Move wesnoth.create_side -> wesnoth.sides.create


  Commit: 8fcbe6b00b64dcf2d88818b452c6de7c2559d2d1
      https://github.com/wesnoth/wesnoth/commit/8fcbe6b00b64dcf2d88818b452c6de7c2559d2d1
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-11 (Tue, 11 May 2021)

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

  Log Message:
  -----------
  Move the deprecation for wesnoth.modify_ai to Lua so that it honours --strict-lua


  Commit: 7103d1f8316e91ef187389e08fb3c22b26114a9a
      https://github.com/wesnoth/wesnoth/commit/7103d1f8316e91ef187389e08fb3c22b26114a9a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-11 (Tue, 11 May 2021)

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

  Log Message:
  -----------
  Move some more functions to the wml module

- eval_conditional and fire
- the internal set|get_variable functions


  Commit: 950258436d3730dd7c8ea00e5396f922a7af4b8b
      https://github.com/wesnoth/wesnoth/commit/950258436d3730dd7c8ea00e5396f922a7af4b8b
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M data/ai/micro_ais/cas/ca_hang_out.lua
    M data/campaigns/Northern_Rebirth/lua/respawn_utils.lua
    M data/lua/wml-flow.lua
    M data/lua/wml/message.lua
    M data/lua/wml/objectives.lua
    M data/lua/wml/test_condition.lua

  Log Message:
  -----------
  Update uses of eval_conditional


  Commit: 1ad7508e75afb0dc29e1f83cdfba4311f29d06b2
      https://github.com/wesnoth/wesnoth/commit/1ad7508e75afb0dc29e1f83cdfba4311f29d06b2
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M data/campaigns/Eastern_Invasion/lua/bandits.lua
    M data/lua/core/wml.lua
    M data/lua/helper.lua
    M data/lua/wml/message.lua
    M data/multiplayer/eras.lua
    M data/scenario-test.cfg

  Log Message:
  -----------
  Update uses of wesnoth.fire


  Commit: 1a0692b96bd3f2be42c2c5559082faec5badc75b
      https://github.com/wesnoth/wesnoth/commit/1a0692b96bd3f2be42c2c5559082faec5badc75b
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M data/campaigns/World_Conquest/lua/map/main.lua
    M data/campaigns/World_Conquest/lua/map/scenario_utils/bonus_points.lua
    M data/lua/core/wml.lua
    M src/scripting/mapgen_lua_kernel.cpp
    M src/scripting/mapgen_lua_kernel.hpp

  Log Message:
  -----------
  Allow accessing variables through the new APIs in the mapgen kernel

This also reverses the deprecation of wml.tovconfig and friends in the mapgen kernel.


  Commit: e2725e65daa451744be33c33ab62a999ca0e2948
      https://github.com/wesnoth/wesnoth/commit/e2725e65daa451744be33c33ab62a999ca0e2948
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-11 (Tue, 11 May 2021)

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

  Log Message:
  -----------
  Add a new scenario module and move some functions there and to game_config

Addresses #4907


  Commit: ab5d30bebf5e54621da6a6bf410c064d44e84cc3
      https://github.com/wesnoth/wesnoth/commit/ab5d30bebf5e54621da6a6bf410c064d44e84cc3
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M data/ai/lua/generic_recruit_engine.lua
    M data/campaigns/World_Conquest/lua/campaign/scenario.lua
    M data/campaigns/World_Conquest/lua/era/era.lua
    M data/campaigns/World_Conquest/lua/game_mechanics/utils.lua
    M data/campaigns/World_Conquest/lua/game_mechanics/wocopedia/help.lua
    M data/lua/wml-tags.lua
    M data/lua/wml/endlevel.lua
    M data/lua/wml/objectives.lua
    M data/multiplayer/eras.lua
    M data/multiplayer/scenarios/2p_Dark_Forecast.lua
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Update mainline content to use the wesnoth.scenario module


  Commit: 2e6bb28d5a65c7888bef382007d0de82cdb53d71
      https://github.com/wesnoth/wesnoth/commit/2e6bb28d5a65c7888bef382007d0de82cdb53d71
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    A data/lua/core/filesystem.lua
    M data/lua/package.lua
    M src/filesystem.cpp
    M src/filesystem.hpp
    M src/gui/dialogs/game_load.cpp
    M src/save_index.cpp
    M src/scripting/lua_fileops.cpp
    M src/scripting/lua_fileops.hpp
    M src/scripting/lua_kernel_base.cpp
    M src/tests/test_filesystem.cpp

  Log Message:
  -----------
  Add a filesystem module

This currently contains have_file, read_file, canonical_path, get_image_size, and new functions that work with binary_path files.


  Commit: 0bebe77e5547f711c018b1e68f5d8ee195d5ec30
      https://github.com/wesnoth/wesnoth/commit/0bebe77e5547f711c018b1e68f5d8ee195d5ec30
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M data/campaigns/World_Conquest/lua/game_mechanics/heroes.lua
    M data/campaigns/World_Conquest/lua/map/settings/settings_dialog.lua
    M data/campaigns/World_Conquest/lua/map/tools/filter_converter.lua
    M data/campaigns/World_Conquest/lua/map/wct_map_generator.lua
    M data/lua/wml-tags.lua
    M data/multiplayer/scenarios/2p_Dark_Forecast.lua
    M data/scenario-test.cfg

  Log Message:
  -----------
  Update mainline uses of have_file and read_file


  Commit: e53356bd8882f24b1c0052903504a719df6db575
      https://github.com/wesnoth/wesnoth/commit/e53356bd8882f24b1c0052903504a719df6db575
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M data/lua/wml-tags.lua
    M data/test/_main.cfg
    A data/test/maps/test_hills_square.mask
    M data/test/scenarios/test_terrain_mask.cfg

  Log Message:
  -----------
  Resolve [terrain_mask]mask_file= relative to the [binary_path] like map_file= is


  Commit: a4fb6fe27da0ffea9212c7589992ff7f1ec6cdd0
      https://github.com/wesnoth/wesnoth/commit/a4fb6fe27da0ffea9212c7589992ff7f1ec6cdd0
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M data/lua/core/interface.lua
    M data/lua/core/mathx.lua
    M data/lua/core/sides.lua
    M data/lua/core/wml.lua
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_audio.cpp
    M src/scripting/lua_unit_attacks.cpp
    M src/scripting/mapgen_lua_kernel.cpp
    M src/soundsource.hpp

  Log Message:
  -----------
  whitespace fixes


Compare: https://github.com/wesnoth/wesnoth/compare/0ca00c48e9c5...a4fb6fe27da0



More information about the Commits mailing list