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
Gunter Labes
f9eb4753d7
skip add-ons when there is a parse error instead of aborting
2008-05-02 14:19:53 +00:00
Elias Pschernig
846688cbe6
wmlunits: Make base_unit work recursively...
...
...(one unit in EE needed that) and write lots of verbose error about
missing attack icons :P
2008-05-02 13:21:09 +00:00
Elias Pschernig
8f65cf9741
wmlunits: replaced hero-icon.png with leader-crown.png...
...
...for faction leaders, and fixed some problems with attacks modified
from the base_unit
2008-05-02 12:34:46 +00:00
Elias Pschernig
7e93462d43
wmlunits: increased font size of unit level indicator,
...
...added faction-leader indicator, added info link, added abilities,
added id
2008-04-29 16:38:45 +00:00
Elias Pschernig
9630080049
wmlunits: Changed units forest structure to a network structure...
...
...for multiple units advancing to the same unit, and added some
sanity checks for units who can advance to themselves.
2008-04-25 14:16:36 +00:00
Elias Pschernig
3a41dc633d
wmlunits: Fix exception for missing female unit names in EoM,
...
...and ignore units with hide_help.
2008-04-23 21:30:12 +00:00
Gunter Labes
1b8d44e84d
revert 2008-04-23T19:07:49Z!esr@thyrsus.com
2008-04-23 20:34:59 +00:00
Gunter Labes
8c61572b07
revert 2008-04-23T19:31:40Z!esr@thyrsus.com, something went wrong there...
2008-04-23 20:27:27 +00:00
Eric S. Raymond
9db68b9b88
Back out my previous commit; I misunderstood the spec for the name change.
2008-04-23 19:31:40 +00:00
Eric S. Raymond
6921485048
campaigns -> add-ons.
...
This has been tested with the game, but the campaign-server client may
need work.
2008-04-23 19:07:49 +00:00
Elias Pschernig
04cf9aa4f6
wmlunits: Added unit_description as alternate name for description,
...
...and always add all advancements of all filtered units to the units tree.
2008-04-18 21:37:04 +00:00
Elias Pschernig
f4376d916b
wmlunits: Use campaign id again for filenames, instead of (translated) name.
2008-04-18 14:44:47 +00:00
Elias Pschernig
6394e55824
wmlunits: Improved translation handling,
...
...and added option to specify po directory.
2008-04-18 13:54:00 +00:00
Elias Pschernig
bc3db730ea
Refactored wmlunits,
...
...mainly to make it more robust with broken UMCs and with 1.4.
2008-04-18 12:57:46 +00:00