[wesnoth-commits] [wesnoth/wesnoth] f9af3e: Start a Lua mathx module to hold round, shuffle, r...
Celtic Minstrel
noreply at github.com
Wed May 5 01:04:53 UTC 2021
Branch: refs/heads/lua_reorg
Home: https://github.com/wesnoth/wesnoth
Commit: f9af3e7e7b082d30d7e60292ec6935e66579cd23
https://github.com/wesnoth/wesnoth/commit/f9af3e7e7b082d30d7e60292ec6935e66579cd23
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: df323d2a021f118ce08102d94b8b589c4049bf55
https://github.com/wesnoth/wesnoth/commit/df323d2a021f118ce08102d94b8b589c4049bf55
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: 25aced713c3a5377b90bfa07dc87d9f78e15ae5b
https://github.com/wesnoth/wesnoth/commit/25aced713c3a5377b90bfa07dc87d9f78e15ae5b
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: 968b82877a6ffc0597c7c1164fc667edf41c4176
https://github.com/wesnoth/wesnoth/commit/968b82877a6ffc0597c7c1164fc667edf41c4176
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: 74a5d75631e44f4a37b32fb551c1d32d91c8b5b0
https://github.com/wesnoth/wesnoth/commit/74a5d75631e44f4a37b32fb551c1d32d91c8b5b0
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 May 2021)
Changed paths:
M data/lua/core/_initial.lua
M src/scripting/lua_kernel_base.cpp
Log Message:
-----------
Add a versions module
Commit: 270039376c712a3be687ffc44407972916ed7938
https://github.com/wesnoth/wesnoth/commit/270039376c712a3be687ffc44407972916ed7938
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: 3cc35d000cec9ae144c960ec74c890f41ab7c044
https://github.com/wesnoth/wesnoth/commit/3cc35d000cec9ae144c960ec74c890f41ab7c044
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: a5901af661dc7d429480f56691eae802ad18cab6
https://github.com/wesnoth/wesnoth/commit/a5901af661dc7d429480f56691eae802ad18cab6
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 May 2021)
Changed paths:
M data/lua/core/gui.lua
M data/lua/wml-tags.lua
M src/help/help.cpp
M src/help/help.hpp
M src/scripting/game_lua_kernel.cpp
M src/scripting/lua_gui2.cpp
Log Message:
-----------
Move open_help to the gui module (as show_help)
This also exposes it in kernels besides the game kernel.
Commit: e3897ea983a1a352f75398b08be616e044b11115
https://github.com/wesnoth/wesnoth/commit/e3897ea983a1a352f75398b08be616e044b11115
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: 582a09b4a1db4fe779dcac2af06843105a762fcf
https://github.com/wesnoth/wesnoth/commit/582a09b4a1db4fe779dcac2af06843105a762fcf
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: b0ecd09fe7d1b133b341021d72a5b8c579bd5263
https://github.com/wesnoth/wesnoth/commit/b0ecd09fe7d1b133b341021d72a5b8c579bd5263
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: a06bf2196958fff9e1d1b1828f195444e5a180c1
https://github.com/wesnoth/wesnoth/commit/a06bf2196958fff9e1d1b1828f195444e5a180c1
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: 6876600ef42608d9afed5dd7d6ce17487c68d9f5
https://github.com/wesnoth/wesnoth/commit/6876600ef42608d9afed5dd7d6ce17487c68d9f5
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: 827b1ffa2ee34f3c5f9dba97fc5c1e7a681b2373
https://github.com/wesnoth/wesnoth/commit/827b1ffa2ee34f3c5f9dba97fc5c1e7a681b2373
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: 5a1e409c99d91f73bb67e0f1c0ec724e2a7cc2fc
https://github.com/wesnoth/wesnoth/commit/5a1e409c99d91f73bb67e0f1c0ec724e2a7cc2fc
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: b5237371adafbccd1377ef4ca4165d2eb0b306c6
https://github.com/wesnoth/wesnoth/commit/b5237371adafbccd1377ef4ca4165d2eb0b306c6
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: 40ac89f1600b787c9fee474cbaab19efda9cddb6
https://github.com/wesnoth/wesnoth/commit/40ac89f1600b787c9fee474cbaab19efda9cddb6
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: 30dd7815725fcdda7d77e0bfb7b66aef30713be9
https://github.com/wesnoth/wesnoth/commit/30dd7815725fcdda7d77e0bfb7b66aef30713be9
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: c0e3e53369cc8f6ede9b6d4fe6dbfe439ac0d4ef
https://github.com/wesnoth/wesnoth/commit/c0e3e53369cc8f6ede9b6d4fe6dbfe439ac0d4ef
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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
M src/scripting/mapgen_lua_kernel.cpp
M src/scripting/mapgen_lua_kernel.hpp
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: 0ce92478ebd89d14dcf38ea7ddf15561e4be908c
https://github.com/wesnoth/wesnoth/commit/0ce92478ebd89d14dcf38ea7ddf15561e4be908c
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: 7988b35188dd92c7b901e592b3b81692d01a83b9
https://github.com/wesnoth/wesnoth/commit/7988b35188dd92c7b901e592b3b81692d01a83b9
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: acb66e0623d98187ea50f0e1585837cb12b19cfe
https://github.com/wesnoth/wesnoth/commit/acb66e0623d98187ea50f0e1585837cb12b19cfe
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: 2cc6f91221ba24efe669884224a8cb9a685c326d
https://github.com/wesnoth/wesnoth/commit/2cc6f91221ba24efe669884224a8cb9a685c326d
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 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: d1f9312e7ff5d8e8d3abdaf4af0504b55916c355
https://github.com/wesnoth/wesnoth/commit/d1f9312e7ff5d8e8d3abdaf4af0504b55916c355
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 May 2021)
Changed paths:
M data/lua/wml-tags.lua
M data/test/_main.cfg
A data/test/maps/test_hills_square.mask
M data/test/scenarios/test_terrain_mask.cfg
Log Message:
-----------
Resolve [terrain_mask]mask_file= relative to the [binary_path] like map_file= is
Commit: 2e2d9d546762b3175e065d49ed3b2ec4dad3c8a3
https://github.com/wesnoth/wesnoth/commit/2e2d9d546762b3175e065d49ed3b2ec4dad3c8a3
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 May 2021)
Changed paths:
M src/generators/lua_map_generator.cpp
Log Message:
-----------
Log any Lua errors during map generation
Commit: 82033fbeb9149ffd11544f4581f11c3c31851623
https://github.com/wesnoth/wesnoth/commit/82033fbeb9149ffd11544f4581f11c3c31851623
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 May 2021)
Changed paths:
M src/scripting/game_lua_kernel.cpp
Log Message:
-----------
Fix missing sentinel in game_lua_kernel "wml" callbacks
Commit: 59ac7a20bf1197902ef69209a2df574d19a24006
https://github.com/wesnoth/wesnoth/commit/59ac7a20bf1197902ef69209a2df574d19a24006
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-04 (Tue, 04 May 2021)
Changed paths:
M data/lua/core/interface.lua
M data/lua/core/mathx.lua
M data/lua/core/sides.lua
M data/lua/core/wml.lua
M src/scripting/game_lua_kernel.cpp
M src/scripting/lua_audio.cpp
M src/scripting/lua_kernel_base.cpp
M src/scripting/lua_unit_attacks.cpp
M src/scripting/mapgen_lua_kernel.cpp
M src/soundsource.hpp
Log Message:
-----------
whitespace fixes
Compare: https://github.com/wesnoth/wesnoth/compare/e7390e690285...59ac7a20bf11
More information about the Commits
mailing list