{"action":"created","issue":{"url":"https://api.github.com/repos/gruppe-adler/grad-persistence/issues/15","repository_url":"https://api.github.com/repos/gruppe-adler/grad-persistence","labels_url":"https://api.github.com/repos/gruppe-adler/grad-persistence/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/gruppe-adler/grad-persistence/issues/15/comments","events_url":"https://api.github.com/repos/gruppe-adler/grad-persistence/issues/15/events","html_url":"https://github.com/gruppe-adler/grad-persistence/issues/15","id":421900331,"node_id":"MDU6SXNzdWU0MjE5MDAzMzE=","number":15,"title":"Troubles with saving custom variables","user":{"login":"Vandeanson","id":48643518,"node_id":"MDQ6VXNlcjQ4NjQzNTE4","avatar_url":"https://avatars1.githubusercontent.com/u/48643518?v=4","gravatar_id":"","url":"https://api.github.com/users/Vandeanson","html_url":"https://github.com/Vandeanson","followers_url":"https://api.github.com/users/Vandeanson/followers","following_url":"https://api.github.com/users/Vandeanson/following{/other_user}","gists_url":"https://api.github.com/users/Vandeanson/gists{/gist_id}","starred_url":"https://api.github.com/users/Vandeanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vandeanson/subscriptions","organizations_url":"https://api.github.com/users/Vandeanson/orgs","repos_url":"https://api.github.com/users/Vandeanson/repos","events_url":"https://api.github.com/users/Vandeanson/events{/privacy}","received_events_url":"https://api.github.com/users/Vandeanson/received_events","type":"User","site_admin":false},"labels":[{"id":552008177,"node_id":"MDU6TGFiZWw1NTIwMDgxNzc=","url":"https://api.github.com/repos/gruppe-adler/grad-persistence/labels/bug","name":"bug","color":"ee0701","default":true},{"id":552008182,"node_id":"MDU6TGFiZWw1NTIwMDgxODI=","url":"https://api.github.com/repos/gruppe-adler/grad-persistence/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"McDiod","id":16549968,"node_id":"MDQ6VXNlcjE2NTQ5OTY4","avatar_url":"https://avatars0.githubusercontent.com/u/16549968?v=4","gravatar_id":"","url":"https://api.github.com/users/McDiod","html_url":"https://github.com/McDiod","followers_url":"https://api.github.com/users/McDiod/followers","following_url":"https://api.github.com/users/McDiod/following{/other_user}","gists_url":"https://api.github.com/users/McDiod/gists{/gist_id}","starred_url":"https://api.github.com/users/McDiod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McDiod/subscriptions","organizations_url":"https://api.github.com/users/McDiod/orgs","repos_url":"https://api.github.com/users/McDiod/repos","events_url":"https://api.github.com/users/McDiod/events{/privacy}","received_events_url":"https://api.github.com/users/McDiod/received_events","type":"User","site_admin":false},"assignees":[{"login":"McDiod","id":16549968,"node_id":"MDQ6VXNlcjE2NTQ5OTY4","avatar_url":"https://avatars0.githubusercontent.com/u/16549968?v=4","gravatar_id":"","url":"https://api.github.com/users/McDiod","html_url":"https://github.com/McDiod","followers_url":"https://api.github.com/users/McDiod/followers","following_url":"https://api.github.com/users/McDiod/following{/other_user}","gists_url":"https://api.github.com/users/McDiod/gists{/gist_id}","starred_url":"https://api.github.com/users/McDiod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McDiod/subscriptions","organizations_url":"https://api.github.com/users/McDiod/orgs","repos_url":"https://api.github.com/users/McDiod/repos","events_url":"https://api.github.com/users/McDiod/events{/privacy}","received_events_url":"https://api.github.com/users/McDiod/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2019-03-17T09:15:42Z","updated_at":"2019-04-28T17:31:35Z","closed_at":null,"author_association":"NONE","body":"Good morning folks,\r\n\r\nI have been playing around with the persistency script and I love it, thank you for putting this out there!\r\n\r\nWhile trying to implement GRAD persistency into my current project, a base-building and resource gathering mod for Arma 3 - I came across 2 hurdles:\r\n\r\n1:  Option 2 to safe structures that are added by script or ZEUS would not let me save structures that I have placed during the mission via script. It does work however, when choosing saving option 3. Of course then also any Editor placed objects get saved/duplicated unless I give the object a var name.\r\nMaybe I misunderstand how to use this properly tho.\r\n\r\n2: I can not figure out how to save custome variables. I would appreciate some help in understanding how that works.\r\n\r\nMy setup in  class CfgGradPersistence {}; is as following:\r\n\r\n`        class var3 {\r\n            varName = \"VABB_Wood\";\r\n            varNamespace = \"player\";\r\n            public = 1;\r\n        };`\r\n\r\nResources are gathered client side (and saved) like below:\r\n\r\n`    \r\nplayer setVariable [\"VABB_Wood\", _woodNew, true];\r\n[false,0] call grad_persistence_fnc_saveMission;\r\n`\r\nI hope I explained my intentions well enough, else please let me know.\r\nThank you in advance and BR\r\nVD"},"comment":{"url":"https://api.github.com/repos/gruppe-adler/grad-persistence/issues/comments/487399782","html_url":"https://github.com/gruppe-adler/grad-persistence/issues/15#issuecomment-487399782","issue_url":"https://api.github.com/repos/gruppe-adler/grad-persistence/issues/15","id":487399782,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NzM5OTc4Mg==","user":{"login":"McDiod","id":16549968,"node_id":"MDQ6VXNlcjE2NTQ5OTY4","avatar_url":"https://avatars0.githubusercontent.com/u/16549968?v=4","gravatar_id":"","url":"https://api.github.com/users/McDiod","html_url":"https://github.com/McDiod","followers_url":"https://api.github.com/users/McDiod/followers","following_url":"https://api.github.com/users/McDiod/following{/other_user}","gists_url":"https://api.github.com/users/McDiod/gists{/gist_id}","starred_url":"https://api.github.com/users/McDiod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McDiod/subscriptions","organizations_url":"https://api.github.com/users/McDiod/orgs","repos_url":"https://api.github.com/users/McDiod/repos","events_url":"https://api.github.com/users/McDiod/events{/privacy}","received_events_url":"https://api.github.com/users/McDiod/received_events","type":"User","site_admin":false},"created_at":"2019-04-28T17:31:35Z","updated_at":"2019-04-28T17:31:35Z","author_association":"COLLABORATOR","body":"Should be fixed in [0.7.1](https://github.com/gruppe-adler/grad-persistence/releases/tag/0.7.1). Existing saves will still not work, but new saves should be fine. Please report back."}}
{"actor":{"display_login":"McDiod"}}