Commit Graph

538 Commits

Author SHA1 Message Date
Eric S. Raymond
d2f871a876 Fix in generated indentation. 2007-10-05 18:15:26 +00:00
Eric S. Raymond
a25e4309bf Try to fix an effect-lifting bug. 2007-10-05 18:06:43 +00:00
Eric S. Raymond
0d62c1622d Disable the map-border lifting. 2007-10-05 17:54:30 +00:00
Eric S. Raymond
96e7c68529 Since there's active contrioversy about heal vs, cure, back out the lift. 2007-10-05 17:41:16 +00:00
Eric S. Raymond
c3659d7bcc Make wmllint aware of the ABILITY_CURES split. 2007-10-05 15:42:10 +00:00
Eric S. Raymond
043b25aec8 Fix an incorrect macro translation. 2007-10-05 09:37:53 +00:00
Eric S. Raymond
0d43f5f6e9 wmllint now lifts 1.x-style abilities and specials. 2007-10-04 19:28:52 +00:00
Eric S. Raymond
9123181799 Translate 1.x-style abilities. We still need to do specials. 2007-10-04 18:50:48 +00:00
Eric S. Raymond
0204899926 Address bug #10046.
The code to add a border if none is present is ready for test.  Enable
it with --future.
2007-10-03 22:04:00 +00:00
Eric S. Raymond
6b48eeb170 Lift [missile_frame] directly within [attack]. 2007-10-02 22:26:15 +00:00
Eric S. Raymond
d33f5ae715 Generate [attack_anim] tags when lifting rather than [animation] tags. 2007-10-02 22:12:52 +00:00
Eric S. Raymond
d0c99c3239 Typo fix. 2007-10-02 13:26:30 +00:00
Eric S. Raymond
ec5c34254c More documentation improvements for wmlmove. 2007-10-02 13:10:23 +00:00
Eric S. Raymond
43ef9405e2 Better documentation for wmlmove. 2007-10-02 12:58:59 +00:00
Eric S. Raymond
a11cb36b21 The rest of bug #10098. Handle archaic [sound] tags. 2007-10-02 03:19:38 +00:00
Eric S. Raymond
a8f48da8ea New lifting code for archaic syntaxes does nothing (as it should) on
current mainline WML.
2007-10-02 02:54:53 +00:00
Eric S. Raymond
cadb9834c9 Address bug #10098. Lift [frame] within [attack].
Doesn't handle [sound] yet.
2007-10-02 02:16:53 +00:00
Eric S. Raymond
cfa84658a5 Address bug #9952.
Effect-animation lifting is now available under control of the
--future switch.
2007-10-02 01:46:26 +00:00
Eric S. Raymond
6d8b8be578 Warn that [frame] directly witin [attack] can't be lifted. 2007-10-01 23:49:31 +00:00
Eric S. Raymond
132edd54b4 Address bug #10089.
Code for the transformation requested is now in wmllint, controlled by
--future.
2007-10-01 21:13:43 +00:00
Eric S. Raymond
ec2b3b2bb9 Fix a comment. 2007-10-01 01:49:02 +00:00
Eric S. Raymond
704a2b2418 Placeholder code for when Mordante's user-defined borders land. 2007-09-22 12:15:45 +00:00
Eric S. Raymond
f39e2bd385 Sort cross-reference results by key. 2007-09-21 07:31:34 +00:00
Patrick Parker
9b244b6a9a some minor cleanup and added comments 2007-09-21 04:03:26 +00:00
Gunter Labes
e542a2adac give a more descriptive error message 2007-09-20 17:29:49 +00:00
Gunter Labes
c15a9fc9a5 correct wmllint invocation from the Makefile
add the "Halbardier to Halberdier" transformation
2007-09-20 16:43:35 +00:00
Patrick Parker
7927dfa789 lines were being masked instead of modified in-place;
copy the result to the iterator
2007-09-18 21:01:14 +00:00
Eric S. Raymond
af41d50dcf Upgrade wmllint's boucman-transfer code to handle variations. 2007-09-18 17:21:24 +00:00
Patrick Parker
e70a1ead25 add a tool to upcovert v1.3-1.3.7 replay savefiles...
...to be v1.3.8 compatible with regard to random traits.
2007-09-18 02:03:32 +00:00
Patrick Parker
ea77ad761f now radius upconversion uses smarter seeking...
...instead of rescanning the whole file
2007-09-17 03:58:28 +00:00
Patrick Parker
0f87a292be found a typo in seek() 2007-09-17 03:36:56 +00:00
Patrick Parker
0648eafeb4 finished refactoring the scope-handling for WmlIterator,
so it is much easier/faster to navigate the scopes
2007-09-17 02:59:25 +00:00
Patrick Parker
62c9e0e165 a new wmliterator search method, wmlfindin(),
...gains speed by avoiding itor.reset()
2007-09-11 05:14:46 +00:00
Patrick Parker
0102da6ad8 improving the debug output of wmliterator 2007-09-10 23:59:13 +00:00
Eric S. Raymond
dc42b23f70 Better control on one of the reports. 2007-09-10 22:40:57 +00:00
Patrick Parker
b35e750408 add a __main__ and fix the bug with closing [+tag] 2007-09-10 22:27:29 +00:00
Eric S. Raymond
833dc54ca2 Fulfill half of an IRC feature request by zookeeper. 2007-09-10 22:16:13 +00:00
Eric S. Raymond
2350df2e09 Put the check for duplicated attacks under --experimental. 2007-09-10 22:10:20 +00:00
Patrick Parker
ebcbe6921e more detailed output for errors 2007-09-10 05:05:31 +00:00
Patrick Parker
0ae3bc473d found a lot more bugs, added more printouts 2007-09-10 04:50:19 +00:00
Patrick Parker
8ef90f9a11 various minor fixes; scope handling is far more robust now 2007-09-10 01:51:29 +00:00
Patrick Parker
da05b2fa70 found a way to prevent radius upconversion without changing the default 2007-09-09 23:45:19 +00:00
Patrick Parker
bc4e1d8f3b change the default oldversion to trunk; prevent a crash on files with 0 lines. 2007-09-09 23:24:29 +00:00
Patrick Parker
3fabe86aa9 fix iteration of multiline strings "\n\n" 2007-09-09 23:15:32 +00:00
Patrick Parker
9401cea6af improve the macroOpenPattern regex 2007-09-09 06:58:31 +00:00
Patrick Parker
6a78a29ecb some final fixes to radius upconversion, and remove the 'future' flag 2007-09-09 06:49:59 +00:00
Patrick Parker
e9e5efcda4 misc. minor fixes 2007-09-09 06:27:41 +00:00
Patrick Parker
4be7e81635 forgot the import statement and add 1.3.7 to versions 2007-09-09 06:12:43 +00:00
Patrick Parker
39d5ef3be9 tie in the radius WmlIterator changes 2007-09-09 06:01:10 +00:00
Patrick Parker
356f185e7d the WmlIterator seems to be working now 2007-09-09 05:45:50 +00:00
Patrick Parker
e1d1233ddc a preliminary version of WmlIterator 2007-09-08 18:14:15 +00:00
Jérémy Rosen
d84b7f63b3 move attack animations out of [attack] and into [unit], code+wmllint 2007-09-08 07:51:22 +00:00
Patrick Parker
f960520716 fix another flaw in the loop logic
...and insert an explicit reference to class WmlIterator
2007-09-06 03:08:41 +00:00
Patrick Parker
001d1fa9bf fix a flaw in the loop logic 2007-09-06 02:43:04 +00:00
Patrick Parker
ea3323d98d commit some experimental code to upconvert 1.3.7 old-style radius= usage 2007-09-06 01:57:09 +00:00
Eric S. Raymond
133564f59f Explanatory comments for Sapient. 2007-09-05 18:29:40 +00:00
Eric S. Raymond
1f27c358b8 Remove some erroneously committed code. 2007-09-05 05:50:07 +00:00
Eric S. Raymond
f42f525f82 Bulletproof the map detector logic a bit. 2007-09-05 05:44:41 +00:00
Eric S. Raymond
dfed4536de Yet another attempt at getting boucman's animation transform right. 2007-09-05 03:01:56 +00:00
Gunter Labes
031b0eacd0 A script to create the "Terrain Table" on the TerrainLettersWML wiki page
by cib.
2007-08-31 18:28:51 +00:00
Eric S. Raymond
0df5b448a6 Another try at the Boucman transformation. 2007-08-30 22:55:43 +00:00
Eric S. Raymond
4f4b6b57d4 Better display over version changes. 2007-08-30 22:28:22 +00:00
Eric S. Raymond
ec3f3bc057 Cosmetic fix. 2007-08-30 22:20:10 +00:00
Eric S. Raymond
57ceb462c8 Treat [allow_undo][/allow_undo] as a no-op for indentation purposes. 2007-08-27 19:20:28 +00:00
Eric S. Raymond
3399b52cc1 Add a guard to is_map() to avoid some false positives. 2007-08-27 09:29:45 +00:00
Eric S. Raymond
9e90918fff Add a content-based check for mapfiles; addresses bug #9851. 2007-08-26 16:14:17 +00:00
Eric S. Raymond
b1b809feed Omit textdomain declarations from generated macro reference, fix a typo. 2007-08-26 13:56:51 +00:00
Eric S. Raymond
0d0893ab29 Deal better with whitespace before comments in docstrings. 2007-08-26 07:36:39 +00:00
Eric S. Raymond
97edd7264a Fix a minor parsing error...
...that prevented correct generation of the macro references page.
2007-08-26 07:30:09 +00:00
Gunter Labes
d725c7cdb2 corrected and enhanced the usage message (--help)
maybe put the recommended procedure from the top of the script there as well?
2007-08-24 04:54:04 +00:00
Eric S. Raymond
0974ffa96a Typo and punctuation fixes.
Quote string literals containing single quote so the Emacs colorizer
code doesn't get confused.
2007-08-21 02:44:46 +00:00
Eric S. Raymond
bdcc8a14ba This version of the Boucaman transformation gets Armageddon.cfg right. 2007-08-20 20:24:13 +00:00
Elias Pschernig
1d7a583f34 add __NOEDITSECTION__ to credits wiki page,
and fix markup when email as well as wikiuser name is given
2007-08-15 13:46:11 +00:00
Eric S. Raymond
0ff889e7bf Fix a reference error in wmlindent. 2007-08-01 03:31:23 +00:00
Elias Pschernig
7614667f59 as per ESR, remove the .py ending from the script 2007-07-30 15:14:23 +00:00
Elias Pschernig
22bdd618e4 keep the * entries in about.cfg as dividers 2007-07-30 15:05:50 +00:00
Elias Pschernig
009f4f9374 added script to convert about.cfg to wiki syntax 2007-07-30 14:57:08 +00:00
Eric S. Raymond
7c1c796010 Remove some deprecated [sound] tags.
Teach wmllint to spot and warn of these.

