doc/HACKING
What is TexAI? How do I play with it?
Re: What is TexAI? How do I play with it?
-
Sanguivorant
- Posts: 31
- Joined: Mon Apr 25, 2022 12:54 am
Re: What is TexAI? How do I play with it?
Pretty easy.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.
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.