Search found 1115 matches

by mattsc
Yesterday, 8:41 pm
Forum: WML Workshop
Topic: Questions about a Micro AI: Wolves
Replies: 4
Views: 115

Re: Questions about a Micro AI: Wolves

I've had a first look at this and I am not sure that the Wolves MAI is the right AI to use here. It is set up to spread the "wolves" out in a line roughly perpendicular to the direction in which the target is located, and as a result, they don't make much progress toward the target. This seems parti...
by mattsc
October 11th, 2019, 4:39 pm
Forum: WML Workshop
Topic: Questions about a Micro AI: Wolves
Replies: 4
Views: 115

Re: Questions about a Micro AI: Wolves

I think for the short term I should try to do that. The condition could be "all the members of the pack are in range of an unit of the player and none of them is in range of a trader". That would ensure that the pack has a chance to stay grouped. Actually, I am unsure how to do that in WML (test we...
by mattsc
October 7th, 2019, 8:18 pm
Forum: WML Workshop
Topic: Questions about a Micro AI: Wolves
Replies: 4
Views: 115

Re: Questions about a Micro AI: Wolves

Hey nenau, Thanks for the feedback. It's good to see people using the Micro AIs and making suggestions for improvements. I looked at your replay and I see what you mean. Do you know if there is a way to reduce aggressivity towards a player in particular? Unfortunately, that's not possible. That's a ...
by mattsc
October 6th, 2019, 2:12 am
Forum: WML Workshop
Topic: Change control over side to AI and back mid turn
Replies: 9
Views: 217

Re: Change control over side to AI and back mid turn

I know you said that you'll probably not do it this way, but just for the record (in case somebody looks up this thread in the future) I'll add one thing: Celtic_Minstrel's method should work, but I'd probably do a minor variation on it: Instead of the candidate action in Step 3. returning a very lo...
by mattsc
September 24th, 2019, 6:59 pm
Forum: WML Workshop
Topic: AI behaviour query
Replies: 6
Views: 809

Re: AI behaviour query

Hi Spannerbag, just a couple more quick things: I kinda thought it was something to do with path finding because it didn't happen straight away but rather in the early teens (turn 13, 14 etc.). Once it happened, all subsequent spawned units at that location were also affected. The scenario begins wi...
by mattsc
September 23rd, 2019, 3:59 pm
Forum: WML Workshop
Topic: AI behaviour query
Replies: 6
Views: 809

Re: AI behaviour query

Hi, This does not sound like "standard" AI behavior, but like something else is going on. Unfortunately, without you posting a test case it is essentially impossible to tell what that might be, but I'll make two mostly random guesses anyway: 1. Do you maybe have first_time_only=no in the event that ...
by mattsc
August 28th, 2019, 7:45 pm
Forum: WML Workshop
Topic: [micro_ai] error: bad argument #1 to 'insert' (table expected, got nil)
Replies: 8
Views: 383

Re: [micro_ai] error: bad argument #1 to 'insert' (table expected, got nil)

Also, since the entire Micro AI is written in Lua, you could add a local, fixed version of the MAI to your campaign and use that. Then it becomes independent of the version a player uses. Might not be worth the effort though.
by mattsc
August 28th, 2019, 7:27 pm
Forum: WML Workshop
Topic: [avoid] puzzlement
Replies: 10
Views: 419

Re: [avoid] puzzlement

Hmm, I have used [avoid] tags multiple times and never noticed any significant or unusual delays. Would it be possible for you to send me a test case so that I can look into what's happening? (Feel free to do so by PM, so that it won't be a spoiler.) Sometimes there are relatively simple optimizatio...
by mattsc
August 27th, 2019, 1:53 pm
Forum: WML Workshop
Topic: [micro_ai] error: bad argument #1 to 'insert' (table expected, got nil)
Replies: 8
Views: 383

Re: [micro_ai] error: bad argument #1 to 'insert' (table expected, got nil)

Yes, that's it, and it is already fixed, but only from Wesnoth 1.14.6 on, while it looks like you're using 1.14.5.
by mattsc
August 27th, 2019, 1:41 pm
Forum: WML Workshop
Topic: [avoid] puzzlement
Replies: 10
Views: 419

Re: [avoid] puzzlement

I believe that what Celtic_Minstrel says is true, just that it is the last, not the first, facet which is active. As in, whatever facet is added last overwrites all previous ones. The exception to this, and the reason why multiple facets are possible, is when facets only apply at a certain times of ...
by mattsc
August 20th, 2019, 2:00 pm
Forum: WML Workshop
Topic: Xalzar's WML Headaches
Replies: 78
Views: 5550

Re: Xalzar's WML Headaches

Xalzar: It depends on whether you want to change a "simple" AI aspect (one that has a syntax using a key, such as recruitment_pattern=... ) or a "composite" aspect (taking a tag, such as recruitment_instructions ). For the former, you can use [modify_side] , for the latter you need [modify_ai] . An ...
by mattsc
August 20th, 2019, 1:37 pm
Forum: WML Workshop
Topic: Default AI not attacking leaders if they're too strong.
Replies: 2
Views: 179

Re: Default AI not attacking leaders if they're too strong.

Nyanyanyan: Another option would be to use the Simple Attack Micro AI set to attack only enemy leaders. The behavior would be somewhat different from what you have right now. For example, it would only attack enemy leaders and it would always attack those (both of which is mostly but not 100% the ca...
by mattsc
July 21st, 2019, 2:31 pm
Forum: Multiplayer Development
Topic: Help with testing Fred - Freelands MP Custom AI v0.14.13
Replies: 194
Views: 32076

Re: Help with testing Fred - Freelands MP Custom AI v0.14.13

So ... well ... work on Fred is not entirely stalled, but it is proceeding very much at a snail's pace. I would not usually release a version at this stage, but it's been a long time since the last release and I will be away for the next month with very little or no time for Wesnoth. So here it is a...
by mattsc
July 15th, 2019, 1:27 pm
Forum: Multiplayer Development
Topic: Help with testing Fred - Freelands MP Custom AI v0.14.13
Replies: 194
Views: 32076

Re: Help with testing Fred - Freelands MP Custom AI v0.14.11

Luc7y wrote:
July 15th, 2019, 5:44 am
I test with the new download from 1.12 Version, is it also ok?
And that is also why Fred does not work (although it is not the error message I would have expected, but I don't remember all the details). Fred (AI-demos in general) is not supported and won't work on 1.12 any more.
by mattsc
June 29th, 2019, 2:50 am
Forum: WML Workshop
Topic: Xalzar's WML Headaches
Replies: 78
Views: 5550

Re: Xalzar's WML Headaches

Or, if you want a built-in WML solution, you can use [filter_radius] . Something like this should do what I think you want: [event] name=moveto first_time_only=no [store_locations] variable=n_units [filter] id=Vanak [/filter] radius=99 [filter_radius] [filter] side=1 [/filter] [/filter_radius] [/sto...