Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fatal Lua Error:
- Stack Traceback
- ===============
- (2) global C function 'error'
- (3) Lua function '(anonymous)' at file '/usr/lib/openra//lua/sandbox.lua:150' (best guess)
- Local variables:
- arg = nil
- ok = boolean: false
- result = string: "[string \"A5.lua\"]:8: attempt to index global 'OrdosRally' (a nil value)"
- (4) tail call
- (5) Lua function '?' at line 15 of chunk '"scriptwrapper.lua"]'
- (6) global C function 'xpcall'
- (7) Lua upvalue 'TryRunSandboxed' at line 15 of chunk '"scriptwrapper.lua"]'
- Local variables:
- fn = Lua function '?' (defined at line 0 of chunk "A5.lua"])
- (8) Lua function '?' at line 38 of chunk '"scriptwrapper.lua"]'
- Local variables:
- file = string: "A5.lua"
- contents = string: "AtreidesReinforcements = { \"light_inf\", \"light_inf\", \"light_inf\", \"light_inf\", \"light_inf\", \"combat_tank_a\", \"combat_tank_a\" }\
- AtreidesPath = { AtreidesRally.Location, AtreidesRally2.Location }\
- AtreidesEntryPath = { AtreidesRally.Location }\
- Atreides2Reinforcements = { \"combat_tank_a\", \"combat_tank_a\", \"combat_tank_a\", \"trike\", \"quad\" }\
- Atreides2Path = { Atreides2Rally.Location, Atreides2Rally2.Location }\
- Atreides2EntryPath = { Atreides2Rally.Location }\
- OrdosReinforcements = { \"light_inf\", \"combat_tank_o\", \"combat_tank_o\", \"combat_tank_o\", \"quad\", \"raider\", \"raider\" }\
- OrdosPath = { OrdosRally.Location, OrdosRally2.Location }\
- OrdosEntryPath = { OrdosRally.Location }\
- MercenariesReinforcements = { \"light_inf\", \"light_inf\", \"light_inf\", \"light_inf\", \"light_inf\", \"trooper\", \"trooper\", \"trooper\", \"trooper\", \"trooper\" }\
- MercenariesPath = { MercenariesRally.Location, MercenariesRally2.Location }\
- MercenariesEntryPath = { MercenariesRally.Location } \
- \
- \
- WorldLoaded = function()\
- Atreides = Player.GetPlayer(\"Atreides\")\
- Atreides2 = Player.GetPlayer(\"Atreides2\")\
- Mercenaries = Player.GetPlayer(\"Mercenaries\")\
- Ordos = Player.GetPlayer(\"Ordos\")\
- Ordos2 = Player.GetPlayer(\"Ordos2\")\
- \
- Trigger.AfterDelay(DateTime.Minutes(6), function()\
- local units = Reinforcements.ReinforceWithTransport(Atreides, \"carryall.reinforce\", AtreidesReinforcements, AtreidesPath, { AtreidesPath[1] })[2]\
- Media.PlaySpeechNotification(Atreides, \"Reinforce\")\
- Reinforcements.Reinforce(Atreides, AtreidesReinforcements, AtreidesEntryPath)\
- end) \
- Trigger.AfterDelay(DateTime.Minutes(7), function()\
- local units = Reinforcements.ReinforceWithTransport(Atreides2, \"carryall.reinforce\", Atreides2Reinforcements, Atreides2Path, { Atreides2Path[1] })[2]\
- Media.PlaySpeechNotification(Atreides2, \"Reinforce\")\
- Reinforcements.Reinforce(Atreides2, Atreides2Reinforcements, Atreides2EntryPath)\
- end) \
- Trigger.AfterDelay(DateTime.Minutes(14), function()\
- local units = Reinforcements.ReinforceWithTransport(Ordos, \"carryall.reinforce\", OrdosReinforcements, OrdosPath, { OrdosPath[1] })[2]\
- Media.PlaySpeechNotification(Ordos, \"Reinforce\")\
- Reinforcements.Reinforce(Ordos, OrdosReinforcements, OrdosEntryPath)\
- end)\
- Trigger.AfterDelay(DateTime.Minutes(5), function()\
- local units = Reinforcements.ReinforceWithTransport(Mercenaries, \"carryall.reinforce\", MercenariesReinforcements, MercenariesPath, { MercenariesPath[1] })[2]\
- Media.PlaySpeechNotification(Mercenaries, \"Reinforce\")\
- Reinforcements.Reinforce(Mercenaries, MercenariesReinforcements, MercenariesEntryPath)\
- end) \
- end "
- script = Lua function '?' (defined at line 0 of chunk "A5.lua"])
- err = nil
- Error message
- ===============
- /usr/lib/openra//lua/sandbox.lua:150: [string "A5.lua"]:8: attempt to index global 'OrdosRally' (a nil value)
- ===============
- at OpenRA.Scripting.ScriptContext.FatalError(System.String message)
- at System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod , System.Object , System.Object[] , System.Exception ByRef )
- at System.Reflection.MonoMethod.Invoke(System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
- at System.Reflection.MethodBase.Invoke(System.Object obj, System.Object[] parameters)
- at Eluant.LuaRuntime+MethodWrapper.Invoke(System.Object[] parms)
- at Eluant.LuaRuntime.MakeManagedCall(IntPtr state, Eluant.MethodWrapper wrapper)
- at Eluant.LuaRuntime.MethodWrapperCallCallback(IntPtr state)
- at Eluant.LuaRuntime.MethodWrapperCallCallbackWrapper(IntPtr state)
- at Eluant.LuaApi.lua_pcall(IntPtr , Int32 , Int32 , Int32 )
- at Eluant.LuaRuntime.Call(IList`1 args)
- at Eluant.LuaRuntime.Call(Eluant.LuaFunction fn, IList`1 args)
- at Eluant.LuaFunction.Call(IList`1 args)
- at Eluant.LuaFunction.Call(Eluant.LuaValue[] args)
- at OpenRA.Scripting.ScriptContext..ctor(OpenRA.World world, OpenRA.Graphics.WorldRenderer worldRenderer, IEnumerable`1 scripts)
- at OpenRA.Mods.Common.Scripting.LuaScript.WorldLoaded(OpenRA.World world, OpenRA.Graphics.WorldRenderer worldRenderer)
- at OpenRA.World.LoadComplete(OpenRA.Graphics.WorldRenderer wr)
- at OpenRA.Game.StartGame(System.String mapUID, WorldType type)
- at OpenRA.Network.UnitOrders.ProcessOrder(OpenRA.Network.OrderManager orderManager, OpenRA.World world, Int32 clientId, OpenRA.Order order)
- at OpenRA.Network.OrderManager.TickImmediate()
- at OpenRA.Sync+<CheckSyncUnchanged>c__AnonStorey0.<>m__0()
- at OpenRA.Sync.CheckSyncUnchanged(OpenRA.World world, System.Func`1 fn)
- at OpenRA.Sync.CheckSyncUnchanged(OpenRA.World world, System.Action fn)
- at OpenRA.Game.InnerLogicTick(OpenRA.Network.OrderManager orderManager)
- at OpenRA.Game.LogicTick()
- at OpenRA.Game.Loop()
- at OpenRA.Game.Run()
- at OpenRA.Program.Run(System.String[] args)
- at OpenRA.Program.Main(System.String[] args)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement