[wesnoth-commits] [wesnoth/wesnoth] 090c27: Start a Lua mathx module to hold round, shuffle, r...
Celtic Minstrel
noreply at github.com
Sun May 2 23:50:15 UTC 2021
Branch: refs/heads/lua_reorg
Home: https://github.com/wesnoth/wesnoth
Commit: 090c273792a62f83953c5616276464858b380aa3
https://github.com/wesnoth/wesnoth/commit/090c273792a62f83953c5616276464858b380aa3
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: 6341dc39581de4b86372f4cc27279b62c7fd60f3
https://github.com/wesnoth/wesnoth/commit/6341dc39581de4b86372f4cc27279b62c7fd60f3
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: 34b2d0de95a1917b07eea7c79f6bf112df788107
https://github.com/wesnoth/wesnoth/commit/34b2d0de95a1917b07eea7c79f6bf112df788107
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: 01de7154bd5dfe9ea18fe0fa96114642eed94d57
https://github.com/wesnoth/wesnoth/commit/01de7154bd5dfe9ea18fe0fa96114642eed94d57
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: 159b0ec0c95da1f36c5c617a2f0383edcdfe8625
https://github.com/wesnoth/wesnoth/commit/159b0ec0c95da1f36c5c617a2f0383edcdfe8625
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: c60b18b1a2d2363c01c3736f6397c34114ea192f
https://github.com/wesnoth/wesnoth/commit/c60b18b1a2d2363c01c3736f6397c34114ea192f
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: 6e727b8662b199e5401da3374905b1c3a6568813
https://github.com/wesnoth/wesnoth/commit/6e727b8662b199e5401da3374905b1c3a6568813
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: 2de37ad0dc3f83b36545bc46bb25b162e7b95827
https://github.com/wesnoth/wesnoth/commit/2de37ad0dc3f83b36545bc46bb25b162e7b95827
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: 794986bede5fb2e5b01b940b3743178bacae2f8f
https://github.com/wesnoth/wesnoth/commit/794986bede5fb2e5b01b940b3743178bacae2f8f
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: cf3d7c9cbaaa6e16280a1b91b44e5dc024e42758
https://github.com/wesnoth/wesnoth/commit/cf3d7c9cbaaa6e16280a1b91b44e5dc024e42758
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: 6efe3a7ee266aa3ac4abea7a6bb1b25b6ffaf8fc
https://github.com/wesnoth/wesnoth/commit/6efe3a7ee266aa3ac4abea7a6bb1b25b6ffaf8fc
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: ed40957e919e68fe79969278b38307e6ece7e205
https://github.com/wesnoth/wesnoth/commit/ed40957e919e68fe79969278b38307e6ece7e205
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: db18139978cae12a3c6477bda4516ec404d78772
https://github.com/wesnoth/wesnoth/commit/db18139978cae12a3c6477bda4516ec404d78772
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: 109b764d41d092fd96493e4567bf25afe55cd04a
https://github.com/wesnoth/wesnoth/commit/109b764d41d092fd96493e4567bf25afe55cd04a
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: 840495f8256f1c7f92557081f8ab527b8d451301
https://github.com/wesnoth/wesnoth/commit/840495f8256f1c7f92557081f8ab527b8d451301
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: dfddf59aed377b9c820425765baa93bddf96c4ed
https://github.com/wesnoth/wesnoth/commit/dfddf59aed377b9c820425765baa93bddf96c4ed
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: 6e410db62d2ea186c0bb446f10748f071bbf5898
https://github.com/wesnoth/wesnoth/commit/6e410db62d2ea186c0bb446f10748f071bbf5898
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: 390700317f152aa396c47dc1df2ec429918346de
https://github.com/wesnoth/wesnoth/commit/390700317f152aa396c47dc1df2ec429918346de
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: 9920f20de37146484af56574db633a25facc324b
https://github.com/wesnoth/wesnoth/commit/9920f20de37146484af56574db633a25facc324b
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: 750f2530cf7f63087be692185b081f1fc9006b31
https://github.com/wesnoth/wesnoth/commit/750f2530cf7f63087be692185b081f1fc9006b31
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: 5295049e3c17bd33d339f5d218fa74ffd40a374f
https://github.com/wesnoth/wesnoth/commit/5295049e3c17bd33d339f5d218fa74ffd40a374f
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: 0588b32c87e7060749027549eeb566185568092e
https://github.com/wesnoth/wesnoth/commit/0588b32c87e7060749027549eeb566185568092e
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: 79ab9c2e616efc79abf760f1e032e84651fb3ae0
https://github.com/wesnoth/wesnoth/commit/79ab9c2e616efc79abf760f1e032e84651fb3ae0
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: 68b445fa207f84cf7b5dd818ef68eac35b099ed7
https://github.com/wesnoth/wesnoth/commit/68b445fa207f84cf7b5dd818ef68eac35b099ed7
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
Commit: 70124706c2e7a7d828bd9f8744634a66d286166b
https://github.com/wesnoth/wesnoth/commit/70124706c2e7a7d828bd9f8744634a66d286166b
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/core/mathx.lua
M data/lua/core/persistent_tags.lua
M data/lua/core/sides.lua
M data/lua/core/unit_test.lua
M data/lua/core/units.lua
M data/lua/core/wml.lua
M data/lua/wml/harm_unit.lua
M src/gui/dialogs/server_info_dialog.cpp
M src/gui/dialogs/server_info_dialog.hpp
M src/key.cpp
M src/scripting/game_lua_kernel.cpp
M src/scripting/lua_audio.cpp
M src/scripting/lua_color.hpp
M src/scripting/lua_kernel_base.cpp
M src/scripting/lua_ptr.hpp
M src/scripting/lua_unit_attacks.cpp
M src/scripting/lua_widget_attributes.cpp
M src/server/common/resultsets/rs_base.hpp
M src/soundsource.hpp
M src/units/type_error.hpp
M src/wesnoth.cpp
Log Message:
-----------
whitespace fixes
Compare: https://github.com/wesnoth/wesnoth/compare/b64d271a9a7d...70124706c2e7
More information about the Commits
mailing list