76836 Commits

Author SHA1 Message Date
Pentarctagon
113a4e0913 Use mariadbpp rather than the mysql C connector.
Reasoning being:
* The result_set and other APIs are nicer to use.
* We use mariadb on our server rather than mysql, so this would minimize the chance of any incompatibilities.
* The mysql C++ connector 1.1 isn't compatible with with c++17 (https://stackoverflow.com/q/47284705).
2020-07-30 13:17:22 -05:00
Pentarctagon
f996803cf6 A separate button for info/announcements.
Rather than having everything in the MOTD, this adds a separate button that will popup a window which will have most of this information in two tabs:
* General server information, such as a link to the CoC.
* Announcements, such as tournaments and new versions being released.

The information on this new window will be stored in the new `server_config` database table.
The MOTD will then just be a short greeting instead of the several lines that are shown currently.

Additionally, now the motd will only be displayed in the lobby chat the first time the user logs on.
2020-07-30 13:17:22 -05:00
Pentarctagon
4a3177b228 Don't display the motd every time a user rejoins the MP lobby. 2020-07-30 13:17:22 -05:00
nemaara
86b0a82f88 DiD S7b: change FDR's fear quote 2020-07-30 05:18:37 -04:00
nemaara
3f3ceb5157 DiD: fix impetuity description 2020-07-30 05:15:35 -04:00
nemaara
f64c40c146 DiD S7a: clarify reduced vision 2020-07-30 05:14:18 -04:00
nemaara
f96e06b802 DiD S3: clarify objectives 2020-07-30 05:10:44 -04:00
Steve Cotton
c1e4178338 Disambiguate some python shebang lines to be "python3"
Loonycyborg already uses these tools with Python 3.

