18358 Commits

Author SHA1 Message Date
Andrius Silinskas
77523d86d6 Refactor faction set up in multiplayer.
The code has been improved to switch from index lookups to lookups by
ids. This makes the implementation more flexible for future improvements
and easier for maintenance.

The "Custom" faction has been added. It is automatically chosen and
locked for sides with a recruit list. The sides without recruit list
won't see it in their faction choice combo box.

The recruit list in side will be now be overriden by a faction if map
settings are not in use.
2013-09-05 18:33:33 +01:00
mattsc
659162371b Internal rewrite of ai_helper.get_attacks()
This is much faster than the previous version.  No change in
functionality.
2013-09-04 20:20:25 -07:00
Richard Kettering
ee2e06a687 Removed the out-of-date thunderer-line animations. 2013-09-04 00:48:59 -05:00
Richard Kettering
c7608dbfee Added sleepwalker's animations for the dwarven thunderer line. 2013-09-03 23:17:29 -05:00
ln-zookeeper
8e46cb683c Fixed oversight in scaling settings for new bigmaps. 2013-09-03 19:18:39 +03:00
mattsc
1010a790b1 Messenger MAI: deal with case when path is entirely blocked by enemies
This is different from the case when there's an enemy on the next
waypoint, which was already taken care of.
2013-09-01 17:43:34 -07:00
mattsc
cc6831f9e6 New Simple Attack Micro AI and test scenario 2013-09-01 07:34:30 -07:00
mattsc
87a9c2b9f6 [micro_ai] tag: fix bug that prevented removal of sticky behavior CAs 2013-08-29 17:32:03 -07:00
mattsc
500ccde573 Messenger MAI: minor bug fix to messenger attack behavior
The syntax of the waypoint_x/y parameter was changed recently, without
adapting its treatment here.  As a result, the messenger did "unsafe"
attacks whenever it ended up next to an enemy and not only on the last
waypoint as it is supposed to.
2013-08-29 11:11:23 -07:00
mattsc
14570a0a96 Messenger MAI bug fix: don't try to attack with escort unit without weapon
This one was a much more serious bug than the previous one, as it could
throw Wesnoth into an infinite loop.
2013-08-29 08:36:58 -07:00
mattsc
2f56734d4e Messenger MAI bug fix: don't try to attack with messenger without weapon 2013-08-29 08:03:07 -07:00
Alexander van Gessel
d028a228aa Merge pull request #68 from Gallaecio/removeDoubleSpaces
Removed double spaces from a couple of internationalized strings.
2013-08-27 07:34:36 -07:00
Alexander van Gessel
e6c346cd28 Optipng run on pt image l10n
Overall statistics (only for files with a smaller recompressed size):
  Original size: 24 KiB on 2 files
 Optimized size: 23 KiB
   Total saving: 0 KiB = 0% decrease
2013-08-27 16:29:59 +02:00
Alexander van Gessel
a58a3cd015 Merge branch 'master' of https://github.com/trewe/wesnoth-old (PR #71) 2013-08-27 16:26:26 +02:00
Alexander van Gessel
3b9ba35c30 Optipng run on gl did--overlay.png
Overall statistics (only for files with a smaller recompressed size):
  Original size: 130 KiB on 1 files
 Optimized size: 121 KiB
   Total saving: 8 KiB = 6% decrease
