MustaphaTR / Romanovs-Vengeance

Romanov's Vengeance is an OpenRA mod based on Red Alert 2.
GNU General Public License v3.0
263 stars 30 forks source link

Crash related with "CarrierMaster" and "Exit" #93

Closed dnqbob closed 2 years ago

dnqbob commented 2 years ago

I have already make a fix, wait for me done testing the AI on RV

OpenRA engine version bb84757
Red Alert 2: Romanov's Vengeance mod version {DEV_VERSION}
on map 785e6142731cd7812a55e39c9f1442829bce27f1 (Official Tournament Map B by Westwood Studios).
Date: 2022-09-18 03:31:25Z
Operating System: Windows (Microsoft Windows NT 10.0.19043.0)
Runtime Version: .NET CLR 6.0.8
Exception of type `System.InvalidOperationException`: Attempted to get trait from destroyed object (hornet 642 (not in world))
   at OpenRA.TraitDictionary.CheckDestroyed(Actor actor) in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Game\TraitDictionary.cs:line 84
   at OpenRA.Mods.Common.ActorExts.NotifyBlocker(Actor self, IEnumerable`1 blockers) in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Mods.Common\ActorExts.cs:line 64
   at OpenRA.Mods.Common.Traits.Production.CanUseExit(Actor self, ActorInfo producee, ExitInfo s) in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Mods.Common\Traits\Production.cs:line 142
   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
   at OpenRA.Mods.Common.Traits.ExitExts.NearestExitOrDefault(Actor actor, WPos pos, String productionType, Func`2 p) in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Mods.Common\Traits\Buildings\Exit.cs:line 0
   at OpenRA.Mods.Common.Traits.Production.SelectExit(Actor self, ActorInfo producee, String productionType, Func`2 p) in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Mods.Common\Traits\Production.cs:line 109
   at OpenRA.Mods.Common.Traits.Production.SelectExit(Actor self, ActorInfo producee, String productionType) in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Mods.Common\Traits\Production.cs:line 117
   at OpenRA.Mods.Common.Traits.Production.Produce(Actor self, ActorInfo producee, String productionType, TypeDictionary inits, Int32 refundableValue) in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Mods.Common\Traits\Production.cs:line 133
   at OpenRA.Mods.Common.Traits.ProductionQueue.BuildUnit(ActorInfo unit) in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Mods.Common\Traits\Player\ProductionQueue.cs:line 625
   at OpenRA.Mods.Common.Traits.ProductionQueue.<>c__DisplayClass56_2.<ResolveOrder>b__5(World _) in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Mods.Common\Traits\Player\ProductionQueue.cs:line 453
   at OpenRA.World.Tick() in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Game\World.cs:line 448
   at OpenRA.Game.InnerLogicTick(OrderManager orderManager) in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Game\Game.cs:line 636
   at OpenRA.Game.LogicTick() in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Game\Game.cs:line 651
   at OpenRA.Game.Loop() in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Game\Game.cs:line 820
   at OpenRA.Game.Run() in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Game\Game.cs:line 873
   at OpenRA.Game.InitializeAndRun(String[] args) in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Game\Game.cs:line 308
   at OpenRA.Launcher.Program.Main(String[] args) in D:\work\Projects\Github\Romanovs-Vengeance\engine\OpenRA.Launcher\Program.cs:line 32