Search found 1104 matches

by silene
February 6th, 2011, 4:26 pm
Forum: WML Workshop
Topic: Warning the user about missing dependencies
Replies: 9
Views: 898

Re: Warning the user about missing dependencies

Does it mean that the result of the #ifhave evaluation on the host is transferred to the other clients, idependently from whether these actually have or not have the particular file, so that the use case from above (using UMC music only if it's there) would result in stderr message about missing mu...
by silene
February 6th, 2011, 6:48 am
Forum: WML Workshop
Topic: Warning the user about missing dependencies
Replies: 9
Views: 898

Re: Warning the user about missing dependencies

Anonymissimus wrote:Btw, in TEG and TSoG the #ifhave directive is used to use the UMC music addon, but only if it is present (so it's not required!).
Also note that, for a multiplayer game, the #ifhave directive works only for the host, not for the other clients.
by silene
January 27th, 2011, 1:47 pm
Forum: WML Workshop
Topic: insert_tag doesn't work inside filter_location ?
Replies: 8
Views: 657

Re: [insert_tag] doesn't work inside [filter_location] ?

The [and] tag inserted by [insert_tag] is apparently ignored here: How do you know it is ignored? What is the content of the "and_tag" container? That's because [insert_tag] is an action tag . No it isn't. It can be used in any place where variable substitution (e.g. $something) would work. In fact...
by silene
January 25th, 2011, 2:13 pm
Forum: WML Workshop
Topic: Custom ranges in 1.9
Replies: 8
Views: 903

Re: Custom ranges in 1.9

This could present a problem for a multiplayer scenario that uses the default era and has an object to add an attack with a non-standard range. Just to make things clear, the UNTLB thing dates from around 2006, so it's nothing new. But perhaps it has been broken when the [language] block was improv...
by silene
January 25th, 2011, 1:36 pm
Forum: WML Workshop
Topic: Custom ranges in 1.9
Replies: 8
Views: 903

Re: Custom ranges in 1.9

Velensk wrote:have I gotten something wrong about it?
I'm sure it is "range_secret=" instead of just "secret=". What I'm not sure is whether you have to use "[language]" or "[+language]". I suggest you try both. (If both works, I suggest using "[language]".)
by silene
January 25th, 2011, 1:17 pm
Forum: WML Workshop
Topic: Custom ranges in 1.9
Replies: 8
Views: 903

Re: Custom ranges in 1.9

I'd like to request that ranges become translatable before 1.10. I didn't get to try it nor do I know if it is the correct way of enabling it, but theoretically it's already translatable in 1.9. You might try adding a language block to your campaign: [language] #or perhaps [+language]? range_whatev...
by silene
January 25th, 2011, 12:52 pm
Forum: WML Workshop
Topic: Custom ranges in 1.9
Replies: 8
Views: 903

Re: Custom ranges in 1.9

I recently noticed that in wesnoth 1.9.4 when you are using a unit with a range other than 'melee' or 'ranged' it will insert UNTLB range_ in front of the name of the custom range. This looks rather ugly/awkward. I figure that it is intended to make it easier to notice when you do something like ty...
by silene
January 22nd, 2011, 8:02 pm
Forum: Lua Labs
Topic: monochromatic's lua thread
Replies: 42
Views: 7169

Re: elvish_sovereign and Lua

cool! But how would you factor in the padding_radius? That's why I hesitated in using table.remove. Right, you can't. So you indeed have to use get_locations and you are back to how to concat WML tables. Here is a way to do it in your case: possible_locations = wesnoth.get_locations { { "and", filt...
by silene
January 22nd, 2011, 5:59 pm
Forum: Lua Labs
Topic: monochromatic's lua thread
Replies: 42
Views: 7169

Re: elvish_sovereign and Lua

It's still not working :hmm: Here's the revised code: local possible_locations = wesnoth.get_locations( filter_location , { "not" , { rand_position[1] , rand_position[2] , radius = padding_radius } }) This line at least contains several errors. First it starts with "local", which means that it defi...
by silene
January 19th, 2011, 8:24 am
Forum: Lua Labs
Topic: Elvish_Hunter's Lua thread
Replies: 170
Views: 23872

Re: Elvish_Hunter's Lua thread

Elvish_Hunter wrote:Only thing that I noticed is that sometime, after running wesnoth.transform_unit, the unit sprite doesn't change (even with redraw) until I select it.
Yes, I have noticed this glitch too. There must be some animation cache somewhere that "redraw" doesn't know about. It's on my TODO list to find it.
by silene
January 19th, 2011, 6:51 am
Forum: WML Workshop
Topic: Variable help
Replies: 19
Views: 1442

Re: Variable help

A bit more testing shows that the order of storing seems to be the one in which the leader units have been CREATED. (I did "overwrite" one of them in the above thus my confusion.) This makes sense and explains what you see Pent, assuming that the four leaders are the ones created in [side]s 1 to 4....
by silene
January 18th, 2011, 6:09 am
Forum: WML Workshop
Topic: Creating new unit statuses and getting them to show
Replies: 19
Views: 8503

Re: Creating new unit statuses and getting them to show

bigkahuna wrote:Is there something I missed, is it a hidden update, or was it forgotten?
It is in 1.9.4 and mentioned here: http://forums.wesnoth.org/viewtopic.php?f=58&t=31022.
by silene
January 17th, 2011, 11:15 pm
Forum: Lua Labs
Topic: Elvish_Hunter's Lua thread
Replies: 170
Views: 23872

Re: Elvish_Hunter's Lua thread

Finally, it is just me, or when a unit advances, in 1.9.4+svn the remaining XP aren't carried anymore? Example: let's say that a unit has 49 XP out of 50, and kills a level 1. Before, it advanced, and retained 7 XP; now, it advances and starts with 0 XP (if it's interesting, I noticed it while play...
by silene
January 14th, 2011, 9:55 pm
Forum: Lua Labs
Topic: monochromatic's lua thread
Replies: 42
Views: 7169

Re: elvish_sovereign and Lua

@silene Cool! So it should look a little like this: Yes. But note that the string you are trying to translate does not exist in the "wesnoth" textdomain, so you have to modify the code a bit. Elvish_hunter has taken care of that issue in his snippet; he also avoids printing the label if the unit is...
by silene
January 14th, 2011, 6:25 pm
Forum: Lua Labs
Topic: monochromatic's lua thread
Replies: 42
Views: 7169

Re: elvish_sovereign and Lua

By the way, I suggest using "ipairs" instead of "pairs" when writing LuaWML; it makes clear that the same iteration order is chosen for all the hosts and replays. Uh, what ? So pairs is a candidate for causing OOS errors ? Once you know what "pairs" actually does, it becomes clearer. Tables can be ...