73851 Commits

Author SHA1 Message Date
Jyrki Vesterinen
86c2833f84 Visual Studio project: link to libogg, libvorbis and libvorbisfile
Required for pull request #3851 that was recently merged.
2019-01-22 20:27:34 +02:00
Charles Dang
9b436ef743 Always used fixed precision for formatting size strings (#3871)
As recommended.
2019-01-23 02:26:34 +11:00
Severin Glöckner
548e8584b8 SoF S8: fixup for schema validation 2019-01-22 02:53:50 +01:00
Charles Dang
4d09e87193 UtBS: compatibility be gone!
[ci skip]
2019-01-22 12:28:57 +11:00
Charles Dang
3bc8f7e6a0 AToTB S3: fixed dialog line not being marked translatable
[ci skip]
2019-01-22 12:23:56 +11:00
Edward Chernenko
d5d23fb523 wmllint: fix "local variable 'unit_id' referenced before assignment"
In global_sanity_check(), variables "unit_id" and "base_unit" can be
used before assignment. This happens, for example, in this WML file:
https://github.com/Dugy/Legend_of_the_Invincibles/blob/master/utils/amla.cfg#L65
... where there is a [/unit_type] tag without the matching [unit_type].

(these variables are normally initialized when [unit_type] is found)
2019-01-22 11:56:37 +11:00
Wedge009
eba9987cc2 Cross-platform music track reading
Works on at least Windows and Linux. May need testing for macOS.

Won't see a difference in Map Editor music tracks unless the way sound-utils.cfg macros are used (reading track titles from that file) is changed.
2019-01-22 11:26:05 +11:00
Charles Dang
16d3080c76 THoT S12: fixed typo
[ci skip]
2019-01-22 11:22:58 +11:00
Severin Glöckner
0720596028 THoT S8: Ulfserkers aren't masked 2019-01-22 01:01:11 +01:00
Andrius Štikonas
ce8c8b74e6 Remove a stray foo. 2019-01-22 10:57:11 +11:00
Jyrki Vesterinen
b879702545 Config::valid_tag(): replace std::isalnum() with a manual check 2019-01-19 18:11:48 +02:00
Jyrki Vesterinen
f0990e2d7a Revert "Disallow creating variables with invalid WML tag names (fixes #3877)"
This reverts commit 736f217793368fa27d180ed4dc5818072319d528.

The check is redundant with the one in get_variable_key_visitor
constructor.
2019-01-19 17:29:55 +02:00
Jyrki Vesterinen
ccedb51101 WML attribute names must also be valid tag names
"_" isn't a valid attribute name, either.

I also made config::validate_wml() check attribute names in addition to
just the tag names.
2019-01-19 17:29:39 +02:00
Jyrki Vesterinen
81d0d2214a Lua API: Allow WML tags with leading underscore (#3877)
@gfgtdf said that it's more consistent to allow them across the board,
which IMHO is a strong enough argument for the API change in master.
2019-01-19 15:02:10 +02:00
Nils Kneuper
7d2e9383a3 updated Russian translation 2019-01-19 00:11:34 +01:00
Jyrki Vesterinen
cb2a236dbf Allow WML tags with leading underscore (#3877)
@gfgtdf pointed out that the WML parser can deal with such tags after all.
I had missed that when I implemented the check that the game state is
valid WML before saving it (commit 3bc36efa5898a95ce793195e24b4dee1b546c222).

Such tags are still disallowed in the Lua API because allowing them would
be an API change.
2019-01-18 22:15:20 +02:00
Jyrki Vesterinen
736f217793 Disallow creating variables with invalid WML tag names (fixes #3877)
Variables are saved as WML elements, and as such, variable names must also
be valid WML tag names.
2019-01-18 21:36:18 +02:00
ProditorMagnus
ec93694389 Reformat code (other than test WML fragments) 2019-01-18 19:57:58 +11:00
ProditorMagnus
3380c186be Add __str__ and __repr__ to String/Attribute/Tag/Root Nodes, fixes #3863 2019-01-18 19:57:58 +11:00
Charles Dang
05ab79fae3 GUI2: fixed typo in macro name (pointed out in #3847)
[ci skip]
2019-01-18 10:56:04 +11:00
Lovens Weche
75ca522a5b Fix addon manager crash if not finding the add-on (#3874)
* Fix addon manager crash if not finding the add-on

In the addon manager, there was no validation code for paths in the file
system for uploading addons. This fix adds validation at the parsing
level, so that the original code is left unchanged.

* Fixes for addon manager crash commit

Fixes include:

1. Spaces kept instead of tabs.
2. printf-style String Formatting is used since it seems to be compatible
with nearly all versions of Python.
3. A trailing line break was added to the formatted string.
2019-01-18 10:43:51 +11:00
sigurdfdragon
3541b4b6f1 Changelog: SotA changes 2019-01-17 12:47:43 -05:00
sigurdfdragon
6a16f50223 SotA S21: Eliminate need for player to chase down far away leaders 2019-01-17 12:47:38 -05:00
sigurdfdragon
a13b0a7c00 SotA S15: Move bird bones to where the bird is more likely to survive 2019-01-17 12:47:33 -05:00
Iris Morelle
318a6242ee campaignd: Explicitly check for before= and after= in add-ons list requests
A regression introduced in e2a64541002f0b4ee885f699c4f0901e441f938a
causes the timestamp-based list filtering to be forcibly enabled in ALL
cases because the author missed that the old code would bail out due to
lexical_cast() throwing an exception if the provided input was empty,
such as when before/after aren't provided in the list request. As a
result, the add-ons list would come up empty for clients because nothing
was matching the resulting time criteria.

The old pattern was a bit oblique to say the least, so I decided it'd be
best to replace it with an explicit check for the attributes' existence
and contents.
2019-01-16 20:37:19 -03:00
loonycyborg
d1ed0dccd1 scons: improved error handling for sql client lib and added support for mariadb_config 2019-01-15 14:23:47 +03:00
Charles Dang
f6aea1a44b Sync 1.14.5+dev changelog with the 1.14 branch
[ci skip]
2019-01-15 12:43:03 +11:00
sigurdfdragon
ded406baeb Changelog: New SotA changes 2019-01-14 20:40:20 -05:00
Charles Dang
3a16fa84ee Disable server2 and server3 options (closes #3873)
We might be able to enable these again, so just commenting out the options for now.
2019-01-15 12:13:03 +11:00
beetlenaut
c05d72a1b2 SotA: Add ability to recruit a variety of walking corpse types 2019-01-14 20:05:17 -05:00
beetlenaut
888d12841e SotA: Type change to follow convention for the Dark Adept line
Also changes handling of conditions that allow them to level into liches.
2019-01-14 20:05:17 -05:00
beetlenaut
564722d13e SotA S02: Limit player to only corpses in graveyard & one bat
Removes need to have insivible keep on first turn.
2019-01-14 20:05:17 -05:00
sigurdfdragon
d26f0328f2 SotA: Use proper animation for dark mages in chocobone animation sequence 2019-01-14 20:05:17 -05:00
beetlenaut
85c09d2aa0 SotA: Type change to follow convention for the bat line
Second type change commit.
2019-01-14 20:05:17 -05:00
beetlenaut
5df1f00bd1 SotA: Type change to follow convention of prefix for a few units
The rest are to follow
2019-01-14 20:05:17 -05:00
sigurdfdragon
567b422a5e SotA S06: Removal of unneeded duplicate of code in sota_utils.cfg
{SIDE_1_ARDONNA:TRANSFROM_BATS_TO_NORMAL_EVENT} holds the code now.
2019-01-14 20:05:17 -05:00
sigurdfdragon
fdd812cf47 SotA S21: Add some missing items
Add flag for the dwarves.
Add income for Magi to match handling of Dwarves & Elves.
2019-01-14 20:05:17 -05:00
sigurdfdragon
aa7f1cfb34 SotA S05: Add dialog for Ardonna attempting to silence the captain 2019-01-14 20:05:17 -05:00
sigurdfdragon
cd2ea2ceb4 SotA S21: Have elf from S12 lead the elven forces 2019-01-14 20:05:17 -05:00
beetlenaut
2962c1290e SotA S10: Improve and simplify animation for finding bird bones 2019-01-14 20:05:17 -05:00
beetlenaut
f83ab8d594 SotA: Give newly made liches the additional move point when appropriate 2019-01-14 20:05:17 -05:00
beetlenaut
8103fd14ae SotA: Move skeleton sacrifice animation to undead directory 2019-01-14 20:05:17 -05:00
beetlenaut
676044470c SotA S11: Dialog adjustments 2019-01-14 20:05:17 -05:00
beetlenaut
3851ceff38 SotA S01: Dialog and display adjustments 2019-01-14 20:05:17 -05:00
beetlenaut
30d906ef18 SotA S01: Make one wolf a Great Wolf on hard difficulty 2019-01-14 20:05:17 -05:00
beetlenaut
02d7ef3a49 SotA S01: Better implementation of fences blocking the wild animals 2019-01-14 20:05:17 -05:00
beetlenaut
abdf5302a4 SotA S11: Move ghost recruitment from start to victory event 2019-01-14 20:05:17 -05:00
beetlenaut
e16746018e SotA S19: Add lava near start to improve look 2019-01-14 20:05:17 -05:00
gfgtdf
7ea1377945
fix modify_unit optimisation for recall units. 2019-01-13 20:00:25 +01:00
josteph
8cbc3a4477 Fix markup in README.
Fixes #3864
2019-01-12 16:21:58 +00:00