20028 Commits

Author SHA1 Message Date
Matthias Schoeck
bad5e79f67 Lurkers Micro AI: bug fix for attempting to attack petrified units 2014-12-15 19:23:06 -08:00
ln-zookeeper
533cf432be Toned down the trolls on easier difficulties 2014-12-13 14:18:20 +02:00
ln-zookeeper
0ca40149e0 Map update 2014-12-13 14:01:31 +02:00
ln-zookeeper
8396b8db7d Simplified an event filter 2014-12-13 13:58:18 +02:00
ln-zookeeper
a806e97f9e Fixed bug #23054
bug #23054: EI: Captured - quick troll warrior ambushes rescuers
pre-disguise
2014-12-13 13:57:58 +02:00
ln-zookeeper
18d2c81527 Merge branch 'master' of https://github.com/wesnoth/wesnoth 2014-12-13 13:07:53 +02:00
ln-zookeeper
ceb01fa68d Ensure that at least one elf is spawned every time 2014-12-13 13:06:54 +02:00
ln-zookeeper
ea2f41f438 Fixed bug #23059
bug #23059: SG: Vengeance - message using "name" doesn't display
2014-12-13 13:02:52 +02:00
ln-zookeeper
6e89a75192 Revert "Fixed bug #23059"
This reverts commit eb1e35d8dfa046e6d4b06f10f8b14ff1ab233352.
2014-12-13 12:55:34 +02:00
ln-zookeeper
eb1e35d8df Fixed bug #23059
bug #23059: SG: Vengeance - message using "name" doesn't display
2014-12-13 12:49:32 +02:00
Fabian Müller
1bf6564802 Add some tooltips to the test scenario's labels. 2014-12-13 07:31:46 +01:00
ln-zookeeper
31201a3025 Fixed bug #23048
bug #23048: EI: Evacuation - ill-formed terrain modification causes
horizontal line
2014-12-13 01:39:05 +02:00
ln-zookeeper
2a1387186c Simplify an event 2014-12-09 16:35:05 +02:00
ln-zookeeper
aa685d7e56 Scrap the random guard placement
The guard placement randomization is practically impossible to write so
that it'd guarantee a route through the map without making it too
trivial.

Now, there are 3 separate hardcoded guard layouts, one of which will be
chosen at random.
2014-12-09 16:14:47 +02:00
gfgtdf
a9cc3b2753 remove unused lua code
this lua codes weren't used, on the other hand they break modifications that could be used with LoW otherwise.
2014-12-07 20:51:22 +01:00
ln-zookeeper
6943bc0d6a Removed uses of SOUND:SLOW and SOUND:POISON 2014-12-07 14:28:46 +02:00
ln-zookeeper
1ff69616bf Decoupled slow and poison sounds from animations 2014-12-07 14:27:05 +02:00
Chris Beck
d1d0990235 add a unit test for wesnoth.require 2014-12-06 23:32:29 -05:00
Chris Beck
69d7924df5 add a wml unit test for lua dofile 2014-12-05 15:30:12 -05:00
Charles Dang
ff3f5daf6c UtBS S10: 'tallest peak was build' -> '[...] built' 2014-12-04 19:03:32 +11:00
ln-zookeeper
f27027bfa6 Fix bug #23024 by repositioning {SOUND:SLOW} 2014-12-04 09:40:31 +02:00
mattsc
4db987d84b SotBE S6: reduce randomness of unit types unloading from galleons
This is done to keep the difficulty of the scenario more consistent. We
now always unload one level 2 unit and two level 1 units (assuming that
at least 3 landing hexes are available).
2014-11-28 12:31:07 -08:00
ln-zookeeper
a4a339123f Fixed Morogor's location being described all wrong. 2014-11-28 13:50:54 +02:00
mattsc
17e758a3c4 Lurkers MAI: bug fix for attack error when lurker runs into ambush
If the lurker move is interrupted by an ambush, the attack action
previously sometimes caused an error, because the lurker might not get
to its target.
2014-11-27 19:10:32 -08:00
mattsc
051644b00f Big Animals MAI: bug fix for units sometimes not attacking 2014-11-27 07:03:33 -08:00
Chris Beck
3740b24b28 fixup ilua _pretty_print function
had some global vs local problems after making this a module loaded
with require rather than a dofile script
2014-11-23 18:33:50 -05:00
Chris Beck
d31253f585 bugfix: invalid variable reference
variable v does not exist... the function is not commented so I
can't be sure of the intention, but the most backwards-compatible
fix is to not pass argument v, so that it will be nil as before.

this bug was revealed by enabling lua "strict mode"
2014-11-22 16:43:27 -05:00
Chris Beck
a65d168317 enable "strict mode" in wesnoth lua
Enables an ilua feature called "strict mode" in all of our lua
environments. This change causes lua to report an error if a global
variable is used before it is assigned. The benefits of this are:
- Improved maintainability of lua-based add-ons, since you get
better error reporting in case of a typo.
- Improved behavior of the lua interpreter console, since mistyped
or gibberish lines resolve to an error rather than "nil", which
the console treats as a legal return value.

