{"action":"created","issue":{"url":"https://api.github.com/repos/anegostudios/VintageStory-Issues/issues/228","repository_url":"https://api.github.com/repos/anegostudios/VintageStory-Issues","labels_url":"https://api.github.com/repos/anegostudios/VintageStory-Issues/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/anegostudios/VintageStory-Issues/issues/228/comments","events_url":"https://api.github.com/repos/anegostudios/VintageStory-Issues/issues/228/events","html_url":"https://github.com/anegostudios/VintageStory-Issues/issues/228","id":379734902,"node_id":"MDU6SXNzdWUzNzk3MzQ5MDI=","number":228,"title":"Extract .zip mods into cache directory instead of temp","user":{"login":"copygirl","id":272586,"node_id":"MDQ6VXNlcjI3MjU4Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/272586?v=4","gravatar_id":"","url":"https://api.github.com/users/copygirl","html_url":"https://github.com/copygirl","followers_url":"https://api.github.com/users/copygirl/followers","following_url":"https://api.github.com/users/copygirl/following{/other_user}","gists_url":"https://api.github.com/users/copygirl/gists{/gist_id}","starred_url":"https://api.github.com/users/copygirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copygirl/subscriptions","organizations_url":"https://api.github.com/users/copygirl/orgs","repos_url":"https://api.github.com/users/copygirl/repos","events_url":"https://api.github.com/users/copygirl/events{/privacy}","received_events_url":"https://api.github.com/users/copygirl/received_events","type":"User","site_admin":false},"labels":[{"id":871743786,"node_id":"MDU6TGFiZWw4NzE3NDM3ODY=","url":"https://api.github.com/repos/anegostudios/VintageStory-Issues/labels/status:%20resolved","name":"status: resolved","color":"38b16c","default":false},{"id":871204965,"node_id":"MDU6TGFiZWw4NzEyMDQ5NjU=","url":"https://api.github.com/repos/anegostudios/VintageStory-Issues/labels/target:%20modding","name":"target: modding","color":"756ff2","default":false},{"id":871201432,"node_id":"MDU6TGFiZWw4NzEyMDE0MzI=","url":"https://api.github.com/repos/anegostudios/VintageStory-Issues/labels/type:%20bug","name":"type: bug","color":"e47363","default":false}],"state":"closed","locked":false,"assignee":{"login":"copygirl","id":272586,"node_id":"MDQ6VXNlcjI3MjU4Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/272586?v=4","gravatar_id":"","url":"https://api.github.com/users/copygirl","html_url":"https://github.com/copygirl","followers_url":"https://api.github.com/users/copygirl/followers","following_url":"https://api.github.com/users/copygirl/following{/other_user}","gists_url":"https://api.github.com/users/copygirl/gists{/gist_id}","starred_url":"https://api.github.com/users/copygirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copygirl/subscriptions","organizations_url":"https://api.github.com/users/copygirl/orgs","repos_url":"https://api.github.com/users/copygirl/repos","events_url":"https://api.github.com/users/copygirl/events{/privacy}","received_events_url":"https://api.github.com/users/copygirl/received_events","type":"User","site_admin":false},"assignees":[{"login":"copygirl","id":272586,"node_id":"MDQ6VXNlcjI3MjU4Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/272586?v=4","gravatar_id":"","url":"https://api.github.com/users/copygirl","html_url":"https://github.com/copygirl","followers_url":"https://api.github.com/users/copygirl/followers","following_url":"https://api.github.com/users/copygirl/following{/other_user}","gists_url":"https://api.github.com/users/copygirl/gists{/gist_id}","starred_url":"https://api.github.com/users/copygirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copygirl/subscriptions","organizations_url":"https://api.github.com/users/copygirl/orgs","repos_url":"https://api.github.com/users/copygirl/repos","events_url":"https://api.github.com/users/copygirl/events{/privacy}","received_events_url":"https://api.github.com/users/copygirl/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/anegostudios/VintageStory-Issues/milestones/20","html_url":"https://github.com/anegostudios/VintageStory-Issues/milestone/20","labels_url":"https://api.github.com/repos/anegostudios/VintageStory-Issues/milestones/20/labels","id":3817716,"node_id":"MDk6TWlsZXN0b25lMzgxNzcxNg==","number":20,"title":"1.8.0","description":null,"creator":{"login":"copygirl","id":272586,"node_id":"MDQ6VXNlcjI3MjU4Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/272586?v=4","gravatar_id":"","url":"https://api.github.com/users/copygirl","html_url":"https://github.com/copygirl","followers_url":"https://api.github.com/users/copygirl/followers","following_url":"https://api.github.com/users/copygirl/following{/other_user}","gists_url":"https://api.github.com/users/copygirl/gists{/gist_id}","starred_url":"https://api.github.com/users/copygirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copygirl/subscriptions","organizations_url":"https://api.github.com/users/copygirl/orgs","repos_url":"https://api.github.com/users/copygirl/repos","events_url":"https://api.github.com/users/copygirl/events{/privacy}","received_events_url":"https://api.github.com/users/copygirl/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2018-11-13T12:53:44Z","updated_at":"2018-11-13T12:56:09Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-11-12T11:28:39Z","updated_at":"2018-11-13T12:56:09Z","closed_at":"2018-11-13T12:56:09Z","author_association":"CONTRIBUTOR","body":"Especially since Vintage Story lazily loads files, extracting mod files into temp can cause these temporary files to be cleared, resulting in errors due to missing files. @tyronx suggested we should just open the files so they are in use and can't be deleted, but there's some reasons against this:\r\n\r\n- What we're doing is sort of like a cache anyway. We clear out unused mods from the folder but otherwise reuse previously extracted mods again the next time we load them.\r\n- Some systems have a temp file system that exists in memory, causing us to use additional memory for pretty much no reason.\r\n- It might be useful later. Perhaps we **do** want to keep more mods available like this or use this location for automatically download mods into at a later point in time, as well."},"comment":{"url":"https://api.github.com/repos/anegostudios/VintageStory-Issues/issues/comments/438256135","html_url":"https://github.com/anegostudios/VintageStory-Issues/issues/228#issuecomment-438256135","issue_url":"https://api.github.com/repos/anegostudios/VintageStory-Issues/issues/228","id":438256135,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODI1NjEzNQ==","user":{"login":"copygirl","id":272586,"node_id":"MDQ6VXNlcjI3MjU4Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/272586?v=4","gravatar_id":"","url":"https://api.github.com/users/copygirl","html_url":"https://github.com/copygirl","followers_url":"https://api.github.com/users/copygirl/followers","following_url":"https://api.github.com/users/copygirl/following{/other_user}","gists_url":"https://api.github.com/users/copygirl/gists{/gist_id}","starred_url":"https://api.github.com/users/copygirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copygirl/subscriptions","organizations_url":"https://api.github.com/users/copygirl/orgs","repos_url":"https://api.github.com/users/copygirl/repos","events_url":"https://api.github.com/users/copygirl/events{/privacy}","received_events_url":"https://api.github.com/users/copygirl/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T12:56:09Z","updated_at":"2018-11-13T12:56:09Z","author_association":"CONTRIBUTOR","body":"For now, extracted .zip mods are cached at `~/.config/VintagestoryData/Cache/unpack` and similar on other platforms. Could be improved by using `.cache` on Linux or something but .NET doesn't expose this using a `SpecialFolder` or similar, so I didn't bother for now."}}
{"actor":{"display_login":"copygirl"}}