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

Celtic Minstrel noreply at github.com
Sat May 1 21:24:13 UTC 2021


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

  Changed paths:
    A data/lua/core/mathx.lua
    M data/lua/helper.lua
    M projectfiles/VC16/wesnoth.vcxproj
    M projectfiles/VC16/wesnoth.vcxproj.filters
    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: d00d64a5ded054b194e967cdb7e96fcc8b8c0a12
      https://github.com/wesnoth/wesnoth/commit/d00d64a5ded054b194e967cdb7e96fcc8b8c0a12
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 802802de0346049e85ea19398ca07955c48cb69d
      https://github.com/wesnoth/wesnoth/commit/802802de0346049e85ea19398ca07955c48cb69d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 4142f316a891c4f7bbf69c4856578008ea5b5dc4
      https://github.com/wesnoth/wesnoth/commit/4142f316a891c4f7bbf69c4856578008ea5b5dc4
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: ca01d6cdb8da585a081cdd727291b778372a8929
      https://github.com/wesnoth/wesnoth/commit/ca01d6cdb8da585a081cdd727291b778372a8929
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 May 2021)

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

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


  Commit: 14b9dd8764bd12a60efb63d7890bbffd87b6098c
      https://github.com/wesnoth/wesnoth/commit/14b9dd8764bd12a60efb63d7890bbffd87b6098c
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 5b0451855ad54c0c58f77107fab7217f07503338
      https://github.com/wesnoth/wesnoth/commit/5b0451855ad54c0c58f77107fab7217f07503338
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 30fac70b466a506af673a9f38bb36de7926e160c
      https://github.com/wesnoth/wesnoth/commit/30fac70b466a506af673a9f38bb36de7926e160c
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 May 2021)

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

  Log Message:
  -----------
  Move open_help to the gui module


  Commit: bdfbb878597150f9ec26dbf5e97bbcf73f80f1e1
      https://github.com/wesnoth/wesnoth/commit/bdfbb878597150f9ec26dbf5e97bbcf73f80f1e1
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 1d291ecc221c62e976f247478481aca549c47403
      https://github.com/wesnoth/wesnoth/commit/1d291ecc221c62e976f247478481aca549c47403
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: ee69c9368cc02589fc39b6c5d07ee5e6747b3928
      https://github.com/wesnoth/wesnoth/commit/ee69c9368cc02589fc39b6c5d07ee5e6747b3928
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 69d8d4f57b51ad39c2b3ed776125468b2bbd3c87
      https://github.com/wesnoth/wesnoth/commit/69d8d4f57b51ad39c2b3ed776125468b2bbd3c87
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 963f92ea866b5a657c42b814582a18c4b570cad6
      https://github.com/wesnoth/wesnoth/commit/963f92ea866b5a657c42b814582a18c4b570cad6
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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 core


  Commit: e0744f03d435fed382554c4865f0a88cf9e031b4
      https://github.com/wesnoth/wesnoth/commit/e0744f03d435fed382554c4865f0a88cf9e031b4
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 99f0e3beb72680779c2baccf1991db2771522cf1
      https://github.com/wesnoth/wesnoth/commit/99f0e3beb72680779c2baccf1991db2771522cf1
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 3e1274a8dedbff120be3785f454f9d8d27725152
      https://github.com/wesnoth/wesnoth/commit/3e1274a8dedbff120be3785f454f9d8d27725152
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 09b323f3a2ed0ed2044725056ea189db77ccac23
      https://github.com/wesnoth/wesnoth/commit/09b323f3a2ed0ed2044725056ea189db77ccac23
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 688aff684e90f1502f2832d614bcf01e8b8e51f4
      https://github.com/wesnoth/wesnoth/commit/688aff684e90f1502f2832d614bcf01e8b8e51f4
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 075f0cb341694dd06415343d7314fee372295106
      https://github.com/wesnoth/wesnoth/commit/075f0cb341694dd06415343d7314fee372295106
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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

  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: a610f67a1dbd9453c0f81bc53732b7a625d66fc1
      https://github.com/wesnoth/wesnoth/commit/a610f67a1dbd9453c0f81bc53732b7a625d66fc1
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 29caa000492e8df64f3518ee20b8c5165b0a047a
      https://github.com/wesnoth/wesnoth/commit/29caa000492e8df64f3518ee20b8c5165b0a047a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: 07069449b585a0e62c8699d614e591104f763887
      https://github.com/wesnoth/wesnoth/commit/07069449b585a0e62c8699d614e591104f763887
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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

  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: 8df503a782db7b4911aa494cadad687f464fc5ff
      https://github.com/wesnoth/wesnoth/commit/8df503a782db7b4911aa494cadad687f464fc5ff
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 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: da65e1386a698489d01ee05bfadf3a1c8a177212
      https://github.com/wesnoth/wesnoth/commit/da65e1386a698489d01ee05bfadf3a1c8a177212
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-01 (Sat, 01 May 2021)

  Changed paths:
    M data/lua/core/filesystem.lua

  Log Message:
  -----------
  Remove TRANSLATION preset asset type


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

  Changed paths:
    M data/lua/wml-tags.lua

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


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

  Changed paths:
    M src/save_index.cpp
    M src/tests/test_filesystem.cpp

  Log Message:
  -----------
  Fix Boost unit tests


Compare: https://github.com/wesnoth/wesnoth/compare/d948e20eecc0...82ae4ff229a4



More information about the Commits mailing list