Jeckel
Great Reverend
I've autoplayed the game with just the AIAutoPlay changes for literally thousands and thousands of turns and there is no CTD. If you are getting one, then it must be somthing else.
I've autoplayed the game with just the AIAutoPlay changes for literally thousands and thousands of turns and there is no CTD. If you are getting one, then it must be somthing else.
Jdog, Question.... I have merged the SDK changes from BetterBTS AI anyway so autoplay should be set I downloaded the latest version of this modcomp to get the python bit and i see that there are revolution files in it and nothing defined as Autoplay.... is there a wrong file or am i just stupid.
if (theKey == int(InputTypes.KB_X) and self.bShift ):
game.setAIAutoPlay(5)
Exactly how to do it depends on how things are set up in FFH, but I can give some general help. The best way to handle keyboard commands is through Python. In standard BTS there's a function in CvEventManager.py called onKbdEvent which creates several key bindings. You'd need to find a place like this somewhere in the FFH Python code (ask in their forums and someone should help you find a good place) and add something like:
Code:if (theKey == int(InputTypes.KB_X) and self.bShift ): game.setAIAutoPlay(5)
Indentation is very important in Python btw, it determines what's inside of an if statement for example.
this would be great. can't switch religions too.can't switch civics, can't cancel existing deals
Well, the main purpose of the AutoPlay isn't to let the AI get through the drudgery of clicking "NEXT TURN" button repeatedly, it is to let mod-makers see if the AI is acting properly so that they can tweak the code and improve the AI (or just to test for a crash).
AIAutoPlay Description
Version: 2.0
For BTS 3.17 (some older versions available below)
Multiplayer: Yes*
Langauges: English, French, German
Potential uses
Great for debugging or watching the behavior of the AI, as it shows you only what the AI can see. Also, if you want to skip certain sections of the game, or you're so close to winning but not quite there, let the AI play it for you! With many civs in the late game, auto play will still take a while but you won't have to do anything ... it will basically take (# of turns)*(in between turn lag + a little bit) to go through the turns. As of version 2.0, AIAutoPlay will automatically stop the game at the end so you can see all the end of game screens.
So blocking the AI from doing what it wants to do means blocking potential crashes, and failing to see just how dumb the AI might actually be.
As for "Pausing" you should have a shortcut key to enable 1 turn of AI Autoplay. Press that while Autoplay is active and you will regain control on the start of the next turn and be able to look around for yourself.