Minor dialog tweaks for Liberty.
2007-07-28 21:03:33 +00:00
Eric S. Raymond
de3d1856cb Fix a [side] malformation in Liberty.
Enhance wmllint to detect it anywhere.
2007-07-28 16:02:47 +00:00
Patrick Parker
57752960f5 now wmllint can correct deprecated [or] syntax inside [*while]
(previously just [*if])
2007-07-27 23:14:13 +00:00
Eric S. Raymond
44ed582f1b Typo fix. 2007-07-27 14:57:28 +00:00
Eric S. Raymond
74b94026f7 Fix bug #4201 -- "Default Era" renamed "Era of Turmoil"
in accordance with the master history at
http://www.wesnoth.org/wiki/WesnothHistory#417-530_YW:_The_Turmoil_of_Asheviere
2007-07-26 20:12:06 +00:00
Eric S. Raymond
61f87035c8 Document what we're doing. 2007-07-26 19:37:15 +00:00
Eric S. Raymond
31c614a40f Boucman's transformatiion is ready. 2007-07-26 19:19:18 +00:00
Eric S. Raymond
d69de8a119 Parsing stage for Boucman's syntax transformation is complete. 2007-07-26 17:38:49 +00:00
Eric S. Raymond
2cbbd7f00e Checkpoint on the way to Boucman's animation transform. 2007-07-26 13:01:53 +00:00
Eric S. Raymond
4bed1f1f7f Eleminate some false conversion messages. 2007-07-25 19:54:46 +00:00
Eric S. Raymond
32258c9530 Reference cleanup. 2007-07-25 19:40:45 +00:00
Eric S. Raymond
a3bd5f2077 Typo fix. 2007-07-25 17:26:54 +00:00
Eric S. Raymond
8459c66b19 Generated commands for SVN moves should work now under Windows. 2007-07-25 03:37:11 +00:00
Eric S. Raymond
832246933b Complain about nonexistent directories. 2007-07-25 03:04:43 +00:00
Eric S. Raymond
90aa31e949 Sapient's transformation might actually work this time. 2007-07-25 02:51:34 +00:00
Eric S. Raymond
8a466dd09c Aptrgangr -> Banebow 2007-07-24 18:15:32 +00:00
Eric S. Raymond
17ec5556ba Document what we're doing. 2007-07-24 12:54:34 +00:00
Eric S. Raymond
5606e00902 Document "no-icon". 2007-07-24 12:45:50 +00:00
Eric S. Raymond
396c227db6 Implement no-icon directive,
telling the cross-reference generator not to look for an attack icon.
2007-07-24 12:33:50 +00:00
Eric S. Raymond
de8f3b677b Cosmetic fix. 2007-07-24 04:28:51 +00:00
Eric S. Raymond
faaa4595a2 Improved diagnostic messages. 2007-07-24 03:45:24 +00:00
Eric S. Raymond
251d35eccc Fix a bug in the implementation of no-syntax-rewrite. 2007-07-24 01:58:49 +00:00
Eric S. Raymond
6931452441 More message-block fixes. 2007-07-24 01:49:52 +00:00
Eric S. Raymond
6405507b24 Fix up a large number of espeaker=narrator blocks without images.
Along the way, change signpost popups to use the signpost graphic.

