apocdev submitted a new resource:
AutoLearnBlueprints - Automatically learns specific blueprints for online players
Read more about this resource...
AutoLearn [Unmaintained]
Discussion in 'Plugin Support' started by apocdev, May 25, 2015.
-
[5/26/2015 1:48:12 AM] [Oxide] 1:48 AM [Error] Failed to call hook 'OnServerInitialized' on plugin 'AutoLearnBlueprints' (InvalidCastException: Cannot cast from source type to destination type.)
i get this why ? -
apocdev updated AutoLearnBlueprints with a new update entry:
Force load the config on server initialization.
-
Well I had no errors but for some reason the plugin wouldn't give the BPs I added on the config file, so took an arrow to the knee and changed the source, last thing I know, its working..
-
-
Got the following error after uploading to my server. Haven't even looked at the config file yet!
Code:[Oxide] 10:58 PM [Info] AutoLearnBlueprints was compiled successfully in 141ms [Oxide] 10:58 PM [Info] Loaded plugin AutoLearnBlueprints v1.0.0 by ApocDev [Oxide] 10:58 PM [Error] Failed to call hook 'OnServerInitialized' on plugin 'AutoLearnBlueprints' (InvalidCastException: Cannot cast from source type to destination type.) [Oxide] 10:58 PM [Debug] at Oxide.Plugins.AutoLearnBlueprints.OnServerInitialized () [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Last edited by a moderator: May 26, 2015 -
-
Wulf Community Admin
-
-
Wulf Community Admin
-
apocdev updated AutoLearnBlueprints with a new update entry:
Config Fix & Stripping
-
-
I added some items to the config but its not giving the players or admins the blueprints only the default 3 in the config but im getting no errors and this is the item list im using: https://docs.google.com/spreadsheets/d/1L3T5AXFw9Uxda-56wjVA0muisrbVAi3NgplU_rShHTY/edit#gid=0
-
Out of date? Why I'm download 1.0.0.2 but in game show 1.0.0 ?
-
I get the same thing back and this error:
Code:[Oxide] 7:19 PM [Error] Exception while calling NextTick callback (InvalidOperationException: Process has not been started.) [Oxide] 7:19 PM [Debug] at System.Diagnostics.Process.get_HasExited () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:get_HasExited () at Oxide.Plugins.PluginCompiler.CheckCompiler () [0x00000] in <filename unknown>:0 at Oxide.Plugins.PluginCompiler.Compile (System.Collections.Generic.List`1 plugins, System.Action`2 callback) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPluginLoader.CompileAssembly (Oxide.Plugins.CompilablePlugin[] plugs) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPluginLoader.<CompilationRequested>m__0 () [0x00000] in <filename unknown>:0 at Oxide.Core.OxideMod.OnFrame (Single delta) [0x00000] in <filename unknown>:0
-
Wulf Community Admin
-
Code:[Oxide] 7:50 PM [Error] Failed to call hook 'OnPlayerInit' on plugin 'AutoLearnBlueprints' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 7:50 PM [Debug] at Oxide.Core.Configuration.DynamicConfigFile.ConvertValue (System.Object value, System.Type destinationType) [0x00000] in <filename unknown>:0 at Oxide.Core.Configuration.DynamicConfigFile.ConvertValue[List`1] (System.Object value) [0x00000] in <filename unknown>:0 at Oxide.Core.Configuration.DynamicConfigFile.Get[List`1] (System.String[] path) [0x00000] in <filename unknown>:0 at Oxide.Plugins.AutoLearnBlueprints.get_LearnBlueprints () [0x00000] in <filename unknown>:0 at Oxide.Plugins.AutoLearnBlueprints.<LearnDefaultBlueprints>m__0 (.ItemBlueprint bp) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[ItemBlueprint].MoveNext () [0x00000] in <filename unknown>:0 at System.Collections.Generic.List`1[ItemBlueprint].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0 at System.Collections.Generic.List`1[ItemBlueprint]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.ToList[ItemBlueprint] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 at Oxide.Plugins.AutoLearnBlueprints.LearnDefaultBlueprints (.BasePlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.AutoLearnBlueprints.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
-
Wulf Community Admin
The error in this post appears to be from an invalid/wrongly configured configuration file. -
Well that makes sense. The two were confusing. I will rewrite the config file and see what happens then. Thanks!
Found problem was "surveycharge" this was what I picked up as the correct name but it obviously is not. I need an up to date list of the names actually used.
Works now without errors.
Thanks Wulf!Last edited by a moderator: Jun 30, 2015 -
Not working with new update. getting a compile error.