22212 Commits

Author SHA1 Message Date
Celtic Minstrel
7b83343b36 fixup 2016-07-18 09:11:38 -04:00
Celtic Minstrel
7286ea8e0f Merge pull request #661 from spixi/name_and_map_generator
Improvements in the name and map generators
2016-07-18 01:10:46 -04:00
Celtic Minstrel
649b50d93b Shorten one of the map name generator keys 2016-07-17 23:50:37 -04:00
Spixi
f96f86245e Improvements in the map and name generators
- Implement a way to escape special characters {|} in the CFG generator
- Eliminate null pointers to name generators
- Invalid generators now throw exceptions
- Name generating rules for different terrain elements can now be specified
  (The defaults in english.cfg are still used)
2016-07-17 23:42:19 -04:00
Celtic Minstrel
36eeed413c Comment fixup 2016-07-17 19:51:09 -04:00
Bär Halberkamp
0a83e2e6b6 Fix [message]s without an image not working 2016-07-17 19:49:29 -04:00
gfgtdf
1d168bce9a fixup on_event.lua 2016-07-16 20:34:33 +02:00
Celtic Minstrel
6abd7a6941 Add [message]image_pos=left|right
This is meant to replace ~RIGHT() and also the newer ~LEFT(),
with one exception: ~RIGHT() will still be the standard way to
make a unit's portrait go on the right by default.
2016-07-15 17:35:51 -04:00
Celtic Minstrel
232709ea57 A few Micro AI tweaks
- For MAIs using aspects, make the facet ID more unique
- Only shallow-preparse the [micro_ai], rather than fully preparsing it
  (This is so that filters in Micro AIs can use $this_unit if needed)
2016-07-15 16:15:44 -04:00
Celtic Minstrel
01d3156d47 Micro AIs: Fix not properly deleting aspects
(This affects the Protect and Wolves MAIs)
2016-07-15 16:07:22 -04:00
Celtic Minstrel
21e79b5f6a Protect Micro AI: Fix missing aspect ID 2016-07-15 15:50:24 -04:00
Celtic Minstrel
35d17dcaa1 Add clear button to Lua console 2016-07-15 01:37:30 -04:00
gfgtdf
ceea75cf0a replace some victory with scenario_end events.
victory is an unsynced event to its potentially unsafe to change the
gamestate in it, this mostly effects LoW (which can be played as a mp
campaign) where i replaced most victory events.

But it also effects sp becasue it can casue bugs to create units in
unsynced events which are used later (here: in later scenarios), so i
replaced also all sp victory events that do that.

Note that the 'scenario_end event'+'proceed_to_next_scenario filter' has
a slightly different meaning than 'victory event': the second gets fired
when there is a local human side who won the scneario while the first
gets fired if there is any human side who on the scenario. In sp this
is the same since there are no remote human sides, but in mp this is the
reason why the first is synced and the second is not.

We could add a seperate event for this case ("before next scenario" or
similar) for easier use, but i didn't find a good name for
that yet.
2016-07-14 22:15:33 +02:00
Charles Dang
5649379426 Swapped order of two frames in the fireball animation
It makes more sense to go from largest to smallest, instead of large, small, medium.
2016-07-13 17:39:58 +11:00
Pubudu
129ce2982b Added new checkbox to multiplayer game configure dialog to allow only
registered users to join the game
2016-07-12 11:50:50 +05:30
Celtic Minstrel
d4b8fec953 New features in [role] WML tag
- search_recall_list=yes|no (default yes)
- [else] tag which is run if no unit matches
- auto_recall=yes|no (default no) which recalls the unit if it's on the recall list
2016-07-11 20:13:57 -04:00
ln-zookeeper
937df219c9 Don't issue a warning when no unit found for [role] 2016-07-11 23:41:33 +03:00
gfgtdf
d73d32e8e2 fixup on_event.lua 2016-07-11 15:12:12 +02:00
gfgtdf
9a5eabb207 fixup on_event.lua 2016-07-11 15:09:25 +02:00
gfgtdf
2ad3f2ca8e fix LoW death dialogue showing of for enemies 2016-07-11 14:54:20 +02:00
gfgtdf
ac717f70b8 improve on_event.lua
Added some features:
1) on_event now supports a comma separated list of event names in its first parameter

2) on_event now supports a number as second parameter that specifies in which order the event handlers are called.

