{"action":"closed","issue":{"url":"https://api.github.com/repos/ALiVEOS/ALiVE.OS/issues/58","repository_url":"https://api.github.com/repos/ALiVEOS/ALiVE.OS","labels_url":"https://api.github.com/repos/ALiVEOS/ALiVE.OS/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/ALiVEOS/ALiVE.OS/issues/58/comments","events_url":"https://api.github.com/repos/ALiVEOS/ALiVE.OS/issues/58/events","html_url":"https://github.com/ALiVEOS/ALiVE.OS/issues/58","id":165941004,"node_id":"MDU6SXNzdWUxNjU5NDEwMDQ=","number":58,"title":"FSM error undefined variables when restarting OPCOM","user":{"login":"stcrowe","id":11056227,"node_id":"MDQ6VXNlcjExMDU2MjI3","avatar_url":"https://avatars1.githubusercontent.com/u/11056227?v=4","gravatar_id":"","url":"https://api.github.com/users/stcrowe","html_url":"https://github.com/stcrowe","followers_url":"https://api.github.com/users/stcrowe/followers","following_url":"https://api.github.com/users/stcrowe/following{/other_user}","gists_url":"https://api.github.com/users/stcrowe/gists{/gist_id}","starred_url":"https://api.github.com/users/stcrowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stcrowe/subscriptions","organizations_url":"https://api.github.com/users/stcrowe/orgs","repos_url":"https://api.github.com/users/stcrowe/repos","events_url":"https://api.github.com/users/stcrowe/events{/privacy}","received_events_url":"https://api.github.com/users/stcrowe/received_events","type":"User","site_admin":false},"labels":[{"id":510842684,"node_id":"MDU6TGFiZWw1MTA4NDI2ODQ=","url":"https://api.github.com/repos/ALiVEOS/ALiVE.OS/labels/Needs%20Repro","name":"Needs Repro","color":"0052cc","default":false},{"id":652290806,"node_id":"MDU6TGFiZWw2NTIyOTA4MDY=","url":"https://api.github.com/repos/ALiVEOS/ALiVE.OS/labels/OPCOM","name":"OPCOM","color":"0e8a16","default":false},{"id":373844056,"node_id":"MDU6TGFiZWwzNzM4NDQwNTY=","url":"https://api.github.com/repos/ALiVEOS/ALiVE.OS/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"highhead","id":13004589,"node_id":"MDQ6VXNlcjEzMDA0NTg5","avatar_url":"https://avatars3.githubusercontent.com/u/13004589?v=4","gravatar_id":"","url":"https://api.github.com/users/highhead","html_url":"https://github.com/highhead","followers_url":"https://api.github.com/users/highhead/followers","following_url":"https://api.github.com/users/highhead/following{/other_user}","gists_url":"https://api.github.com/users/highhead/gists{/gist_id}","starred_url":"https://api.github.com/users/highhead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highhead/subscriptions","organizations_url":"https://api.github.com/users/highhead/orgs","repos_url":"https://api.github.com/users/highhead/repos","events_url":"https://api.github.com/users/highhead/events{/privacy}","received_events_url":"https://api.github.com/users/highhead/received_events","type":"User","site_admin":false},"assignees":[{"login":"highhead","id":13004589,"node_id":"MDQ6VXNlcjEzMDA0NTg5","avatar_url":"https://avatars3.githubusercontent.com/u/13004589?v=4","gravatar_id":"","url":"https://api.github.com/users/highhead","html_url":"https://github.com/highhead","followers_url":"https://api.github.com/users/highhead/followers","following_url":"https://api.github.com/users/highhead/following{/other_user}","gists_url":"https://api.github.com/users/highhead/gists{/gist_id}","starred_url":"https://api.github.com/users/highhead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highhead/subscriptions","organizations_url":"https://api.github.com/users/highhead/orgs","repos_url":"https://api.github.com/users/highhead/repos","events_url":"https://api.github.com/users/highhead/events{/privacy}","received_events_url":"https://api.github.com/users/highhead/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-07-16T18:13:53Z","updated_at":"2018-12-18T11:02:03Z","closed_at":"2018-12-18T11:02:03Z","author_association":"NONE","body":"Updated\n\nIf you restart an opcom by doing the following:\n\n```\n{\n    _opcom = _x;\n\n    _opcomControlType = [_opcom,\"controltype\",\"invasion\"] call ALiVE_fnc_HashGet;\n    _opcomID = [_opcom,\"opcomID\",\"\"] call ALiVE_fnc_HashGet;\n\n      _stopped = [_opcom, \"stop\"] call ALiVE_fnc_OPCOM;\n\n     switch (_opcomControlType ) do {\n        case (\"occupation\") : {\n\n                _OPCOM = [_opcom] execFSM \"\\x\\alive\\addons\\mil_opcom\\opcom.fsm\";\n                _TACOM = [_opcom] execFSM \"\\x\\alive\\addons\\mil_opcom\\tacom.fsm\";\n\n                [_opcom, \"OPCOM_FSM\",_OPCOM] call ALiVE_fnc_HashSet;\n                [_opcom, \"TACOM_FSM\",_TACOM] call ALiVE_fnc_HashSet;\n        };\n        case (\"invasion\") : {\n\n                _OPCOM = [_opcom] execFSM \"\\x\\alive\\addons\\mil_opcom\\opcom.fsm\";\n                _TACOM = [_opcom] execFSM \"\\x\\alive\\addons\\mil_opcom\\tacom.fsm\";\n\n                [_opcom, \"OPCOM_FSM\",_OPCOM] call ALiVE_fnc_HashSet;\n                [_opcom, \"TACOM_FSM\",_TACOM] call ALiVE_fnc_HashSet;\n        };\n        case (\"asymmetric\") : {\n            _OPCOM = [_opcom] execFSM \"\\x\\alive\\addons\\mil_opcom\\insurgency.fsm\";\n\n            [_opcom, \"OPCOM_FSM\",_OPCOM] call ALiVE_fnc_HashSet;\n            [_opcom, \"TACOM_FSM\",-1] call ALiVE_fnc_HashSet;\n        };\n    };\n\n} foreach OPCOM_INSTANCES;\n```\n\nYou will get the error: \n"}}
{"actor":{"display_login":"friznit"}}