DevLog 06: AI Fleet Intelligence & Deep Space Operations
Greetings, Commanders.
Say you have turned your main production asteroid into a fortress. The missile silos are loaded, point defense is online and a large fleet is in orbit. It feels safe. Then your scout sees movement at the edge of the sector. The enemy is not attacking the fortress. They have added extra fuel tanks to their ships, flown around it, and they are about to attack the small mining outpost you built last week that has almost no defenses.
That is the kind of AI I want. An AI that does not just send ships at your strongest point, but looks at the map and attacks where you are not looking. To make this possible, I spent the last month replacing the old fleet AI dispatcher with a Hierarchical Task Network (HTN) planner.
The HTN Planner: Thinking in Steps
The old AI was mostly simple "if this, then that" scripts. An HTN planner works differently. It takes a high-level goal and breaks it into a tree of smaller steps until the steps are actions it can actually do.
For example, the AI might start with a Complex Task like "Destroy Player Colony". It can't do that directly, so it splits it into sub-tasks: "Find Colony", "Assemble Fleet" and "Attack". If "Assemble Fleet" fails because the ships are spread out, it is split further into "Choose Rally Point" and "Move Ships". In the end these become Simple Tasks, which are the actual orders the AI gives to its ships.
Before and during each step the AI checks that the plan still works. If you destroy an important ship while the fleet is gathering, the "Assemble Fleet" condition fails. The AI does not continue with a broken plan. The task is dropped and the planner creates a new plan based on the ships it has left.
This means you will not just see enemy ships arriving one at a time anymore. You will see fleets that gather, move together and change their plans when you disrupt them.
Survey Tools and Fog of War: No Cheating
A smart AI is not very useful if it can't see the map. This is where the new deep-space systems come in: Survey Tools and Fuel Tanks.
One thing I really don't like in strategy games is an AI that always knows where your hidden bases are. So my rule for this game is that the AI should not cheat. It should follow the same fog of war rules as you do.
Information is not free anymore. If you want to know what minerals are on an asteroid, or if an enemy has built a colony there, you have to send a ship. The SurveyTool module can be installed on any hull. When a ship with the module arrives at an uncharted asteroid, it starts a SurveyVehicleMission that takes between 10 and 20 in-game days.
The AI does the same thing. Its FleetScout task sends idle scout ships to the edges of its known space to gather information. So when you destroy an enemy scout you also make the AI's planner blind in that part of the map. If the AI has not surveyed your colony, it can't target it. This means hunting enemy scouts is a good way to hide your expansion.
Fuel as a Strategic Constraint
Every ship has a base range that depends on its internal fuel. The new Fuel Tank module increases that range a lot.
This creates a difficult choice in the Shipyard. A frigate with armor and weapons is a dangerous interceptor, but its short range means it has to stay close to home. If you want to reach across the sector or attack deep behind enemy lines, you have to replace some of those modules with fuel tanks.
The AI understands this too. It plans interceptions (FleetIntercept) and patrol routes (FleetPatrol) based on the range of its ships. If it detects a hostile fleet moving toward one of its colonies, it sends the closest combat ships that have enough fuel to reach the intercept point.
The AI is now a lot harder to play against, and I think it is also more interesting.
Signing out,
- Jari
Deploy to the Front Lines
Early access intel delivered straight to your comms. Join the growing fleet of commanders preparing for deployment.