2379 Commits

Author SHA1 Message Date
josteph
8cbc3a4477 Fix markup in README.
Fixes #3864
2019-01-12 16:21:58 +00:00
josteph
e642223017 wmlxgettext: Fix crash if no *.cfg file is found
fixes #3719
[ci skip]
2018-11-14 20:14:44 +01:00
josteph
711434d571 wmlparser3: Fix [+foo] without preceding [foo] in toplevel 2018-11-12 02:53:52 +00:00
josteph
c6b2be5ca6 wmlparser3: Parse [+foo][/foo] as append to [foo]. 2018-11-08 22:57:39 +00:00
Michał Janiszewski
9d333bc95a Compare to None using identity is operator
This is a trivial change that replaces `==` operator with `is` operator, following PEP 8 guideline:

> Comparisons to singletons like None should always be done with is or is not, never the equality operators.

https://legacy.python.org/dev/peps/pep-0008/#programming-recommendations
2018-10-31 12:21:01 +11:00
Elvish_Hunter
f13ad9f5b9 GUI.pyw: allow terminating the running script
Fixes #3485
2018-10-25 23:08:59 +02:00
Elvish_Hunter
2addd69a34 wmllint: fixed a bug that caused misfires in translation mark warnings
wmllint was checking for line instead of lines[i]
2018-10-14 12:11:19 +03:00
Elvish_Hunter
fd26be92e0 wmllint: fixed non-empty tagstack errors due to [modify_ai] paths 2018-10-14 12:11:19 +03:00
Elvish_Hunter
fe26f513b8 wmllint: add translation mark only after the first equal sign
Fixes #3489
2018-10-14 12:11:19 +03:00
Celtic Minstrel
42c48d1483 Move wmlxgettext to the data/tools directory so that it's automatically included in official packages
(cherry-picked from commit 59e78e556593cea7650998611640aeff3a6b288f)
2018-10-07 03:24:58 +00:00
Elvish_Hunter
338d190563 wmllint: added [lua] to the allowed children of [if]
(cherry-picked from commit b1ec52cab84a5a18bd1518449fec374f4be3492b)
2018-10-07 03:24:10 +00:00
Elvish_Hunter
236ca25832 wmllint: don't even try to convert _info.cfg
(cherry-picked from commit 6e696661fdc8710a4310d3a2fd7228e3f135e5ed)
2018-10-07 03:24:10 +00:00
Elvish_Hunter
46f9d93c4c wmllint: do not warn about unknown IDs in [tunnel], except inside of [filter]
(cherry-picked from commit 2d045f2a6a47c58b5bb1d77d3c836119e5978708)
2018-10-07 03:24:09 +00:00
Elvish_Hunter
2b0bbd8280 wmllint: do not warn about unknown IDs in [remove_event]
(cherry-picked from commit 2dda3280c1b3098aba146e2775e58577930d3e60)
2018-10-07 03:24:09 +00:00
Elvish_Hunter
87999f68b4 wmllint: do not warn about unknown IDs in [aspect]
(cherry-picked from commit 9b5c0dda5c819e5ac6a40a78241a36e022a84f75)
2018-10-07 03:24:09 +00:00
Elvish_Hunter
ef51a288d8 wmllint: avoid inserting image=wesnoth-icon.png if there's already an image
(cherry-picked from commit 3b8a6845514f9a95365d9f80d8960e4590cbbefb)
2018-10-07 03:24:05 +00:00
Elvish_Hunter
8fe84b9815 wmllint: fixed 'unknown id' errors in [fire_event] referred to event IDs
(cherry-picked from commit c08963a2e736a185ee338e30a560d5949233705f)
2018-10-07 03:24:05 +00:00
Elvish_Hunter
4b81eb5081 wmllint: fixed a regex that didn't match augmentation tags
(cherry-picked from commit cc178ad4742472397685a39e93074139225767f1)
2018-10-07 03:24:04 +00:00
Elvish_Hunter
8b32f89a1f wmllint: added side_name to the list of translatable keys
(cherry-picked from commit 8bea4198992d1c794688ef1dc97cc82a958a8004)
2018-10-07 03:24:04 +00:00
Elvish_Hunter
f25f1316cc wmllint: added a missing conversion rule for the Qatif-al-nar unit
(cherry-picked from commit 3caf1283784b9533f601e6c0a7f91a112d7ae69c)
2018-10-07 03:24:04 +00:00
Elvish_Hunter
cb4c5301ad wmlindent: fixed crash on non-existent paths
Fixes #3346

