Pazyryk
Deity
- Joined
- Jun 13, 2008
- Messages
- 3,584
I've been doing a lot of Autoplay lately for mod development.
Question for DLL modders: Is the code for Game.SetAIAutoplay() accessible to us? The reason I'm asking is because this code (wherever it resides) is able to reset the minimap. That's something I'd like to be able to do but I've thought impossible for us.
Another question: Does anyone know how to stop autoplay in the middle of a run? The Live Tuner "stop" button doesn't work for me. It calls Game.SetAIAutoplay(0, returnPlayerID) which actually makes autoplay run forever (0=infinity apparently). If you use Game.SetAIAutoplay(5, 0), then it will run for 5 turns and stop with Game.GetAIAutoplay() reporting 5, 4, 3, 2, 1, 0, 0,... However, if you use Game.SetAIAutoplay(0, 0), then autoplay runs forever with Game.GetAIAutoplay() reporting 0, 0, 0, 0, 0, 0,... Using -1 instead of 0 in the set command doesn't work either.
Question for DLL modders: Is the code for Game.SetAIAutoplay() accessible to us? The reason I'm asking is because this code (wherever it resides) is able to reset the minimap. That's something I'd like to be able to do but I've thought impossible for us.
Another question: Does anyone know how to stop autoplay in the middle of a run? The Live Tuner "stop" button doesn't work for me. It calls Game.SetAIAutoplay(0, returnPlayerID) which actually makes autoplay run forever (0=infinity apparently). If you use Game.SetAIAutoplay(5, 0), then it will run for 5 turns and stop with Game.GetAIAutoplay() reporting 5, 4, 3, 2, 1, 0, 0,... However, if you use Game.SetAIAutoplay(0, 0), then autoplay runs forever with Game.GetAIAutoplay() reporting 0, 0, 0, 0, 0, 0,... Using -1 instead of 0 in the set command doesn't work either.