Commit graph

2320 commits

Author SHA1 Message Date
Celtic Minstrel
59e78e5565 Move wmlxgettext to the data/tools directory so that it's automatically included in official packages 2018-09-08 18:07:42 -04:00
Elvish_Hunter
b1ec52cab8 wmllint: added [lua] to the allowed children of [if] 2018-08-12 23:10:09 +02:00
Elvish_Hunter
6e696661fd wmllint: don't even try to convert _info.cfg 2018-08-12 23:10:09 +02:00
Elvish_Hunter
2d045f2a6a wmllint: do not warn about unknown IDs in [tunnel], except inside of [filter] 2018-08-12 23:10:09 +02:00
Elvish_Hunter
2dda3280c1 wmllint: do not warn about unknown IDs in [remove_event] 2018-08-12 23:10:09 +02:00
Elvish_Hunter
9b5c0dda5c wmllint: do not warn about unknown IDs in [aspect] 2018-08-12 23:10:09 +02:00
Elvish_Hunter
3b8a684551 wmllint: avoid inserting image=wesnoth-icon.png if there's already an image 2018-08-09 20:11:14 +02:00
Elvish_Hunter
c08963a2e7 wmllint: fixed 'unknown id' errors in [fire_event] referred to event IDs 2018-08-09 20:04:38 +02:00
Elvish_Hunter
cc178ad474 wmllint: fixed a regex that didn't match augmentation tags 2018-08-09 19:57:52 +02:00
Elvish_Hunter
8bea419899 wmllint: added side_name to the list of translatable keys 2018-08-09 19:53:06 +02:00
Elvish_Hunter
3caf128378 wmllint: added a missing conversion rule for the Qatif-al-nar unit 2018-08-08 22:08:59 +02:00
Elvish_Hunter
af63d17e32 wmlindent: fixed crash on non-existent paths
Fixes #3346
2018-07-21 21:12:20 +02:00
Martin Hrubý (hrubymar10)
bc4d22dc72 Migrate links to https if available - Fwd c18537edc0 2018-07-16 19:07:08 +11:00
Iris Morelle
ceca46c553 wmllint: Exit with non-zero status after failing to read any directories
[ci skip]
2018-06-28 00:32:18 -04:00
Iris Morelle
fbc9ac5a52 wmllint: Skip inexistent paths passed in the command line
Fixes issue #3286.

[ci skip]
2018-06-28 00:27:28 -04:00
Iris Morelle
c92e167a14 wmllint: Leave gzipped binary files alone, they're not safe for consumption
Fixes wmllint crashing like this upon encountering a gzip tarball in an
add-on:

  Traceback (most recent call last):
    File "/home/shadowm/bin/wmllint-1.14", line 3188, in <module>
      for fn in allcfgfiles(directory):
    File "/home/shadowm/bin/wmllint-1.14", line 2944, in allcfgfiles
      if interesting(os.path.join(root, name)):
    File "/home/shadowm/bin/wmllint-1.14", line 2927, in interesting
      return fn.endswith(".cfg") or is_map(fn) or issave(fn)
    File "/home/shadowm/src/wesnoth-1.14/data/tools/wesnoth/wmltools3.py", line 270, in issave
      return firstline.startswith("label=")
  TypeError: startswith first arg must be bytes or a tuple of bytes, not str

[ci skip]
2018-06-27 03:42:58 -04:00
Iris Morelle
a92b83e404 tools: Add steam-changelog
This is a script to take a changelog section (provided in the command
line as such: `steam-changelog changelog.md X.Y.Z`) and convert it to
BBCode for posting on Steam.

[ci skip]
2018-06-10 03:25:43 -04:00
Iris Morelle
45ab8e5b62 Make Credits page on wiki.w.o use the new TOC markup for mobile support
[ci skip]
2018-06-09 03:07:23 -04:00
Severin Glöckner
ed46bc1d2b wmllint: add campaign abilites & specials
So far only stun was in the list