(cherry-picked from commit af63d17e32d16fc33c39d49702bd88bcae6d0d47)
2018-10-07 03:23:39 +00:00
Martin Hrubý (hrubymar10)
674fda85b7 Migrate links to https if available - Fwd c18537edc0678f40a209797d72dfaba3e5e88545
(cherry-picked from commit bc4d22dc72e79c3d6a3364ac896e473afd298246)
2018-10-07 03:23:36 +00:00
Iris Morelle
6d4d48e540 wmllint: Exit with non-zero status after failing to read any directories
[ci skip]

(cherry-picked from commit ceca46c5537807db723450ca35bc5b4d43a0c011)
2018-10-07 03:23:01 +00:00
Iris Morelle
54a3546f1e wmllint: Skip inexistent paths passed in the command line
Fixes issue #3286.

[ci skip]

(cherry-picked from commit fbc9ac5a52100c12d2cfb8d9e89afbf101d3a566)
2018-10-07 03:23:01 +00:00
Iris Morelle
fb409b5db4 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]

(cherry-picked from commit c92e167a14229ed0d9b6f16f1d1ca31cacd292cd)
2018-10-07 03:22:59 +00:00
Iris Morelle
482b003a16 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]

(cherry-picked from commit a92b83e40466c6ea53d9ad98907abb4d9ce4d4ee)
2018-10-07 03:22:33 +00:00
Iris Morelle
628d0d9ed2 Make Credits page on wiki.w.o use the new TOC markup for mobile support
[ci skip]

(cherry-picked from commit 45ab8e5b6229d40d3c23e2cd64d3c7922a1e55c8)
2018-10-07 03:22:25 +00:00
Severin Glöckner
7afb8a8a41 wmllint: add campaign abilites & specials
So far only stun was in the list

[ci skip]

(cherry-picked from commit ed46bc1d2b605befac33724bc396b2859e4b7e3a)
2018-10-07 03:21:10 +00:00
Iris Morelle
a4f7f5c37c wam: Allow using embedded data URIs as add-on icons
[ci skip]

(cherry-picked from commit 4335bedeff9dbf1b147c0ef260171dd3eb83c795)
2018-10-07 03:20:41 +00:00
Wedge009
0b98ddd96b Update text to match changes in dialogues (fixes #2882).
[ci skip]

(cherry-picked from commit f1bcdc7f1b6e9c762edd075642954f4850d151f3)
2018-10-07 03:20:34 +00:00
galegosimpatico
5b5442b1af Bump program version.
(cherry-picked from commit bbd83f17ed238616e9365a6ff5835021a63b32d2)
2018-10-07 03:20:08 +00:00
Celtic Minstrel
ec207923e4 GUI.pyw: Fix wmlxgettext run failing if the output file already exists
(cherry-picked from commit 579589264930d18d5ff69a250a31d95bd0e72e42)
2018-10-07 03:20:02 +00:00
Iris Morelle
391ddd45b2 wam: Add *.ini to upload blacklist to match the engine, reorder a few items
[ci skip]

(cherry-picked from commit 51111db8f7477bfab758d62d9e414405a8494e9c)
2018-10-07 03:18:30 +00:00
Iris Morelle
1ab0301064 wam: Update description and name for Modifications
They are no longer just for multiplayer mode (see issue #1475, commit
a09e2bb8583c6125f8c4e3157d6eba8bbd800b62).

[ci skip]

(cherry-picked from commit 39b05dd0dbc1fc14e50e7db19401651ec3eae154)
2018-10-07 03:18:02 +00: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