What is TexAI? How do I play with it?

Do you want to help out with Freeciv development? Then check out this forum.
cazfi
Elite
Posts: 3447
Joined: Tue Jan 29, 2013 6:54 pm

Re: What is TexAI? How do I play with it?

Post by cazfi »

Dino the Dinosore wrote: Thu Jan 01, 2026 12:50 amI've never run an autogame - how do you do that?
doc/HACKING
Sanguivorant
Posts: 31
Joined: Mon Apr 25, 2022 12:54 am

Re: What is TexAI? How do I play with it?

Post by Sanguivorant »

Dino the Dinosore wrote: Thu Jan 01, 2026 12:50 am I've never run an autogame - how do you do that? Or is there anything on the wiki that explains it?

This functionality would be quite useful if I ever get up the nerve to try and improve the ai code.
Pretty easy.

I start up any game then type these commands:

/observe
/set minplayers 0
/set timeout 2
/set first_timeout 1

From seeing hundreds of these games I kind of get what the AI can and cannot do, I just don't know how to tackle it. For example, I just discovered last week that changing how the AI calculates its wants can make it favour more aggressive units (like Legions rather than Phalanges). Or if you remove code that defines an air unit as one that has no fuel requirement, it will build fighters and stealth fighters.

The AI does not know how to control stealth bombers, missiles, and does not build them either. I think that has to do with profit calculations and the AI believing it is almost always unprofitable to build these units.
Dino the Dinosore
Hardened
Posts: 216
Joined: Sun Dec 31, 2017 3:41 am

Re: What is TexAI? How do I play with it?

Post by Dino the Dinosore »

My ideas for AI improvements:

- Watching AI's that I have an embassy with I often see them running a very high tax rate and having a huge amount of gold. Which is good for me if I can sell them tech, but having lots of gold and not using it is a waste. Would be better to keep tax as low as possible and increase science, or at least spend the gold on rush buying.

- I sometimes see AI's produce lots of useless units. Looking at the world map after a game has ended I sometimes see they have way more workers than can be used. One time I saw a lineup of about 20 Caravels sitting in the ocean. AI would be better off building more caravans, at least they are always good for something.
Post Reply