![]() During each iteration, we create a sub-directory in our current folder, and place the server-specific files there. This script wouldn’t be that great if it only did one server right? So now we setup a dictionary of servers in the beginning of the script and iterate over them calling all the methods for each one. ![]() The possibilities are endless! Multiple Servers One idea I have is to generate a movie of all the maps that are created. You can track how quickly players and alliances progress. ![]() This way the data is tracked over time and we will be able run reports that show the server’s progression. Now I attach a date field (and new primary key) to each row in each data dump so the data doesn’t get overridden each day. Other than that, the rest of the script is the same. I also changed the dictionary of servers to a list of tuples, which keeps the ordering of the servers correct during a loop. ![]() I’ve updated the code with the new Travian server names and I incorporated a little bit of error handling in the case that unzipping doesn’t produce a file. So I’ve updated the script to add some useful features. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |