81503 Commits

Author SHA1 Message Date
Pentarctagon
3d7d5dbdbf
Add ability to allow secondary authors to upload an add-on. (#7268)
* Add ability to allow secondary authors to upload an add-on.

The secondary_authors attribute is a comma-delimited list of forum accounts that can also upload updates to an add-on. Secondary authors can't change the primary/secondary authors and can't delete the add-on.

The primary author can also make someone else the primary author by:
* Putting their username in the secondary_authors attribute
* Putting someone else's username in the author attribute
* Uploading the add-on while selecting themselves
This works since they are still (until the upload is done) the primary author in the database, so they are allowed to change the authors list, including in this case.
2023-01-11 10:21:55 -06:00
Steve Cotton
e7e6649377 Fix the indentation in the "special_calculations" test
Just a whitespace change, because it can't be used as a reference to cut & paste from
when it's incorrectly indented.
2023-01-10 12:25:16 +01:00
Pentarctagon
bc26194e5b Add era to faction query. 2023-01-09 09:05:44 -06:00
Nils Kneuper
ecb8e4c587 updated Japanese translation 2023-01-08 16:00:12 +01:00
Nils Kneuper
3fb474836e updated French translation 2023-01-07 11:18:55 +01:00
Pentarctagon
fbeae32002 Rename database column SOURCE to ADDON_ID.
Also rename VERSION to ADDON_VERSION.
2023-01-06 19:59:26 -06:00
Pentarctagon
18d1f235ca Noticed I changed the wrong column but forgot to save the file after... 2023-01-06 10:48:42 -06:00
Pentarctagon
859a56f4c2 Shrink max column length.
Required for the updated primary key - the max allowed primary key length is 3072 bytes which isn't enough when there are three VARCHAR(255) columns and each character uses 4 bytes. The max length of the data in these columns so far is also well under 100 characters.
2023-01-06 10:42:21 -06:00
Pentarctagon
e5023e40db Skip inserting rows that would cause a duplicate primary key error.
The cause is that somehow, during regular play, MP campaigns can end up with duplicate values in the [content] data for each [addon]. A very similar issue was fixed in 6c980d12dcd56ccd16ff8b7150cd15ef19f0a821, but there's apparently some other way to trigger it that I haven't been able to reproduce. Since the error itself is harmless, it'll just be avoided server-side to avoid the spurious errors in the server log file.
2023-01-06 10:22:04 -06:00
Steve Cotton
6457ceb206 Checksums: accept 1.16's checksums during replays
This will also accept them during multiplayer matches, but it will still
warn if the unit's stats have changed. When using the new option, the
checksum includes data that has been ignored since 93fe5607a658c74b987.
2023-01-06 16:00:57 +01:00
Steve Cotton
9f780903ab HttT S03: Rewrite intro, hint about training troops for S06
The island gives the player two fronts to progress on, and it's early enough
to give the player time to prepare for the SoE. Hint to them about improving
their recall list.

When trying to add that hint as a single-line change to the dialogue, I
reviewed the existing text and felt it didn't flow well. Reading the feedback
thread, Delfador should have more emotion about finding his childhood home
overrun; however I've gone for practical thoughts first.

The hint isn't #ifdef to only appear on easy, because the text wouldn't flow
without it - take that line out and it goes from "there are more orcs than I
thought" to "we must fight these orcs, who aren't the ones at the SoE". Also,
players who are already doing XP management can feel knowledgeable when they
see it.
2023-01-03 23:32:05 +01:00
Nils Kneuper
0eb6ecb42e updated Italian translation 2023-01-02 12:19:07 +01:00
Nils Kneuper
a086f23a7f updated Turkish translation 2023-01-02 12:18:08 +01:00
Toranks
4a5d1932c7 Fixed texdomain
Weapon specials usually are on wesnoth-help texdomain
2023-01-02 14:06:37 +11:00
Wedge009
2fa7c67277 Lingering reference to .png -> .webp 2023-01-02 13:40:32 +11:00
Wedge009
8ce7578adf Correct path to unit images. Resolves #7254. 2023-01-02 13:27:38 +11:00
Wedge009
7de9c9110a Replace deprecated terrain codes. 2023-01-02 13:23:28 +11:00
Wedge009
2b697742ce Resolve non-standard spacing.
[ci skip]
2023-01-02 13:07:39 +11:00
doofus-01
f579000862
Update changelog.md 2022-12-31 05:48:42 -08:00
doofus-01
cfe97f9070
1.17 more fauna work (#7244)
* fix mixed-up falcon attacks

* buff falcons, so they are more even with bats

* add more ants, reorganize ants
2022-12-31 05:46:15 -08:00
Elvish_Hunter
d4c8d08064 wmllint: improve [campaign] rank= validation message 2022-12-30 23:33:59 +01:00
Elvish_Hunter
c1a074ea41 wmllint: validate values of [campaign] rank= 2022-12-30 22:49:36 +01:00
Steve Cotton
7ddf691e13 Allow abilities.cpp to access units and teams earlier during play_controller::init
Partially reverts 6a21fdc6750a8342846ef18248517808316c4118
Fixes #5643
Fixes #7238

There's a bunch of global things that can be accessed either via global
pointers in the `resource` namespace, or via `display::get_singleton()`. The
singleton and these global pointers are set up in `play_controller::init`,
however there's a section where things are available via the global pointers
but the `display` singleton doesn't exist yet. During that time, checking
whether an ability is active can crash the game.

Removing the global pointers is a good goal, but detouring through a GUI class
to access the data causes its own problems.

The "has already been confirmed valid by both callers" comment is replaced with
an assert, because there's currently at least three callers.
2022-12-30 22:08:32 +01:00
doofus-01
9d48e0331a
1.17 move Sand Scuttler out of scorpion (#7236)
* move sand scuttler out of giant scorpion

* convert mainline campaign scuttler variation usage

* convert mainline MP scenario scuttler variation usage

* leave hidden, compatibility scuttler variarion
2022-12-29 20:41:21 -08:00
Steve Cotton
b9e4fdffb4 Update deprecation but postpone removal of the SPECIAL_NOTES macro
Units still using this in their descriptions will have the player-visible
header change from "Special Notes:" to "Special Notes (1.14-style, please
update to the new list format)".

The SPECIAL_NOTES macro was originally removed early in the 1.17 dev cycle.
That removal was reverted and postponed in the roadmap until Jan 2023, on the
grounds that it's a lot easier to test 1.17 when the big add-ons from 1.16 can
run on it.

In 1.16, UMC that hasn't upgraded yet already has a cosmetic bug - the help
pages of units still using the {SPECIAL_NOTES} macro will include duplicate
notes (assuming the expected usage of {SPECIAL_NOTES} as a heading in
[unit_type]description=, which is followed by old-style notes). These are minor
cosmetic bugs, which are expected to be removed as UMC gets updated.

That leaves the issue of what to do with the deprecated macro in 1.18. My
feeling is that we can easily continue to support the macro, albeit with the
cosmetic bug, so we should keep it for 1.18. However we could make it clearer
that the duplicated notes should be removed from the UMC.

This also removes some docs about NOTE_*s, those macros have already been
removed after being deprecated in 3568b5ff66ece00ec09f40059e552123f356d962.
2022-12-29 16:53:13 +01:00
Steve Cotton
e28f29b4ac Add unit tests for weapon-special calculations
Covers the math for [attack]add=, [attack]divide=, [attack]multiply= and
[attack]sub=. The behavior is the same in 1.16.

* 5 + 2 = 7
* 5 - 3 = 2
* 5 + 2 - 3 = 2. Yes it does, that's half of why this unit test exists ...
* 5 + 2 + 3 = 8
* 5 + 3 + 2 = 8
* 5 + 2 - (-3) = 7
* 3 * 3.34 = 10
* 3 * 3.334 = 9. ... and that's the other half of why this unit test exists.
2022-12-29 15:40:01 +01:00
Celtic Minstrel
e482be048b Minor LuaDoc fix 2022-12-28 15:03:53 -05:00
Pentarctagon
4218924c4a Fix copy/paste comment. 2022-12-28 12:08:09 -06:00
doofus-01
6e5cb055aa
1.17 minor updates to monsters (#7235)
* some elder falcon frames

* update to kraken portrait
2022-12-27 17:03:10 -08:00
Toom
034e489b19 Exclude nonvillage from outer_villages array 2022-12-27 08:16:50 +01:00
doofus-01
1603dea8f6
make north-breathing drakes face se instead of s (#7233) 2022-12-26 17:13:53 -08:00
doofus-01
17a95134ac
get elevation markers out of the mini-map (#7232) 2022-12-26 11:37:57 -08:00
doofus-01
381e95e6df
1.17 Terrain Help fixes (#7193)
* clean up SotA terrain aliases

* add help entry for terrain elevation in Map Editor topic
2022-12-26 05:13:55 -08:00
doofus-01
0aae92ff98
Update changelog.md 2022-12-25 21:14:43 -08:00
doofus-01
8e38cfd01a
1.17 some random Loyalists sprite updates (#7208)
* Spearman update

* Grand Knight update

* Cavalryman update

* General update
2022-12-25 21:12:18 -08:00
doofus-01
eee5d44e99
Update changelog.md 2022-12-25 17:56:06 -08:00
doofus-01
f9bd000a4e
dunefolk rover portrait (#7216) 2022-12-25 17:53:50 -08:00
doofus-01
2fa006f716
add forgotten kraken ink projectile images (#7229) 2022-12-24 17:54:55 -08:00
Celtic Minstrel
7d5fa80180
WML: Adjust the weapon selection logic for [kill] (#7196)
* WML: Adjust the weapon selection logic for [kill]

The previous logic simply did not make sense, especially for the secondary weapon.
For example, it would ignore the secondary weapon specification if the primary weapon was not found on the secondary unit, which does not make any sense.

The cases that this changes are:
- There is a secondary unit and a primary attack, but no matching attack was found. Previously it would use the default, now it pretends that attack exists.
- There is a secondary attack specified, but no primary attack, either because it was unspecified or because it didn't match any attack on the secondary unit

In both these cases, the animation runs as if a matching attack exists, rather than using no attack and choosing the default animation.

Adjust the log level too.
2022-12-24 16:52:57 +01:00
Nils Kneuper
c8701e2ef5 updated French translation 2022-12-23 14:01:09 +01:00
Nils Kneuper
8cadfa3814 updated British English translation 2022-12-23 14:00:05 +01:00
Nils Kneuper
d1df776f61 updated Czech translation 2022-12-23 13:58:46 +01:00
Nils Kneuper
c3dfcb26fe updated Arabic translation 2022-12-23 13:55:27 +01:00
Pentarctagon
5849a143c5 Fix undefined macro error. 2022-12-22 10:25:32 -06:00
Pentarctagon
128c0dacf9 dos2unix line endings. 2022-12-21 12:30:04 -06:00
Pentarctagon
30b55575e6 Add toplevel FilterWML tests folder. 2022-12-21 12:30:04 -06:00
Pentarctagon
129f5742fc Tests cleanup. 2022-12-21 12:30:04 -06:00
Pentarctagon
5eae1b6199 Reorganize unit tests. 2022-12-21 12:30:04 -06:00
Pentarctagon
ffbb1c0913 Try setting a more specific cache name 2022-12-20 15:18:21 -06:00
Toom
07dc953875
Escape < and > even if only one of them exists or if found multiple times (#7154)
* Escape < and > even if only one of them exists

In python negative index counts from the end, so without this change or another solution
"example with only < one side" would be converted to 
"example with only < one sid&gt;example with only < one side"

* Escape < and > even if found multiple times
2022-12-20 20:07:17 +01:00