RoslynScripts\unity_csc.bat not found

Hi,

I have a weird bug when I build the game. Everything worked fine until I plugged in steamworks ( FizzySteamworks v4.4) and updated mirror to version 40.0.9 - June 08, 2021. My code is the same as in our repo.

This is my error:
Exception: ‘E:\programy\Unity\2020.1.13f1\Editor\Data\Tools\RoslynScripts\unity_csc.bat’ not found. Is your Unity installation corrupted?
UnityEditor.Scripting.Compilers.MicrosoftCSharpCompiler.ThrowCompilerNotFoundException (System.String path) (at <8f44d91b549e47c9883e180579f26ef6>:0)
UnityEditor.Scripting.Compilers.MicrosoftCSharpCompiler.BeginCompiling () (at <8f44d91b549e47c9883e180579f26ef6>:0)
UnityEditor.Scripting.ScriptCompilation.CompilationTask.QueuePendingAssemblies () (at <8f44d91b549e47c9883e180579f26ef6>:0)
UnityEditor.Scripting.ScriptCompilation.CompilationTask.Poll () (at <8f44d91b549e47c9883e180579f26ef6>:0)
UnityEditor.Scripting.ScriptCompilation.EditorCompilation.CompileScriptAssemblies (UnityEditor.Scripting.ScriptCompilation.ScriptAssembly scriptAssemblies, UnityEditor.Scripting.ScriptCompilation.ScriptAssemblySettings scriptAssemblySettings, System.String tempBuildDirectory, UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions options, UnityEditor.Scripting.ScriptCompilation.CompilationTaskOptions compilationTaskOptions, UnityEditor.Scripting.ScriptCompilation.EditorCompilation+CompileScriptAssembliesOptions compileScriptAssembliesOptions) (at <8f44d91b549e47c9883e180579f26ef6>:0)
UnityEditor.Scripting.ScriptCompilation.EditorCompilation.CompileScripts (UnityEditor.Scripting.ScriptCompilation.ScriptAssemblySettings scriptAssemblySettings, System.String tempBuildDirectory, UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions options, UnityEditor.Scripting.ScriptCompilation.CompilationTaskOptions compilationTaskOptions, UnityEditor.Scripting.ScriptCompilation.EditorBuildRules+TargetAssembly& notCompiledTargetAssemblies, System.String& notCompiledScripts) (at <8f44d91b549e47c9883e180579f26ef6>:0)
UnityEditor.Scripting.ScriptCompilation.EditorCompilation.CompileScripts (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions options, UnityEditor.BuildTargetGroup platformGroup, UnityEditor.BuildTarget platform, System.String extraScriptingDefines, UnityEditor.Scripting.ScriptCompilation.CompilationTaskOptions compilationTaskOptions) (at <8f44d91b549e47c9883e180579f26ef6>:0)
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface+<>c__DisplayClass38_0.b__0 () (at <8f44d91b549e47c9883e180579f26ef6>:0)
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface.EmitExceptionAsError[T] (System.Func`1[TResult] func, T returnValue) (at <8f44d91b549e47c9883e180579f26ef6>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

I have few more, but they are nonsense for me - I do not have any compiler errors. And I tried to change Unity version to higher, but nothing happens.

This is baffling… What were the other errors? Can you send screenshots?

Sure.

Here I switched to kcp (disabled steam at network manager & set useSteam to false at MainMenu.cs. I got no errors in Play mode, but this what happens, when I click “build”

When I switch to steam, on the other hand, I got this error:
[Steamworks.NET] SteamAPI_Init() failed. Refer to Valve’s documentation or the comment above this line for more information.
UnityEngine.Debug:LogError(Object, Object)
SteamManager:Awake() (at Assets/Mirror/Runtime/Transport/FizzySteamworks/Scripts/Steamworks.NET/SteamManager.cs:137)

The error looks like you just need to reinstall unity, because there is a missing file.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms