Search found 1141 matches

by mattsc
January 20th, 2020, 2:42 pm
Forum: Scenario & Campaign Development
Topic: The Ravagers 1.3 - SP campaign for Wesnoth 1.14 [Feedback and development]
Replies: 349
Views: 42629

Re: The Ravagers 1.3 - SP campaign for Wesnoth 1.14 [Feedback and development]

What happens is that weather damages certain units (above or below their 50% HP and not in villages) on every turn refresh, and when this happens with the [harm_unit], something goes wrong. Sorry that I didn't mention this - you can manually debug card draws, so you can load the save, draw rain man...
by mattsc
January 17th, 2020, 3:35 pm
Forum: Scenario & Campaign Development
Topic: The Ravagers 1.3 - SP campaign for Wesnoth 1.14 [Feedback and development]
Replies: 349
Views: 42629

Re: The Ravagers 1.3 - SP campaign for Wesnoth 1.14 [Feedback and development]

If you decide to look into it, heres the topic where it was discussed, with a save file: https://forums.wesnoth.org/viewtopic.php?t=49966 But part of the problem was that it can't be reproduced reliably. Yeah ... I let it play through the AI turn >10 times and never got the error. The problem is th...
by mattsc
January 17th, 2020, 2:45 pm
Forum: Scenario & Campaign Development
Topic: The Ravagers 1.3 - SP campaign for Wesnoth 1.14 [Feedback and development]
Replies: 349
Views: 42629

Re: The Ravagers 1.3 - SP campaign for Wesnoth 1.14 [Feedback and development]

Error during Whess Screen Shot 2020-01-17 at 12.47.04 pm.png That's a sad known issue. It can happen when units are harmed by weather, but we couldn't figure out why it happens, I think the conclusion was that it's some unknown bug in Wesnoth itself, so it's on the fixlist for now. Luckily it doesn...
by mattsc
January 13th, 2020, 4:00 am
Forum: Scenario & Campaign Development
Topic: The Ravagers 1.3 - SP campaign for Wesnoth 1.14 [Feedback and development]
Replies: 349
Views: 42629

Re: The Ravagers 1.3 - SP campaign for Wesnoth 1.14 [Feedback and development]

WackoJacko: Thanks for posting the replay. It still took me several attempts to reproduce it (because there's some randomness involved; see below), but I eventually got the error message. WhiteWolf: So this is an interesting one ... What's happening is that your random placement of rabbit holes (dir...
by mattsc
January 7th, 2020, 8:14 pm
Forum: WML Workshop
Topic: modifying AI in mid-scenario
Replies: 6
Views: 363

Re: modifying AI in mid-scenario

Glad it helped. :-) And don't worry about having more questions. As for those: 1) That should not be a problem. 2) Yes. The AI is set to be more careful with its leader, but you can change that if you want. 3) I haven't checked it carefully for typos, but it looks like that should work. Only thing I...
by mattsc
January 7th, 2020, 4:13 pm
Forum: WML Workshop
Topic: modifying AI in mid-scenario
Replies: 6
Views: 363

Re: modifying AI in mid-scenario

Are you sure you are using the tag as in my post? That error happens when you try to change (or add) an AI component without giving it new content to change to (or add); the [goal] tag in this case. Maybe you also changed the [modify_ai]action=delete instructions to action=change ? That would produc...
by mattsc
January 7th, 2020, 12:40 am
Forum: WML Workshop
Topic: modifying AI in mid-scenario
Replies: 6
Views: 363

Re: modifying AI in mid-scenario

I assume that the behavior you observe is due to the fact that the goal you define is not the only goal the AI uses. There are also some automatically selected goals; and other considerations, such as distance to the goals, matter as well (see the first paragraphs here and here for more details). Mo...
by mattsc
January 2nd, 2020, 2:39 am
Forum: WML Workshop
Topic: Make AI not prioritize certain unit for attacks
Replies: 9
Views: 1399

Re: Make AI not prioritize certain unit for attacks

Just for the record, my initial guess that this was due to a divide-by-zero error was wrong. A while ago I opened an issue that describes what is going on. Turns out that this is not actually an AI issue, except for one side problem with the "High XP Attack" candidate action which I fixed in commit ...
by mattsc
December 22nd, 2019, 10:57 pm
Forum: Scenario & Campaign Development
Topic: The Heist
Replies: 6
Views: 424

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: 6
Views: 424

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.14, I think...
by mattsc
December 19th, 2019, 3:48 pm
Forum: WML Workshop
Topic: Questions about some Micro AIs
Replies: 16
Views: 1666

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: 126

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 the same sec...
by mattsc
December 14th, 2019, 3:14 pm
Forum: Technical Support
Topic: Possible bug?
Replies: 5
Views: 275

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: 1666

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 all and l...
by mattsc
December 11th, 2019, 2:52 pm
Forum: Developers’ Discussions
Topic: A grand design for singleplayer mainline lore
Replies: 54
Views: 4071

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...