Search found 1178 matches

by mattsc
December 22nd, 2019, 10:57 pm
Forum: Scenario & Campaign Development
Topic: The Heist
Replies: 7
Views: 1308

Re: The Heist

Adamant14 sent me a save (thank you!) from which I was able to reproduce the error. The problem is pretty much what I expected, the ExpAI trying to move a unit to a village that it cannot actually reach because the path is blocked by enemies. That can be fixed (well, worked-around, really) by changi...
by mattsc
December 22nd, 2019, 3:37 pm
Forum: Scenario & Campaign Development
Topic: The Heist
Replies: 7
Views: 1308

Re: The Heist

What's the "new AI"? Based on the error message, I assume it's the Experimental AI? Just asking because that's been around for many years, so just making sure I am not missing something. :P Also, which version of Wesnoth is this? I mean, I can see from the error message that it must be 1.1...
by mattsc
December 19th, 2019, 3:48 pm
Forum: WML Workshop
Topic: Questions about some Micro AIs
Replies: 16
Views: 3478

Re: Questions about some Micro AIs

Yeah, thanks, it's always good to get these kinds of reports that point to potential (and real) problems in the MAIs. For the record, I have fixed the bug now (commits e82469ad in 1.14 and 09cffab7 in 1.15). I also added [filter] as an optional parameter to the Bottleneck MAI here . That one will no...
by mattsc
December 18th, 2019, 5:34 pm
Forum: WML Workshop
Topic: Changing AI parameters in events
Replies: 2
Views: 646

Re: Changing AI parameters in events

Hi — the information you need is given on this wiki page , section "Modifying Standard Aspects". There is even an example for the [avoid] aspect on there. It's for adding the aspect, but hopefully it will be clear enough how to remove it (which is shown for a different aspect earlier in th...
by mattsc
December 14th, 2019, 3:14 pm
Forum: Technical Support
Topic: Possible bug?
Replies: 5
Views: 967

Re: Possible bug?

Hi Spannerbag, I don't know what's going on with the Flynn arrival problem ... As for the candidate action error, the problem is that that is not how you add a candidate action . [candidate_action] tags (such as that macro) do not go directly into [ai] , but inside [ai][stage] as shown here . So you...
by mattsc
December 13th, 2019, 3:17 pm
Forum: WML Workshop
Topic: Questions about some Micro AIs
Replies: 16
Views: 3478

Re: Questions about some Micro AIs

When I looked at your replay, I noticed something else and I finally had time to confirm it. There's a problem with the Bottleneck MAI when units are so far "in front of" the line (i.e. in enemy territory) that they cannot get behind it in one move. The MAI just doesn't move those units at...
by mattsc
December 11th, 2019, 2:52 pm
Forum: Developers’ Discussions
Topic: A grand design for singleplayer mainline lore
Replies: 54
Views: 10581

Re: A grand design for singleplayer mainline lore

Since, with the reworks, a rebalancing is required anyway, I have no problem if @mattsc would like to make the ExpAI default (we talked about this on discord, I think he said he was merging everything besides the recruitmentAI, which would also potentially greatly affect the balance of UMC campaign...
by mattsc
December 11th, 2019, 2:36 pm
Forum: Technical Support
Topic: Possible bug?
Replies: 5
Views: 967

Re: Possible bug?

Those AI errors/warnings are produced when the engine encounters an aspect with a name that it does not know. However, [candidate_action] is not an aspect and is treated differently. Thus, this means that there is an AI configuration somewhere where the code mistakes the [candidate_action] tag for a...
by mattsc
December 8th, 2019, 7:36 pm
Forum: WML Workshop
Topic: Questions about some Micro AIs
Replies: 16
Views: 3478

Re: Questions about some Micro AIs

You missed that [filter] is not a valid input to the bottleneck MAI. It always uses all units of the side. So options would be to give the goto MAI a higher score (I saw the comment in the code why you did not do this, but it might still work well enough), or to split Side 4 into two sides. Or, you ...
by mattsc
December 6th, 2019, 10:08 pm
Forum: Scenario & Campaign Development
Topic: VRA - Vaelia Random Adventures [SP Campaign]
Replies: 28
Views: 3810

Re: VRA - Vaelia Random Adventures [SP Campaign]

So (as always, it seems), it's not quite as simple as I thought to get this code working for you. First, there are quite a few differences between 1.14 and 1.15/1.16. That's okay though, I got those worked out. The bigger problem is that the village hunt CA still has some unresolved issues (I haven'...
by mattsc
December 5th, 2019, 5:15 am
Forum: Scenario & Campaign Development
Topic: VRA - Vaelia Random Adventures [SP Campaign]
Replies: 28
Views: 3810

Re: VRA - Vaelia Random Adventures [SP Campaign]

If you don't mind taking a look at that link you'll see that I use recruitment_diversity, avoid and limit for recruitment_instructions Will the experimental_ai conflict with any of those? Also, I'm on wesnoth 1.14.5. (debian pkg) Will that be an issue? If not, then sure I wouldn't mind having it en...
by mattsc
December 5th, 2019, 12:58 am
Forum: Scenario & Campaign Development
Topic: VRA - Vaelia Random Adventures [SP Campaign]
Replies: 28
Views: 3810

Re: VRA - Vaelia Random Adventures [SP Campaign]

Oh, about the AI ignoring villages, well that's vanilla wesnoth AI for you. I didn't mess with that bit. You could try using the Experimental_AI . It has two additional actions (called 'candidate actions', CAs, in the Wesnoth AI framework) that specifically provide more aggressive village grabbing ...
by mattsc
November 15th, 2019, 3:19 pm
Forum: WML Workshop
Topic: Questions about some Micro AIs
Replies: 16
Views: 3478

Re: Questions about some Micro AIs

Sounds good. A couple more quick comments: About the static guardians, I will think about the idea to free them at some point. What is more, the leader could use in my opinion a leader_goto AI in order to force him to stay on his keep... If you really just want him to stay on the keep, you don't nee...
by mattsc
November 12th, 2019, 4:08 pm
Forum: WML Workshop
Topic: Questions about some Micro AIs
Replies: 16
Views: 3478

Re: Questions about some Micro AIs

* The 99 move cost on water hack. Could it be possible to achieve the same by a nicer way ? First, in my opinion that's not all that dirty a hack but a perfectly good method for achieving this. However, if you do not want to do it that way, this can also be achieved with a very minor change to the ...
by mattsc
November 11th, 2019, 5:06 pm
Forum: Lua Labs
Topic: Lua error: cannot find ai.move_full (but finds & calls other func in 'ai')
Replies: 8
Views: 3527

Re: Lua error: cannot find ai.move_full (but finds & calls other func in 'ai')

Just a couple additional comments on Celtic_Minstrel's last two post. First: yes, that's why the eval/exec separation is done that way. Once you are inside the execution function, it has to execute an action otherwise it gets blacklisted. That is primarily set up in this way to prevent an AI getting...