{"action":"closed","issue":{"url":"https://api.github.com/repos/EmulatorNexus/VeniceUnleashed/issues/310","repository_url":"https://api.github.com/repos/EmulatorNexus/VeniceUnleashed","labels_url":"https://api.github.com/repos/EmulatorNexus/VeniceUnleashed/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/EmulatorNexus/VeniceUnleashed/issues/310/comments","events_url":"https://api.github.com/repos/EmulatorNexus/VeniceUnleashed/issues/310/events","html_url":"https://github.com/EmulatorNexus/VeniceUnleashed/issues/310","id":321390946,"number":310,"title":"Accessing ClientCameraEntity transforms causes a crash.","user":{"login":"Powback","id":970246,"avatar_url":"https://avatars3.githubusercontent.com/u/970246?v=4","gravatar_id":"","url":"https://api.github.com/users/Powback","html_url":"https://github.com/Powback","followers_url":"https://api.github.com/users/Powback/followers","following_url":"https://api.github.com/users/Powback/following{/other_user}","gists_url":"https://api.github.com/users/Powback/gists{/gist_id}","starred_url":"https://api.github.com/users/Powback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Powback/subscriptions","organizations_url":"https://api.github.com/users/Powback/orgs","repos_url":"https://api.github.com/users/Powback/repos","events_url":"https://api.github.com/users/Powback/events{/privacy}","received_events_url":"https://api.github.com/users/Powback/received_events","type":"User","site_admin":false},"labels":[{"id":348229430,"url":"https://api.github.com/repos/EmulatorNexus/VeniceUnleashed/labels/VeniceEXT","name":"VeniceEXT","color":"e99695","default":false},{"id":136094607,"url":"https://api.github.com/repos/EmulatorNexus/VeniceUnleashed/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/EmulatorNexus/VeniceUnleashed/milestones/4","html_url":"https://github.com/EmulatorNexus/VeniceUnleashed/milestone/4","labels_url":"https://api.github.com/repos/EmulatorNexus/VeniceUnleashed/milestones/4/labels","id":3083712,"number":4,"title":"1.0 Release","description":"","creator":{"login":"OrfeasZ","id":1216709,"avatar_url":"https://avatars1.githubusercontent.com/u/1216709?v=4","gravatar_id":"","url":"https://api.github.com/users/OrfeasZ","html_url":"https://github.com/OrfeasZ","followers_url":"https://api.github.com/users/OrfeasZ/followers","following_url":"https://api.github.com/users/OrfeasZ/following{/other_user}","gists_url":"https://api.github.com/users/OrfeasZ/gists{/gist_id}","starred_url":"https://api.github.com/users/OrfeasZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrfeasZ/subscriptions","organizations_url":"https://api.github.com/users/OrfeasZ/orgs","repos_url":"https://api.github.com/users/OrfeasZ/repos","events_url":"https://api.github.com/users/OrfeasZ/events{/privacy}","received_events_url":"https://api.github.com/users/OrfeasZ/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":42,"state":"open","created_at":"2018-02-02T12:21:27Z","updated_at":"2018-05-10T11:31:17Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-05-09T00:29:35Z","updated_at":"2018-05-10T11:31:17Z","closed_at":"2018-05-10T11:31:16Z","author_association":"NONE","body":"testmod: http://powback.com/u/b4a642f7c85ec5895b7f326b3c293e41.7z\r\n\r\nCasting a ClientCameraEntity as SpatialEntity works, however, if we try to access it's transform the client crashes. This applies to both newly created cameras, and cameras that are accessed through EntityManager:GetClientIterator('ClientCameraEntity').\r\n\r\n\r\n```\r\n\tlocal s_Cam = CameraEntityData()\r\n\r\n\tlocal s_Entity = EntityManager:CreateClientEntity(s_Cam, LinearTransform())\r\n\tprint(\"so far so good\")\r\n\r\n\tif s_Entity == nil then\r\n\t\tprint(\"Could not spawn camera\")\r\n\t\treturn\r\n\tend\r\n\ts_Entity:Init(Realm.Realm_Client, true)\r\n\r\n\tprint(s_Entity.typeName) -- ClientCameraEntity\r\n\r\n\ts_Entity:FireEvent(\"TakeControl\") -- Takes control over the camera\r\n\tself.camera = s_Entity\r\n\t\t\r\n\tlocal s_Spatial = SpatialEntity(s_Entity)\r\n\tprint(\"We're about to crash yo.\")\r\n\t\t\r\n\t-- If you remove this line, the camera will be created,\r\n \t-- but we can't access it's transform or FOV, so what can ya do.\r\n\tprint(tostring(s_Spatial.transform))\r\n\r\n\tprint(\"If you can see this, you solved the issue.\")\r\n```\r\n\r\nOutput:\r\n\r\n```\r\n[2018-05-09 02:18:28+02:00] [info] [VeniceEXT] [freecam] so far so good\r\n[2018-05-09 02:18:28+02:00] [info] [VeniceEXT] [freecam] ClientCameraEntity\r\n[2018-05-09 02:18:28+02:00] [info] [VeniceEXT] [freecam] We're about to crash yo.\r\n--crash--\r\n```\r\n\r\nThe camera is not instantiated at transform 0,0,0, but in the place of the current camera, so I suspect that there's something else going on.\r\n\r\nA CameraManager would be a nice alternative to solving the issue."}}
{"actor":{"display_login":"OrfeasZ"}}