2013-08-27 16:16:36 +02:00
Alexander van Gessel
8bb8ea647b Merge branch 'gl' of https://github.com/Gallaecio/wesnoth-old 2013-08-27 16:14:44 +02:00
Ignacio R. Morelle
c22a631d76 Add wmllint spelling exception for 'playlist' in editor theme WML 2013-08-26 22:38:58 -04:00
anonymissimus
a7ce537ee6 .gitignore code.lua
It makes sense to add this in a .gitignore as the filename must be the same
in different checkouts.
2013-08-25 21:04:01 +02:00
Alexander van Gessel
d8982af444 Fix a typo fix 2013-08-24 21:13:24 +02:00
Thibault Févry
a89f78f469 Fix more typos. 2013-08-24 19:28:19 +02:00
Thibault Févry
df427826fa Fix typos in terrain2wiki.py 2013-08-24 19:16:14 +02:00
Thibault Févry
98b8822ccf Fix typos in data/tools/wesnoth files. 2013-08-24 19:13:24 +02:00
Thibault Févry
8ed68f5c55 Ran reindent so we don't use tabs. 2013-08-24 18:53:46 +02:00
Thibault Févry
dee75eeef0 Fix indent. 2013-08-24 18:47:00 +02:00
trewe
5d4d48d47d added aoi map (pt) 2013-08-23 13:18:20 +01:00
Nils Kneuper
a3b14e7670 applied utils/wesnoth-optipng on data/
Overall statistics (only for files with a smaller recompressed size):
  Original size: 8179 KiB on 29 files
 Optimized size: 7013 KiB
   Total saving: 1165 KiB = 14% decrease
2013-08-22 22:31:34 +02:00
Groggy Dice
d3bb951548 check for textdomain paths without '/translations', and binary paths referring to 'external' data
The convention that [textdomain] uses "/translations" is strongly established, and I can't think of a legitimate reason for an add-on not to be following it.

The binary path check is a crude test. The names that took hold for menu image directories are "/public" and variations of "/external*", so we look for those strings. It does not catch the worst case of all - when all binaries are outside the campaign define, not just a set-aside directory.

I first thought of these checks while brainstorming ways to use the in_textdomain and in_binary_path code in hack_syntax(). However, realizing that these checks did not really hack any syntax, I wanted to find someplace in the sanity checks where the code would fit. I finally found it.
2013-08-21 04:39:44 -04:00
Ignacio R. Morelle
74915e33bf Add scroll_to_leader field to the [store_side] WML action 2013-08-20 18:25:03 -04:00
Ignacio R. Morelle
5b72fe99a5 Ensure complete darkness after FADE_TO_BLACK and FADE_TO_BLACK_HOLD
Add -256 and -512 color shifts to the FADE_TO_BLACK and
FADE_TO_BLACK_HOLD macros in order to account for ToD color shifts
greater than -31.
2013-08-20 18:07:48 -04:00
Groggy Dice
6cf03fe827 fix wmltools' parse_attribute to not consider pango color hashes as a comment
While there are many places that wmllint assumes that "#" begins a comment, from Vultraz's description it sounded like parse_attribute was being used to find the attribute's value, and then a string_strip was done on the value. So I looked for the direct cause in wmltools.

Again, the solution is to look for whitespace to precede the hashsign.

Incidentally, I don't know why the original code had the first "where -= 1", then had value and comment go from [:where+1] and [where+1:].
2013-08-19 22:06:16 -04:00
Groggy Dice
d90f082312 wmlindent: fix pango indentation-stopping bug (pointed out by vultraz)
I had a hunch that the hash would be the problem, because I realized that wmllint usually just looked for '#' to figure out if a line contained a comment, and that this also matched pango color coding. My wmllint backslash/userdata commits used this same re.split match to prevent this false positive.

(It won't prevent all unintended matches, e.g. "Guard #4", but I don't think that can be helped.)

The problem came, I believe, when the old line interacted with the block ten lines down:

        elif eligible.count('"') % 2:
            dostrip = not dostrip

The value's closing quote was on the other side of the split.
2013-08-18 23:08:19 -04:00
Andrius Štikonas
892463c52f [Lithuanian Translation] Updated map localization of DiD and TSG. 2013-08-18 20:07:26 +03:00
Adrián Chaves Fernández (Gallaecio)
0f5fa532a6 Updated the Galician translation of the “Descent Into Darkness” map. 2013-08-18 15:21:19 +02:00
trewe
14c7ee0458 new maps for portuguese image localization 2013-08-18 12:59:08 +01:00
Adrián Chaves Fernández (Gallaecio)
71c75e43c1 Removed double spaces from a couple of internationalized strings. 2013-08-18 11:49:36 +02:00
Groggy Dice
8b3aba7ccb wmllint: extend scenario check to include first scenario
Some newbie authors run into trouble at this point!
2013-08-17 19:27:00 -04:00
Groggy Dice
93af90d2db additions to wmllint help
Here's the rationale for these additions:

