Gunter Labes
1d0638b048
Use a single dot for the extension
2023-11-28 13:40:13 +01:00
Ivo Julca
d4f16cd75b
wmlunits: Use safe charset for image paths
2023-05-25 10:35:57 +02:00
Ivo Julca
71ff0cfabc
wmlunits: Normalize file paths consistently
2023-05-25 10:35:57 +02:00
Ivo Julca
5136c45b3e
wmlunits: Correctly get Wesnoth paths in Windows
2023-05-25 10:35:57 +02:00
Slayer95
eded720ee2
Refactor TeamColorizer into a Python library ( #7604 )
...
* Refactor TeamColorizer into a Python library
* Use TeamColorizer as library
2023-05-07 23:54:18 +02:00
Slayer95
fa76e775ac
wmlunits: Handle code paths for missing attributes ( #7580 )
2023-05-05 18:45:12 +02:00
Gunter Labes
6c9813af8e
Update deprecated path options
2021-06-27 11:11:19 +02:00
Zaal Tonia
9c6dcb6a63
Use damage type and range icons
...
Fixes issue #3949
2019-05-14 18:13:03 +02:00
Elvish_Hunter
f6fbd6351a
Added missing Python shebangs to several scripts
2017-10-02 21:30:00 +02:00
Ignacio R. Morelle
290cb4c2d2
wmlunits: Use transparent/ portraits where available, and omit sprite bg
...
We don't need the upscaled sprite background behind portraits, whether
they are transparent or not (for transparent portraits it just looks
bad).
[ci skip]
2017-08-29 17:26:30 -03:00
Ignacio R. Morelle
9db2ed630c
wmlunits: More code clean-up
2017-08-12 02:24:07 -04:00
Elias Pschernig
6a287f22c5
[units.wesnoth.org] catch empty picture names in add-ons
2017-05-06 15:19:43 -04:00
Elias Pschernig
4c034d7705
Clean up wmlparser3.py a bit, fix json and xml output.
2015-09-20 14:53:49 -04:00
Elias Pschernig
3ab3db3166
[units.wesnoth.org] Converted the script to Python 3.
...
Basically ran all .py files through 2to3. I made a copy of wmlparser2.py
called wmlparser3.py for the Python3 version, so as to not inconvenience anyone
who may be using it in their old Python2 scripts.
2015-09-09 22:52:23 -04:00
Elias Pschernig
b6089cba9f
[wmlunits] Fix errors in The_Earths_Gut and Archaic_Era...
...
...due to mistakenly ignoring hide_help=true units being used in
[base_unit].
2012-03-09 20:22:54 +00:00
Elias Pschernig
1a45e8f61e
[wmlunits] Add warnings about missing images to log.
2012-03-08 12:51:51 +00:00
Elias Pschernig
182dc77281
[wmlunits] Handle [advancefrom] WML tags for units.
2012-03-04 14:20:20 +00:00
Elias Pschernig
3ebb10809c
[wmlunits] Add units from an era but without any faction...
...
...to a special "factionless" faction.
2012-03-03 18:01:06 +00:00
Elias Pschernig
dbf1082bdc
[wmlunits] Reenable recoloring.
...
Always sort units overview into first place. Properly translate
"Units" heading.
2012-02-18 18:57:07 +00:00
Elias Pschernig
02729eb915
Rewrote wmlunits to parse one addon at a time.
...
Now it takes much longer to create units.wesnoth.org as it has to
parse the WML about 200 times instead of once but it also uses much
less memory (and so can run on the server again without risk of being
aborted).
2012-02-18 13:37:07 +00:00
Elias Pschernig
5a2a2fac95
[wmlunits] Fixed forest tile picture. Fixed inclusion of addon campaigns with only shared units.
2011-11-20 15:04:52 +00:00
Elias Pschernig
8ddc6dc056
[units.wesnoth.org] Slight CSS change...
...
...and removed addon factions from the navigation bar.
2011-09-01 18:39:30 +00:00
Elias Pschernig
17e6c8c481
[units.wesnoth.org] only recoloror unit icons
2011-08-16 21:40:40 +00:00
Elias Pschernig
5d57f537bd
[wmlunits] fixed small bug in [specials] handling
2011-06-05 13:10:35 +00:00
Thibault Févry
2288ef0939
Removed a lot of trailing whitespaces. Shouldn't be anymore in python scripts.
2011-03-12 02:22:21 +00:00
Elias Pschernig
7524e6befc
[wmlunits] use translations only for mainline units...
...
...(very few addon units had translations but creating all the addon
units in each language takes a lot of time and .html files). Also
report less errors for addons (the addon authors don't get to read
them anyway i'm afraid :/)
2010-12-22 23:34:08 +00:00
Elias Pschernig
f95c4c8a32
[wmlunits] For units who differ on easy/normal/hard,
...
...use the normal variant for display, for now.
2010-11-23 21:54:59 +00:00
Elias Pschernig
7e38b23e4d
accidentally had made wmlunits a bit verbose
2010-08-18 17:10:00 +00:00
Elias Pschernig
779ff4bbee
fixed -C parameter to wmlunits being ignored sometimes
2010-08-18 17:07:55 +00:00
Elias Pschernig
987cc9da3c
updated wmlunits
2010-08-18 16:05:36 +00:00
Elias Pschernig
26a3dc2046
[wmlunits] Updated wmlunits to use the new --preprocess parser.
...
Now all add-ons which can be played with wesnoth can be parsed by
wmlunits (only those).
2010-05-28 15:39:48 +00:00
Elias Pschernig
e3f1a8a434
[wmlunits] fixed error message encoding (ported from 1.8 branch)
2010-05-21 09:16:25 +00:00
Elias Pschernig
5431f82643
[wmlunits] fixed some problems with latin1 filenames
2010-01-11 20:52:57 +00:00
Elias Pschernig
daef8edd86
[wmlunits] Ignore empty [era] tags, seems to fix at least one addon.
2009-09-26 22:19:21 +00:00
Elias Pschernig
89bc70b37c
[wmlunits] Index terrain types by the .string...
...
...instead of the .id field as the latter isn't unique right now.
2009-09-24 18:15:55 +00:00
Elias Pschernig
ec651a6acc
[wmlunits] Don't start more than one convert process at a time...
...
Starting many at once will stall CPUs and IO, and if delayed (so there
are 100ds or 1000ds of processes running at the same time) possibly
require massive amounts of memory.
2009-09-15 16:33:42 +00:00
Elias Pschernig
c5753468b4
[wmlunits] Applied revision #36499 from 1.6 to trunk.
2009-07-01 18:04:45 +00:00
Gunter Labes
393de7e9f1
fixed terrain parsing
2009-06-11 06:46:15 +00:00
Gunter Labes
52bc5141cd
silence some verbose output
...
the verbose setting of the WML parser could be turned into an int
for better granularity if wanted
2009-05-27 00:19:14 +00:00
Gunter Labes
f6fdc4bea0
do not use os.system with user supplied data
2009-05-25 21:32:22 +00:00
Gunter Labes
901ad63e5a
update scripts: s/~campaigns/~add-ons/
2009-05-20 22:31:14 +00:00
Gunter Labes
a766a9c380
default to level 0 (like wesnoth) also on ValueError
2009-03-31 01:01:44 +00:00
Elias Pschernig
2cdcc676c5
wmlunits: use path relative to executing script to find TeamColorizer
2008-10-03 15:33:07 +00:00
Elias Pschernig
2f38261d08
wmlunits: use data dir specified on command line...
...
...instead of './data' to find TeamColorizer
2008-10-03 15:17:41 +00:00
Alexander van Gessel
2d17ca4e65
Made unit_tree compatible with 2008-09-29T08:38:06Z!ai0867@gmail.com.
2008-09-30 15:48:02 +01:00
Alexander van Gessel
9f314cd978
Fix some executable properties.
2008-09-30 15:07:09 +01:00
Alexander van Gessel
66a31ef260
Add backwards 'advanceto' compatibility to unit_tree tool.
2008-09-20 10:48:21 +01:00
Gunter Labes
a801626793
update wmlunits to the new advances_to syntax
2008-08-29 21:30:39 +00:00
Elias Pschernig
5cb6bf80eb
wmlunits: Made the Python wml parser more robust...
...
...when dealing with invalid WML, it should now abort with a
meaningful error message with about any bad WML you throw at it.
2008-05-16 16:05:51 +00:00
Elias Pschernig
8da75c5dfb
wmlunits: allow factions to have empty recruits list
2008-05-05 15:51:03 +00:00