64803 Commits

Author SHA1 Message Date
Gregory A Lundberg
7ec73660e2 AOI Fix missing speakers, use new [role] features
For each speaking part, make sure it is assigned to a unit. For parts where the conversation suffers if not delivered, recall a unit or recruit one if none are available. For parts where the missing the line does not appear to adversely effect the conversation, omit the lines if no unit can be found on the board at the time.
2016-07-16 16:37:18 -05:00
gfgtdf
2825a9d84d add __cfg getter to lua attack userdata 2016-07-16 22:44:50 +02:00
gfgtdf
1d168bce9a fixup on_event.lua 2016-07-16 20:34:33 +02:00
Celtic Minstrel
b145513db3 Fix some issues with fog control
- add_fog removed fog and remove_fog added it
- similarly, [lift_fog] and [clear_fog] were swapped
- make sure first argument is a list of sides before trying to interpret it as one
2016-07-16 10:24:13 -04:00
Andreas Löf
14c0c4487d Update changelog 2016-07-16 19:08:48 +12:00
Andreas
b2f86b6b07 Merge pull request #697 from wesnoth/flickerfix
Hacky fix for the flickering when a screen is fully redrawn.
2016-07-16 19:05:08 +12:00
Andreas Löf
aa58d83b45 Use RAII instead of lock->unlock directly. 2016-07-16 11:25:01 +12: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
39037a7154 Correct changelog 2016-07-15 17:13:57 -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
c252ee7566 Fix inconsistent AI status strings 2016-07-15 12:42:51 -04:00
Andreas Löf
d55e884280 Hacky fix for the flickering when a screen is fully redrawn.
The fix supresses the call to flip() while a full redrawn
is performed. The flip calls are instead deferred to
then next draw-cycle.
2016-07-15 23:29:45 +12:00
Sergey Popov
0b88decba5 Merge pull request #693 from AncientLich/wmlxgettext
bugfix: wmlxgettext '--recursive'  option and symlinks
2016-07-15 12:23:55 +03:00
Celtic Minstrel
35d17dcaa1 Add clear button to Lua console 2016-07-15 01:37:30 -04:00
Celtic Minstrel
aedcdfe04b Update changelog 2016-07-14 20:09:15 -04:00
Charles Dang
3bef1c6c91 Merge pull request #695 from GregoryLundberg/GL_cmg
Missing end-of-line showing seed on stderr
2016-07-15 08:01:15 +11:00
Gregory A Lundberg
f377ae44bf Missing end-of-line showing seed on stderr 2016-07-14 15:41:34 -05: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
gfgtdf
9648d9c989 Update changelog 2016-07-14 22:08:06 +02:00
Celtic Minstrel
4b513f6a59 Update changelog 2016-07-14 09:19:06 -04:00
Nobun
ffb1588b57 bugfix: wmlxgettext '--recursive' option now work correctly also on path containing symlinks 2016-07-14 06:59:01 +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
Celtic Minstrel
7e04c7f8e9 Fix issues with constructing name generators from Lua 2016-07-12 11:08:34 -04:00
Celtic Minstrel
c39af95a44 Move name generator and formula API to base Lua kernel 2016-07-12 11:08:33 -04:00
Celtic Minstrel
3c96dbc145 Fix compile error 2016-07-12 11:08:31 -04:00
Celtic Minstrel
0ec01c595b Update XCode project 2016-07-12 11:08:30 -04:00
Charles Dang
49cf5cbbda Fixed assertion failure when selecting a randomly generated map (bug #24709) 2016-07-12 23:40:42 +11:00
Charles Dang
eebfc466b8 Merge pull request #666 from pubudug/registered_users_only_squashed
Added new checkbox to multiplayer game configure dialog to allow only registered users to join the game
2016-07-12 23:33:24 +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
dd82ed03dc fix comments 2016-07-11 22:33:55 +02:00
Charles Dang
24ca142d8d Merge pull request #686 from GregoryLundberg/vscode
Add .vscode to .gitignore
2016-07-12 05:11:28 +11:00
Gregory A Lundberg
5a27d9513f Add .vscode to .gitignore 2016-07-11 11:50:07 -05:00
gfgtdf
f9d8a9a0ab fix compiler warning 2016-07-11 17:50:16 +02: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
c8d098087c add support for lua_function= in location filters 2016-07-11 14:54:24 +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
Andreas Löf
8c94170c46 Fix bug #24762: Avoid modifying the event handlers at the wrong time
This resurrects the old check that was used to determine when it was
safe to create the buttons. It avoids it happening as a result of an
actual draw-all event, instead only happening when the GUI is being
updated.
2016-07-11 21:36:34 +12:00
PoignardAzur
6347c646e2 LoW: Remove Elvish_Horse_Archer alt advancement 2016-07-10 18:01:23 -04:00
gfgtdf
3f97305ba1 Merge pull request #677 from jyrkive/md5-use-std-array
Modernize the MD5 hash calculation API
2016-07-10 13:17:56 +02:00
Jyrki Vesterinen
fa55702353 Modernize the MD5 hash calculation API
Return a std::array instead of a raw pointer, and take a const pointer as
an input parameter.
2016-07-10 08:28:49 +03:00
gfgtdf
c84db15ccf fix compiler warning 2016-07-10 01:00:14 +02:00
gfgtdf
aab0d16d01 fix assertion failure in mp. 2016-07-09 22:45:25 +02:00
gfgtdf
64b77a691d fix msvc warning
'found */ outside a comment'
2016-07-09 22:31:14 +02:00
gfgtdf
f4253c220a fix side specific variables
this fixes wesnoth.get_side_variable and wesnoth.set_side_variable
2016-07-09 21:42:10 +02:00