[wesnoth-commits] [wesnoth/wesnoth] b7e937: Start a Lua mathx module to hold round, shuffle, r...
Celtic Minstrel
noreply at github.com
Sun May 2 21:50:10 UTC 2021
Branch: refs/heads/lua_reorg
Home: https://github.com/wesnoth/wesnoth
Commit: b7e937215bd70b42fa04e524e88acee12bca70e2
https://github.com/wesnoth/wesnoth/commit/b7e937215bd70b42fa04e524e88acee12bca70e2
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: ffafbda958b7c036a3d129f15394380683468111
https://github.com/wesnoth/wesnoth/commit/ffafbda958b7c036a3d129f15394380683468111
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: d79215211bc16367d1e3f898f9548d5cd1b15261
https://github.com/wesnoth/wesnoth/commit/d79215211bc16367d1e3f898f9548d5cd1b15261
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: 5a746267dea95f621fc6738cdda1d7b5325955d3
https://github.com/wesnoth/wesnoth/commit/5a746267dea95f621fc6738cdda1d7b5325955d3
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: 09bff7e02b673fb18dc85b25187186c924f1b84e
https://github.com/wesnoth/wesnoth/commit/09bff7e02b673fb18dc85b25187186c924f1b84e
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 May 2021)
Changed paths:
M data/lua/core/_initial.lua
M src/scripting/lua_kernel_base.cpp
Log Message:
-----------
Add a versions module
Commit: 0259aca4d0bc4446efdaf236a5b753df09324769
https://github.com/wesnoth/wesnoth/commit/0259aca4d0bc4446efdaf236a5b753df09324769
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: a3ea863537619dd9ea8738b3ae14fa9abdf0e5bf
https://github.com/wesnoth/wesnoth/commit/a3ea863537619dd9ea8738b3ae14fa9abdf0e5bf
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: 5d909f5a650111b07200ddd3de7e8a32fcf4e6f9
https://github.com/wesnoth/wesnoth/commit/5d909f5a650111b07200ddd3de7e8a32fcf4e6f9
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: b22f19504cbee2d99eea8e20282803fb329f7c16
https://github.com/wesnoth/wesnoth/commit/b22f19504cbee2d99eea8e20282803fb329f7c16
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: 9b6d76c7daab3954c922be2983d0f9f562c47670
https://github.com/wesnoth/wesnoth/commit/9b6d76c7daab3954c922be2983d0f9f562c47670
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: af53c0ec136aa48445a90688459c96d3fac66e63
https://github.com/wesnoth/wesnoth/commit/af53c0ec136aa48445a90688459c96d3fac66e63
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: 471cc0862c43894d8da7a7a0c44aa4973bc03418
https://github.com/wesnoth/wesnoth/commit/471cc0862c43894d8da7a7a0c44aa4973bc03418
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: f45aeca6051ff7b19268af84bdc840b3d439e396
https://github.com/wesnoth/wesnoth/commit/f45aeca6051ff7b19268af84bdc840b3d439e396
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: fecd3f438056da9f4ec69ccdeb0b19f8a923bb39
https://github.com/wesnoth/wesnoth/commit/fecd3f438056da9f4ec69ccdeb0b19f8a923bb39
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: d99cd4f3286672a815ddd08b783046072948c1f0
https://github.com/wesnoth/wesnoth/commit/d99cd4f3286672a815ddd08b783046072948c1f0
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: b729fdc3854aa0f91a37d843b37d5fcb3f3cc7e0
https://github.com/wesnoth/wesnoth/commit/b729fdc3854aa0f91a37d843b37d5fcb3f3cc7e0
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: b8af122947e8eeabefc078306be664dc05e868a7
https://github.com/wesnoth/wesnoth/commit/b8af122947e8eeabefc078306be664dc05e868a7
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: 0d24a92f3aac6a7bdebe4f6179ffa84a4a67ecf3
https://github.com/wesnoth/wesnoth/commit/0d24a92f3aac6a7bdebe4f6179ffa84a4a67ecf3
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: 32bef81b68bed867f26af91d9675fb0376eea64a
https://github.com/wesnoth/wesnoth/commit/32bef81b68bed867f26af91d9675fb0376eea64a
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: 4fa4d0edc8d57e58ad755da42c4355f45f28f1a4
https://github.com/wesnoth/wesnoth/commit/4fa4d0edc8d57e58ad755da42c4355f45f28f1a4
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: dee6582834306455db513151bc121f8faee41d5d
https://github.com/wesnoth/wesnoth/commit/dee6582834306455db513151bc121f8faee41d5d
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: 5eac988668c89d0ae463a10c22245f411c9177f7
https://github.com/wesnoth/wesnoth/commit/5eac988668c89d0ae463a10c22245f411c9177f7
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: 39751e0eaea9374f13e54fd40f1c1b467a52c349
https://github.com/wesnoth/wesnoth/commit/39751e0eaea9374f13e54fd40f1c1b467a52c349
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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: 8fe57701049fee03de90b47ee8d75181dc90b841
https://github.com/wesnoth/wesnoth/commit/8fe57701049fee03de90b47ee8d75181dc90b841
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-02 (Sun, 02 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
Compare: https://github.com/wesnoth/wesnoth/compare/82ae4ff229a4...8fe57701049f
More information about the Commits
mailing list