Celtic Minstrel
3387eb2c26
Lua API: Plugins can now execute gamestate code once they are in the game context.
2024-10-07 08:42:42 -04:00
Celtic Minstrel
68105ed4cc
Lua API: Add a new plugin module with some useful functions for plugins
2024-10-07 08:42:40 -04:00
Soliton
2f8d471e80
Remove any_tag for a more useful schema validation
2024-09-24 08:58:11 +02:00
pentarctagon
815e3fe90b
add clang-tidy
2024-09-23 17:44:02 -05:00
newfrenchy83
feef53d4ab
Add an 'alignment' attribute to attacks
...
This attribute, when set to a valid value of lawful|neutral|chaotic|liminal, will assign to the weapon a different alignment than the unit alignment used by default. This alignment is then used when attacking with this weapon.
The attribute is not accessible from lua so far since the fallback to unit alignment does not work.
2024-09-23 17:11:46 +02:00
Celtic Minstrel
6d8a17aa8d
Lua API: Add mathx.lerp_index and wesnoth.game_config.palettes
2024-09-15 15:27:39 -04:00
Celtic Minstrel
2a26a68025
Some updates to Lua map location operations
...
* Rename the vector operations to hex_vector (to emphasize that they are NOT standard vector ops) and document them as official API
* Add new get_hexes_at_radius, which returns an unfilled ring (as opposed to get_hexes_in_radius which returns a filled circle)
* Expose the new cubic coordinate conversions
2024-09-15 15:27:39 -04:00
Gunter Labes
81229241bb
Fall back to master data dir (for dev versions for example)
2024-09-07 21:10:27 +02:00
Toom
06350c9ad8
Update units.lua
2024-09-03 13:37:34 -04:00
gfgtdf
b8c6edc53c
Fix indices in widget.add_item_of_type()/add_item()/remove_items_at() ( #8516 )
...
- widget:add_item_of_type() now uses lua 1-based indicies and throws lua errors on wrong indicies. (previously used c++ 0-based indexing, and could lead to assertions when wrong indicies were used, )
- widget:add_item() now has a optional location pos parameter as claimed in the wiki
- the pos and count paraemters in widget:remove_items_at() are now optional and default to removing the last element
With this is matches the behavior of the standart lua functions table.insert and table.remove which is imo what lua writers expect.
2024-09-03 14:17:57 +02:00
doofus-01
033012219e
Add Exif tags to images ( #9254 )
...
Artist & copyright Exif tags track the copyright info in images, replacing what used to be tracked with "copyrights.csv".
2024-08-25 20:18:16 -07:00
Subhraman Sarkar
60640dc8bd
Add lua function gui.switch_theme() to allow add-ons to switch themes in the middle of a scenario
2024-08-25 01:56:22 -04:00
Gunter Labes
8c581eee90
Avoid rewriting the same file multiple times
...
Also process some more extensions that current source files use.
2024-08-19 08:55:08 +02:00
Celtic Minstrel
8baf95601d
[LuaDoc] Mark filesystem.asset_type as an enumerator
2024-08-13 08:54:04 -04:00
Celtic Minstrel
542581916f
[Lua] Suppress some diagnostics and also recommend suppressing certain diagnostics globally
2024-08-13 08:54:04 -04:00
doofus-01
8700338c75
Moving image data to the image ( #9023 )
...
Add two maintenance scripts, to help transition from external copyright tracking to putting all info in the file metadata.
- One script to read read copyrights.csv and write data to Exif tags.
- One script to read the image Exif tags, and write to a CSV
2024-08-04 18:40:45 -07:00
Pentarctagon
5c3188581b
update CI to Ubuntu 24.04 ( #9139 )
2024-07-28 13:07:59 -05:00
pentarctagon
8a377e58b2
add database setup commands as well
2024-07-26 20:04:40 -05:00
Celtic Minstrel
e92ee5cb1b
[LuaDoc] Document that mapgen wesnoth.map.find[_in_radius] can take a uncompiled filter table.
...
Also note the split-location, single location, and list overloads for find_in_radius's center and find's in_list.
2024-07-21 19:58:03 -04:00
Gunter Labes
56fc63e238
Remove superfluous double sort and use POSIX conform regex
2024-04-23 09:21:23 +02:00
pentarctagon
8e5404bc24
update steam runtime image.
2024-04-22 13:38:44 -05:00
Gunter Labes
0222fdad50
Various improvements for the server scripts
...
Respect server options given as script arguments.
Fix killing background process in trap.
Use printf instead of echo.
Keep upper case variable names reserved for env variables.
Logfilter scripts converted to sed -E and removed GNUisms.
2024-04-14 22:03:03 +02:00
Celtic Minstrel
7aa5450a41
[Lua] Replace gui.show_inspector's undocumented config parameter with a string parameter that does the same thing.
...
It's still supported to pass a config, just in case anything relied on that.
This also updates the LuaDoc documentation at the same time.
2024-04-11 23:49:15 -04:00
pentarctagon
fbaded8c01
Add another query to the MP Activity Report queries
...
count by map and era
2024-04-04 14:56:15 -05:00
Gunter Labes
de778b1232
Add support for 1.18
2024-03-28 13:41:20 +01:00
P. J. McDermott
2993757315
Add a CI check for missing images in WML macros
...
This detects image errors such as issue #8432 .
Example output:
data/multiplayer/scenarios/2p_Aethermaw.cfg:134: missing image: units/undead/shadow-s-attack-1.png
data/multiplayer/scenarios/2p_Aethermaw.cfg:135: missing image: units/undead/shadow-n-attack-2.png
data/multiplayer/scenarios/2p_Aethermaw.cfg:147: missing image: units/undead/shadow-n-3.png
data/multiplayer/scenarios/2p_Aethermaw.cfg:149: missing image: units/undead/shadow-s-attack-4.png
data/multiplayer/scenarios/2p_Aethermaw.cfg:196: missing image: units/human-loyalists/spearman-attack-se-10.png
data/multiplayer/scenarios/2p_Aethermaw.cfg:197: missing image: units/human-loyalists/spearman-attack-s-6.png
data/multiplayer/scenarios/2p_Aethermaw.cfg:198: missing image: units/human-loyalists/spearman-attack-se-9.png
data/multiplayer/scenarios/2p_Aethermaw.cfg:203: missing image: units/human-loyalists/general-idle-5.png
2024-03-26 13:23:22 -05:00
Gunter Labes
e850f27fa1
Add script for the addon webinterface generation
2024-03-23 01:47:12 +01:00
Gunter Labes
db5a934e1e
refactor to avoid eval and create less processes
2024-03-23 01:39:20 +01:00
Celtic Minstrel
d77f9ecbcc
[LuaDoc] Use an alias for a sync function and declare every possible call form with @overload instead of specifying optional parameters
2024-02-29 09:16:40 -05:00
Celtic Minstrel
b7f9ccc197
[LuaDoc] Declare terrain_map index-by-location operator
...
Closes #8479
2024-02-29 09:15:40 -05:00
pentarctagon
6bb24810f1
and forward port this..
2024-02-25 21:30:13 -06:00
pentarctagon
19dcc5530c
looks like this never got updated
2024-02-24 23:20:23 -06:00
pentarctagon
4b016790dd
add boost graph dependency.
2024-02-24 19:16:40 -06:00
Gunter Labes
f567187dc7
Update server config content
...
Also keep upper case variable names reserved for env variables and let the server create the control fifo itself.
2024-02-21 00:40:08 +01:00
pentarctagon
71438010f6
add trailing newline to files
2024-02-15 22:51:26 -06:00
Celtic Minstrel
a2fdfaa7f7
[LuaDoc] Declare tstring to be concatenatable
2024-02-15 23:16:43 -05:00
P. J. McDermott
39fb741309
Make TeamColorizer and update_pathfinding executable
...
These scripts get installed but were missing execute mode bits.
2024-02-15 17:27:44 -06:00
P. J. McDermott
b6d7d7ea18
Replace Bash $UID with portable $(id -u) in Docker scripts
...
@Pentarctagon noticed in commit 9a34cbb329
that $UID isn't set when
/bin/sh isn't GNU Bash. `id -u` is specified by POSIX:
https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/utilities/id.html
Also move `-xe` to a `set` command (in case someone runs scripts with
`sh path/to/script` instead of `path/to/script`) and add `set -u` to
complain more loudly about such unset variables.
2024-02-15 17:27:44 -06:00
Celtic Minstrel
8a42565447
[LuaDoc] Permit GUI widgets to have non-translatable labels, including numbers.
2024-02-13 19:29:21 -05:00
Celtic Minstrel
0bb93d39fc
[LuaDoc] Add documentation for the map generator version of wesnoth.paths.find_path
2024-02-13 19:29:21 -05:00
Celtic Minstrel
b506010a8f
[LuaDoc] Correct some dumb errors
2024-02-13 19:29:21 -05:00
Celtic Minstrel
12d95bc082
[LuaDoc] Undo handlers do not have a return value
2024-02-13 19:29:20 -05:00
Celtic Minstrel
966e813358
[LuaDoc] Add overload of terrain_mask taking the location as two integer arguments
2024-02-13 19:29:20 -05:00
Celtic Minstrel
877c94ddaa
[LuaDoc] Fix hits parameter in animator:add and also accept a number as the text
2024-02-13 19:29:20 -05:00
Celtic Minstrel
d885687380
[LuaDoc] Instead of marking unit fields optional, define to_map and to_recall as taking WML as an alternative to a unit
2024-02-13 19:29:20 -05:00
Celtic Minstrel
6145c48d35
[LuaDoc] Fix incorrect declaration of unit.variables and side.variables - make them consistent with wml.variables
2024-02-13 19:29:20 -05:00
Celtic Minstrel
dbae630acd
[LuaDoc] Accept two-element lists as a location in some places, and 3-element lists as a colour
2024-02-13 19:29:19 -05:00
Celtic Minstrel
1885113264
[LuaDoc] Fix missing return type on format_*_list
2024-02-13 19:29:19 -05:00
Celtic Minstrel
2b05ed7339
[LuaDoc] Fix function signature for wesnoth.game_display
2024-02-07 22:10:33 -05:00
Celtic Minstrel
09c88d2b47
[LuaDoc] Fix typo
2024-02-07 22:10:33 -05:00