79120 Commits

Author SHA1 Message Date
Nils Kneuper
aadec0fe88 updated Japanese translation 2021-06-19 11:32:58 +02:00
Nils Kneuper
e64530d802 updated Scottish Gaelic translation 2021-06-19 11:31:19 +02:00
Nils Kneuper
a657fdef5a updated Spanish translation 2021-06-19 11:30:06 +02:00
Steve Cotton
264f90eed4 Default [print]duration= to 5 seconds, tutorial uses "unlimited"
In 1.14, the default was 50 frames, or around 1.7 seconds. In 1.15.4, commit
a9d9e48c72e70fd41ae9759e3894752eb9708596 changed the interpretation of that
number to milliseconds, but missed that this affected the [print] tag; this
left the default time that the text is shown as an unreadable 50ms.

All places in mainline that use [print] specify a duration, so the default
isn't used. Here I've plucked the new value from UtBS S09, where it was chosen
in f405b916a1141c2a4bc3bda3f88bbe0a8b8fe91b.

The special value "unlimited" is now recognised as meaning to display the text
until it's removed by another [print] tag. The tutorial uses this special case
to display the text until the player does the requested move - originally it
displayed the text for 10000 frames (around 40 minutes), which still seemed
reasonable when it changed to 10000ms.
2021-06-19 07:08:17 +02:00
Iris Morelle
a723cd2c17
gui2/addon_manager: Fix spelling on the Add-on Details button label 2021-06-18 20:50:36 -04:00
Pentarctagon
0e3faee803 Add a method to clear and then add multiple items to a tree view.
This addresses the lobby performance issue as far as the playerlist updating. Previously for every player an item was added and the size of the tree view recalculated, which led to an increasingly unresponsive UI when the number of players in the lobby got to around 150+. With this change, the replace_children() method adds all the players and then after that recalculates the tree view's size once.
2021-06-18 19:12:05 -05:00
Pentarctagon
dc813ac693 Remove the 'group players' lobby UI preference. 2021-06-18 19:12:05 -05:00
Pentarctagon
7fa4b92faf Remove unused code. 2021-06-18 19:12:05 -05:00
Pentarctagon
5c54b6bdfd Remove remnants of rooms. 2021-06-18 19:12:05 -05:00
Iris Morelle
4511512c50
campaignd: Assign port 15016 to Wesnoth 1.16 2021-06-18 16:10:45 -04:00
Celtic Minstrel
d39e6b3f42 Schema: Make turns validation more generic
This means other things can now easily accept the special keyword "unlimited".
2021-06-18 13:53:34 -04:00
mattsc
ecc34f0197 Update changelog 2021-06-18 07:26:56 -07:00
Celtic Minstrel
67ba27b8a3
Move the end level data accessors to wesnoth.scenario (#5861) 2021-06-17 20:41:48 -04:00
Elvish_Hunter
525d65bc2f Ported [store_time_of_day] to Lua 2021-06-17 22:19:01 +02:00
mattsc
ae4e3f2191 AI: fix crash when using attacks aspect
When the attacks aspect is used with invalidate_on_gamestate_change set to no, its movements field may point to locations without units if those units moved during a previous attack.  Thus, we need to check whether u contains a valid unit.

Fixes #5865
2021-06-17 07:37:51 -07:00
Pentarctagon
e6104310ba
Whitespace fix. 2021-06-15 15:16:17 -05:00
Pentarctagon
fb703e5500
Update mariadbpp submodule. 2021-06-15 11:06:59 -05:00
Celtic Minstrel
131ad43e3e Move wesnoth.get_traits into wesnoth.game_config as global_traits 2021-06-15 09:57:30 -04:00
Celtic Minstrel
7e2d9cba28 Move wesnoth.teleport into wesnoth.units 2021-06-15 09:56:04 -04:00
Celtic Minstrel
0c42cdc038
Enable translation mark validation by the schema (#5800)
- The t_string type is now a schema built-in type and no longer attempts a regex match.
- You can also specify that non-t_string types may be optionally-translatable; this case supports a regex match on the string (but note that the translation mark is not part of the match).
- Error messages involving keys with very large values ( > 128 characters) will now truncate the value.
- To account for occasional cases where the schema is intentionally violated, the --validate command-line option now automatically defines the SCHEMA_VALIDATION preprocessor define.

A key validates as type t_string if one of the following is true:
- The key is not present
- The key has at least one segment with a translation mark
- The key is blank (an empty string)

Any type other than t_string is not allowed to be translatable by default, unless you specify allow_translatable=yes in the [type] tag.

An optionally-translatable string could also be defined as a union of t_string and some other type.
2021-06-14 23:59:52 -04:00
Steve Cotton
08b65b2bd7 Tutorial S02 and tips: Mention holding shift for accelerated speed
One of these uses bold for the menu's name, the other uses italic, because that
seems more consistent with the other hints in the same context.

Re-attach the comment about upkeep to the correct [event], and move the comment
about the easter-egg event to the start of its [event].
2021-06-14 09:57:26 +02:00
doofus-01
a7b556fe6b
Update changelog.md 2021-06-13 20:54:19 -07:00
doofus-01
4811de8642
Last minute Naga things (#5855)
* move UtBS mace nagas to core

* adding mace naga portraits from LordBob

* move naga hunter portrait to UtBS from core

* de-bow-ify the ophidian nagas and add Deflect weapon special

* revisions to mace nagas base sprites

* revisions to naga guards, including new weapon special Absorb

* compatibility Nagas for UtBS
2021-06-13 20:51:38 -07:00
Celtic Minstrel
2f4868351b Remove undocumented wesnoth.game_config.eras 2021-06-13 23:26:48 -04:00
Celtic Minstrel
85653d64c3 Make repeats argument optional in wesnoth.audio.play 2021-06-13 23:26:33 -04:00
Steve Cotton
7ed7a05e47 Tips: remove hints about tooltips and the hotkey preferences
Tooltips are such a common GUI feature that having a tip of the day about them
seems unnecessary. I'd expect a player to find out that we have them the first
time that the player wonders "what does that button do?".

While having hints about specific hotkeys seems logical, a general hint to
read the list of keybinds doesn't seem helpful.
2021-06-14 01:42:48 +02:00
Nils Kneuper
2df6235efd updated Indonesian translation 2021-06-12 11:36:55 +02:00
Nils Kneuper
8709e0d58e updated Czech translation 2021-06-12 11:32:28 +02:00
Nils Kneuper
037ac7fa25 updated British English translation 2021-06-12 11:31:10 +02:00
Celtic Minstrel
fb17bfca71 Fix wesnoth.scenario deferring to wesnoth.game_config 2021-06-11 22:32:39 -04:00
Celtic Minstrel
1313a8ddd3 Fix mapgen Lua kernel using the wrong random function
This simply overwrites mathx.random in the mapgen kernel.

Fixes #5846
2021-06-11 21:57:55 -04:00
Pentarctagon
2190792369
Use correct type for SQL case-selected value. 2021-06-11 15:15:32 -05:00
mattsc
4de9720c1f
Merge pull request #5851 from wesnoth/CelticMinstrel-patch-1
Fix bug in AI state loading that could cause an error when the AI is initialized from a saved game
2021-06-11 12:49:27 -07:00
Celtic Minstrel
42cb24e89f
Fix bug in AI state loading that could cause an error when the AI is initialized from a saved game 2021-06-10 21:06:48 -04:00
Pentarctagon
cb7bf96a5b
Minimum boost version is 1.66. 2021-06-10 18:49:37 -05:00
Pentarctagon
ff7ebc2243 Add option to pre-populate wesnothd's user list with dummy users.
None of the dummy players have an actual connection or client, so any attempt to interact with them will fail. The main usecase for this right now is testing the performance of the MP lobby UI updates when there are many players online.
2021-06-10 18:16:49 -05:00
mattsc
d8e472e753
Merge pull request #5609 from mattsc/mai_fix_replay
Micro AIs: fix unit variables being lost in replays
2021-06-10 11:42:50 -07:00
mattsc
152e18b9d6
Merge pull request #5595 from mattsc/undo_assert
Fix potential crash when running commands in synced context
2021-06-10 11:08:53 -07:00
mattsc
7e22e5c8f2 Fix assert with custom synced AI commands
Function run() at the beginning of synced_context.cpp asserts when a command is configured not to be undoable (use_undo=false), but the undo stack is not empty (resources::undo_stack->can_undo() returns true). Thus, the undo stack needs to be cleared before executing commands that are not supposed to be undoable.

Most AI commands use use_undo=false, but custom synced commands route through do_command, which uses a hard-coded use_undo=true. That, by itself, is not a problem, but if the next AI action uses use_undo and does not clear the undo stack first, the assert is triggered. AI actions with use_undo=false therefore need to clear the undo stack. This commit adds that for recruiting and recalling, the only AI actions that did not already do so.
2021-06-10 08:56:11 -07:00
Steve Cotton
629df4e76c Slight optimisation of canvas::set_variables using std::move
Doesn't make much difference for release builds built with GCC,
it takes between 1% and 7% off the cost of std::update_canvas().
Calculated using the time taken by gui2::widget::get_best_size()
as a reference.

It's a tiny improvement, but it's also a tiny change, and the
improvement is in the loop that's MP lobby's performance problem,
as described in issue #5578.
2021-06-09 19:28:46 +02:00
loonycyborg
c7d35237f6
Add TLS changes to changelog 2021-06-09 20:04:39 +03:00
Steve Cotton
bf3f22a030 Make the profiler configurable in CMake's UI 2021-06-09 11:21:54 -05:00
Pentarctagon
e53d9c321d
Update gcov options. 2021-06-09 02:51:17 -05:00
Pentarctagon
f4e6e1861f
Add -fno-omit-frame-pointer for perf. 2021-06-09 00:59:43 -05:00
Iris Morelle
e0d60b0e2b font: Remove dead code and WML previously associated to SDL_ttf
The [fonts] [font] WML was only used to set up SDL_ttf fonts. The engine
code to read it was left in after
2dfdc0061d400ffad39f974d7fe9348204af0d08 in a dead state (some
structures are filled with data that never gets used).
2021-06-09 01:37:05 -04:00
Pentarctagon
4b35be4bb0 Combine profile build into release build. 2021-06-08 21:23:38 -05:00
doofus-01
957496560b
Update changelog.md 2021-06-06 21:02:57 -07:00
doofus-01
eed1fe6073
SoF - final scenarios (#5835)
* some revisions to final two scenarios

* update the credits

* add cave and red wyrms (dragon-ish bat replacements)
2021-06-06 20:58:12 -07:00
Celtic Minstrel
f7e43799ba Remove the deprecated wesnoth.select_hex 2021-06-06 13:43:13 -04:00
Celtic Minstrel
3c8de46771 There were some old functions that are now covered by the wesnoth.scenario module, so deprecate them 2021-06-06 13:42:54 -04:00