2313 Commits

Author SHA1 Message Date
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
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
Alexander van Gessel
abd18e58bf Require period before extension, make previous chargroup non-greedy
This reduced the number of false positives by filtering out things like Grogg, editor-map, png and water/wav
2017-10-03 14:20:06 +02:00
Alexander van Gessel
baeabbd605 Make character-presence checks more pythonic 2017-10-02 23:30:34 +02:00
Elvish_Hunter
f6fbd6351a Added missing Python shebangs to several scripts 2017-10-02 21:30:00 +02:00
Elvish_Hunter
aa4024fda9 wmllint: remove UTF-8 BOM characters from cfg files 2017-10-02 21:30:00 +02:00
Alexander van Gessel
ca87ef4597 Fix crash for [/attack] without [attack]. Fixes #2052 2017-09-29 12:41:33 +02:00
Alexander van Gessel
3b203cbc12 Teach wmlscope to ignore frame durations. Fixes #2045 2017-09-29 12:07:49 +02:00
Charles Dang
7dcb9d09f9 wmlindent: don't inednt #arg/#endarg preprocessor tags
[ci ski[]
2017-09-12 21:25:22 +11:00