53311 Commits

Author SHA1 Message Date
Alexander van Gessel
70dc23cce4 Python syntax bumps 2013-08-22 12:54:51 +02:00
Nils Kneuper
2a85569c1e added missing russian manpages 2013-08-21 20:37:28 +02:00
Nils Kneuper
e8873aefab updated German translation 2013-08-21 20:36:33 +02:00
Ignacio R. Morelle
abcba170e4 addon/mg: Catch and report invalid_pbl_exception exceptions
This allows faulty .pbl files to be reported to the user in a clear
fashion instead of presenting them as a "network communication error"
(which is very wrong, seeing as how these issues only concern local
files).

The actual error is both logged in stderr and presented in the UI as in
the following example:

> Error
>
> A file with add-on publishing information could not be read.
>
> File: /home/shadowm/.wesnoth-1.11/data/add-ons/After_the_Storm.pbl
> Error message: Unexpected characters after variable name (expected , or =), value '' at <unknown>:24
2013-08-21 06:14:01 -04:00
Ignacio R. Morelle
433a245266 addon/mg: Trap config::error exceptions thrown during .pbl read
This introduces a new minimal exception object to encapsulate some
relevant information (the file path and the config::error message) so it
can be propagated to the manager UI code correctly.

This is the first step is ensuring faulty .pbl files are not reported
during connection to the add-ons server as a "network communication
error".
2013-08-21 06:14:01 -04: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
99df0ed831 Make wesnoth.sides[n].scroll_to_leader RW instead of RO 2013-08-20 18:33:45 -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
cc26e1054a Add scroll_to_leader field to wesnoth.sides table elements
This should allow adding scroll_to_leader support to [store_side] later.
2013-08-20 18:23:37 -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
JaMiT
9abafef232 Simplify some code with utilss::join(). 2013-08-18 13:08:53 -05:00
JaMiT
eca68863c3 Refactor game_events::manager::running().
This was only used in assert()s, and it is easier to see when/why
those assert()s are needed if they test resources::lua_kernel instead.
2013-08-18 13:08:53 -05:00
Andrius Štikonas
892463c52f [Lithuanian Translation] Updated map localization of DiD and TSG. 2013-08-18 20:07:26 +03:00
loonycyborg
e097cdc5c5 Fixed #includes of windows headers for cross-compile
Cross-compiler is case sensitive.
2013-08-18 21:01:31 +04:00
loonycyborg
634b0039f8 Fixed scons configure checks for ming32 cross-compile
Removed option for ANA because it isn't used to my knowledge and was
making configure checks more complex.
2013-08-18 21:01:31 +04:00
Ignacio R. Morelle
a16edac8c7 Doxygen comment fixes
In particular:

> warning: unable to resolve reference to `std::istream' for \ref command
2013-08-18 11:46:53 -04:00
Ignacio R. Morelle
0ee75fb0a9 Doxygen comment fixes
In particular:

> warning: unable to resolve reference to `std::istream' for \ref command
2013-08-18 11:46:53 -04:00
David Mikos
911f007394 Changelog entry for 51a85d3d098b699a9ec0553ce6160701c4c8fcbb
Miscellaneous and bug fixes
   * Unit WML frames with image modifications now shown correctly for hits/death.
2013-08-18 22:27:51 +09:30
David Mikos
04d3bf3dd5 Merge branch 'master' of github.com:wesnoth/wesnoth-old 2013-08-18 21:08:04 +09:30
Alexander van Gessel
b955bb69af Merge pull request #69 from Gallaecio/gl
Updated the Galician translation
2013-08-18 04:29:46 -07:00
Adrián Chaves Fernández (Gallaecio)
7942401291 Updated the Galician translation 2013-08-18 12:26:53 +02:00
David Mikos
51a85d3d09 Fix image modifications on hit and death animation WML not showing. Original bug introduced in SVN r56329. 2013-08-18 17:50:52 +09:30
Ignacio R. Morelle
2e93f56778 Fix players_changelog formatting 2013-08-18 00:58:52 -04:00
Ignacio R. Morelle
c76944c805 Doxygen comment fixes 2013-08-18 00:22:23 -04:00
Ignacio R. Morelle
f04278de61 Doxygen comment fixes 2013-08-18 00:00:05 -04:00
Ignacio R. Morelle
7da2afa04c Doxygen comment fixes 2013-08-18 00:00:03 -04:00
Ignacio R. Morelle
444b7eafe0 Doxygen comment fixes 2013-08-17 23:53:21 -04:00
Ignacio R. Morelle
f226736039 Doxygen comment fixes 2013-08-17 23:40:43 -04:00
Ignacio R. Morelle
a8ff109558 Doxygen comment fixes 2013-08-17 23:40:37 -04:00
Ignacio R. Morelle
153224fc05 Doxygen comment fixes 2013-08-17 23:40:30 -04:00
Ignacio R. Morelle
9e13bf380c Doxygen comment fixes 2013-08-17 23:40:20 -04:00
Ignacio R. Morelle
d8afccde1c Doxygen comment fixes 2013-08-17 23:37:49 -04:00
Ignacio R. Morelle
2a0034a6bb Doxygen comment fixes 2013-08-17 23:37:40 -04:00
Ignacio R. Morelle
1678bce91e Doxygen comment fixes 2013-08-17 23:37:35 -04:00
Ignacio R. Morelle
42bdb96e1c Doxygen comment fixes 2013-08-17 23:31:39 -04:00
Ignacio R. Morelle
21191cd520 Doxygen: update footer links
* Add GitHub organization link
 * Remove CIA.vc link, CIA.vc is dead forever
 * Replace forum.wesnoth.org with forums.wesnoth.org.
2013-08-17 22:29:46 -04:00
Ignacio R. Morelle
f62c9d647d Remove a .gitignore file that is not a .gitignore file
This thing was introduced in 492efa7b4bf687cada5d125d2fc4ab1c9ab097db
(from SVN r35965) due to a misapplication of a SVN property manipulation
command. I don't know what it is, but since it's part of the
decommissioned stats.w.o codebase and with the wrong filename to begin
with, I doubt anyone will miss it much.
2013-08-17 20:05:07 -04:00
Ignacio R. Morelle
6e69dd15fb Restrict some .gitignore patterns to the root of the working tree
This is necessary so files with similar names which are actually
versioned and important aren't matched by these patterns, otherwise
only intended to match build output files.
2013-08-17 19:47:41 -04: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
Ignacio R. Morelle
cf8adf9014 Bump Doxyfile version number 2013-08-17 18:46:40 -04:00
JaMiT
054bee883c Eliminate a variable by inlining a function call. 2013-08-17 16:55:41 -05:00
JaMiT
e088435d6e Have pump() no longer pump events raised while it is running.
The main way I know of for getting into this situation is hitting
the recursion maximum within pump(), and if that happens you probably
have runaway WML. So it should be better to move on instead of
continuing to process events.
(Normally, events raised within an event handler are pumped before
that event handler exits, so would not be affected by this change.)

I think the old behavior is an artifact of the old implementation,
but I'm making this a separate commit in case removing this causes
problems (easier to diagnose, especially if I'm not the one diagnosing).
2013-08-17 16:55:41 -05:00
JaMiT
b4ce6a6b3a Refactor how game events are pumped.
game_events::pump() now records the events in the event queue at
the time it is called. This isolates those events from any that
might be fired within one of the events (e.g. with [fire_event]).
For an example of what was happening, see bug #21031.

Fixes bug #21031.
2013-08-17 16:55:41 -05:00
JaMiT
af3a323c62 Use NULL instead of 0. 2013-08-17 16:55:40 -05:00