Search found 1057 matches

by mattsc
August 17th, 2018, 4:10 am
Forum: Scenario & Campaign Development
Topic: The Black Cross of Aleron (formerly Besieged Druids)
Replies: 246
Views: 34424

Re: The Black Cross of Aleron (formerly Besieged Druids)

Celtic_Minstrel wrote: ↑ Yesterday, 20:13 Attacking units close to levelling is intentional - that was a behaviour explicitly added in 1.14. If you think it could be improved you should probably talk to mattsc about it. I actually will, since it sometimes makes the game easier in a way that it shou...
by mattsc
August 16th, 2018, 1:18 pm
Forum: Scenario & Campaign Development
Topic: The Black Cross of Aleron (formerly Besieged Druids)
Replies: 246
Views: 34424

Re: The Black Cross of Aleron (formerly Besieged Druids)

Expectation: AI would asess if the enemy unit that is about to levelup 'got caught in the open'(eg. is on low to normal defense, prioritization starting from lowest), then choose the unit that would hit hardest against it factoring in attributes of both units and then send that in an attempt kill i...
by mattsc
August 10th, 2018, 2:19 pm
Forum: Technical Support
Topic: fast_ai issue (not sure where to post this)
Replies: 10
Views: 266

Re: fast_ai issue (not sure where to post this)

So I need to trawl through my weapon specials and add ids ad I'll be sorted. I just fixed the Fast Micro AI for chance-to-hit weapon specials without ids. So you could simply wait until 1.14.5 is out and it will work without you having to change your specials. Or you could change that file in your ...
by mattsc
August 9th, 2018, 11:46 pm
Forum: Technical Support
Topic: fast_ai issue (not sure where to post this)
Replies: 10
Views: 266

Re: fast_ai issue (not sure where to post this)

Oh, duh! I should have noticed that. I'll fix that in the AI. But in the meantime, that gives you an easy workaround. Thanks, gfgtdf.
by mattsc
August 9th, 2018, 11:32 pm
Forum: Technical Support
Topic: fast_ai issue (not sure where to post this)
Replies: 10
Views: 266

Re: fast_ai issue (not sure where to post this)

Hi again — yeah, porting campaigns can be frustrating, I sympathize. I tried what you suggested (in fact, I tried several variations of it). It was a good idea, but I was unable to reproduce your problem that way. So unless you have another suggestion, I guess I'll need that savegame if we want to i...
by mattsc
August 9th, 2018, 1:49 pm
Forum: Technical Support
Topic: fast_ai issue (not sure where to post this)
Replies: 10
Views: 266

Re: fast_ai issue (not sure where to post this)

Hi Spannerbag, Thanks for the detailed report. This is definitely something that should not happen and everything points to a bug in the Fast MAI code. Based on where in the code it occurs, it looks like you might have a weapon special that the AI does not deal with correctly, but that's just a gues...
by mattsc
August 6th, 2018, 9:00 pm
Forum: Lua Labs
Topic: ResExsention's questions on the art of "Lua-ing"
Replies: 10
Views: 288

Re: ResExsention's questions on the art of "Lua-ing"

Well, mattsc, [...] Well ... The code looks right to me. Is this code correct? :doh: Whenever somebody writes something like that, I always think to myself: Why don't you try if it works? And I mean this completely non-cynical or anything. What you are trying to do here will require a lot of trial-...
by mattsc
August 5th, 2018, 2:53 pm
Forum: Lua Labs
Topic: ResExsention's questions on the art of "Lua-ing"
Replies: 10
Views: 288

Re: ResExsention's questions on the art of "Lua-ing"

Hi ResExsention, It's always good to have somebody else try to get their feet wet in the Wesnoth AI waters. :) However, what you are asking for there is a huge amount of rather complex work (we're probably talking hundreds of lines of code just for a first basic version). In particular something lik...
by mattsc
July 15th, 2018, 11:55 pm
Forum: WML Workshop
Topic: Siege-Simulating Scenario (Probability, "Messenger" AI)
Replies: 4
Views: 283

Re: Siege-Simulating Scenario (Probability, "Messenger" AI)

I probably should not reply to this without having read (and thought about) the entire thread, but it's either that or not reply at all for ... several days, probably. So, I apologize if I missed something and am just taking the following in isolation: - so I think I'll have that taken care of. Anyo...
by mattsc
June 8th, 2018, 3:44 pm
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 5188

Re: [micro_ai] slow

PS. I know about notifications, but that's what moderators want people like me to do... edit the posts instead of posting new.. so... ;( Yeah, I know. This was meant as an explanation why I had not replied earlier, rather than a "complaint." There is some leeway with this though. You shouldn't make...
by mattsc
June 7th, 2018, 2:22 pm
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 5188

Re: [micro_ai] slow

I just saw that you added that error report (I get notifications when a new post is made, but not when one is edited). I know what that message means, but there's no way of figuring out why it is happening without a test case. Do you still have the save from when you got this? In other news: I would...
by mattsc
May 29th, 2018, 2:27 am
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 5188

Re: [micro_ai] slow

Celtic_Minstrel and Ravana already said most of it, so just a few additional things. id=$this_unit.id is always true, so same as no filter. I might be understanding you I'm not sure... this_unit refers to the unit that is currently being looked at by the filter. So that line checks whether the id of...
by mattsc
May 27th, 2018, 8:10 pm
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 5188

Re: [micro_ai] slow

I'm not sure I like the idea of adding a separate advanced filter. Why not just add the requirement of moves>0 to the filter? Either add moves as an allowed SUF key, or use formula="moves > 0" (which should even work in 1.14). Since we're talking 1.15 anyway, both of these would seem to be better o...
by mattsc
May 27th, 2018, 2:37 pm
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 5188

Re: [micro_ai] slow

I just noticed that I have 2 MAI with 210007 (one is for filtering ranged units, another one for filtering settlers), would this matter for speed at all, what do you think? No, makes no difference for speed at all. It only means that it is undetermined which of them gets executed first, so if you w...
by mattsc
May 27th, 2018, 1:51 pm
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 5188

Re: [micro_ai] slow

what exactly is SLF and SUF (F - filter?) SLF = StandardLocationFilter (what's in [filter_location] and SUF = StandardUnitFilter is the content of [filter] . So what that means is that the entire 650 ms delay at the end is for evaluating the filters by the engine, it has nothing to do with the AI c...