jessefreeman / GameCreator

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

No game in the workspace folder throw error #146

Closed PixelVision8 closed 7 years ago

PixelVision8 commented 7 years ago

Looks like loading up the Game Creator with no game being edited throws an error about not being able to find the info.json file.

FileNotFoundException: Could not find file "/Users/jessefreeman/Dropbox/Dev/Projects/PixelVision8/GameCreatorSource/Resources/Workspaces/v0.7.5/Workspace/Sandbox/info.json".
System.IO.FileStream..ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool,System.IO.FileOptions) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:305)
System.IO.FileStream..ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) <IL 0x0000d, 0x00080>
(wrapper remoting-invoke-with-check) System.IO.FileStream..ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) <IL 0x0001e, 0x000f2>
System.IO.File.OpenRead (string) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:363)
GameCreator.Services.FileSystemService.ReadTextFromFile (string) (at Assets/GameCreator/Scripts/GameCreator/Services/FileSystemService.cs:98)
GameCreator.Services.WorkspaceService.GetGameNameFromFile () (at Assets/GameCreator/Scripts/GameCreator/Services/WorkspaceService.cs:977)
GameCreator.Services.RunnerService.ReadGameName (bool) (at Assets/GameCreator/Scripts/GameCreator/Services/RunnerService.cs:108)
(wrapper dynamic-method) System.Runtime.CompilerServices.ExecutionScope.lambda_method (System.Runtime.CompilerServices.ExecutionScope,object,object[]) <IL 0x00020, 0x00101>
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:191)
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) (at Assets/UnityRunner/Assets/Plugins/MoonSharp/Interpreter/Script.cs:442)
MoonSharp.Interpreter.Script.Call (object) (at Assets/UnityRunner/Assets/Plugins/MoonSharp/Interpreter/Script.cs:513)
PixelVisionRunner.Chips.LuaGameChip.Init () (at Assets/UnityRunner/Assets/Runner/Scripts/Chips/LuaGameChip.cs:45)
PixelVisionSDK.Chips.ChipManager.Init () (at Assets/UnityRunner/Assets/PixelVisionSDK/Engine/Chips/ChipManager.cs:96)
PixelVisionSDK.PixelVisionEngine.RunGame () (at Assets/UnityRunner/Assets/PixelVisionSDK/Engine/PixelVisionEngine.cs:173)
BaseRunner.RunGame () (at Assets/UnityRunner/Assets/Runner/Scripts/BaseRunner.cs:359)
GameCreator.GameCreatorRunner.RunGame () (at Assets/GameCreator/Scripts/GameCreator/GameCreatorRunner.cs:719)
BaseRunner.PreloaderComplete () (at Assets/UnityRunner/Assets/Runner/Scripts/BaseRunner.cs:318)
BaseRunner/<PreloaderNextStep>c__Iterator1.MoveNext () (at Assets/UnityRunner/Assets/Runner/Scripts/BaseRunner.cs:304)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator,intptr) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
PixelVision8 commented 7 years ago

Looks like the new tool bar is not reading the name from the correct place. Since it's trying to load it from the game folder and no game exists it will crash or always be wrong. Need to have the tool itself set the title.

PixelVision8 commented 7 years ago

The menu bar is now correctly loading the game name from the meta data.