It is possible to disable this or work around it in individual
scripts. For more info see release notes.
2014-11-22 15:19:19 -05:00
Chris Beck
db7643c253 Merge branch 'master' of https://github.com/wesnoth/wesnoth 2014-11-21 22:46:51 -05:00
mattsc
f111bf3c01 Station Guardian MAI: bug fix for unreachable stations
Keep guardian in place if the station is unreachable.
2014-11-21 19:44:54 -08:00
Chris Beck
ba4276ea31 add "ilua" helper functions for lua interpreter 2014-11-21 22:22:43 -05:00
gfgtdf
8b426ebee5 add seed textbox in map editor random generation 2014-11-20 02:34:32 +01:00
Chris Beck
97b654beff add and use zookeeper's start of game sound for mp
thanks zookeeper!
2014-11-14 11:56:32 -05:00
Chris Beck
6ad819d759 add a label to lua console describing which kernel is connected 2014-11-14 01:07:12 -05:00
Chris Beck
ca79d3f14a fixup various code comments 2014-11-14 00:50:57 -05:00
Chris Beck
5f96795080 refactor scale_surface, and add old version as "legacy linear" option 2014-11-14 00:32:40 -05:00
Chris Beck
51baab8836 try to fix lua console behavior wrt spacing, command history 2014-11-13 20:01:38 -05:00
Ignacio R. Morelle
f80d8d1d17 Decrease campfire terrain frames duration from 200 to 140 ms
This matches the ANIMATED_CAMPFIRE and ANIMATED_BRAZIER macros from
data/core/macros/image-utils.cfg and looks subjectively better.
2014-11-13 20:25:14 -03:00
Ignacio R. Morelle
e56f8e6aa5 Add ANIMATION_08_140 terrain graphics macro 2014-11-13 20:25:12 -03:00
Chris Beck
510674d465 add lua console button to the gamestate inspector dialog 2014-11-13 14:28:56 -05:00
Chris Beck
2021a42d5b Add lua console
- Add an internal command logger to the lua kernel base, and expose
this.
- Redirect the internal lua `print` to the command logger.
- Add an external logger registration system to lua kernel, in
addition to the internal one.
- Add a lua console dialog which binds to a lua kernel base and
permits to review the contents of the logger and issue new commands,
and report errors.
- Add a hotkey binding to launch the lua console "`"
- Adds tab completion support to the lua console
2014-11-13 11:38:58 -05:00
Roland Hautz
1ae031482d Added myself to Misc. Contributors 2014-11-09 21:33:47 -05:00
Fabian Müller
7b073484cb Made the "broken" core less broken.
This makes sure that the broken core fails at loading and is not marked
as invalid during its config validation.
2014-11-07 23:17:23 +01:00
Chris Beck
e85eb66f5b put YAMG as a map generator rather than as a scenario generator
this way is a lot less buggy, the other way seems to cause
mysterious crashes
2014-11-05 18:40:45 -05:00
Chris Beck
43e3d37a21 fix bug #22484 (fix random map generation in mp create)
As described in bug report, mp create had a bizarre implementation
for random map vs scenario generation. Scenario generation was called
map generation, and map generation was impossible. We fix it and make
it work like it works in the rest of the game.

At time of writing the wiki describes map generation wml as follows:

```
To use the default [generator] your [scenario] tag must contain one of
the following keys:

scenario_generation=default
map_generation=default

If ‘scenario_generation’ is used, the engine will expect for your entire
[scenario] sub tags to be inside a [scenario] tag inside [generator].
Tags outside of this will be ignored. There may be value in this, but at
this writing, it’s not clear. ‘map_generation=default’ is simpler and
more commonly used. It is also necessary to use this key so that you can
regenerate a map in MP game creation. In its use only generator data is
in the [generator] tag, all other [scenario] data is placed outside of it.
The exception is if you are making an initial MP scenario available in MP
game creation, for this a [scenario] tag must appear inside of
[generator], containing the [scenario] subtags you want to use.
See “data/multiplayer/scenarios/Random_Scenario.cfg” for an example.
```

This commit essentially removes the "exception" pointed out above.
After this, the mp create dialog treats map and scenario generation
both in the "random maps" classification, and it handles them normally,
scenario generation replacing the entire scenario, and map generation
replacing only the map data of the scenario.
2014-11-05 18:40:45 -05:00
Nils Kneuper
ee9e7a844a updated Galician translation
images in data/ need to be added to tracking file
2014-11-02 11:44:28 +01:00
Nils Kneuper
16919f7c22 updated Portuguese translation
image needs to be added to translation tracking file
2014-11-02 11:29:13 +01:00
mattsc
ada80cfd34 Micro AIs: only display on-screen error messages when in debug mode 2014-11-01 07:45:15 -07:00
Chris Beck
e243285aba change undead help portrait to spectre, it fits better here 2014-11-01 02:02:56 -04:00
Chris Beck
07b6eeedb2 add "advanced graphics" preference dialog, for scaling algo options
This commit also gives the smart enums in src/make_enum.hpp
introspective capabilities, by giving them a static const size_t
which tells how many possible values they may take (hence the range
of the enum.) It was convenient for the dialog implementation
to have this.

Note that, I had to make use of __attribute__((unused)) to compile
this. I apply this using a macro which adds it for gcc, clang, and
mingw which I know respond to this attribute. I don't know what is
the equivalent MSVC device, or if it is even necessary, so its
possible that this commit needs to be fixed up.

We also disable unit tests for the new advanced graphics dialog,
there are no tests for it right now...
2014-10-24 18:42:18 -04:00