jessefreeman / GameCreator

A public project to share Game Creator tools, resources, documentation and log bugs.
Microsoft Public License
32 stars 3 forks source link

Lua file collision #375

Closed PixelVision8 closed 6 years ago

PixelVision8 commented 6 years ago

Add utils.lua file to the project and it had a collision with the utils.lua file from the UI framework. These files need to be namespaced better so we don't have conflicts with users trying to add their own lua files with similar names in their project folder.

image

ArgumentException: An element with the same key already exists in the dictionary.
System.Collections.Generic.Dictionary`2<string, byte[]>.Add (string,byte[]) <0x002b0>
BaseRunner.ImportFilesFromDir (string,System.Collections.Generic.Dictionary`2<string, byte[]>&) (at Assets/UnityRunner/Assets/Runner/Scripts/BaseRunner.cs:183)
GameCreator.GameCreatorRunner.ProcessFiles (System.Collections.Generic.Dictionary`2<string, byte[]>) (at Assets/GameCreator/Scripts/GameCreator/GameCreatorRunner.cs:387)
BaseRunner.LoadFromDir (string) (at Assets/UnityRunner/Assets/Runner/Scripts/BaseRunner.cs:168)
GameCreator.GameCreatorRunner.Load (string,GameCreator.RunnerMode,System.Collections.Generic.Dictionary`2<string, string>,bool) (at Assets/GameCreator/Scripts/GameCreator/GameCreatorRunner.cs:331)
GameCreator.GameCreatorRunner.StartNextPreload () (at Assets/GameCreator/Scripts/GameCreator/GameCreatorRunner.cs:588)
GameCreator.Services.RunnerService.StartNextPreload () (at Assets/GameCreator/Scripts/GameCreator/Services/RunnerService.cs:233)
(wrapper dynamic-method) System.Runtime.CompilerServices.ExecutionScope.lambda_method (System.Runtime.CompilerServices.ExecutionScope,object,object[]) <IL 0x0000b, 0x000a6>
MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute (MoonSharp.Interpreter.Script,object,MoonSharp.Interpreter.ScriptExecutionContext,MoonSharp.Interpreter.CallbackArguments) (at Assets/UnityRunner/Assets/Plugins/MoonSharp/Interpreter/Interop/StandardDescriptors/ReflectionMemberDescriptors/MethodMemberDescriptor.cs:195)
MoonSharp.Interpreter.Interop.FunctionMemberDescriptorBase/<GetCallback>c__AnonStorey0.<>m__0 (MoonSharp.Interpreter.ScriptExecutionContext,MoonSharp.Interpreter.CallbackArguments) (at Assets/UnityRunner/Assets/Plugins/MoonSharp/Interpreter/Interop/StandardDescriptors/MemberDescriptors/FunctionMemberDescriptorBase.cs:83)
MoonSharp.Interpreter.CallbackFunction.Invoke (MoonSharp.Interpreter.ScriptExecutionContext,System.Collections.Generic.IList`1<MoonSharp.Interpreter.DynValue>,bool) (at Assets/UnityRunner/Assets/Plugins/MoonSharp/Interpreter/DataTypes/CallbackFunction.cs:58)
MoonSharp.Interpreter.Execution.VM.Processor.Internal_ExecCall (int,int,MoonSharp.Interpreter.CallbackFunction,MoonSharp.Interpreter.CallbackFunction,bool,string,MoonSharp.Interpreter.DynValue) (at Assets/UnityRunner/Assets/Plugins/MoonSharp/Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:720)
MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop (int) (at Assets/UnityRunner/Assets/Plugins/MoonSharp/Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs:115)
MoonSharp.Interpreter.Execution.VM.Processor.Call (MoonSharp.Interpreter.DynValue,MoonSharp.Interpreter.DynValue[]) (at Assets/UnityRunner/Assets/Plugins/MoonSharp/Interpreter/Execution/VM/Processor/Processor.cs:67)
MoonSharp.Interpreter.Script.Call (MoonSharp.Interpreter.DynValue,MoonSharp.Interpreter.DynValue[]) (at Assets/UnityRunner/Assets/Plugins/MoonSharp/Interpreter/Script.cs:483)
MoonSharp.Interpreter.Script.Call (MoonSharp.Interpreter.DynValue,object[]) (at Assets/UnityRunner/Assets/Plugins/MoonSharp/Interpreter/Script.cs:502)
MoonSharp.Interpreter.Script.Call (object,object[]) (at Assets/UnityRunner/Assets/Plugins/MoonSharp/Interpreter/Script.cs:525)
PixelVisionRunner.Chips.LuaGameChip.Update (single) (at Assets/UnityRunner/Assets/Runner/Scripts/Chips/LuaGameChip.cs:58)
PixelVisionSDK.Chips.ChipManager.Update (single) (at Assets/UnityRunner/Assets/PixelVisionSDK/Engine/Chips/ChipManager.cs:112)
PixelVisionSDK.PixelVisionEngine.Update (single) (at Assets/UnityRunner/Assets/PixelVisionSDK/Engine/PixelVisionEngine.cs:190)
BaseRunner.Update () (at Assets/UnityRunner/Assets/Runner/Scripts/BaseRunner.cs:498)
GameCreator.GameCreatorRunner.Update () (at Assets/GameCreator/Scripts/GameCreator/GameCreatorRunner.cs:822)
PixelVision8 commented 6 years ago

This was fixed.