62392 Commits

Author SHA1 Message Date
Charles Dang
68363b3e21 Convert benchmark scenario maps to new format 2015-10-08 05:09:14 +11:00
Charles Dang
a96253982b Team Survival: convert masks to new format 2015-10-08 05:09:13 +11:00
Charles Dang
f932da26be TSG S6b: convert inline masks to new format 2015-10-08 05:09:13 +11:00
Charles Dang
31e822d7c6 EI: convert remaining maps to new format 2015-10-08 05:09:12 +11:00
Charles Dang
8e58764517 TRoW: convert maps to new format 2015-10-08 05:09:11 +11:00
Charles Dang
fe3057173b SotBE: convert maps to new format 2015-10-08 05:09:10 +11:00
Charles Dang
6cdc849aa2 L S8: convert inline mask to new format 2015-10-08 05:09:10 +11:00
Charles Dang
7f8645ebc0 L: convert maps to new format 2015-10-08 05:09:09 +11:00
Charles Dang
d6a31d2be1 HttT: split S17 mask into its own file and converted it to new format 2015-10-08 05:09:05 +11:00
Charles Dang
a97cd1c74e HttT: convert maps to new format 2015-10-08 05:07:36 +11:00
Charles Dang
6009729fd1 DM: convert maps to new format 2015-10-08 05:07:35 +11:00
Charles Dang
9972213520 SoF: convert maps and masks to new format 2015-10-08 05:07:34 +11:00
Charles Dang
b253a331b5 DW S2: convert inline mask to new format 2015-10-08 05:07:34 +11:00
Charles Dang
b8c5641baf DW: convert maps to new format 2015-10-08 04:12:51 +11:00
gfgtdf
dd1b681d59 add support for overlays to lua units poxies 2015-10-07 18:44:36 +02:00
Charles Dang
abd5dfdcc0 Remove handling of maps' usage= key 2015-10-07 20:24:55 +11:00
Charles Dang
798c59c7bd Replace most instances of a single-hex [terrain_mask] action with [terrain]
One file is deliberately not converted until we get a dedicated mask test
2015-10-07 17:00:53 +11:00
Charles Dang
2a466bd567 Remove handling of [map] as a tag 2015-10-07 16:30:27 +11:00
Celtic Minstrel
21e06ef482 Add accuracy/parry to Lua unit attacks table 2015-10-06 22:49:38 -04:00
Charles Dang
0173161b2d Merge pull request #516 from Vultraz/master
Add [replace_map] file= which will load the specified map at runtime
2015-10-07 13:16:22 +11:00
Celtic Minstrel
af7ba3e527 Fix spelling 2015-10-06 22:13:57 -04:00
Charles Dang
2dfed2c3e4 [replace_map]: clarified an error message 2015-10-07 12:44:11 +11:00
Celtic Minstrel
9d3f1e5c9d Fix some issues with [test_condition] 2015-10-06 16:23:55 -04:00
gfgtdf
4167530c37 Update changelog 2015-10-06 21:39:25 +02:00
gfgtdf
e30e7bcc9d fixed local mp games 2015-10-06 21:35:25 +02:00
gfgtdf
0cc3c81259 fixed assertion failure in synced_context.cpp 2015-10-06 21:35:24 +02:00
Celtic Minstrel
8a7f71578d Add (male|female)_message to [message] 2015-10-06 15:03:55 -04:00
Celtic Minstrel
f8e897e8dd Change [explain] to [test_condition] 2015-10-06 14:45:29 -04:00
Celtic Minstrel
9724d98d44 string.format blows up on booleans 2015-10-06 14:45:05 -04:00
CelticMinstrel
0957b562e2 Merge pull request #517 from CelticMinstrel/fix-for
Fix for-loops
2015-10-06 14:43:21 -04:00
Celtic Minstrel
2018732284 Update changelog 2015-10-06 13:51:29 -04:00
Celtic Minstrel
5353dfb439 Use return instead of goto in [while] 2015-10-06 13:51:28 -04:00
Celtic Minstrel
aa2e24d1b7 Finally fix all the [for] issues. Probably.
(With unit tests to back it up!)

