Leif Ericson AI
- ARFFI04
- Guru
- Posts: 597
- Joined: Sun Jul 26, 2009 6:33 pm
- Location: Japan
Re: Leif Ericson AI
For the MC problem I see in your script
> (dropsite-min-distance gold > 5);<-5 is too big. set it to 2 and it shall fix.
(Same for stone.)
For the feudal building problem, wait.
need to read all your script.
> (dropsite-min-distance gold > 5);<-5 is too big. set it to 2 and it shall fix.
(Same for stone.)
For the feudal building problem, wait.
need to read all your script.
ARFFI: A scripter from japan : Main script ARFFI-De'gel
- Leif Ericson
- Waheguru
- Posts: 1426
- Joined: Wed Dec 09, 2009 8:15 pm
- Location: United States
Re: Leif Ericson AI
The building problem is when it's been a while in the Castle age, part of the way to the imperial age. Sorry for the vague wording.
- ARFFI04
- Guru
- Posts: 597
- Joined: Sun Jul 26, 2009 6:33 pm
- Location: Japan
Re: Leif Ericson AI
OK. thanks.
Now reading...
Now reading...
ARFFI: A scripter from japan : Main script ARFFI-De'gel
- ARFFI04
- Guru
- Posts: 597
- Joined: Sun Jul 26, 2009 6:33 pm
- Location: Japan
Re: Leif Ericson AI
I need to go home to test and be sure, but I assume this problem is related for this.
When you feudal-stay, if you are not Hun-civ, sn-maximum-town-size=20 is too less in my opinion.
I know you know this type of bug, so I think you had tested this, but I still think this shall be the reason.
Please change 20 to 30 or more and see if it works.
I will re-read again but it seems no ovious errors. (this is a good thing though. )
[Edit]
Re-read. no other things I come up now.]
Sorry.
When you feudal-stay, if you are not Hun-civ, sn-maximum-town-size=20 is too less in my opinion.
I know you know this type of bug, so I think you had tested this, but I still think this shall be the reason.
Please change 20 to 30 or more and see if it works.
I will re-read again but it seems no ovious errors. (this is a good thing though. )
Code: Select all
(defrule
(current-age == castle-age)
(goal g-castle-buildings-status incomplete)
=>
(set-strategic-number age-status 4)
(set-strategic-number sn-wood-gatherer-percentage 36)
(set-strategic-number sn-food-gatherer-percentage 43)
(set-strategic-number sn-gold-gatherer-percentage 16)
(set-strategic-number sn-stone-gatherer-percentage 5)
[i] (set-strategic-number sn-maximum-town-size 20)[/i]
(disable-self)
)
(defrule
(current-age == castle-age)
(not (goal g-feudal-buildings-status incomplete))
=>
(set-strategic-number age-status 4)
(set-strategic-number sn-wood-gatherer-percentage 21)
(set-strategic-number sn-food-gatherer-percentage 55)
(set-strategic-number sn-gold-gatherer-percentage 19)
(set-strategic-number sn-stone-gatherer-percentage 5)
[i] (set-strategic-number sn-maximum-town-size 20)[/i]
(disable-self)
)
Re-read. no other things I come up now.]
Sorry.
ARFFI: A scripter from japan : Main script ARFFI-De'gel
- MuRRay Jnr
- Waheguru
- Posts: 1990
- Joined: Mon Jul 27, 2009 3:03 am
- Location: Queensland, Australia
Re: Leif Ericson AI
i use 5 in my script and i dont have that problemARFFI04 wrote:For the MC problem I see in your script
> (dropsite-min-distance gold > 5);<-5 is too big. set it to 2 and it shall fix.
(Same for stone.)
For the feudal building problem, wait.
need to read all your script.
- Leif Ericson
- Waheguru
- Posts: 1426
- Joined: Wed Dec 09, 2009 8:15 pm
- Location: United States
Re: Leif Ericson AI
I'll test out using a smaller number for the dropsite-min-distance to see if that is the problem, though I'm guessing it is something else.
- MuRRay Jnr
- Waheguru
- Posts: 1990
- Joined: Mon Jul 27, 2009 3:03 am
- Location: Queensland, Australia
Re: Leif Ericson AI
hey lief
this is probably unrelated but ive noticed that ai doesnt like building mining camps within about 6 or so tiles of other mining camps
the only way to fix that is increase the sn-camp-max-distance
but i dont think thats your problem either
edit
this is probably unrelated but ive noticed that ai doesnt like building mining camps within about 6 or so tiles of other mining camps
the only way to fix that is increase the sn-camp-max-distance
but i dont think thats your problem either
edit
maybe?tallshortkid wrote:minimum-dropsite-buffer:
Although that it sometimes seems that it has no effect - it has.This could be overridden by some Circumstances, but in General this is a useful Number which should not be underestimated.
Avoid placing Camps near enemy Towns by choosing Value higher or Equal than 58. ! Be aware ! This can sometimes result in Situations that the CP places no more Camps at all
(specially if there are many ENEMIES over the MAP). Avoid this by choosing another Value like 55 - although this Value places the Camps significantly closer to the Enemies(if it has an Effect)
after a given Amount of Time(2700+).
Notification: Values lower than 58 seems to have only slight or no Effect, higher Numbers are better but may block camp-Placement at all -when all possible Places are near Enemies.
- Leif Ericson
- Waheguru
- Posts: 1426
- Joined: Wed Dec 09, 2009 8:15 pm
- Location: United States
Re: Leif Ericson AI
Leif Ericson should set the sn-camp-max-distance to -1 once he hits the castle-age. I'll try changing it to 255 instead.
- MuRRay Jnr
- Waheguru
- Posts: 1990
- Joined: Mon Jul 27, 2009 3:03 am
- Location: Queensland, Australia
Re: Leif Ericson AI
i would avoid that in castle age
because the ai generally avoids that second stone mine in its town for one in the enemies town
id save that value for imperial
because the ai generally avoids that second stone mine in its town for one in the enemies town
id save that value for imperial
- Leif Ericson
- Waheguru
- Posts: 1426
- Joined: Wed Dec 09, 2009 8:15 pm
- Location: United States
Re: Leif Ericson AI
Oh yeah. Well, I think 80 should work.