84759 Commits

Author SHA1 Message Date
Celtic Minstrel
0946161816 Lua API: ai.get_suitable_keep now returns integers instead of real numbers 2025-01-15 09:46:42 -05:00
Celtic Minstrel
580935a50d Lua API: Make wesnoth.game_config.debug writable in plugins 2025-01-15 09:46:42 -05:00
Celtic Minstrel
2fe080d968 Lua API: Plugins can now execute gamestate code once they are in the game context. 2025-01-15 09:46:42 -05:00
Celtic Minstrel
f991c1ca0b Add a debugging function that prints out the contents of the Lua stack 2025-01-15 09:46:42 -05:00
Celtic Minstrel
f9a0236210 Lua API: Correct __metatable for wesnoth.preferences 2025-01-15 09:46:42 -05:00
Celtic Minstrel
16d1af5ed3 Lua API: Fix some places that weren't handling strings correctly.
Lua strings can contain nulls. The affected places would truncate such strings.
2025-01-15 09:46:42 -05:00
Celtic Minstrel
51b3e4cfcc Lua API: Add a valid key to the plugin context and info tables
Previously the only way to tell they were valid would be a protected call on an existing member.
2025-01-15 09:46:42 -05:00
Celtic Minstrel
8f1b611a44 mp_join_game should not be skippable 2025-01-15 09:46:42 -05:00
Celtic Minstrel
1809138479 Output the ID of the dialog being skipped in case it's not actually a leader select dialog 2025-01-15 09:46:42 -05:00
Celtic Minstrel
ef66ad5aae Make enable_lua_ptr movable and non-copyable 2025-01-15 09:46:42 -05:00
Celtic Minstrel
e075700115 Update host.lua and join.lua in light of recent changes
* Use the wesnoth.plugin module
* Use .tag and .contents instead of [1] and [2]
* Remove superfluous parentheses on function calls
2025-01-15 09:46:42 -05:00
Celtic Minstrel
0f05094933 Lua API: Add a new plugin module with some useful functions for plugins 2025-01-15 09:46:42 -05:00
Celtic Minstrel
631365ba79 Lua API: The plugin events list is now a proper WML table, with the tags being named tuples 2025-01-15 09:46:42 -05:00
Celtic Minstrel
67681b5072 Lua API: Avoid looking up the requested scenario twice 2025-01-15 09:46:42 -05:00
Celtic Minstrel
a1f50d3ebe Lua API: Enable plugins to play a campaign
This also fixes some issues that can prevent a plugin from working with the GUI (that is, only working in headless mode). Plugins should work in both headless and GUI mode.
2025-01-15 09:46:42 -05:00
Celtic Minstrel
c456ff1df4 I don't really get it, but this fixes my build, so I'll go with it. 2025-01-15 09:46:42 -05:00
pentarctagon
bc36952e6f fixup wrong values in set 2025-01-14 17:22:28 -06:00
Dalas121
a08d6f67f9
Improve Resources: stronger_amlas and resource_weather (#9728)
stronger_amlas: move from amlas.cfg to resources/AMLAs

stronger_amlas: Previously, use_stronger_amlas added extra AMLAs to units that match a certain filter. If units didn't match the filter when they were placed, but did later-on, they still wouldn't be eligible for AMLAs. Fix that here.

resource_weather: [terrain_graphics] cannot be assigned or modified mid-scenario, but can be filtered by ToD. To dynamically modify weather mid-scenario (such as in TSG), use these special "noweather" ToDs.

resource_weather: add wind

both: change textdomain to "wesnoth"
2025-01-14 14:41:03 -06:00
Pentarctagon
f61b7b77ec
Add additional functionality for the in-game add-ons manager (#9693)
When started with the command line argument --addon-info, the Info button is shown on the add-ons manager which then allows:
* querying the downloads by version of the currently selected add-on
* querying the count of total add-ons uploaded vs the count of add-ons using forum_auth
* deleting an add-on (requires being a member of the Site Administrators or Forum Administrators forum groups)
* hiding an add-on (requires being a member of the Site Administrators or Forum Administrators forum groups)
2025-01-14 09:35:46 -06:00
Gunter Labes
ad7a458250
Remove nonsensical comment 2025-01-14 09:38:21 +01:00
Gunter Labes
fbf43bcfc1
Typo fix 2025-01-14 09:36:58 +01:00
Wedge009
eac2730235 WoF Wyrm: Correct text domain, resolves #9740.
[ci skip]
2025-01-14 09:15:54 +11:00
Tahsin Jahin Khalid
707135afa4 THoT: remove duplicate macro 2025-01-14 09:08:52 +11:00
Thewodoros
129fdf74e4
Replace "ken" with "can" in dwarf speech (#9738)
Use "ken" only for "know" or "see" meanings, not for "can" meaning.
2025-01-13 09:46:19 -06:00
Thewodoros
28920faad4
Replace mention of Ulrek with Relgorn (#9736)
Relgorn is Ulrek's son and helped humans more recently.
2025-01-13 09:45:39 -06:00
Thewodoros
55a701cc6e
Mention invasion force instead of just undead (#9737)
We fought undead most recently in S06a, but it was a rear garrison.
2025-01-13 09:44:55 -06:00
Subhraman Sarkar
d30b0e9bd1 location: use consistent reference (&) placement
a cosmetic change only.
2025-01-13 12:56:56 +05:30
Subhraman Sarkar
5b4f8f932f Contributing guide: mention CodingStandards page. 2025-01-13 12:32:16 +05:30
Subhraman Sarkar
aa625dafef canvas: fix semicolon in error message 2025-01-13 12:24:16 +05:30
Subhraman Sarkar
b077789251 canvas: improve error message in image_shape
the message now makes it obvious the 'name' key is faulty and covers the case where it is empty. Originally, it only notified that the formula was invalid.
2025-01-13 12:22:54 +05:30
Thewodoros
a49ccf0b3f Don't show defeat message if we choose to restart
It feels odd in that case.
2025-01-12 19:30:03 -06:00
Thewodoros
85bdfe391b Remove unused key from [endlevel]
When result is defeat, other keys are not used.
2025-01-12 19:30:03 -06:00
Thewodoros
a21b695a85 Fix bug with dwarf meeting event
It didn't disappear when either of them died.
2025-01-12 19:30:03 -06:00
Thewodoros
31fe9813cd Don't start the task if Pelathsil is dead
The enemies should not be able to reach him that early, but just in
case.
2025-01-12 19:30:03 -06:00
Thewodoros
dfb14774c2 Replace Tath with Parthyn in po comments
It was Parthyn which the orcs attacked, Tath is where the necromancers
steal the book.
2025-01-12 19:30:03 -06:00
Thewodoros
79f102c641 Replace saurians with nagas in po comments
Mentions of saurians must be a leftover from earlier development.
2025-01-12 19:30:03 -06:00
Subhraman Sarkar
f4e0a7bd14
UtBS S1: make Kaleh's dialog a bit more emotional (#9734)
Adds a couple of exclaimation marks to better emphasize the shock.
2025-01-12 13:56:32 -06:00
Subhraman Sarkar
50fe386aa7 celes theme: listbox header definition 2025-01-12 14:09:31 +05:30
Charles Dang
35071f38d5 GUI2/Group: cleanup 2025-01-11 23:15:28 -05:00
Dalas121
6282ef5499
update_copyrights - list any removed files 2025-01-11 19:38:18 -06:00
Charles Dang
e8a29976cf Chrono: add helper to get normalized progress over a duration 2025-01-11 15:18:20 -05:00
Charles Dang
3bc9708cd0 Fixup ccdc34c 2025-01-11 15:12:43 -05:00
Charles Dang
ccdc34cd6b GUI2/Units Dialog: continue to refine implementation 2025-01-11 14:05:52 -05:00
Dalas121
3de627e704
Stronger AMLAs Resource: fix filter not being applied to help message
The use_stronger_amlas resources includes a modifiable filter to choose which units are affected.

Formerly, that filter did not apply to a help message, resulting in the ANKA help message appearing even for units that weren't eligible for the AMLAs.
2025-01-11 11:07:31 -06:00
Subhraman Sarkar
bb34d5350b celes theme: radio and checkbox definitions for advanced prefs 2025-01-11 13:38:10 +05:30
Subhraman Sarkar
442200e1fc celes theme: fix slider warning when disabled 2025-01-11 13:03:07 +05:30
Charles Dang
000357ac3e GUI2/Main Menu: minor spacing and wording tweak 2025-01-11 01:48:14 -05:00
Charles Dang
c44ce3d711 GUI2/Modal Dialog: don't cache window retval (fixes #9703)
Since modal_dialog is now a window, we don't need to cache the value since the window object by definition will exist as long as the dialog object.
2025-01-11 01:32:47 -05:00
Dalas121
18434cb48f
Move Weather effects into a separate resource
These weather effects are used TSG, TDG, and other WIP campaign revisions. Duplicating them across each campaign seems pointless, so I've moved them into a resource here, following the precedent set by #9669.
2025-01-10 19:52:42 -06:00
Nils Kneuper
2323153973 updated Czech translation 2025-01-11 00:35:01 +01:00