- Fixes [for]step=0
- Fixes [for]start,stop=0,0
- Fixes [for]start,end,step=0,1,-1
- Probably fixes several other things too
2015-10-06 13:51:28 -04:00
Celtic Minstrel
fd34675dd9 Add an [explain] WML tag
This explains (in the log) why a WML conditional has failed (or succeeded). Currently it is fairly basic, looping through and/or/not and printing out the specific conditional tag that failed as well as, for [variable], the current content of the variable.

It's used in the WML unit tests system, but could also be useful for debugging.

This commit also fixes an issue with passing multiple -a arguments to run_wml_tests.
2015-10-06 13:51:27 -04:00
Charles Dang
3d06f689d7 Rename [scenario] map= key to map_file for consistency with [replace_map]
This key was undocumented before so it shouldn't break anything
2015-10-07 04:11:09 +11:00
Charles Dang
c1e8acd119 Add [replace_map] file= which will load the specified map at runtime
This has an advantage over the map key behavior, where the contents of the map
file were preprocessed and written to savefiles.
2015-10-07 04:07:59 +11:00
gfgtdf
6ff6b76aa6 Update RELEASE_NOTES 2015-10-06 17:01:51 +02:00
ln-zookeeper
0fd627178d New mace sounds, from material by leorock116 2015-10-06 17:49:36 +03:00
gfgtdf
83cc82185e add custom [effect]s with wesnoth.effects
Note that is not possible to use untore_unit/put unit inside those
effects becasue it will casue infinite recirsion.

Intead you can eigher use direct lua unit modification or use reuse
effects with wesnoth.add_modification(u, ..., , ..., false)

The main problem here was, that [effect]s are often applied in unit's
constructor where is was previously not possible to create a lua_unit
refering to that unit, to fix that i had to change lua_unit, luaW_checkunit
and luaW_getunit.
2015-10-06 00:15:04 +02:00
gfgtdf
94ea5782ff add $varname?default_value| in variable substitution 2015-10-06 00:15:02 +02:00
gfgtdf
f7e0de59b7 fix units variation getter 2015-10-06 00:15:01 +02:00
gfgtdf
c9e23dc733 add enable_if= to mod and era events
http://gna.org/bugs/?23721
enable_if = in [event] contains a condition that is evalulated before
the scenario is startd (specially before the [replay_start] snapshot is
taken) to check whether the event should be added to the scenario.
[event]
enable_if="$($scenario_num -1 > -1)"
[/event]
will for example add the event only if it's not the first scenario (assuming
wml sets the variable) 'scenario_num' to the current scenario number.
2015-10-06 00:15:00 +02:00
gfgtdf
11d6c3f199 fix assertion failue in wesnth.random 2015-10-06 00:14:59 +02:00
gfgtdf
eaa192ffa8 fix [lua] tags beeing lost on reload 2015-10-06 00:14:57 +02:00
gfgtdf
1f3aeb6574 add [effect] apply_to=max_expereince set=<value> 2015-10-06 00:14:56 +02:00
gfgtdf
f74d89d166 more lua modifyable unit properties 2015-10-06 00:14:55 +02:00
gfgtdf
8ddcdebb82 allow side controller= filter in unsynced code.
and make controller= a comma speperated list, so that one can for
example search for controller=ai,network_ai
2015-10-06 00:14:53 +02:00
gfgtdf
397014a89d remove tgame_mode::LINGER_SP and tgame_mode::LINGER_MP
they already had the same effect so i merged both options into just
tgame_mode::LINGER
2015-10-06 00:14:52 +02:00
Elias Pschernig
b742542b37 [wesnoth_addon_manager] Speedup writing files to disk *a lot* :) 2015-10-05 17:36:46 -04:00
Elias Pschernig
ed83c6b888 [wesnoth_addon_manager] fixed an error message 2015-10-05 10:55:19 -04:00