StrangeLoopGames / EcoIssues

131 stars 21 forks source link

Eco Server 0.7.2.0 beta staging-adf7002a - Critical Fail on Dedicated Server Start #5317

Closed Nashable closed 6 years ago

Nashable commented 6 years ago

Taken from the console after patching.

[55:18] Eco Server 0.7.2.0 beta staging-adf7002a [55:18] Server Initialization... [55:18] Starting ModKitPlugin... [55:18] Compiling mods... Finished in 411.3ms [55:19] Mods recompiled with errors. [55:19] Error in Torch at 45: Partial declarations of 'Eco.Mods.TechTree.TorchItem' must not specify different base classes (CS0263)

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Error in Torch at 45: Partial declarations of 'Eco.Mods.TechTree.TorchItem' must not specify different base classes (CS0263)

at Eco.ModKit.RuntimeCompiler.HandleCompilerError(CompilerResults results) at Eco.ModKit.RuntimeCompiler.LoadOrCompileMods() at Eco.ModKit.ModKitPlugin..ctor(ManualResetEvent doneEvent) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, Object[] args) at Eco.Server.PluginManager.AddPlugin(Type pluginType, Object[] p) at Eco.Server.PluginManager..ctor() at Eco.Server.Startup.Start(String[] args) at Eco.Server.MainClass.Main(String[] args)

Nashable commented 6 years ago

Looks like rolling these two files back fixed the issue and allowed the server to reboot.

Previous version of the working .cs files torch.zip

MarjieAVolk commented 6 years ago

Think this has been fixed.

MarjieAVolk commented 6 years ago

Oh, I think you may actually be having a problem with the 'mods' folder not being regenerated (this can happen even on a server with no mods). You can try going into the Eco Server installation folder and deleting the "Mods" folder.

Nashable commented 6 years ago

Correct, deleting mods also worked. I wonder if the server.exe could rename the mods folder and restart if there was a bad mods build? At least a command line option to make dedicated server management easier.

metachronism commented 6 years ago

closing this, best to start clean when updating server builds for this reason