[wesnoth-commits] [wesnoth/wesnoth] bfbcc1: Add a versions module

Celtic Minstrel noreply at github.com
Tue May 11 04:22:45 UTC 2021


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

  Changed paths:
    M data/lua/core/_initial.lua
    A data/test/scenarios/test_lua_version_api.cfg
    M src/game_version.hpp
    M src/scripting/lua_kernel_base.cpp
    M wml_test_schedule

  Log Message:
  -----------
  Add a versions module


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

  Changed paths:
    M data/lua/core/_initial.lua
    A data/lua/core/audio.lua
    M projectfiles/Xcode/The Battle for Wesnoth.xcodeproj/project.pbxproj
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp
    M src/scripting/lua_audio.cpp
    M src/soundsource.cpp
    M src/soundsource.hpp

  Log Message:
  -----------
  Add an audio module


  Commit: cca567949a477c5576c7761bee278b035781d220
      https://github.com/wesnoth/wesnoth/commit/cca567949a477c5576c7761bee278b035781d220
  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/campaign/scenario.lua
    M data/campaigns/World_Conquest/lua/optional_mechanics/destruction.lua
    M data/lua/wml-tags.lua
    M data/lua/wml/harm_unit.lua
    M data/lua/wml/message.lua

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


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

  Changed paths:
    M data/lua/core/gui.lua
    M data/lua/wml-tags.lua
    M src/help/help.cpp
    M src/help/help.hpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_gui2.cpp

  Log Message:
  -----------
  Move open_help to the gui module (as show_help)

This also exposes it in kernels besides the game kernel.


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

  Changed paths:
    M data/lua/core/units.lua
    M data/lua/wml/animate_unit.lua
    M data/lua/wml/heal_unit.lua
    M data/lua/wml/kill.lua
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_unit_attacks.cpp
    M src/scripting/lua_unit_attacks.hpp

  Log Message:
  -----------
  Move create_animator and create_weapon into the units module


  Commit: ac65c66baead4488d5e4b766636acec2837c222f
      https://github.com/wesnoth/wesnoth/commit/ac65c66baead4488d5e4b766636acec2837c222f
  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/wml-tags.lua
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Now color_adjust takes three arguments instead of a config

Consider it part of the public API now.


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

  Changed paths:
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Deprecate wesnoth.game_config.version

There's no point having the same info in two places


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

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

  Log Message:
  -----------
  Make it easier to deprecate Lua attributes in C++ __index metafunctions


  Commit: 2f8b9b11398bc67a7d1a729d1494d135e3a0e112
      https://github.com/wesnoth/wesnoth/commit/2f8b9b11398bc67a7d1a729d1494d135e3a0e112
  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: e6893d84d4df13f5452a86a66eef0c61640b9f12
      https://github.com/wesnoth/wesnoth/commit/e6893d84d4df13f5452a86a66eef0c61640b9f12
  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: 6a089063008ec2d243c76e5eee694d30ee1f6646
      https://github.com/wesnoth/wesnoth/commit/6a089063008ec2d243c76e5eee694d30ee1f6646
  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: f0418c57d553dd77ab2fc74f4fd401e3f668399f
      https://github.com/wesnoth/wesnoth/commit/f0418c57d553dd77ab2fc74f4fd401e3f668399f
  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: cbaab9968c28c74e410c627e5004195ea4b60c29
      https://github.com/wesnoth/wesnoth/commit/cbaab9968c28c74e410c627e5004195ea4b60c29
  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: ff2f14d86476c326afdbcc14d2a6f51f0b46969e
      https://github.com/wesnoth/wesnoth/commit/ff2f14d86476c326afdbcc14d2a6f51f0b46969e
  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: 5d1ff5406e97b16aae17f63bc140de716ba34ffc
      https://github.com/wesnoth/wesnoth/commit/5d1ff5406e97b16aae17f63bc140de716ba34ffc
  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: 83cf48f8a4c1b4016d28e478c5ce3f59a8fc8ade
      https://github.com/wesnoth/wesnoth/commit/83cf48f8a4c1b4016d28e478c5ce3f59a8fc8ade
  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: aa9f832920625f3a4333cc022e3b90d723f8f4fe
      https://github.com/wesnoth/wesnoth/commit/aa9f832920625f3a4333cc022e3b90d723f8f4fe
  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: e9085d7aa5af204635ec41821035ca2239a3027e
      https://github.com/wesnoth/wesnoth/commit/e9085d7aa5af204635ec41821035ca2239a3027e
  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: bfab4c7ba574315ebe14e45127289b7ed0bb31b0
      https://github.com/wesnoth/wesnoth/commit/bfab4c7ba574315ebe14e45127289b7ed0bb31b0
  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: 370effb9ffa42615a66fcfea4ac978273e940dec
      https://github.com/wesnoth/wesnoth/commit/370effb9ffa42615a66fcfea4ac978273e940dec
  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: 6ff0ac54799ec57de9cb5f20504ec96bc971f5dc
      https://github.com/wesnoth/wesnoth/commit/6ff0ac54799ec57de9cb5f20504ec96bc971f5dc
  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/06fe07d46801...6ff0ac54799e



More information about the Commits mailing list