2401 Commits

Author SHA1 Message Date
Elvish_Hunter
b97d2e6a5e wmllint: implemented warnings about [advancefrom] -> [modify_unit_type] and extra_defines 2020-04-19 20:49:18 +02:00
Earth-Cake
23cb2eecf7 Remove WoV from wmlling and schema_validation 2020-02-04 18:05:59 -06:00
Elvish_Hunter
bff0611411 wmllint: allow multiple abilites for the same special note and handle some special cases
The notes handled as special cases are {NOTE_ARCANE}, {NOTE_SPIRIT} and {NOTE_DEFENSE_CAP}.
Fixes #4379
2020-01-27 20:42:22 +01:00
Elvish_Hunter
ada19250f7 wesnoth_addon_manager: do not generate packet.dump files any more
Fixes #4651
2020-01-13 17:29:12 +01:00
Severin Glöckner
15cd351c6b wmllint: better migration path for old id
[ci skip]
2020-01-13 00:14:41 +01:00
Iris Morelle
9a8bb8fb6e website: New Year copyright update
[ci skip]
2020-01-10 00:03:52 -03:00
Charles Dang
50839dd49f
Merge pull request #4663 from Chergnobarp/master
More wesml.vim fixes
2019-12-28 19:52:49 -05:00
Severin Glöckner
76a6e79fe6 update wmllint about DF changes
- Piercer was removed, it's line starts now from L2
 (Rider has different properties, but can advance to it)

- Strider is a better replacement for Monawish
  (Skirmisher was once a L2 and is now L1, while Strider is the new L2)

