77101 Commits

Author SHA1 Message Date
Steve Cotton
97c87443c1 Use the new animals in the "animals" micro-ai demo
Several new animals were added in PR #5039's
cbad6f42492be5fcbf8c29a3d10cbc43598ba32c.

The micro-ai demo can be accessed by starting Wesnoth with the command-line
arguments `--test animals`. The scenario uses some stand-ins for animals that
weren't in mainline; the new bears and tuskers fit straight in. For the sheep,
the icemonax's graphics are a bit more sheep-shaped than the troll whelp's.

This demo doesn't need to be balanced, the changed unit stats are no problem.

UtBS's dustboks aren't in core, otherwise I'd use them as the deer stand-in.
2020-10-03 15:09:32 +02:00
Steve Cotton
3f93c263a9 Improve user-friendliness of the validation options
* Fixes #4223, by making the --validate and --validate-* options imply --nocache.

* Fixes #4224, showing an error if you misspell the id argument to
  --validate-addon. The application doesn't (but should) quit automatically to
  avoid the user spending time on a non-functional validation run, however it
  does at least disable all add-ons, which should have the same end result.

* Shows a warning that --validate-addon needs the user to play the add-on, it
  doesn't automatically check the add-on. This was my misunderstanding when
  logging issue #4225, which has now been repurposed into a feature request for
  a new tool that does what I thought --validate-addon did.
