getting this error file, it was working until i messed with one of the cooking script files.


Scripts: Compiling C# scripts...Error:
System.ArgumentException: Path is empty
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00027] in <383bd71b6d054ccb9f30e1332ba5afc1>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <383bd71b6d054ccb9f30e1332ba5afc1>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.File.OpenRead (System.String path) [0x00000] in <383bd71b6d054ccb9f30e1332ba5afc1>:0
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00023] in <eeea71827a97498eaae6e6ab9e96cfd4>:0
at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00006] in <eeea71827a97498eaae6e6ab9e96cfd4>:0
at Server.ScriptCompiler.CompileCSScripts (System.Boolean debug, System.Boolean cache, System.Reflection.Assembly& assembly) [0x001c8] in <7011e3ca9c46407a881d569c2651574c>:0
at Server.ScriptCompiler.Compile (System.Boolean debug, System.Boolean cache) [0x00034] in <7011e3ca9c46407a881d569c2651574c>:0
at Server.Core.Main (System.String[] args) [0x004c4] in <7011e3ca9c46407a881d569c2651574c>:0
This exception is fatal, press return to exit
 
what did you edit and such? Post a copy of your cooking script maybe?
 
I am very sure you use mono, and you did update it since the last compile. If I recall right it was this.
In ScriptCompiler.cs

change
Code:
CompilerResults results = provider.CompileAssemblyFromFile( parms, "" );
to
Code:
CompilerResults results = provider.CompileAssemblyFromFile( parms, files );

dont forget to recompile your server after that.
 
sorry if it took so long, dealing with personal stuff. but i edited this script from cooking expansion, server went crazy, put back original file, same thing.

here is the milk script i edited--------
 

Attachments

  • Milk_Magicitems.cs
    3.1 KB · Views: 1
When you try something someone suggests and it breaks, you should post the errors produced by that instead of just going back to what was broken before.

Are you running on linux with mono? If so, what version of mono? I had the same error about empty path after updating mono to the latest version, and editing ScriptCompiler.cs in the SERVER core, then recompiling the server, fixed it. If it didn't work for you, you should post the new errors you received, as it should have worked. Pretty sure your milk file wouldn't cause the script compiler to crash right off like that with that error, so I doubt that's the problem.
 
Back