Hi Laurent, thanks for the mini-review of GalCiv. So far I've resisted the temptation. I guess I'll wait until I have a substantial amount of time to blow. . . maybe sometime in 2006! 
Sounds like you're making good progress!
Your approach here sounds good to me.
Again, your take on it sounds good, certainly at least for now.
The way I would do it is to give the overall military AI (Assuming you have one) a "BuildTF" Plan. The BuildTF plan would remember the lower-level Plan that requested it. The various BuildTF plans would also need some way to assign priorities so that the most vital units are built first. When the build called for by the plan was completed it would let the initiating plan know, and transfer control of the existing units over to that plan.
I could throw out further specifics, but I want to make sure this is the sort of thing you were looking for first. Please let me know what you want me to make further suggestions about.

Originally posted by LDiCesare
I want AI to be able to attack walls:
AI must be able to switch production to good units. (snip)
I want AI to be able to attack walls:
AI must be able to switch production to good units. (snip)

Now I have more or less coded the "ask for reinforcement of a given type" order, and it will take existing idle armies and give it to the required command.
However, I still don't have the "change econ orders" plan. This is what I will really need now. If you have any suggestions on how to handle this, in particular what this means in terms of various levels of ai, I am interested:
The ai currently works by having units ask for orders to higher order plans, which take decisions when asked. This really means each unit executes its orders until it is over. So the high level ai is actually quite lazy, as it makes some computations in its thread, and gives orders off-handedly when asked by the real-world units. This doesn't work for econ orders, which never ask for anything.
The ai currently works by having units ask for orders to higher order plans, which take decisions when asked. This really means each unit executes its orders until it is over. So the high level ai is actually quite lazy, as it makes some computations in its thread, and gives orders off-handedly when asked by the real-world units. This doesn't work for econ orders, which never ask for anything.
I could throw out further specifics, but I want to make sure this is the sort of thing you were looking for first. Please let me know what you want me to make further suggestions about.
Comment