[wesnoth-commits] [wesnoth/wesnoth] a09f88: Start a Lua mathx module to hold round, shuffle, r...

Celtic Minstrel noreply at github.com
Sat May 8 22:06:33 UTC 2021


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

  Changed paths:
    A data/lua/core/mathx.lua
    M data/lua/helper.lua
    M projectfiles/Xcode/The Battle for Wesnoth.xcodeproj/project.pbxproj
    M source_lists/wesnoth
    M src/scripting/lua_kernel_base.cpp
    A src/scripting/lua_mathx.cpp
    A src/scripting/lua_mathx.hpp

  Log Message:
  -----------
  Start a Lua mathx module to hold round, shuffle, random, and a few other things


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

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

  Log Message:
  -----------
  Rename get_time_stamp to ms_since_init

This better reflects what it actually does - it is not and has never been a timestamp.


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

  Changed paths:
    M data/ai/lua/ai_helper.lua
    M data/ai/lua/battle_calcs.lua
    M data/ai/lua/ca_castle_switch.lua
    M data/ai/lua/ca_grab_villages.lua
    M data/ai/lua/ca_move_to_any_enemy.lua
    M data/ai/lua/ca_place_healers.lua
    M data/ai/lua/ca_retreat_injured.lua
    M data/ai/lua/ca_spread_poison.lua
    M data/ai/lua/ca_village_hunt.lua
    M data/ai/lua/generic_recruit_engine.lua
    M data/campaigns/World_Conquest/lua/map/wct_map_generator.lua
    M data/lua/wml/set_variable.lua

  Log Message:
  -----------
  Replace all uses of get_time_stamp -> ms_since_init


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

  Changed paths:
    M data/ai/lua/ai_helper.lua
    M data/ai/lua/battle_calcs.lua
    M data/campaigns/Delfadors_Memoirs/utils/sides.cfg
    M data/campaigns/Descent_Into_Darkness/scenarios/04_Spring_of_Reprisal.cfg
    M data/campaigns/Eastern_Invasion/lua/bandits.lua
    M data/campaigns/Heir_To_The_Throne/scenarios/13_The_Dwarven_Doors.cfg
    M data/campaigns/Son_Of_The_Black_Eye/utils/utils.cfg
    M data/campaigns/The_Hammer_of_Thursagan/lua/spawns.lua
    M data/campaigns/The_Hammer_of_Thursagan/scenarios/05_Fear.cfg
    M data/campaigns/World_Conquest/lua/campaign/enemy.lua
    M data/campaigns/World_Conquest/lua/campaign/enemy_themed.lua
    M data/campaigns/World_Conquest/lua/era/era.lua
    M data/campaigns/World_Conquest/lua/game_mechanics/bonus.lua
    M data/campaigns/World_Conquest/lua/game_mechanics/invest/invest.lua
    M data/campaigns/World_Conquest/lua/game_mechanics/training.lua
    M data/campaigns/World_Conquest/lua/game_mechanics/utils.lua
    M data/campaigns/World_Conquest/lua/map/generator/utilities.lua
    M data/campaigns/World_Conquest/lua/map/main.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/1A_Start.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/2A_Springs.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/2B_Lakes.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/2C_Glaciers.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/2D_Provinces.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/2E_Paradise.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/3A_Savannah.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/3C_Delta.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/3F_Wetland.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/4A_Thermal.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/4B_Volcanic.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/4C_Mines.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/4D_Podzol.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/4E_Wicked.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/4F_Wild.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/6A_Rural.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/6B_Maritime.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/6C_Industrial.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration/6D_Feudal.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration_utils/engine.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration_utils/events.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration_utils/noise.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration_utils/snow.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration_utils/utilities.lua
    M data/campaigns/World_Conquest/lua/map/postgeneration_utils/wild_zones.lua
    M data/campaigns/World_Conquest/lua/map/scenario_utils/bonus_points.lua
    M data/campaigns/World_Conquest/lua/map/scenario_utils/plot.lua
    M data/campaigns/World_Conquest/lua/map/utility.lua
    M data/campaigns/World_Conquest/lua/optional_mechanics/destruction.lua
    M data/lua/cave_map_generator.lua
    M data/lua/core/mathx.lua
    M data/lua/location_set.lua
    M data/lua/wml/random_placement.lua
    M data/lua/wml/set_variable.lua
    M data/modifications/pick_advance/main.lua
    M data/multiplayer/scenarios/2p_Dark_Forecast.lua
    M simulate-lobby-activity.lua

  Log Message:
  -----------
  Update mainline content to use the mathx module


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

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

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


  Commit: 82dcce29197f3a30aa622bff9d74137ae1a1c3f5
      https://github.com/wesnoth/wesnoth/commit/82dcce29197f3a30aa622bff9d74137ae1a1c3f5
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: 3fbc0366763083d084cc38b217b012e0f4c6189f
      https://github.com/wesnoth/wesnoth/commit/3fbc0366763083d084cc38b217b012e0f4c6189f
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: abba6d0beb2408acde2c9acca1444a2064791fa2
      https://github.com/wesnoth/wesnoth/commit/abba6d0beb2408acde2c9acca1444a2064791fa2
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: 1fffe225415bb3b86cfa93110e265b41aff5d842
      https://github.com/wesnoth/wesnoth/commit/1fffe225415bb3b86cfa93110e265b41aff5d842
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: 922c207fd9ae762ea3bf05768fc756eba78feac9
      https://github.com/wesnoth/wesnoth/commit/922c207fd9ae762ea3bf05768fc756eba78feac9
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: 1db00e976f6a53286ba5dba2fdbf495371753cb5
      https://github.com/wesnoth/wesnoth/commit/1db00e976f6a53286ba5dba2fdbf495371753cb5
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: 2ec17b6f74d45417d2bbad868fbf287a489395b4
      https://github.com/wesnoth/wesnoth/commit/2ec17b6f74d45417d2bbad868fbf287a489395b4
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: 6a60b6c527b8b85c17ce29418e529fedf215e304
      https://github.com/wesnoth/wesnoth/commit/6a60b6c527b8b85c17ce29418e529fedf215e304
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: 94e2704434e3c56722cd6607cbae4c8e524f941c
      https://github.com/wesnoth/wesnoth/commit/94e2704434e3c56722cd6607cbae4c8e524f941c
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: 047c451c678554a40eb09a415a7c47b18ec59eff
      https://github.com/wesnoth/wesnoth/commit/047c451c678554a40eb09a415a7c47b18ec59eff
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: 32c99b90bfe6b3d8aa3ac6617a9f9db14f1a1b77
      https://github.com/wesnoth/wesnoth/commit/32c99b90bfe6b3d8aa3ac6617a9f9db14f1a1b77
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: 49938913e752a86a3e2cd7766a0fffa6296cca14
      https://github.com/wesnoth/wesnoth/commit/49938913e752a86a3e2cd7766a0fffa6296cca14
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: abcaa73eecbbc24c71f44166c58dfb449663df47
      https://github.com/wesnoth/wesnoth/commit/abcaa73eecbbc24c71f44166c58dfb449663df47
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: bcc765c6b259bd46c9dc06bf4e0c06073bbddec6
      https://github.com/wesnoth/wesnoth/commit/bcc765c6b259bd46c9dc06bf4e0c06073bbddec6
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: d5dc6ddd4dc0d9753a5e5be09e0cc53b6cec7ac2
      https://github.com/wesnoth/wesnoth/commit/d5dc6ddd4dc0d9753a5e5be09e0cc53b6cec7ac2
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: c3675913c695549f31531f87a691268e46a3e0e6
      https://github.com/wesnoth/wesnoth/commit/c3675913c695549f31531f87a691268e46a3e0e6
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: 3b18f3d9949451e6483dc6500271abcc8665561f
      https://github.com/wesnoth/wesnoth/commit/3b18f3d9949451e6483dc6500271abcc8665561f
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: 5a50b47cb75bebed18594bbc42bc016b25114c3e
      https://github.com/wesnoth/wesnoth/commit/5a50b47cb75bebed18594bbc42bc016b25114c3e
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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: ee66b300021d695bf94ebaf1bfebe27e8542f6ca
      https://github.com/wesnoth/wesnoth/commit/ee66b300021d695bf94ebaf1bfebe27e8542f6ca
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-08 (Sat, 08 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


Compare: https://github.com/wesnoth/wesnoth/compare/59ac7a20bf11...ee66b300021d



More information about the Commits mailing list