{"action":"created","issue":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/14989","repository_url":"https://api.github.com/repos/OpenRA/OpenRA","labels_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/14989/labels{/name}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/14989/comments","events_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/14989/events","html_url":"https://github.com/OpenRA/OpenRA/issues/14989","id":308301213,"node_id":"MDU6SXNzdWUzMDgzMDEyMTM=","number":14989,"title":"Traits and conditions are applied to actors in APCs","user":{"login":"ABrandau","id":11763228,"node_id":"MDQ6VXNlcjExNzYzMjI4","avatar_url":"https://avatars0.githubusercontent.com/u/11763228?v=4","gravatar_id":"","url":"https://api.github.com/users/ABrandau","html_url":"https://github.com/ABrandau","followers_url":"https://api.github.com/users/ABrandau/followers","following_url":"https://api.github.com/users/ABrandau/following{/other_user}","gists_url":"https://api.github.com/users/ABrandau/gists{/gist_id}","starred_url":"https://api.github.com/users/ABrandau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ABrandau/subscriptions","organizations_url":"https://api.github.com/users/ABrandau/orgs","repos_url":"https://api.github.com/users/ABrandau/repos","events_url":"https://api.github.com/users/ABrandau/events{/privacy}","received_events_url":"https://api.github.com/users/ABrandau/received_events","type":"User","site_admin":false},"labels":[{"id":6382357,"node_id":"MDU6TGFiZWw2MzgyMzU3","url":"https://api.github.com/repos/OpenRA/OpenRA/labels/Crash","name":"Crash","color":"e10c02","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-24T21:41:44Z","updated_at":"2018-06-13T23:03:53Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"![mammoth crash](https://user-images.githubusercontent.com/11763228/37869226-ad8c7126-2f92-11e8-9770-6875cef15d38.gif)\r\nWhat you see here is a unit about to die, it gets hit by an alien trooper that applies a negative self heal debuff, the mammoth is loaded into a carryall (which is used as an APC for now) and the self heal kills the unit, causing the following crash.\r\n\r\nYou can see shrapnel flying on the background, I suspect this comes from the killed unit, just like the smoke.\r\n\r\nEdit: my suggestion here is to allow the modder to enable a condition on the loaded unit, then I could disable all the negative self healing traits.\r\n\r\n```OpenRA engine version {DEV_VERSION}\r\nShattered Paradise mod version {Build 20180324 II}\r\non map f7ddd62f26a22bd802e7204114b6b63bd94265bb (Blistering Sands by MadHQ).\r\nDate: 2018-03-24 20:57:45Z\r\nOperating System: Windows (Microsoft Windows NT 6.2.9200.0)\r\nRuntime Version: .NET CLR 4.0.30319.42000\r\nException of type `System.InvalidOperationException`: Attempted to get trait from destroyed object (hmec 732 (not in world))\r\n   at OpenRA.TraitDictionary.CheckDestroyed(Actor actor) in C:\\Users\\Alfredo\\Desktop\\SP 20180314\\OpenRA.Game\\TraitDictionary.cs:line 83\r\n   at OpenRA.TraitDictionary.Get[T](Actor actor) in C:\\Users\\Alfredo\\Desktop\\SP 20180314\\OpenRA.Game\\TraitDictionary.cs:line 88\r\n   at OpenRA.Actor.Trait[T]() in C:\\Users\\Alfredo\\Desktop\\SP 20180314\\OpenRA.Game\\Actor.cs:line 237\r\n   at OpenRA.Mods.Common.Traits.Cargo.<>c__DisplayClassf.<CanUnload>b__e(Actor p) in c:\\Users\\Alfredo\\Desktop\\OpenRA-SP-Master-Branch\\OpenRA.Mods.Common\\Traits\\Cargo.cs:line 214\r\n   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)\r\n   at OpenRA.Mods.Common.Traits.Cargo.<CanUnload>b__d(CPos c) in c:\\Users\\Alfredo\\Desktop\\OpenRA-SP-Master-Branch\\OpenRA.Mods.Common\\Traits\\Cargo.cs:line 214\r\n   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)\r\n   at OpenRA.Mods.Common.Traits.Cargo.CanUnload() in c:\\Users\\Alfredo\\Desktop\\OpenRA-SP-Master-Branch\\OpenRA.Mods.Common\\Traits\\Cargo.cs:line 213\r\n   at OpenRA.Mods.Common.Traits.Cargo.ResolveOrder(Actor self, Order order) in c:\\Users\\Alfredo\\Desktop\\OpenRA-SP-Master-Branch\\OpenRA.Mods.Common\\Traits\\Cargo.cs:line 187\r\n   at OpenRA.Network.UnitOrders.ProcessOrder(OrderManager orderManager, World world, Int32 clientId, Order order) in C:\\Users\\Alfredo\\Desktop\\SP 20180314\\OpenRA.Game\\Network\\UnitOrders.cs:line 291\r\n   at OpenRA.Network.OrderManager.Tick() in C:\\Users\\Alfredo\\Desktop\\SP 20180314\\OpenRA.Game\\Network\\OrderManager.cs:line 179\r\n   at OpenRA.Game.InnerLogicTick(OrderManager orderManager) in C:\\Users\\Alfredo\\Desktop\\SP 20180314\\OpenRA.Game\\Game.cs:line 597\r\n   at OpenRA.Game.LogicTick() in C:\\Users\\Alfredo\\Desktop\\SP 20180314\\OpenRA.Game\\Game.cs:line 629\r\n   at OpenRA.Game.Loop() in C:\\Users\\Alfredo\\Desktop\\SP 20180314\\OpenRA.Game\\Game.cs:line 759\r\n   at OpenRA.Game.Run() in C:\\Users\\Alfredo\\Desktop\\SP 20180314\\OpenRA.Game\\Game.cs:line 799\r\n   at OpenRA.Game.InitializeAndRun(String[] args) in C:\\Users\\Alfredo\\Desktop\\SP 20180314\\OpenRA.Game\\Game.cs:line 253\r\n   at OpenRA.Program.Main(String[] args) in C:\\Users\\Alfredo\\Desktop\\SP 20180314\\OpenRA.Game\\Support\\Program.cs:line 37```"},"comment":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/comments/397115375","html_url":"https://github.com/OpenRA/OpenRA/issues/14989#issuecomment-397115375","issue_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/14989","id":397115375,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzExNTM3NQ==","user":{"login":"ABrandau","id":11763228,"node_id":"MDQ6VXNlcjExNzYzMjI4","avatar_url":"https://avatars0.githubusercontent.com/u/11763228?v=4","gravatar_id":"","url":"https://api.github.com/users/ABrandau","html_url":"https://github.com/ABrandau","followers_url":"https://api.github.com/users/ABrandau/followers","following_url":"https://api.github.com/users/ABrandau/following{/other_user}","gists_url":"https://api.github.com/users/ABrandau/gists{/gist_id}","starred_url":"https://api.github.com/users/ABrandau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ABrandau/subscriptions","organizations_url":"https://api.github.com/users/ABrandau/orgs","repos_url":"https://api.github.com/users/ABrandau/repos","events_url":"https://api.github.com/users/ABrandau/events{/privacy}","received_events_url":"https://api.github.com/users/ABrandau/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T23:03:53Z","updated_at":"2018-06-13T23:03:53Z","author_association":"CONTRIBUTOR","body":"The bug also happens with infantry entering an APC so it doesnt solve issue, also carryalls are extremely hard to use in big groups (because every single aircraft will try to land on the same cell) so I phased them out."}}
{"actor":{"display_login":"ABrandau"}}