EcoModKit icon indicating copy to clipboard operation
EcoModKit copied to clipboard

Flag example seems out of date

Open andykorth opened this issue 3 years ago • 0 comments

I tried using the example flag mod in Eco 0.9.7.7-beta and ran unto several compile issues after packaging it with Unity. The server side code in FlagObject.cs fails to compile with the following:

System.Exception: C:\Users\kortham\Desktop\EcoServerPC_v0.9.7.7-beta\Mods\UserCode\AndyFlag\FlagObject.cs(51,75): error CS0103: The name 'InPageTooltip' does not exist in the current context
   at Eco.ModKit.RoslynCompiler.HandleCompilerError(ImmutableArray`1 diagnostics)
   at Eco.ModKit.RoslynCompiler.Compile(AssemblyLoadContext assemblyContext)
   at Eco.ModKit.RoslynCompiler..ctor(AssemblyLoadContext assemblyContext, String modsDirectory, String modsAssemblyPath)
   at Eco.ModKit.RoslynCompiler..ctor(String modsDirectory, String modsAssemblyPath)
   at Eco.ModKit.ModKitPlugin..ctor()
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
Outer Exceptions:
Exception has been thrown by the target of an invocation.

Thank you!

andykorth avatar Feb 02 '23 05:02 andykorth