Leif Ericson AI

Upload your latest creations here.
Please note that by posting comments to posts in this forum you forfeit your personal copyright on whatever you post. AI Scripters reserves the right to re-use objective comments in script reviews without requiring the posting author's permission. Credit, where appropriate will be given in such cases.
User avatar
ARFFI04
Guru
Posts: 597
Joined: Sun Jul 26, 2009 6:33 pm
Location: Japan

Re: Leif Ericson AI

Post by ARFFI04 »

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.
ARFFI: A scripter from japan : Main script ARFFI-De'gel

User avatar
Leif Ericson
Waheguru
Posts: 1426
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: Leif Ericson AI

Post by Leif Ericson »

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

User avatar
ARFFI04
Guru
Posts: 597
Joined: Sun Jul 26, 2009 6:33 pm
Location: Japan

Re: Leif Ericson AI

Post by ARFFI04 »

OK. thanks.

Now reading...
ARFFI: A scripter from japan : Main script ARFFI-De'gel

User avatar
ARFFI04
Guru
Posts: 597
Joined: Sun Jul 26, 2009 6:33 pm
Location: Japan

Re: Leif Ericson AI

Post by ARFFI04 »

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

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)
)
[Edit]
Re-read. no other things I come up now.]
Sorry.
ARFFI: A scripter from japan : Main script ARFFI-De'gel

User avatar
MuRRay Jnr
Waheguru
Posts: 1990
Joined: Mon Jul 27, 2009 3:03 am
Location: Queensland, Australia

Re: Leif Ericson AI

Post by MuRRay Jnr »

ARFFI04 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.
i use 5 in my script and i dont have that problem
cheers,
murrayj

my current attempt at scripting, avarice ai

User avatar
Leif Ericson
Waheguru
Posts: 1426
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: Leif Ericson AI

Post by Leif Ericson »

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.

User avatar
MuRRay Jnr
Waheguru
Posts: 1990
Joined: Mon Jul 27, 2009 3:03 am
Location: Queensland, Australia

Re: Leif Ericson AI

Post by MuRRay Jnr »

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
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.
maybe?
cheers,
murrayj

my current attempt at scripting, avarice ai

User avatar
Leif Ericson
Waheguru
Posts: 1426
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: Leif Ericson AI

Post by Leif Ericson »

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.

User avatar
MuRRay Jnr
Waheguru
Posts: 1990
Joined: Mon Jul 27, 2009 3:03 am
Location: Queensland, Australia

Re: Leif Ericson AI

Post by MuRRay Jnr »

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 :head
id save that value for imperial
cheers,
murrayj

my current attempt at scripting, avarice ai

User avatar
Leif Ericson
Waheguru
Posts: 1426
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: Leif Ericson AI

Post by Leif Ericson »

Oh yeah. Well, I think 80 should work.

Post Reply