Hey All,
Once again I have a question regarding scripting. In this script I'm creating a container with:
var id = generator.AddContainer(system_id, coords.x, coords.y, "crate_01", "droplist_prefab_cargo_01");
This successfully creates the container and it has an item from the droplist. Then I'm adding to the contents of the cointainer:
generator.AddItemToSpecifiedContainer(id, "ore_glepsite", 100);
And am getting the following errors
Exception System.NullReferenceException: Object reference not set to an instance of an object.
-------------------------stack-------------------------
at rnA5O51oAmWki8OOWMc.aQgYqT15sxbFCsxqoXP.MKGC106AoI(String , UInt16 , UInt32 )
at AtomicTorch.SpaceRPG.Server.Scripting.GlobalScopes.ScopeGenerator.AddItemToSpecifiedContainer(Int32 container_id, String item_type, Int32 quantity)
at binder_for_AtomicTorch.SpaceRPG.Server.Scripting.GlobalScopes.ScopeGenerator.AddItemToSpecifiedContainer(ScriptEngine , Object , Object[] )
at Jurassic.Compiler.Binder.Call(ScriptEngine engine, Object thisObject, Object[] arguments)
at Jurassic.Library.ClrFunction.CallLateBound(Object thisObject, Object[] arguments)
at Jurassic.Library.FunctionInstance.CallWithStackTrace(String path, String function, Int32 line, Object thisObject, Object[] argumentValues)
at LDTOnShipDestroyedHandler(ScriptEngine , Scope , Object , FunctionInstance , Object[] )
at Jurassic.Library.UserDefinedFunction.CallLateBound(Object thisObject, Object[] argumentValues)
at Jurassic.ScriptEngine.CallGlobalFunction(String functionName, Object[] argumentValues)
at nU9kl611aPOvHoTVi1k.VbN3XJ1PDhia7P4WrTi.fKNZ6qRgJm(String , Object )
Any ideas,
-Loudent
Once again I have a question regarding scripting. In this script I'm creating a container with:
var id = generator.AddContainer(system_id, coords.x, coords.y, "crate_01", "droplist_prefab_cargo_01");
This successfully creates the container and it has an item from the droplist. Then I'm adding to the contents of the cointainer:
generator.AddItemToSpecifiedContainer(id, "ore_glepsite", 100);
And am getting the following errors
Exception System.NullReferenceException: Object reference not set to an instance of an object.
-------------------------stack-------------------------
at rnA5O51oAmWki8OOWMc.aQgYqT15sxbFCsxqoXP.MKGC106AoI(String , UInt16 , UInt32 )
at AtomicTorch.SpaceRPG.Server.Scripting.GlobalScopes.ScopeGenerator.AddItemToSpecifiedContainer(Int32 container_id, String item_type, Int32 quantity)
at binder_for_AtomicTorch.SpaceRPG.Server.Scripting.GlobalScopes.ScopeGenerator.AddItemToSpecifiedContainer(ScriptEngine , Object , Object[] )
at Jurassic.Compiler.Binder.Call(ScriptEngine engine, Object thisObject, Object[] arguments)
at Jurassic.Library.ClrFunction.CallLateBound(Object thisObject, Object[] arguments)
at Jurassic.Library.FunctionInstance.CallWithStackTrace(String path, String function, Int32 line, Object thisObject, Object[] argumentValues)
at LDTOnShipDestroyedHandler(ScriptEngine , Scope , Object , FunctionInstance , Object[] )
at Jurassic.Library.UserDefinedFunction.CallLateBound(Object thisObject, Object[] argumentValues)
at Jurassic.ScriptEngine.CallGlobalFunction(String functionName, Object[] argumentValues)
at nU9kl611aPOvHoTVi1k.VbN3XJ1PDhia7P4WrTi.fKNZ6qRgJm(String , Object )
Any ideas,
-Loudent