[ci skip]
2018-05-14 06:11:29 +02:00
Iris Morelle
4335bedeff wam: Allow using embedded data URIs as add-on icons
[ci skip]
2018-05-08 02:26:34 -03:00
Wedge009
f1bcdc7f1b Update text to match changes in dialogues (fixes #2882).
[ci skip]
2018-05-06 18:40:35 +02:00
galegosimpatico
bbd83f17ed Bump program version. 2018-05-03 05:28:33 +11:00
Celtic Minstrel
5795892649 GUI.pyw: Fix wmlxgettext run failing if the output file already exists 2018-04-29 14:04:12 -04:00
Iris Morelle
51111db8f7 wam: Add *.ini to upload blacklist to match the engine, reorder a few items
[ci skip]
2018-03-27 03:06:51 -03:00
Iris Morelle
39b05dd0db wam: Update description and name for Modifications
They are no longer just for multiplayer mode (see issue #1475, commit
a09e2bb858).

[ci skip]
2018-03-21 00:14:41 -03:00
Iris Morelle
0b3f14d63e campaignd: Set port allocation for version 1.14 2018-03-18 17:25:23 +11:00
Charles Dang
3a90f86674 Addressed more whitespace issues from #2613
[ci skip]
2018-03-12 03:48:59 +11:00
Charles Dang
471c9e876a Addressed a large chunk of the whitespace issues from #2613
[ci skip]
2018-03-09 11:37:00 +11:00
V N
f7b31e79c9 addon_manager: allow uploading . dir
fixes GH-2494
2018-02-20 13:41:29 +02:00
Iris Morelle
8413b1014e wesmere: Copyright/attribution update
[ci skip]
2018-02-16 19:56:31 -03:00
vgaming
098b4495bc addon_manager: allow overriding keys (#2491)
[wesnoth_addon_manager] Allow overriding keys in _server.pbl

Example usage:
wesnoth_addon_manager \
	--port 1.13.x \
	--upload ~/.local/share/wesnoth/1.13/data/add-ons/example \
	--pbl-override version "$(git describe --tags)" \
	--pbl-override description "$(cat avoid_copy_paste_with_WML)" \
	--pbl-override passphrase "in countrary to server.pbl, this is secret"

Downsides: user has to be aware that specifying
passwords as CLI arguments is not safe in a multi-user environment.
If we're really-really serious about it, we should parse
values from environment variables then..
I wouldn't bother though.

fixes GH-2485
2018-02-14 20:49:43 +01:00
V N
ae048467ed addon_manager: simplify usage
To remove an add-on, you now have to use:
--remove ADD_ON PASSPHRASE
instead of:
--password 123 --remove NAME

Also, this commit fixes the badly
documented --password field.
It could previously be read as it can be applied
to any operation, not only removal.
But in fact it could only be used for removal.

Fixes GH-2445
2018-02-12 21:00:55 +01:00
V N
0193302847 addon_manager: fix default ign file 2018-02-12 00:11:26 +01:00
pentarctagon
dc21c42683 Renames the Dunefolk(formerly Khalifate) units based on forum discussions.
See this thread, along with a few linked within:
https://forums.wesnoth.org/viewtopic.php?f=12&t=47704

The purpose of this is both to:
a) Make the unit names more descriptive, so new players especially will have an easier time learning them and knowing what they do.
b) Make them eligible for translation, like the units of other factions are.

This commit only renames the files, along with the faction/AoH faction and wmllint.
2018-02-04 11:46:50 +11:00
pentarctagon
5b31b87f6a MP: Renames the Khalifate to Dunefolk.
Part of an effort to make the faction better fit into Wesnoth. See:
https://forums.wesnoth.org/viewtopic.php?f=12&t=47643
https://forums.wesnoth.org/viewtopic.php?f=12&t=47703
2018-01-19 17:28:40 -05:00
Gregory A Lundberg
b5f76eff79
Bump copyright to 2018 2018-01-19 00:02:20 -06:00
Gunter Labes
03b6ad568c
Continue if there is an old executable
Chances are that the previous build works just as well.
We just need it for config file parsing which does not change often.
2018-01-12 19:14:41 +01:00
Allefant
4de5cdc7d3 update the addon manager for "simple WML" 2018-01-09 09:23:50 +01:00
Gunter Labes
7cdec04c7f
only keep env vars upper case, add missing quotes 2018-01-09 02:06:04 +01:00
Gunter Labes
a535a3140c
Use a more generic default value 2018-01-08 23:36:10 +01:00
Vasya Novikov
7be364f3b5 addon_manager: fix append_tag usage
Note that this still doesn't allow the --upload
functionality to work. After this fix,
wesnoth still complaints about unordered WML.

It is believed that this is a separate issue though,
happened because of the latest simple_wml changes.
2017-12-20 22:23:53 +02:00
Elvish_Hunter
df4e424db0 moved a have_icon flag that caused wmlscope to not find attack icons any more 2017-11-01 13:46:31 +01:00
Elvish_Hunter
fca4795f30 wmlscope: fixed a bug that caused UMC map paths to not be found
Due to the new regex used, the tilde before UMC paths was now collected but never removed from the paths.
2017-11-01 13:46:31 +01:00
Ignacio R. Morelle
394b16697f s/Translations/Translators/ seems more appropriate
[ci skip]
2017-10-16 19:54:42 -03:00
Ignacio R. Morelle
ec49b83bf9 Minor stylistic changes to credit entries
* Overrule any CSS clear properties set by the stylesheet since they do
   not play well with the page's use of a floated TOC.

 * Use em dashes instead of hyphens for entry comments.

 * Refer to the main contributors as Core Contributors instead of simply
   Contributors, and add a custom heading for localization entries so it
   doesn't become just "Core" after the folder name.

 * Additional styling on file paths.

[ci skip]
2017-10-16 19:38:39 -03:00
Ignacio R. Morelle
4e6cdc60c9 Add localization credits to wiki extraction tool
[ci skip]
2017-10-16 19:22:58 -03:00
Alexander van Gessel
cd4e2554cd Merge pull request #2053 from AI0867/wmlscope-durations
Teach wmlscope to ignore frame durations. Fixes #2045
2017-10-15 20:40:11 +02:00
Alexander van Gessel
c5b19ed66d Make 'bailout' a valid Python3 exception 2017-10-14 23:19:51 +02:00
Ignacio R. Morelle
cd23596993 wam: Add --datadir option to set the path to the Wesnoth data dir
[ci skip]

This is needed to use the 1.13.x WAM with older versions without messing
up icons due to files that have been moved or deleted over time.
2017-10-10 14:54:08 -03:00
Paŭlo Ebermann
02907ebe75 Fix the output by --progress.
Previously, this just printed the last file name again and again.
Now we are printing the file name we are currently looking at.

This can be observed e.g. by `wmlscope --progress`.
2017-10-05 19:35:38 +03:00