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

Celtic Minstrel noreply at github.com
Tue Apr 27 23:27:07 UTC 2021


  Branch: refs/heads/lua_reorg
  Home:   https://github.com/wesnoth/wesnoth
  Commit: e5f87d21435203c27aae251894a26db834204f87
      https://github.com/wesnoth/wesnoth/commit/e5f87d21435203c27aae251894a26db834204f87
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 0fc4ef1c07b83493db7445f00f2bfdf09ee9a22d
      https://github.com/wesnoth/wesnoth/commit/0fc4ef1c07b83493db7445f00f2bfdf09ee9a22d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 69b1380ffcb58f92fc46b98adef25108ba5c3470
      https://github.com/wesnoth/wesnoth/commit/69b1380ffcb58f92fc46b98adef25108ba5c3470
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 70148cd09f09e0ffdb9eb5900158ca72e75f6193
      https://github.com/wesnoth/wesnoth/commit/70148cd09f09e0ffdb9eb5900158ca72e75f6193
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: f5831f80c18971fe6ec124e51c16c769853352f0
      https://github.com/wesnoth/wesnoth/commit/f5831f80c18971fe6ec124e51c16c769853352f0
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 2021)

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

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


  Commit: 9b90a7e18364de6bbcfc395a07046af366caf109
      https://github.com/wesnoth/wesnoth/commit/9b90a7e18364de6bbcfc395a07046af366caf109
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 3852c0eb43583df8a645a70c4090afadb67ceda1
      https://github.com/wesnoth/wesnoth/commit/3852c0eb43583df8a645a70c4090afadb67ceda1
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 465046c506fbb49dfa19dc77f6d7c23e723bccf0
      https://github.com/wesnoth/wesnoth/commit/465046c506fbb49dfa19dc77f6d7c23e723bccf0
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 5abc4ff17c79effb2673b4d75718e78238b81578
      https://github.com/wesnoth/wesnoth/commit/5abc4ff17c79effb2673b4d75718e78238b81578
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 4a90d33432cef3ba34f6068b0f1ed92888a07f55
      https://github.com/wesnoth/wesnoth/commit/4a90d33432cef3ba34f6068b0f1ed92888a07f55
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: f14344a010b3b99fa372a0c5bc7a84112a41e5e0
      https://github.com/wesnoth/wesnoth/commit/f14344a010b3b99fa372a0c5bc7a84112a41e5e0
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 6e9760a0f93ef53cfcbb2012014fd4569d59ccf9
      https://github.com/wesnoth/wesnoth/commit/6e9760a0f93ef53cfcbb2012014fd4569d59ccf9
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 1f6f50ca1966696241b8c000f26e39696a004343
      https://github.com/wesnoth/wesnoth/commit/1f6f50ca1966696241b8c000f26e39696a004343
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 16d3c535d2b744ba37c3537ac668b3bf75ca3fd6
      https://github.com/wesnoth/wesnoth/commit/16d3c535d2b744ba37c3537ac668b3bf75ca3fd6
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 8fb600be42d85307cbbc06d45e1e1030f5be82cd
      https://github.com/wesnoth/wesnoth/commit/8fb600be42d85307cbbc06d45e1e1030f5be82cd
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 7576bcc86f26eb63689c3cb1200d8c8d3017f66a
      https://github.com/wesnoth/wesnoth/commit/7576bcc86f26eb63689c3cb1200d8c8d3017f66a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: b9cdfb48a006524886243616464de722d903ab21
      https://github.com/wesnoth/wesnoth/commit/b9cdfb48a006524886243616464de722d903ab21
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 03f03c16d344f8a85258b8fad84b4f07a375fa17
      https://github.com/wesnoth/wesnoth/commit/03f03c16d344f8a85258b8fad84b4f07a375fa17
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 9f22c7225ea21f8e755a6605e81c21dcbef3eca1
      https://github.com/wesnoth/wesnoth/commit/9f22c7225ea21f8e755a6605e81c21dcbef3eca1
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 1df48928b14c6e31654e043642f84e7a6b985915
      https://github.com/wesnoth/wesnoth/commit/1df48928b14c6e31654e043642f84e7a6b985915
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 5bedbb45ae36066c5ffb2b9d3a0ef8ae36712cbe
      https://github.com/wesnoth/wesnoth/commit/5bedbb45ae36066c5ffb2b9d3a0ef8ae36712cbe
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: cec3500918ee56b3198d41dccd83c915b7259df6
      https://github.com/wesnoth/wesnoth/commit/cec3500918ee56b3198d41dccd83c915b7259df6
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: f04a441d2d6317fad444b38c387564e14ae0fefc
      https://github.com/wesnoth/wesnoth/commit/f04a441d2d6317fad444b38c387564e14ae0fefc
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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: 274172f25b35d6b22f95259bc82b9e24daeb8f7f
      https://github.com/wesnoth/wesnoth/commit/274172f25b35d6b22f95259bc82b9e24daeb8f7f
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 2021)

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

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


  Commit: 90f3ad574904ed27e9a45b70f630ec5316591109
      https://github.com/wesnoth/wesnoth/commit/90f3ad574904ed27e9a45b70f630ec5316591109
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-04-27 (Tue, 27 Apr 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


Compare: https://github.com/wesnoth/wesnoth/compare/5e01f2dc395f...90f3ad574904



More information about the Commits mailing list