* There is so much focus on wmllint's role in conversion, that many people may not think of it as a validator also (I didn't). So often, stumped authors ask in the forums about problems that would have been fixed or pointed out if they'd run wmllint. I want to encourage awareness of wmllint as a validator.

* Folded a line to fit normal 80-width CLI.

* Help contained no mention of this rather redundant option.

* How many people don't realize that ESR's long introduction is there?

* Some users may not understand why they're being dumped back to wmllint's help.
2013-08-17 19:26:52 -04:00
Groggy Dice
db560619e8 wmllint: add switch -K --known for suppresing consistency_check()
I used "inconsistency" for the actual variable name, because "known" seems more likely to be accidentally reused.

I pondered whether to allow the scenario check to go forward, but decided to just make a clean break.

Note that this does not prevent any of the information-gathering for the consistency check, just the check itself.

Why would you want to use this option? Of course, you should run the consistency check at some point. But if you simply want to recheck if you've fixed all the bugs in your campaign, you might not want to have wmllint slog through data/core again.
2013-08-17 19:26:44 -04:00
Groggy Dice
46e9d8dc1d wmllint: bugfix missing "stringfreeze" long argument in getopt, and correct help description
According to the introduction, stringfreeze does *not* suppress the warning, and the code bears this out.

I wonder how often this option is actually used.
2013-08-17 19:26:36 -04:00
Groggy Dice
45fa75c082 change introduction's reference to checking out wmllint from 1.4 branch, to wmllint-1.4 2013-08-17 19:26:29 -04:00
ln-zookeeper
9b13a182e6 New bigmap and journey markers for DiD. 2013-08-17 10:56:24 +03:00
Groggy Dice
8335d131bd wmllint-1.4: revise help to reflect its current status as an adjunct to current wmllint 2013-08-15 20:43:57 -04:00
Groggy Dice
a315603d2c wmllint: bugfix "unresolved scenario" check 2013-08-15 19:20:50 -04:00
Groggy Dice
b999da8774 "wmllint: unwho ALL" who entries at LoW's final battle 2013-08-15 19:20:24 -04:00
Groggy Dice
c3863ac222 implement keyword 'unwho ALL' for clearing all "wmllint: who" entries at end of campaign
I realized that as it stood, my dictionary would linger, bad if wmllint were being run on multiple campaigns. A special unwho keyword, 'all', clears the dictionary.
2013-08-15 19:13:22 -04:00
Groggy Dice
17e2c93efd Liberty utils.cfg: typo fix: born -> borne 2013-08-15 01:22:27 -04:00
Groggy Dice
76134b5bfe Legend_of_Wesmere: convert main characters and key loyals of LoW to 'wmllint: who' system
Also, get rid of now-unnecessary 'recognize' magic comments
2013-08-15 01:22:17 -04:00
Groggy Dice
a8a65c25b2 add explanation about how to use "wmllint: who" magic comments to introduction 2013-08-15 01:22:05 -04:00
Groggy Dice
ab18d94117 magic comment to remove items from whopairs dictionary
If no more scenarios will be using a macro, you can remove it from the dictionary with "unwho".
2013-08-15 01:21:46 -04:00
Groggy Dice
56be5f2f6b recognize characters from "wmllint: who" macros and append to present
Now that we see how the whopairs are recognized, we can see that the magic comment accepts a comma-separated list, for macros that deal with more than one character.

We also see that if it is necessary to remove a character who leaves the party, this can be done with another entry prefixed by double minuses.
2013-08-15 01:21:28 -04:00