Also, fix some implicit attack/icon references to be explicit.
2007-07-24 01:28:59 +00:00
Eric S. Raymond
0cdc363178 wmlscope now constructs implicit references to attack icons. 2007-07-22 19:16:39 +00:00
Eric S. Raymond
c5afb6f062 Name change to Aptrgangr. 2007-07-22 13:01:54 +00:00
Eric S. Raymond
00cc2148a3 ore improvements in wmlmove, update wmllint for 1.3.6. 2007-07-22 12:45:11 +00:00
Eric S. Raymond
289175a7b5 Steps towards making wmlmove work better. 2007-07-22 04:43:45 +00:00
Eric S. Raymond
7578462548 Added option to wmllinit to convert DOS-style CR/LF to LF. 2007-07-20 18:55:43 +00:00
Eric S. Raymond
8f9d9f735d Guard the code that tries to move and rename map files with a platform check,
so we don't try to do things under Windows that will choke it.
2007-07-17 22:15:23 +00:00
Eric S. Raymond
d749c4b1b1 Remove a Unix dependency. 2007-07-17 21:38:09 +00:00
Eric S. Raymond
ea61254475 Add Ivanovic's attack conversion. 2007-07-17 21:04:13 +00:00
Patrick Parker
ba0442392f get some tabs out of the file 2007-07-17 01:03:24 +00:00
Patrick Parker
4a80c669bc minor correction to the regexp for deprecated [or] 2007-07-17 00:49:14 +00:00
Eric S. Raymond
7e61d0956c Typo fix. 2007-07-16 23:50:12 +00:00
Eric S. Raymond
69b4297714 Windows portability hack. 2007-07-16 23:46:38 +00:00
Eric S. Raymond
d045931496 Remove an unneeded import. 2007-07-16 23:29:37 +00:00
Eric S. Raymond
25cce4b6bc Second line of Sapient's one-liner. 2007-07-16 23:11:51 +00:00
Eric S. Raymond
b0893b22cc Sapient's FR (Sorry Ivanovic, it's a one-liner). 2007-07-16 23:03:46 +00:00
Gunter Labes
68cb534706 fix a syntax error 2007-07-11 21:09:36 +00:00
Patrick Parker
1f045db8dd make it easier to get wmlindent --help 2007-07-07 22:17:36 +00:00
Patrick Parker
e6d9458cd2 some minor fixes to wmlindent 2007-07-07 21:57:33 +00:00
Mark de Wever
a319f8739e Added the sync function, needs some refactoring after more testing. 2007-07-06 20:20:30 +00:00
Gunter Labes
522d27eaae add an ignore for *.pyc files 2007-07-06 15:50:10 +00:00
Nils Kneuper
c19e3c2311 added a default textdomain definition to all .cfg files 2007-07-06 09:00:49 +00:00
Mark de Wever
17f791f0e9 Added the initial WIP version of the svn python library,
needed for the wescamp connection.

