Page 16 of 20

Re: KaM Remake nightly build

PostPosted: 06 Jun 2014, 17:32
by Michalpl
Lewin could you upload it too on the google project page? thx

Re: KaM Remake nightly build

PostPosted: 06 Jun 2014, 17:36
by Lewin
Lewin could you upload it too on the google project page? thx
Unfortunately Google Code no longer allows hosting downloads.

Re: KaM Remake nightly build

PostPosted: 06 Jun 2014, 20:06
by Michalpl
New editor tab for AI its needed or not?

Re: KaM Remake nightly build

PostPosted: 06 Jun 2014, 21:35
by The Dark Lord
- If the AI is forced to build according to the slow/normal/old-fashioned/original building order, it stops building after finishing the inn.

Re: KaM Remake nightly build

PostPosted: 07 Jun 2014, 02:43
by Lewin
- If the AI is forced to build according to the slow/normal/old-fashioned/original building order, it stops building after finishing the inn.
It seems to work fine for me (tested on Golden Cliffs). Which map did you test it on? And did you apply the default AI builder settings?

Re: KaM Remake nightly build

PostPosted: 07 Jun 2014, 09:54
by Michalpl
Yea AI works fine i just maked a 1vs1vs1vs1 AI battle
- If the AI is forced to build according to the slow/normal/old-fashioned/original building order, it stops building after finishing the inn.
Map please, so i can see whats is the problem with AI Building
I have noticed you have wrote about new mission could you upload it if the ai problems exists on this map?


Instead of double posting 5 minutes after your previous post, just edit your last post. You've been cautioned about this several times before ~ Lewin

Re: KaM Remake nightly build

PostPosted: 07 Jun 2014, 10:56
by Skypper
I have the same problem
they build stonemason, woodcutter, sawmill, inn, school.
And then they stop for around one hour.
After that one hour they continue building.
Image
this was border rivers 8p


EDIT: On the map across the desert it works good.
They produce more than some randoms

Re: KaM Remake nightly build

PostPosted: 07 Jun 2014, 11:02
by The Dark Lord
Never mind, I found the problem. I forgot to mention it is a single player mission, and the AI starts with 9999 stones. That made Mr. AI think he wouldn't need a stonemason, but he actually did need one in order to be able to build a woodcutter and all other buildings. Reducing the number of stones fixed it.
However, I'm still not sure what is causing the crashes, because these still appear. Maybe it's the rest of the script, although it used to work fine. I'll send my map and scripts to Lewin.

Also, since I do not want to overwrite my static script, I copy/pasted the needed lines and altered them a bit. Actually I probably only need these three:
  Code:
!SET_AI_CHARACTER EQUIP_RATE_LEATHER 250 !SET_AI_DEFEND_ALLIES !SET_AI_UNLIMITED_EQUIP
Do all those new commands work seperately, or do they need their companion code lines? ;)

Oh and Michal please stop double posting. Thanks for offering your help.

@Skypper you might also want to look at the resources you gave to your AI player. :) Edit: I see it was Border Rivers, then I don't know what the problem is...

Re: KaM Remake nightly build

PostPosted: 07 Jun 2014, 11:27
by Michalpl
If you gave resources to AI example lot of food the AI will not make food it will skip it
Skypper the AI didn't had enough space to build because you can see on left enemy instead of ally maybe change purple friendly with green
Edit Apply agresive AI Builder that will help
Other edit locations are to close so AI will not build on enemy ownership

Re: KaM Remake nightly build

PostPosted: 07 Jun 2014, 11:30
by The Dark Lord
If you gave resources to AI example lot of food the AI will not make food it will skip it
Yeah, I noticed that.

Re: KaM Remake nightly build

PostPosted: 07 Jun 2014, 11:38
by Lewin
@Skypper: I just tested Border Rivers 8P after applying builder settings in the map editor, and it worked fine. Did you remember to apply builder settings? Anything else you did? If not send me the map that isn't working.
Skypper the AI didn't had enough space to build because you can see on left enemy instead of ally maybe change purple friendly with green
That's not the problem, they would have built the other direction. Also they will build very close to the enemy if there's no other option.

However, I'm still not sure what is causing the crashes, because these still appear. Maybe it's the rest of the script, although it used to work fine. I'll send my map and scripts to Lewin.

Also, since I do not want to overwrite my static script, I copy/pasted the needed lines and altered them a bit. Actually I probably only need these three:
  Code:
!SET_AI_CHARACTER EQUIP_RATE_LEATHER 250 !SET_AI_DEFEND_ALLIES !SET_AI_UNLIMITED_EQUIP
Do all those new commands work seperately, or do they need their companion code lines? ;)
I fixed your crash, it was a bug in the game. I'll make a new nightly today or tomorrow.

Those lines all work separately. Equip rate tells the AI what weapons production it should aim for, and it also limits the speed the AI equips soldiers (big factor in the original campaigns). However, if you set "unlimited equip" (fast equip in the map editor) it means they will equip as fast as possible and only use the equip rate to decide how big their weapons production should be. "Defend allies" should be self explanatory (AI treats ally being attacked as if it was its own unit/house, so defence groups will come to help if it's within their defence radius)

Re: KaM Remake nightly build

PostPosted: 07 Jun 2014, 11:51
by Michalpl
Should not auto repair be on? on the agresive builder?

Re: KaM Remake nightly build

PostPosted: 07 Jun 2014, 14:02
by andreus
I'll make a new nightly today or tomorrow.
Nice, I'll upload map updates (which are needed for Battle tournament) then :P

Re: KaM Remake nightly build

PostPosted: 07 Jun 2014, 19:10
by pawel95
I'll make a new nightly today or tomorrow.
Nice, I'll upload map updates (which are needed for Battle tournament) then :P
Would be nice :D

Re: KaM Remake nightly build

PostPosted: 07 Jun 2014, 19:22
by andreus
Already added ;)