AI issue

joshiejack

Chieftain
Joined
Jul 7, 2010
Messages
39
Okay, basically I'm spawning a settler and a beserker in a ship somewhere on the map at a certain date, the ai will take the units to land drop them off but then that's it, the settler and beserker do absolutely nothing once they've reached land, not sure what's going on, any ideas?
 
When you spawn them, I guess you are using pPlayer.initUnit in python. What AI are you giving them? If you are giving them "none" for AI, I suppose they are doing what you asked. If you are giving them "explore" for AI, I guess you should at least see them moving around to explore. It could be that the settler AI may compute the maintenance cost of founding a city so far away, and actively decide it is a bad idea. But unless you created them with "none" AI, at least they should be exploring.
 
Woops, silly old me :P, worked it out, The ship I was spawning was a different civ to the units xD
 
Yeah that might be right, I experimented and they didn't like it lol, they went in their ship and sailed all the way back to their homeland to settle the city :p ^_^

I guess I'll just have to do some checks to see if there is a city roughly where I want them to put one and just spawn a city instead :p
 
Okay I've got another issue now :|, I'm spawning a couple of ships of beserkers, the ones that spawn by france are attacking the cities like I want them to but the ones spawning on the english coast are sailing away back home :S, they've got the same AI types and the relations between them and france and them and england are the same :S, the unit attack type for the beserkers is the lemming one so they should go for it, but why is the ship sailing away :S

And woops sorry about the double posting :|, keep forgetting to edit, sorry
 
The AI has many different factors it weights to see what it will do. There aren't many experts in all these weights. Are you using Better BTS AI? If not, you may want to try that first. Many people agree the AI is much smarter using that mod. Plus, once you switch to using that, you can ask questions of the AI experts who work on BBAI.
 
Yeah I'm using that, I'm think the issue might be that the city is quite a way inland, I'm thinking I'll either have to put another city or move the capital, and that confirmed it, placed a city closer to the ocean and they went for it, so will just have to work around it :P
 
Back
Top Bottom