The library is based on the svn command.

Also added a test program to test the various library options.
2007-07-04 19:41:10 +00:00
Eric S. Raymond
f78741dabf Switch from numeric to symbolic palette IDs everywhere.
The C++ doesn't care, it treated them as strings anyway.
2007-07-02 20:42:59 +00:00
Eric S. Raymond
c75c529de8 Don't ignore blank lines before a 'start ignoring' directive. 2007-06-29 12:19:05 +00:00
Eric S. Raymond
9433ae3fee Implement a facility to make wmlindent ignore designated stretches of lines.
Allow generation of XHTML docs from macro comments indented in the new format.
2007-06-29 11:50:33 +00:00
Eric S. Raymond
984971b0c3 Clean up properly in dryrun mode. 2007-06-29 11:08:13 +00:00
Eric S. Raymond
22efdacc73 Recognize --verbose. 2007-06-29 11:03:48 +00:00
Eric S. Raymond
93839b4ba9 Implemented --dryrun option. 2007-06-29 11:01:37 +00:00
Eric S. Raymond
ac9d9fdb76 Better verbosity logic. 2007-06-29 10:42:10 +00:00
Eric S. Raymond
2c5b884f91 Prevent spurious warnings on array references. 2007-06-29 10:05:21 +00:00
Eric S. Raymond
063655f003 Apply wmlindent to Son Of The Black Eye. 2007-06-29 09:07:44 +00:00
Eric S. Raymond
d714aff685 Enable wmlindent to detect multiple tags per line (which it can't handle)
and fix a .cfg not to have that glitch.
2007-06-29 09:02:17 +00:00
Eric S. Raymond
f032434e07 Expand away the last syntactically unbalanced macro in DiD. 2007-06-29 08:18:32 +00:00
Eric S. Raymond
6a8bcbec2a Don't touch the input file's timestamp if there are no changes. 2007-06-29 06:36:58 +00:00
Eric S. Raymond
20225e5ffc Canonicalize runs of blank lines. 2007-06-29 03:21:25 +00:00
Eric S. Raymond
397b350a75 Don't generate spurious trailing whitespace. 2007-06-29 01:56:20 +00:00
Eric S. Raymond
a49b2cc2b9 Suppress a spurious error message, hardwire the base indent of macros,
and fix a bug in the handling of multiline literals.
2007-06-29 01:43:03 +00:00
Eric S. Raymond
65cd453647 Make wmlindent able to traverse directories.
Also, have it right-strip output lines and canonicalize to Unix-style \n.
2007-06-29 01:13:00 +00:00
Eric S. Raymond
71676359f8 Fix a bonehead error in applying wmlindent to multiple arguments. 2007-06-28 21:48:19 +00:00
Elias Pschernig
b5d7fa07f8 Added -s --status -f --update options to campaigns_client.py,
and made it update local version info like Wesnoth itself.
2007-06-24 19:50:52 +00:00
Eric S. Raymond
7cf55aa99a Fix the macro-reference generator. 2007-06-23 15:38:21 +00:00
Eric S. Raymond
3df00746b2 The {dragon,thunder}stick hit and miss sounds were too much alike.
The old miss sound (with slight ricochet effect) is now an alternate
hit sound; the new miss sound is a pure ricochet effect. Somewhat
cartoonish, but that's OK.
2007-06-19 09:42:12 +00:00
Eric S. Raymond
623eb6cbf5 wmllint can now detect the syntax boucman wants to deprecate. 2007-06-17 22:31:39 +00:00
Eric S. Raymond
80be250100 Improved bogon detection in wmllint. 2007-06-16 04:54:55 +00:00
Eric S. Raymond
565b25a221 Try to make this secure in the face of interrupts.
Not completely possible under Windows, alas.
2007-06-14 20:46:54 +00:00
Eric S. Raymond
ef43328e0c Fix a typo. 2007-06-14 20:31:12 +00:00
Eric S. Raymond
191f0e1463 Rip out the -i option to prevent style wars.
Add rudimentary checks for unbalanced WML.
2007-06-14 20:23:41 +00:00
Eric S. Raymond
9688592f51 Prototype version of a WML reindenter. 2007-06-14 19:40:49 +00:00
Eric S. Raymond
32f5547ba6 Try to do some more ill-formedness detection in wmllint. 2007-06-14 19:40:10 +00:00
Eric S. Raymond
573d5d6330 Make it possible to stifle wmllint when appropriate, and document how to do it. 2007-06-14 02:35:06 +00:00
Eric S. Raymond
42ccb34324 Stack- and attribute-checking is complete. 2007-06-14 02:04:56 +00:00
Eric S. Raymond
558813e89f Clean up some macros in UtBS, improve the wmllint stack checker. 2007-06-13 18:41:31 +00:00
Eric S. Raymond
1cbf42855a First version of tag stack checking. 2007-06-13 10:08:50 +00:00
Eric S. Raymond
4d53bec8d9 Beef up the sanity-check production for campaign data. 2007-06-11 22:21:12 +00:00
Mark de Wever
e36c1421ae some typo fixes 2007-06-09 18:36:41 +00:00
Eric S. Raymond
9e8840da91 Sanity-check the themes directory, too. 2007-06-06 19:29:38 +00:00
Eric S. Raymond
63665dda58 Restore reference checking of multiplayer. 2007-06-06 19:08:03 +00:00
Elias Pschernig
d9c12066ea split utils/campaigns_client.py into a re-usable module plus a script 2007-06-02 15:35:20 +00:00
Elias Pschernig
f0d285d625 Added an explanation for the __init__.py file. 2007-05-31 19:08:13 +00:00
Elias Pschernig
48a82a6f55 Grouped the installed python scripts into a single wesnoth module...
...as to not clutter up the python lib dir too much.
2007-05-31 19:06:25 +00:00
Eric S. Raymond
d9144fb404 macroscope -> wmlscope name change. I should have caught this sooner. 2007-05-30 17:48:50 +00:00
Mark de Wever
a106067a84 on map only files the first line is no longer skipped...
...when converting the maps. esr could you review the patch, Soliton
tested it and seems to work.
2007-05-27 16:19:33 +00:00
Elias Pschernig
69e7828160 Fixed a bug in the python WML parser which I introduced a few days ago. 2007-05-22 17:36:13 +00:00
Elias Pschernig
29d9ad2402 Install wesnoth's python modules into a 'wesnoth' package...
...instead of scattering them into site-packages
2007-05-22 15:18:26 +00:00
Eric S. Raymond
835e64d9a2 wmlmove can now perform deletions from core. 2007-05-20 00:24:13 +00:00
Elias Pschernig
e3b99d558b updated python WML parser to match _main.cfg behavior of C++ parser 2007-05-19 20:43:56 +00:00
Eric S. Raymond
d4e80ae569 wmlmove can do unit deletions in campaign directories now. 2007-05-19 20:41:08 +00:00
Eric S. Raymond
3753c14cc3 wmlmove does its first move, of the Fire Dragon to core. 2007-05-19 19:31:07 +00:00
Eric S. Raymond
e95aad4970 wmlmove is logic-complete for moves to core. 2007-05-19 19:06:12 +00:00
Eric S. Raymond
82c8e96eb6 Checkpoint for wmlmove testing. 2007-05-19 15:28:34 +00:00
Eric S. Raymond
b82c2f420f Another step towards working wmlmove. 2007-05-17 16:48:42 +00:00
Gunter Labes
5493731de4 ignore *.pyc files 2007-05-17 00:06:47 +00:00
Eric S. Raymond
2ff0a44dbc Image moves are working.
cfg move with substitution still needs to be implemented.
2007-05-16 23:13:47 +00:00
Eric S. Raymond
77d442c572 Another step towards working wmlmove. 2007-05-16 20:30:20 +00:00
Eric S. Raymond
3073bd8b8e Some old exclusion options are no longer necessary. 2007-05-16 16:42:36 +00:00
Eric S. Raymond
650877bfab Fix off-by-one error in wmlscope reports. 2007-05-16 14:29:12 +00:00
Eric S. Raymond
b077838e20 A long steop towards making wmlmove work. 2007-05-16 06:26:17 +00:00
Eric S. Raymond
276e7153f8 More things move to core directory. 2007-05-16 03:34:15 +00:00
Elias Pschernig
889a614d21 updated the python parser to also understand _main.cfg and _final.cfg handling 2007-05-15 16:57:52 +00:00
Eric S. Raymond
75b7510973 The move of tutorial/ inro data/campaigns...
...enables us to get rid of a special case.
2007-05-11 14:45:16 +00:00
Eric S. Raymond
d95532a390 Moved the tutorial into the campaigns directory. 2007-05-11 12:44:27 +00:00
Eric S. Raymond
8f24cdfd76 Remove unused graphic, fix a comment. 2007-05-11 04:03:35 +00:00
Eric S. Raymond
aef5a429d3 Typo fix. 2007-05-11 02:32:08 +00:00
Eric S. Raymond
97993ac4c8 Cosmetic fixes. 2007-05-11 02:21:31 +00:00
Eric S. Raymond
058e97a053 Refactoring step. 2007-05-11 02:12:54 +00:00
Eric S. Raymond
a390eb9951 Initial checkin of wmlmove. This tool is not yet finished. 2007-05-11 01:55:45 +00:00
Eric S. Raymond
7fd5818451 Call wmlscope, not macroscope. 2007-05-10 21:08:42 +00:00
Eric S. Raymond
4c71177e34 Two name changes:
macroscope -> wmlscope
upconvert -> wmllint

This is to keep the names of our tools, insofar as possible,
within a wml* private namespace.
2007-05-10 21:01:22 +00:00
Eric S. Raymond
62fd356284 Cosmetic fix. 2007-05-10 12:00:54 +00:00
Eric S. Raymond
a78e29de14 Convert 'letter=' tags. 2007-05-08 11:26:41 +00:00
Eric S. Raymond
9112b99390 Ku needs to be mapped to Kud in upconvert. 2007-05-07 22:25:32 +00:00
Eric S. Raymond
068f9a7a64 Somehow I neglected to check this in earlier. 2007-05-07 15:33:50 +00:00
Eric S. Raymond
a3d35d0149 Move allefant's Python-based modules where they belong. 2007-05-07 14:27:02 +00:00
Eric S. Raymond
566d56938e Factor the macroscope cross-reference generator into a re-usable module...
...and a wrapper, because other tools will need the cross-referencer.  

Note to packagers: 'make install' now puts wmltools.py in the Python directory
for site-local packages.  If you build a Wesnoth development package, include
this.  But the main Wesnoth package for players can leave it out.
2007-05-07 14:18:20 +00:00
Eric S. Raymond
764326dec6 Restore a mislaid reporting line. 2007-05-05 13:52:26 +00:00
Eric S. Raymond
043a7a4130 Get rid of lame directory-abstraction macros.
Directory structure is exposed elsewhere, so all these really do is
make life difficult for sanity-checking tools.
2007-05-05 13:28:48 +00:00
Eric S. Raymond
8df27ff9e6 Check line ranges on local macros. 2007-05-04 10:49:36 +00:00
Eric S. Raymond
b5765d123e Now that maps have their own extension,
...macroscope can sanity-check reference to them just like any other
resource file type.
2007-05-04 10:24:48 +00:00
Eric S. Raymond
82f0c80ea9 Bug fix. 2007-05-04 02:15:49 +00:00
Eric S. Raymond
eada46e2b5 upconvert now creates .map extensions when appropriate. 2007-05-04 01:53:56 +00:00
Eric S. Raymond
34407f924b Enable upconvert to handle one-line maps. 2007-05-03 20:24:51 +00:00
Eric S. Raymond
e7e1e05f88 Fix some minor bugs in error handling. 2007-05-03 19:29:52 +00:00
Eric S. Raymond
e1bfd44dc1 Avoid a suffix-aliasing problem. 2007-05-03 18:05:53 +00:00
Eric S. Raymond
cfb1210e1b Better autodetection of terrain coding. 2007-05-03 16:22:49 +00:00
Eric S. Raymond
e752b73b66 Don't be fooled by terrain= in comments. 2007-05-03 15:35:42 +00:00
Eric S. Raymond
f57607ded4 Make sure we get line termination right. 2007-05-03 15:05:48 +00:00
Eric S. Raymond
c54e76adad Large refactoring to handle keep conversions better. 2007-05-03 11:05:28 +00:00
Eric S. Raymond
1acda064cf Fix a regexp bug that was preventing proper map translation. 2007-05-03 07:56:47 +00:00
Eric S. Raymond
f5c2c236f6 Arrange for both map transformations to be done on a 1.2.x map,
and simplify some code.
2007-05-03 07:42:47 +00:00
Eric S. Raymond
f410430429 Refactoring step. 2007-05-03 07:21:46 +00:00
Eric S. Raymond
d4c8727598 Some conversions discovered while lifting SotBE. 2007-05-02 13:06:20 +00:00
Eric S. Raymond
b57927e70b Speed up upconvert's keep handling slightly. 2007-05-01 23:24:29 +00:00
Eric S. Raymond
6fd811f6cb Fix a bug reported by Noyga. 2007-05-01 15:59:39 +00:00
Eric S. Raymond
e93bb09274 This should have been flushed days ago. The upconvert script obsoletes it. 2007-05-01 12:57:18 +00:00
Eric S. Raymond
07b2e0e778 More resource translations. 2007-05-01 07:54:27 +00:00
Eric S. Raymond
fd2534225c Handle the holy->arcane change. 2007-04-30 15:23:54 +00:00
Eric S. Raymond
987e8eba20 upconvert now handles terrain=, terrain_liked=, and valid_terrain. 2007-04-30 09:04:11 +00:00
Eric S. Raymond
ed206aa128 upconvert now translates terrain_likes clauses. 2007-04-29 21:56:57 +00:00
Mark de Wever
8fa90b7500 updated the unit tree generation files 2007-04-29 17:01:33 +00:00
Eric S. Raymond
7a25a476bd Fix some documentation comments. 2007-04-29 13:13:21 +00:00
Eric S. Raymond
96a1f8c597 Reveal the candidates when macroscope has a name collision. 2007-04-29 12:29:21 +00:00
Eric S. Raymond
c64898235a New macroscope visibility rules are now working for resource files. 2007-04-29 11:15:05 +00:00
Eric S. Raymond
00fd700a48 Minor refactoring step. 2007-04-29 04:25:44 +00:00
Eric S. Raymond
8a48889b2e Prepare for sytematic checking of UMC with new visibility rules. 2007-04-29 03:05:33 +00:00
Eric S. Raymond
685965c5f1 Move macroscope's visibility rules for files and resources...
...much closer to the WML interpreters.  Macro definitions are now
visible only in other files under the same directory they were found
in. Resource files have to be done next.
2007-04-29 03:00:45 +00:00
Eric S. Raymond
bb4c74ec1c Refactored macroscope to use iterators.
This will enable better visibility checking.
2007-04-28 23:25:00 +00:00
Eric S. Raymond
a3dc1b12db Cope with unbalanced #undef statements. 2007-04-28 11:37:03 +00:00
Eric S. Raymond
d1ba962b74 Macroscope now takes multiple directory arguments. 2007-04-28 05:06:08 +00:00
Eric S. Raymond
234ddfe2d9 Macroscope can now handle multiple definitions of macros gracefully,
as long as all but one is local (e.g. scope is terminated by an #undef)
2007-04-27 21:57:30 +00:00
Eric S. Raymond
979264e084 Add some documentation. 2007-04-27 21:37:29 +00:00
Eric S. Raymond
2244511853 Fix the code for extracting the macro reference. 2007-04-27 14:22:55 +00:00
Eric S. Raymond
69e98dc8ca Move report header before parsing...
...so messages to stderr happen in the right order.
2007-04-27 11:01:38 +00:00
Eric S. Raymond
5f3b1fd333 Avoid an odd glitch that causes some false messages abot duplicates. 2007-04-27 04:43:09 +00:00
Eric S. Raymond
aa9dab7f6e Avoid a name collision between two lich portraits that are tinted differently. 2007-04-27 04:02:04 +00:00
Eric S. Raymond
bc010743f6 And more documentation. 2007-04-26 21:29:30 +00:00
Eric S. Raymond
2add57a040 Add some documentation. 2007-04-26 21:28:02 +00:00
Eric S. Raymond
b9c08ea5d0 Warn of duplicated reference names. 2007-04-26 19:14:46 +00:00
Eric S. Raymond
ecebe4f1cf More incremental improvements. More UMC resource conversions. 2007-04-26 13:46:09 +00:00
Eric S. Raymond
ae131e8450 Fix a brown-paper-bag bug introduced two commits back. 2007-04-26 12:22:55 +00:00
Eric S. Raymond
8a2885abc8 Don't crap out on the ill-formed Rogue_RPG map. 2007-04-26 11:26:21 +00:00
Eric S. Raymond
6afa7e61bb Better handling of one-line maps. 2007-04-26 10:25:28 +00:00
Eric S. Raymond
ba9b7e48e4 Handle ill-formed one-line maps more gracefully. 2007-04-26 10:15:12 +00:00
Eric S. Raymond
07fd01f3cd More incremental improvements to macroscope and upconvert. 2007-04-26 08:55:47 +00:00
Eric S. Raymond
4270406a95 Help the duplicate-checking in macroscope cope with some wacky UMC. 2007-04-26 05:16:10 +00:00
Eric S. Raymond
cca726bd96 Give macroscope the ability to detect duplicate resource files. 2007-04-26 03:41:11 +00:00
Eric S. Raymond
4ef2a83572 Don't issue a warning om duplicated but identical maacro definitions.
-w 1 can be used to force warning on duplicates.
2007-04-26 02:47:20 +00:00
Eric S. Raymond
0031d37b42 Macroscope needs to be able to see filenames with leading dots. 2007-04-26 01:38:11 +00:00
Eric S. Raymond
bf41f5e59c Small cleanup change. 2007-04-25 14:34:13 +00:00
Eric S. Raymond
a81c17e4bf Last-minute pre-1.3.2 filename mappings. 2007-04-25 14:27:55 +00:00