StrangeLoopGames / EcoModKit

Eco Modkit
https://docs.play.eco
69 stars 25 forks source link

Flag example seems out of date #66

Open andykorth opened 1 year ago

andykorth commented 1 year ago

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!