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

Celtic Minstrel noreply at github.com
Tue Apr 27 17:59:33 UTC 2021


  Branch: refs/heads/lua_reorg
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b183e9f646a1f7a35382b337cc57baac1d323124
      https://github.com/wesnoth/wesnoth/commit/b183e9f646a1f7a35382b337cc57baac1d323124
  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: 26b5422e632c82c264f8aa4afb3ffcb8262c70c2
      https://github.com/wesnoth/wesnoth/commit/26b5422e632c82c264f8aa4afb3ffcb8262c70c2
  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: dfc328fee3cfc74ab51d10e98d941a842ee36dcc
      https://github.com/wesnoth/wesnoth/commit/dfc328fee3cfc74ab51d10e98d941a842ee36dcc
  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: 59e2c55e64da9b2fa9f70e086bdfd5d1089a8805
      https://github.com/wesnoth/wesnoth/commit/59e2c55e64da9b2fa9f70e086bdfd5d1089a8805
  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: e7e711a281936a4985e1ba3fef380c9d3103b485
      https://github.com/wesnoth/wesnoth/commit/e7e711a281936a4985e1ba3fef380c9d3103b485
  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: 886d66cde9786695986d62acffc25ecdca8d60d7
      https://github.com/wesnoth/wesnoth/commit/886d66cde9786695986d62acffc25ecdca8d60d7
  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: a88d5a42b561aa22cf7a3e059225243becad36fe
      https://github.com/wesnoth/wesnoth/commit/a88d5a42b561aa22cf7a3e059225243becad36fe
  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: d2ac3c140880d5373ad83ba4a78cafc3ec37d927
      https://github.com/wesnoth/wesnoth/commit/d2ac3c140880d5373ad83ba4a78cafc3ec37d927
  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: 4210762b6fd1b05deed2f6946b84cd4fa8285d92
      https://github.com/wesnoth/wesnoth/commit/4210762b6fd1b05deed2f6946b84cd4fa8285d92
  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: 5eb88f85c41f5a6dc276ea2e7f07fa1340de805e
      https://github.com/wesnoth/wesnoth/commit/5eb88f85c41f5a6dc276ea2e7f07fa1340de805e
  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: d327837678e8fc0780834336cbb78281af30e484
      https://github.com/wesnoth/wesnoth/commit/d327837678e8fc0780834336cbb78281af30e484
  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: 5f8492a6ee621221c8c71076d8d6145bb9173fb5
      https://github.com/wesnoth/wesnoth/commit/5f8492a6ee621221c8c71076d8d6145bb9173fb5
  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: 752fc7e5a519d5892c606488357c8630153ab161
      https://github.com/wesnoth/wesnoth/commit/752fc7e5a519d5892c606488357c8630153ab161
  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: 77a9a03c41a4da8f979df66221e2658e1b3b05f0
      https://github.com/wesnoth/wesnoth/commit/77a9a03c41a4da8f979df66221e2658e1b3b05f0
  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: 9e43faafff20befd0371b176b731982a2e60e4eb
      https://github.com/wesnoth/wesnoth/commit/9e43faafff20befd0371b176b731982a2e60e4eb
  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: d9120ec05fb1fb7780292651bdb61061582351aa
      https://github.com/wesnoth/wesnoth/commit/d9120ec05fb1fb7780292651bdb61061582351aa
  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: 63c85e5c94bf584c054b968a1c140f9ffc5c7a1f
      https://github.com/wesnoth/wesnoth/commit/63c85e5c94bf584c054b968a1c140f9ffc5c7a1f
  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: fc2bf1a3b686107e80cbc671e4c13bce25864d3a
      https://github.com/wesnoth/wesnoth/commit/fc2bf1a3b686107e80cbc671e4c13bce25864d3a
  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: bd8686d3dd821261bc031554681fa5a5a069775f
      https://github.com/wesnoth/wesnoth/commit/bd8686d3dd821261bc031554681fa5a5a069775f
  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: 8d43aa3e38d0f5e69587a3344c276a9b62fa7cd5
      https://github.com/wesnoth/wesnoth/commit/8d43aa3e38d0f5e69587a3344c276a9b62fa7cd5
  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: 995472107e35d71608f8d49886739bd197b0ada4
      https://github.com/wesnoth/wesnoth/commit/995472107e35d71608f8d49886739bd197b0ada4
  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: 37a3270837df42871a66d7bc6057eeae9564c5e8
      https://github.com/wesnoth/wesnoth/commit/37a3270837df42871a66d7bc6057eeae9564c5e8
  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: aea69ea35685c62ec4734fbca361827c1f4bfd36
      https://github.com/wesnoth/wesnoth/commit/aea69ea35685c62ec4734fbca361827c1f4bfd36
  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: 1c6c105f6cdbd7100ddfd208e73b38708b511f49
      https://github.com/wesnoth/wesnoth/commit/1c6c105f6cdbd7100ddfd208e73b38708b511f49
  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: 5e01f2dc395fbe9f1814775bf7ba14ff4727689f
      https://github.com/wesnoth/wesnoth/commit/5e01f2dc395fbe9f1814775bf7ba14ff4727689f
  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/7634ac46850d...5e01f2dc395f



More information about the Commits mailing list