{"action":"created","issue":{"url":"https://api.github.com/repos/jasonhall/bwapi/issues/163","labels_url":"https://api.github.com/repos/jasonhall/bwapi/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/jasonhall/bwapi/issues/163/comments","events_url":"https://api.github.com/repos/jasonhall/bwapi/issues/163/events","html_url":"https://github.com/jasonhall/bwapi/issues/163","id":59426987,"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/jasonhall/bwapi/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/jasonhall/bwapi/labels/Priority-Low","name":"Priority-Low","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-02T00:52:44Z","updated_at":"2015-03-02T00:52:45Z","closed_at":"2015-03-02T00:52:44Z","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\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/jasonhall/bwapi/issues/comments/76643016","html_url":"https://github.com/jasonhall/bwapi/issues/163#issuecomment-76643016","issue_url":"https://api.github.com/repos/jasonhall/bwapi/issues/163","id":76643016,"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-03-02T00:52:45Z","updated_at":"2015-03-02T00:52:45Z","body":"```\nI never used the save feature against anyone in my life. AIs would need to \ninclude \nadditional code for saving and loading (serializing and deserializing) their \nframe \nstate. Diffent versions of the same AI would not have compatible saves, so AIs \nwould \nhave to make some sort of version check. I really don't think the effort of \nfinding \nthe right hooks and offset is worth it.\n\nAIs who need to save their state could implement a hot key or a user interface \nfor \ndoing so. This way you can just pause the game in starcraft, goto your AI GUI, \nsave \nit's state, save the starcraft game.\n\n```\n\nOriginal comment by `goo...@teabix.com` on 11 Dec 2009 at 9:15"}}