{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/163","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/163/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/163/events","html_url":"https://github.com/chrsmith/bwapi/issues/163","id":58824366,"number":163,"title":"Saving and loading the game will remove all temporary AI data.","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Priority-Low","name":"Priority-Low","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-24T23:32:50Z","updated_at":"2015-02-24T23:32:50Z","closed_at":"2015-02-24T23:32:50Z","body":"```\nFor example: AI plans some strategy and saves it to a local variable. What\nshould occur if his multiplayer enemy will save the game and then reload it?\n\nIs it ok that the AI will forget all it's internal data except the units\nposition? I think some save/load events accessibility should be added.\n```\n\n-----\nOriginal issue reported on code.google.com by `bigfatbr...@gmail.com` on 10 Dec 2009 at 10:16"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75873106","html_url":"https://github.com/chrsmith/bwapi/issues/163#issuecomment-75873106","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/163","id":75873106,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T23:32:50Z","updated_at":"2015-02-24T23:32:50Z","body":"```\nIf the match is between two AIs, you're right - it does not. But if one or more\nplayers in a match are humans? Or BWAPI made only for AI vs AI?\n\nFor example, the default AI tactic in Starcraft is too easy and uninteresting \nfor me,\nso I try to write my own. Sometimes during the long game it's a good point to \nsave\nthe game, but I can't even think what will appear for my AI after reloading. \n\nFor example, if there are 2 functions in AImodule:\n\nvirtual void OnLoadGame(std::string fileName);\nvirtual void OnSaveGame(std::string fileName);\n\nthen the AI can save it's own data in some datafile near the save file and try \nto\nload this datafile on game load... It will be great! Can't you check for \nload/save\nevents or it's too hard? (i'm not good in hacking :) )\n```\n\n-----\nOriginal comment by `bigfatbr...@gmail.com` on 11 Dec 2009 at 6:19"}}