closes #4658
2019-12-26 12:25:56 +01:00
Chris Nasser
ef7d696935 Merge remote-tracking branch 'upstream/master' 2019-12-21 23:08:57 -04:00
Chris Nasser
8b2e589465 wesml.vim: Missing tags and typos. 2019-12-21 23:03:47 -04:00
Elvish_Hunter
d2e8d8cfd8 wesnoth_addon_manager: use tabs instead of spaces as field separators in --list output 2019-12-20 11:53:20 +01:00
Chris Nasser
bcffc9c7b9 Typo fix in wesml.vim.
store_village and story had no space between them, so they didn't
highlight correctly.
2019-12-18 07:13:11 -06:00
Chris Nasser
f6f339da4e Typo fix in wesml.vim.
store_village and story had no space between them, so they didn't
highlight correctly.
2019-12-18 00:39:13 -04:00
Elvish_Hunter
ec41359368 wmlscope: detect and analyze optional macro arguments 2019-12-02 21:23:58 +01:00
Toom
c4e39152cf Fix "wmllint: no translatables" magic comment 2019-11-19 18:21:15 +01:00
Elvish_Hunter
63c4fa6f66 wmllint: don't warn about [side] without type= if side controller is null
Fixes a few warnings in SotA
2019-11-18 20:46:34 +01:00
Steve Cotton
1035825152 Update changelog and readme for trackplacer python3 port 2019-11-18 18:24:28 +01:00
Steve Cotton
2c9caab3ce Add trackviewer, remove trackplacer
Trackviewer shows a journey without needing to start Wesnoth and refresh the
cache. Combined with tmx_trackplacer, the python3 versions now have
feature-parity with the old trackplacer, without the reliance on python2 or
pygtk (fixes #4365).

At least on Linux you can have both Tiled and this open on the same file. Save
the file in Tiled, alt+tab to this, and press enter to reload the file.
2019-11-18 16:57:26 +01:00
Elvish_Hunter
4acb95d557 wmllint: don't warn about missing type= in [side] if there's a [leader] tag inside
Fixes a wmllint warning in TSG, which is listed in #4494
2019-11-15 23:32:56 +01:00
Steve Cotton
3a8dc9c361 trackplacer3 a utility to export and import tmx files (#4365)
The python2 trackplacer included both the handling of the file format, and the
GUI application. This trackplacer3 is a library for the file format, without
the GUI.

The new tmx_trackplacer is a command-line tool for exporting the data to
Tiled's .tmx format, and re-importing it back to .cfg files, so that the GUI of
Tiled can be used to avoid reimplementing the GUI of Trackplacer in Python 3.

The implementation uses Tiled's Object Layers (not Tile Layers).  This allows
additional journey markers to be added with the "Insert Tile" tool, and
additional journeys to be added as new layers.

It can also read in a .cfg and then re-export it to a new .cfg file, to see if
the data is preserved. The format is chosen by the output filename.

The old trackplacer2 isn't removed in this commit - before removing it, I think
trackplacer3 needs some way to preview the animation.

----- Comments on the mainline campaigns: -----

AToTB, DM, LoW, NR and THoT will work with this. But:

Northern Rebirth's bigmap.cfg has a track RECOVERY whose STAGE1 starts with
an OLD_REST - that isn't handled by trackplacer, it must have been hand-edited.
That OLD_REST will be lost when read by either trackplacer2 or trackplacer3,
similarly the OLD_BATTLE of LoW's SAURIANS track will be lost.

Delfador's Memoirs SEARCH_STAGE1 is omitted from all subsequent parts of
SEARCH. Also in DM, SEARCH_STAGE3 has a point which is then moved in STAGE4
onwards - I guess a hand edit. Both of this will be overwritten if the file
is edited with either this tool or with the python2 trackplacer.

SotA's journey_chapter*.cfg files and WoV's bigmap.cfg file have some of the
trackplacer comments removed, they won't be handled by this tool, at least not
until better error handling is added.
2019-11-14 13:43:25 +01:00
Steve Cotton
4c48defdd0 Remove journeylifter from data/tools/README.md
Of the removed tools, it's the only one listed in this readme. The removal
was b8965178348fab03718fb4b7fb798e8427d7cbb9.
2019-11-14 01:11:16 +01:00
Elvish_Hunter
6ec75e9d54 wmllint: ignore id= keys in [candidate_action]
Fixes the TB warning listed in #4494
2019-11-13 22:31:28 +01:00
Elvish_Hunter
83ce0480c7 wmllint: don't consider [special_note] tags, only NOTE macros
Fixes the warnings for Swordsman and Royal Guard units listed in #4494
2019-11-13 22:17:48 +01:00
Elvish_Hunter
8f52a49800 wmllint: removed a few asserts and postponed a few unit sanity checks
Fixes #4102
2019-11-10 10:45:46 +01:00
nemaara
173edb9648 Update dunefolk in wmllint 2019-11-08 03:46:09 -05:00
Elvish_Hunter
8c6e637b9d Make wmllint ignore race= inside filters in [unit_type]
Fixes #4105
2019-11-05 20:00:05 +01:00
Iris Morelle
c75b7c1681 wmllint: Ignore [load_resource] for unit id validation
Fixes #4538.

[ci skip]
2019-11-04 22:13:25 -03:00
Edward Chernenko
5462d36561 wmllint: don't add description to [attack] tags within [filter_wml]
This fixes situation when wmllint tried to add description=_"fireball"
to the following WML code:

[filter]
    [filter_wml]
        [not]
            [attack]
                name=fireball
            [/attack]
        [/not]
    [/filter_wml]
[/filter]

Tags within [filter_wml] don't need to have all mandatory arguments
(like "description"), because:
1) they are temporary constructs and this description is never used,
2) such WML code expects that results will be filtered ONLY by name.
Adding description will remove results that have the same attack name
but different description.
2019-11-04 12:14:58 +01:00
Iris Morelle
84a38f773c wam: Add UI strings for core, other, and unknown add-on types
[ci skip]
2019-10-24 18:11:38 -03:00
Steve Cotton
c30c30acfc wmlxgettext: support double quotes in raw strings (fixes #4484)
This adds support for _<<map="{maps/01_First_Map.map}">>.
2019-10-19 20:37:39 +02:00
loonycyborg
d2ee0f4b73 Move appdata script to a more appropriate place 2019-10-15 16:14:32 +03:00
loonycyborg
3ed601bb91 Added tool to automatically add <release> tags to appdata 2019-10-14 21:00:38 +03:00
Elvish_Hunter
7c4e0373ac Removed dependency from obsolete psyco library 2019-10-13 21:54:38 +02:00
Elvish_Hunter
a830561dd0 Ported wmlparser to Python 3 2019-09-28 11:50:30 +02:00
Elvish_Hunter
5654b4c929 Removed broken wmlvalidator Python script 2019-09-28 10:59:45 +02:00
Severin Glöckner
f3022f69e4 wmllint: WoV is no add-on anymore
[ci skip]
2019-09-23 21:36:15 +02:00
Severin Glöckner
d87461dff9 wmllint: teach about new argument of disallow_end_turn
[ci skip]
2019-09-23 20:03:24 +02:00
Elvish_Hunter
20d1cf9a18 Fixed two bugs in wmlscope's square braces expansion
The first bug happened when there were two or more square braces in a file name: only one expansion was performed, instead of all of them being applied at once.
The second bug happened when a square brace range had leading zeros: these were just removed, resulting in false positives.
2019-09-21 14:59:04 +02:00
Elvish_Hunter
1fe32ff69d Ported wmlflip to Python 3 2019-09-20 22:01:31 +02:00
Elvish_Hunter
b896517834 Removed unused journeylifter Python tool 2019-09-19 18:05:23 +02:00
Elvish_Hunter
2863db36cc Removed the unused scoutDefault Python tool 2019-09-17 21:43:04 +02:00
Elvish_Hunter
9982afb21f Ported expand-terrain-macros to Python 3 2019-09-16 21:59:07 +02:00
Celtic Minstrel
15f431785a Add [special_note] tag in [unit_type] as a neater way of specifying special notes for the unit's description 2019-09-12 08:51:05 -04:00
Nobun
0cf8da9357 typefix 2019-09-11 14:32:16 +02:00
Nobun
e1c7c84957 wmlxgettext: fix #4275: not handle objectives.lua's turn counter 2019-09-11 14:32:16 +02:00
Martin Hrubý (hrubymar10)
6f468a3757
Migrate links to https if available
Closes #3343
2019-09-08 07:53:28 +02:00
Elvish_Hunter
853ae430ce wmllint: the correct package name for spellchecking is python3-enchant 2019-09-06 11:01:33 +02:00
Celtic Minstrel
8ce01da249 wmllint: Treat .mask files as maps 2019-09-02 12:48:01 -04:00
Celtic Minstrel
9be9dd931d wmllint: Fix some warnings detected by pylint 2019-09-02 12:47:58 -04:00
Gunter Labes
211f14176c
campaignd: Assign port 15015 to 1.15.x (#4228)
campaignd: Assign port 15015 to 1.15.x
2019-08-14 21:26:15 +02:00