New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on Saring Gas 1 20190106 #16032

Closed
kyrreso opened this Issue Jan 7, 2019 · 1 comment

Comments

Projects
None yet
4 participants
@kyrreso
Copy link
Contributor

kyrreso commented Jan 7, 2019

"Soft crash", could exit..

Fatal Lua Error: [string "BindingSupport.lua"]:30: Actor '4tnk (dead)' does not define a property 'Patrol'
at OpenRA.Scripting.ScriptContext.FatalError (System.String message) [0x00000] in :0
at OpenRA.Mods.Common.Scripting.TriggerGlobal+c__AnonStorey0.<>m__0 () [0x0004a] in :0
at OpenRA.Effects.DelayedAction.m__0 (OpenRA.World w) [0x00000] in :0
at OpenRA.World.Tick () [0x00000] in :0
at OpenRA.Game.InnerLogicTick (OpenRA.Network.OrderManager orderManager) [0x00000] in :0
at OpenRA.Game.LogicTick () [0x00000] in :0
at OpenRA.Game.Loop () [0x00000] in :0
at OpenRA.Game.Run () [0x00000] in :0
at OpenRA.Game.InitializeAndRun (System.String[] args) [0x00000] in :0
at OpenRA.Program.Main (System.String[] args) [0x00000] in :0

@Muh-Muh

This comment has been minimized.

Copy link
Contributor

Muh-Muh commented Jan 7, 2019

I assume this is because there is a missing check whether the mammoth tank is alive in the lua script.

SendPatrol = function(mammoth)  
     mammoth.Patrol(MammothPath, true, 20)

should be

SendPatrol = function(mammoth)  
     if mammoth.IsDead then
          return
     else
          mammoth.Patrol(MammothPath, true, 20)

Should fix this (I think).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment