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.
Post Reply