For reference, I have already set the biter's AI settings to not allow destroy when commands fail, but that shouldn't matter anyway since I'm manually giving them wander and go_to_location commands periodically to have them patrol the area.
After some logging and testing, I found that after 20 minutes (give or take a few ticks), the biters start vanishing, one by one, one every tick until they're all gone, without apparent regard for when they were created.
I then went back to my totally vanilla Factorio installation and tested there:
1. Open the Map Editor and create a New Scenario (it works in a "real" game too but this is easier for testing)
2. In the console, run:
Code: Select all
/c local e = game.surfaces.nauvis.create_entity{name="big-biter",position={0,0},force="neutral"}; e.set_command{type=defines.command.wander,radius=20}
4. Biter vanishes!
Do units have a time-to-live that I'm just unaware of or is this a bug?