[wesnoth-commits] [wesnoth/wesnoth] 2a1fc4: Add a versions userdata for a cleaner way to compa...

Celtic Minstrel noreply at github.com
Tue May 11 18:52:49 UTC 2021


  Branch: refs/heads/lua_reorg
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 2a1fc43860e9e3062f240e9394a993f62e7d3da8
      https://github.com/wesnoth/wesnoth/commit/2a1fc43860e9e3062f240e9394a993f62e7d3da8
  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 userdata for a cleaner way to compare and manipulate game versions


  Commit: dddd551765834ae0133f5fa85718bf73dd71ac23
      https://github.com/wesnoth/wesnoth/commit/dddd551765834ae0133f5fa85718bf73dd71ac23
  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: 6e9826cfcdb5e841c30cf900596268f4bcdc5df4
      https://github.com/wesnoth/wesnoth/commit/6e9826cfcdb5e841c30cf900596268f4bcdc5df4
  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: 7b2ceb863cf146eadf144db5aae66af40f21937b
      https://github.com/wesnoth/wesnoth/commit/7b2ceb863cf146eadf144db5aae66af40f21937b
  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: ea5367de17c9ea4d491e45e802a170a6fba75d5c
      https://github.com/wesnoth/wesnoth/commit/ea5367de17c9ea4d491e45e802a170a6fba75d5c
  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: c88e60b98e9eef0b06ad3344297fac224a61193c
      https://github.com/wesnoth/wesnoth/commit/c88e60b98e9eef0b06ad3344297fac224a61193c
  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: e7ec2fbca2bd9efdc1d0308b7d3df66882817c12
      https://github.com/wesnoth/wesnoth/commit/e7ec2fbca2bd9efdc1d0308b7d3df66882817c12
  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: f4d528f6164d1905b2550700623808658c0c6adb
      https://github.com/wesnoth/wesnoth/commit/f4d528f6164d1905b2550700623808658c0c6adb
  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: 1205e3fd254a6f3b728f6cbdd9a744362c8764b7
      https://github.com/wesnoth/wesnoth/commit/1205e3fd254a6f3b728f6cbdd9a744362c8764b7
  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: 9bf189a6151c7a8aba24de8807a35b5e8910a7b4
      https://github.com/wesnoth/wesnoth/commit/9bf189a6151c7a8aba24de8807a35b5e8910a7b4
  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: 603ecdfb99f3a37b2d78583be6d57ebb7d5465bd
      https://github.com/wesnoth/wesnoth/commit/603ecdfb99f3a37b2d78583be6d57ebb7d5465bd
  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: 2ea92baa1331de2725683a9ae84fea765408b68a
      https://github.com/wesnoth/wesnoth/commit/2ea92baa1331de2725683a9ae84fea765408b68a
  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: e8381ea9daa249b886f5311ded184e0cc69e0337
      https://github.com/wesnoth/wesnoth/commit/e8381ea9daa249b886f5311ded184e0cc69e0337
  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: 05b0b7a1df97288c3f816a9348c7ee68b954c853
      https://github.com/wesnoth/wesnoth/commit/05b0b7a1df97288c3f816a9348c7ee68b954c853
  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: 1410b5cef9e3b7cc66a0e612fcf28ef736d17079
      https://github.com/wesnoth/wesnoth/commit/1410b5cef9e3b7cc66a0e612fcf28ef736d17079
  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: 97a96cbbd15ccf76c1444f81b444f82ac2ecd724
      https://github.com/wesnoth/wesnoth/commit/97a96cbbd15ccf76c1444f81b444f82ac2ecd724
  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: bf746a0207420413e1c75a8f487e99c7c5cdee7f
      https://github.com/wesnoth/wesnoth/commit/bf746a0207420413e1c75a8f487e99c7c5cdee7f
  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: 45cb8dc428e99b052d2b6adeb146a1e6fded54bb
      https://github.com/wesnoth/wesnoth/commit/45cb8dc428e99b052d2b6adeb146a1e6fded54bb
  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: ccb9f4f0e9696a491907c8a8016e6b416a58cbfe
      https://github.com/wesnoth/wesnoth/commit/ccb9f4f0e9696a491907c8a8016e6b416a58cbfe
  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: 574bc1a36ebb4d3c110e7a0df68bb4bca09e413d
      https://github.com/wesnoth/wesnoth/commit/574bc1a36ebb4d3c110e7a0df68bb4bca09e413d
  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: 09708809109ba2c1db20075ed339ece887839c35
      https://github.com/wesnoth/wesnoth/commit/09708809109ba2c1db20075ed339ece887839c35
  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/1dccc3ad7629...09708809109b



More information about the Commits mailing list