2020-10-02 18:34:18 +02:00
Nils Kneuper
028a470e07 updated Polish translation 2020-10-02 09:18:17 +02:00
Nils Kneuper
08838279ac updated Portuguese (Brazil) translation 2020-10-02 09:14:59 +02:00
Nils Kneuper
76870e45a5 updated French translation 2020-10-02 09:13:34 +02:00
Gunter Labes
9a55dd47db
Enable labeler action again
With the `pull_request_target` event it should now also work with pull requests from forks.
2020-10-01 21:02:34 +02:00
Gunter Labes
742b58c276
Fix handling of PRs from forks
https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#pull_request_target
2020-10-01 17:08:09 +02:00
IceTyp
1d93567e0e Rename Fire-Ant.cfg to Fire_Ant.cfg 2020-10-01 11:43:07 +02:00
Steve Cotton
a42600ffbe Remove the wesnoth-ai textdoman, move a few strings to wesnoth-lib (#4669)
This whole textdomain is dedicated to localized strings revolving around the
game's AI engine and the AI demos/test scenarios, with around 370 strings in
it.

Other than a few strings near the start of the catalogue template, none of these
have any value for regular players since they are sourced from AI demos and
test scenarios in data/ai/micro_ais/ and data/ai/scenarios/. None of them will
be displayed to people who aren't tinkering with WML or contributing to AI
development as part of the Wesnoth dev team, and some of the language used in
them is very technical in nature.

This commit leaves the "#textdomain wesnoth-ai" lines in the AI demos, but
drops the .po and .pot catalogues for wesnoth-ai. The few strings that are
seen by regular players move to the wesnoth-lib textdomain.
2020-10-01 10:29:39 +02:00
Steve Cotton
1d60c8d6e4 Rename old AI to "Old Default AI (1.14 version)" 2020-10-01 10:29:39 +02:00
Alexander van Gessel
e18ef37f1f
Fix typos and grammar. 2020-09-30 11:57:49 +02:00
gfgtdf
dc61150bec
don't let the ai choose their advancements off-turn
this gives errors when attempting to load  the "ai state" for that side.
In particular when its currently another ai sides turn so that another
"ai state" is already loaded.
2020-09-29 16:09:27 +02:00
Pentarctagon
444c0a4182
Typo fix [ci skip]. 2020-09-29 01:19:47 -05:00
gfgtdf
1f81b0fa24
replace a bad assert with VALIDATE
assert may only be used for cases that are guaranteed to be true for every possible input.
2020-09-28 14:20:17 +02:00
Pentarctagon
f3b7a17e51 Change most remaining cases of using async_send_doc to send_to_player for wesnothd.
The remaining uses of it are either:
* In server_base.cpp and wesnothd/server.cpp - this is during login, when there should be nothing else being sent to client anyway until the login is successful.
* In send_receive_wml_helpers.ipp - an error is sent back to a client if a read from the client failed with an simple_wml error.
2020-09-27 22:29:57 -05:00
Pentarctagon
2714ea0c8a More explicitly mark a couple things as not implemented. 2020-09-27 22:29:57 -05:00
Celtic Minstrel
c70c72a804 Update changelog 2020-09-27 20:31:27 -04:00
Celtic Minstrel
bb5929dc69 Define the sample dialog in the test scenario in WML instead of in Lua
I thought it would be nice to have at least one piece of example code that does this.

It also serves as a test to ensure that this technique actually works.
2020-09-27 16:44:28 -04:00
Celtic Minstrel
b3033ee0bd Fix missing image in the test scenario sample dialog 2020-09-27 16:44:28 -04:00
Celtic Minstrel
f57217f6c4 Convert uses of deprecated GUI2 API
This covers everything:
- SotA zombie dialog (was mostly converted already, just needed module name update)
- The remaining minor World Conquest dialogs that had yet to be converted
- Tutorial character select
- Test scenario sample dialog

This also replaces any uses of "callback" in favour of "on_xxx".
2020-09-27 16:44:28 -04:00
Celtic Minstrel
251e6c3f7a Apply the deprecation standard to the new GUI2 API
This also removes backwards-compatibility.lua altogether.
It's no longer correct in the general case to add backwards compatibility code to this file, so removing it entirely avoids situations where compatibility code is incorrectly added there.

In the C++, this removes the commented-out old GUI2 API entries, and
adds show_dialog to the gui module directly instead of moving it in core.lua
2020-09-27 16:44:28 -04:00
Steve Cotton
e0103c2cb5 Update the docs for ":droid full" in the help browser
This command and the documentation provided by ":help droid" were updated
in efd808ea842ff88174cc2e953c8b871b8c41dae0, but we missed that this command
is also documented in the help browser's (Commands, General Commands) page.

The docs here are more verbose than in ":help", so the text is newly written
instead of being copied from the existing location.
2020-09-27 20:58:57 +02:00
Celtic Minstrel
3d5d7eae11
Fix typos/formatting in changelog 2020-09-27 11:09:40 -04:00
Pentarctagon
02b0374186
Correctly state when the turn limit triggers defeat.
Fixes #5168
2020-09-27 01:02:15 -05:00
Pentarctagon
e4eeee73bb
Changelog update. 2020-09-27 00:31:29 -05:00
mattsc
d80214d9fc ai_helper.get_closest_location: bug fix for border hexes
If a unit is passed as the last argument to this function, the returned hex is supposed to be passable for that unit. Hexes on the map border need to be excluded in this case.

This specifically also fixes a bug in the Messenger Escort Micro AI. Previously, waypoints right at the map border could sometimes lead to the AI showing an on-screen error message and becoming inactive.
2020-09-26 14:02:19 -07:00
Hejnewar
a0be18f51d Changes in new units. 2020-09-26 13:46:08 -05:00
gfgtdf
8db4f22942 fix WC pickup confirmation dialog 2020-09-26 20:44:57 +02:00
gfgtdf
f14be74987 port more WC dialogs to the new lua gui2 api 2020-09-26 20:44:57 +02:00
gfgtdf
49517e05da fix lua gui2 callback setters 2020-09-26 20:44:57 +02:00
Hejnewar
24507c4169
Changes in prices of monster units and Chocobone. (#5166)
* Changes in prices of monster units and Chocobone.
2020-09-26 13:44:01 -05:00
gfgtdf
e313334e62 fix sota zombie recruit dialog 2020-09-26 12:08:22 +02:00
gfgtdf
9b4378d002 add listbox.item_count to gui2 lua api
TODO: maybe we should consider allowing the '#' (size) operator aswell
2020-09-26 12:08:22 +02:00
gfgtdf
301c9aea96 editor: don't write tod unless explicitly set 2020-09-26 12:08:22 +02:00
gfgtdf
6157603ed9 don't write unset attributes in the scenario editor 2020-09-26 12:08:22 +02:00
Steve Cotton
ef888206da Clean-up leftovers of the SCALING_ALGORITHM preference
The preference was removed in 15bf3bb25691c6ce71ac2a45bb4e5c06ea9239e6.
2020-09-25 23:56:59 +02:00
Nils Kneuper
32e3083723 updated Portuguese (Brazil) translation 2020-09-25 18:53:54 +02:00
Nils Kneuper
349d5df1f4 updated British English translation 2020-09-25 18:51:36 +02:00
gfgtdf
21a1220273
fix bad use of gui.widgets.find()
the old code no longer works after 661fc1d8ef
2020-09-25 01:05:27 +02:00
Gunter Labes
35d6fcfd30
Fix type inference for older compilers 2020-09-24 16:42:34 +02:00
Steve Cotton
04cc7f2ba3 Fixup c3c8b31a
This typo was caught by the schema-based validation, thus causing build
failures. Fix is compile tested, but not playtested.
2020-09-24 10:33:19 +02:00
Severin Glöckner
c3c8b31ab3 HttT: use Boolean variable for get_gryphons
Unlike documented, the value 1 also evaluates to true,
so backwards compatibility to old saves is available.
2020-09-23 12:30:05 +02:00
Severin Glöckner
694b05d35b HttT 11: use [have_unit] instead of variable 2020-09-23 12:14:55 +02:00
Severin Glöckner
4b3e1a8c99 HttT 13: handle variable
- use the worst-case instead of best-case if the variable is not set (happens only with debug mode)
- clear the variable
2020-09-23 11:53:40 +02:00
Severin Glöckner
93729e37c6 DiD 03: make some units immune to plague
They are revived in a cutscene, so they should not become a zombie.
There's no explanation to the player, but it's still better.

undead_variation=null disables plague, but in difference to
the status unplagueable it doesn't affect feeding.
2020-09-23 10:50:50 +02:00
Severin Glöckner
5e3919235a Campaigns: remove unused heal_amount variable 2020-09-23 10:49:42 +02:00
Severin Glöckner
8cd797705d DiD 03: let Ogre' traits match the cutscene
One does 6 damage, the other 5.
2020-09-23 10:42:24 +02:00
Nils Kneuper
264e344d73 updated Czech translation 2020-09-22 19:01:51 +02:00
Nils Kneuper
30ee822cb7 updated Portuguese (Brazil) translation 2020-09-22 19:00:22 +02:00
doofus-01
98d4411fe2
Update changelog for #5039 2020-09-20 17:54:00 -07:00