3) on_event now passes wesnoth.current.event_context to the handler function, since the handler function will most likeley need it.
2016-07-11 14:01:04 +02:00
PoignardAzur
6347c646e2 LoW: Remove Elvish_Horse_Archer alt advancement 2016-07-10 18:01:23 -04:00
gfgtdf
16014a9795 fix [set_variable] rand= 2016-07-09 21:42:10 +02:00
gfgtdf
40ff1ec986 make utils.split return empty set on nil values
previously it returned a "nil" string
2016-07-09 21:01:35 +02:00
Gregory A Lundberg
010f943a40 [option]message= deprecated, use label=
According to the Wiki, since 1.13.2 message= is an alias for label=.

Using message= provokes a warning about it being deprecated.

This replaces message= with label= in the entire mainline (where it had not already been changed).
2016-07-03 13:41:44 -05:00
Charles Dang
240b940618 Fixed [teleport] not working 2016-07-03 04:34:54 +11:00
Charles Dang
41145a783c wmllint rules for 20b90a29fa38 2016-06-30 18:29:50 +11:00
Charles Dang
20b90a29fa Rename Heavy Infantrymane idle frames for consistency 2016-06-30 18:22:43 +11:00
Nils Kneuper
944a1d962a updated Polish translation 2016-06-26 12:31:57 +02:00
Elvish_Hunter
f07f893d34 Used argparse instead of optparse in TeamColorizer 2016-06-22 17:15:18 +02:00
Elvish_Hunter
1f3674dcf6 TeamColorizer: fix team_colors dict alignment 2016-06-22 17:15:18 +02:00
Elvish_Hunter
a53b6538ba Added more color ranges to TeamColorizer
The new ranges coming from core are lightblue, brightgreen, brightorange and gold. Ranges coming from IftU and used in other UMCs as well are cyan, yellow and pink (which was already present, but with the wrong values).
2016-06-22 17:15:18 +02:00
Elvish_Hunter
dcad3b75f7 Converted extractbindings script to Python 3 2016-06-22 17:15:18 +02:00
Elvish_Hunter
879ec2dd28 Make the extractbindings script working again 2016-06-22 17:15:18 +02:00
Elvish_Hunter
bcede3d52c campaign2wiki: explicitly save output file as UTF-8 2016-06-22 17:15:18 +02:00
Elvish_Hunter
0807990ae1 Converted terrain2wiki script to Python 3 2016-06-22 17:15:18 +02:00
Elvish_Hunter
fccd419429 Fixed terrain2wiki script not working with certain comments
The script errored if a comment not starting at the start of the line was found in the cfg file.
2016-06-22 17:15:18 +02:00
Elvish_Hunter
d80c80a50f campaign2wiki: minor syntax cleanup 2016-06-22 17:15:18 +02:00
Elvish_Hunter
6ebe88492d Converted campaign2wiki script to Python 3 2016-06-22 17:15:18 +02:00
Elvish_Hunter
ad5b92392c Fixed campaign2wiki script not working with the new difficulty syntax 2016-06-22 17:15:18 +02:00
Elvish_Hunter
0b48b779c0 Converted about_cfg_to_wiki script to Python 3 2016-06-22 17:15:18 +02:00
Elvish_Hunter
e4a0eaf52e TeamColorizer: replaced sys.stderr.write() with print(file=sys.stderr) 2016-06-22 17:15:18 +02:00
Elvish_Hunter
3607f8c004 Make TeamColorizer script run on Python 3 2016-06-22 17:15:18 +02:00
Elvish_Hunter
c1ebf926cf LoW: silence '[side] without type attribute' wmllint warnings 2016-06-22 17:15:18 +02:00
ln-zookeeper
2642c104d3 EI: Restored the holy amulet in S9 and fixed unit position screwup 2016-06-13 12:34:34 +03:00
ln-zookeeper
9e557f37b1 EI: Fix screwup which made Owaec loyal as a leader 2016-06-13 12:20:15 +03:00
ln-zookeeper
349069110b EI: Fix screwup in S4c 2016-06-13 12:18:18 +03:00
Elvish_Hunter
d7b2fad190 wmllint: fix unknown IDs in [generator] tag 2016-06-12 12:12:07 +02:00
Elvish_Hunter
85f1869e56 wmllint: fix unknown IDs in OptionWML tags 2016-06-12 12:12:07 +02:00
Elvish_Hunter
270809c68c GUI.pyw: fix an error that seems to happen only on Python 3.5
When closing down the program, this error message appeared: 'TypeError: catching classes that do not inherit from BaseException is not allowed'. It seems to depend on Tkinter's PhotoImage object being destroyed after the root windows's destroy() method is called.
2016-06-12 12:12:07 +02:00