Search found 1048 matches

by mattsc
June 8th, 2018, 3:44 pm
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 2183

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

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

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

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

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

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...
by mattsc
May 27th, 2018, 3:17 am
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 2183

Re: [micro_ai] slow

I've now had a first closer look at this. First: wow, you have a lot of stuff in that scenario! I think we'll have to take this in stages, there's just too much to deal with all at once. So here's my first round of comments: The MAI causing the delay is the one with score 210007. I've copied the rel...
by mattsc
May 27th, 2018, 1:37 am
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 2183

Re: [micro_ai] slow

I'll tell you how to do the custom AI thing, but I want to do those tests that I've been talking about first. (And I assume that is clear, but with custom AI I mean a slightly modified version of the Goto MAI, that is faster for your setup but would not necessarily work as a general MAI.) As for my ...
by mattsc
May 26th, 2018, 6:45 pm
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 2183

Re: [micro_ai] slow

Rushing around, so I'm just going to make one comment for now: Yeah it's not done efficiently since there are more or less no units with movepoints left at all.. Well, it's not done efficiently for this use case . You need to keep in mind that what you're having here is a rather complex filter, and ...
by mattsc
May 25th, 2018, 11:47 pm
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 2183

Re: [micro_ai] slow

I still haven't had any time to actually work on this, but I do have a few minutes right now to make some general comments. Taking things slightly out of order: Thank you very much for your interest, just to let you know the [micro_ai] really made a huge difference to my add-on, it's a great tool an...
by mattsc
May 23rd, 2018, 2:39 am
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 2183

Re: [micro_ai] slow

Hey enclave — thanks for all the explanations. I understand much better now what's going on and why this is a problem for your add-on. I don't really have time to look into it any more today, and I won't have any time at all the next two or three days, but I had another really quick look at it and f...
by mattsc
May 22nd, 2018, 7:06 pm
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 2183

Re: [micro_ai] slow

Yeah I'm sorry, I didn't mean to be nasty or anything Good, neither did I. :) And I am sorry if I came across that way. I wouldn't quite give up yet though. So here's the kind of save that you would ideally provide: When you first load it, the human player is in control. This is important because s...
by mattsc
May 22nd, 2018, 5:49 pm
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 2183

Re: [micro_ai] slow

Umm ... I am trying to help you. I used the saves you provided and took quite some time to sift through a lot of things that look like clutter to me, with no result. I cannot reproduce "massive delays". That is on a 3-year old Macbook Air which is not exactly the slowest computer in existence, but n...
by mattsc
May 22nd, 2018, 4:09 pm
Forum: WML Workshop
Topic: [micro_ai] slow
Replies: 55
Views: 2183

Re: [micro_ai] slow

I do not get a "massive delay" at the end of the turn. The values displayed are usually a little less than second, caused by the MAI evaluation taking 200 - 300 ms each a few times. That does not sound so unreasonable to me. The cases when the value you display on the screen is a few seconds happen ...
by mattsc
May 21st, 2018, 8:59 pm
Forum: Scenario & Campaign Development
Topic: Grnk the Mighty: Parts 1 & 2 now on 1.12 and 1.14 server
Replies: 271
Views: 35963

Re: Grnk the Mighty: Parts 1 & 2 now on 1.12 and 1.14 server

Thanks for taking the time to post here, it's great to hear that you enjoyed the campaign! :) I thought I had checked that the ending message works correctly in both Wesnoth 1.12 and 1.14, but you're right, it does not in 1.12. I'll fix that for the next update. Thanks for reporting. Vanak died in b...