The python launcher tool for Windows has magic handling for some shebang lines,
however `#!/bin/env python` isn't recognised without the `/usr`. Had the `/usr`
been included with the old code then these scripts would likely have been run
with Python 2.
https://docs.python.org/dev/using/windows.html#shebang-lines
2020-07-29 22:10:02 +02:00
gfgtdf
c7d0144535
readd changing the order of [terrain_graphics] (#5012)
before the 'ignore unused addons' commit, the engine reordered [terrain_graphics] to make mainline [terrain_graphics] appear after umc [terrain_graphics] tags, this commit restores this behavior  (instead of using [terrain_graphics]precendence= in mainline which would be an alternative fix). If we ever use game_config_view for anything else than the game_config we can also make this an optional "bool put_first_source_last" parameter.
2020-07-29 19:31:54 +02:00
gfgtdf
3df569ae74
fix missing chunk name in [lua] tags with no name= attribute
reported here https://forums.wesnoth.org/viewtopic.php?p=656867#p656867
2020-07-29 18:52:41 +02:00
gfgtdf
c4a6b223f3 use 1-based side numbers in get_village_owner 2020-07-29 01:09:06 +02:00
gfgtdf
fb1974248f Allow more than one starting position on the same tile
Since the gamemap structure already supports this, it
only makes sense that the code that reads gamemaps
supports it aswell.
2020-07-29 01:09:06 +02:00
gfgtdf
2f71cedc5d small map reading refactor
we now use string_view instead of char* pairs
2020-07-29 01:09:06 +02:00
gfgtdf
89e56d8fb9 add utils::split_set and move split_foreach
this also improves the perfromance of utils::split because
it no longer uses stringstreams.
2020-07-29 01:09:06 +02:00
Iris Morelle
fa08ff291b gui2/button: Fix highlight colour for the disabled state
It was apparently copy-pasted from the pressed state. This resulted in
disabled buttons looking like they are pressed.

[ci skip]
2020-07-27 06:02:53 -04:00
loonycyborg
350462a5af Added support for returning full rows to prepared_statement<>
Now it can also take any type C as result type which it will treat like
STL-like structure adding result rows to it using C::push_back().
2020-07-26 16:04:11 +03:00
Nils Kneuper
490e24d543 updated Portuguese (Brazil) translation 2020-07-26 10:27:20 +02:00
Iris Morelle
ceabe0c79c SoF: Use the correct macro for enemy flags
Fixes subtle animation issues with them.

[ci skip]
2020-07-25 04:08:38 -04:00
Iris Morelle
9fa0536eaa wmllint: Recognize [remove_time_area]
Fixes issues with wmllint emitting spurious warnings about unit ids when
encountering time area ids in [remove_time_area].

[ci skip]
2020-07-25 04:05:49 -04:00
Steve Cotton
11d702225b
Warn about manually editing files created by the scenario editor (#5001)
This comment will be added at the start of any .cfg file written by the
scenario editor. Given that the only target audience is authors using text
editors, it's not translatable and uses plain ascii characters.
2020-07-23 19:18:08 +02:00
gfgtdf
67b4fb9ce0
fix map_file= 2020-07-22 15:15:00 +02:00
Iris Morelle
17b5d5420e gui2/file_dialog: Use golden headers above list views 2020-07-22 01:25:12 -04:00
Charles Dang
ff0eecc7c7
Merge pull request #5000 from gwhitney/revert_assert
Don't insist that windows request nonzero height or width
2020-07-21 02:33:23 +11:00
Glen Whitney
2808cad37b Don't insist that windows request nonzero height or width
Eases the assertion concerning nonzero window dimensions in
  gui/widgets/window.cpp; it turns out that some windows do request zero
  dimension, and it doesn't hurt anything for them to.

  Fixes #4960.
2020-07-19 22:32:31 -07:00
nemaara
c14b941e32 Ixthala demon: fix exp 2020-07-20 01:04:35 -04:00
Iris Morelle
ea883befcf gui2/preferences: Use labelless toggle buttons in Advanced
The labels are implemented with a different widget on a separate column,
the the reserved space only serves to make things look weird.
2020-07-19 21:53:44 -04:00
Iris Morelle
75344d0ec1 gui2/mp_alerts_options: Clean-up table column/row headers
Yes, this UI is effectively a table in the truest sense of the word.
2020-07-19 21:39:32 -04:00
nemaara
0c969f858b
Merge pull request #4974 from nemaara/quenoth_rebalance
UtBS and Quenoth rebalance
2020-07-19 19:54:55 -04:00
nemaara
651e725064 Add UtBS rebalance to changelog 2020-07-19 19:54:43 -04:00
nemaara
49eb715516 UtBS S12: don't recall merfolk into caves 2020-07-19 19:52:06 -04:00
nemaara
dd15d88a31 Sun Singer/Sylph: slightly reduce hp 2020-07-19 19:51:34 -04:00
nemaara
8a3b9f15be UtBS: reduce difficulty on easy and normal 2020-07-19 19:51:34 -04:00
nemaara
74033f89b2 UtBS: increase HP loss from dehydration 2020-07-19 19:51:33 -04:00
nemaara
3745de3a30 UtBS S12: allow everyone to move and attack after killing fake Eloh 2020-07-19 19:51:33 -04:00
nemaara
60e615cc90 UtBS S12: increase difficulty 2020-07-19 19:51:30 -04:00
gfgtdf
753643bf75
Update help.cfg 2020-07-19 23:38:51 +02:00
mattsc
c72537687e Experimental AI: always show up in MP menu
This reverts 24af20cf83, which made it available in debug mode only, as there remain more differences to the new default AI than initially envisioned. This takes care of Issue #4997.
2020-07-19 11:05:01 -07:00
Nils Kneuper
5f20e059dc updated Portuguese (Brazil) translation 2020-07-19 12:09:44 +02:00
nemaara
47b817d982 UtBS S5: don't give free units 2020-07-15 18:40:54 -04:00
nemaara
79ea509cef UtBS S11: don't give units at start 2020-07-15 18:40:54 -04:00
nemaara
665a5a8258 UtBS S11: increase difficulty 2020-07-15 18:40:53 -04:00
nemaara
5dc0356c71 UtBS S9: don't give free units 2020-07-15 18:40:53 -04:00
nemaara
cbf17ccf38 UtBS S9: increase difficulty 2020-07-15 18:40:52 -04:00
nemaara
1de014e510 UtBS S8: increase starting castle size by 1 2020-07-15 18:40:52 -04:00
nemaara
222eb59502 UtBS S8: increase difficulty 2020-07-15 18:40:51 -04:00
nemaara
6fb716c2b0 UtBS: buff some enemy units 2020-07-15 18:40:51 -04:00
nemaara
e8866f838d UtBS S6a: increase difficulty 2020-07-15 18:40:50 -04:00
nemaara
0e57873e58 UtBS S6b: increase difficulty 2020-07-15 18:40:50 -04:00
nemaara
e05d31b31f UtBS S5: rebalance scenario 2020-07-15 18:40:49 -04:00
nemaara
867a8647e8 UtBS S4: rebalance scenario 2020-07-15 18:40:45 -04:00