1. apocdev submitted a new resource:

    AutoLearnBlueprints - Automatically learns specific blueprints for online players

    Read more about this resource...
     
  2. [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 ?
     
  3. 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..
     
  4. What did you change? I tested it pretty extensively (as extensive as such a simple plugin goes...) and didn't have any issues with learning BPs.
     
  5. 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
  6. Well I was kinda joking though. It's that if I changed the items on the config file I wouldn't learn those items at all, then I had people saying they had the learn all the default items, which was pretty odd since I changed them to my own, so all I did was editing the default items in the plugin code, deleted the old config and ran the plugin again. This worked for me.
     
  7. Wulf

    Wulf Community Admin

    Are you using the latest version?
     
  8. EDIT: Nevermind, thought it was for me ;O
     
  9. Wulf

    Wulf Community Admin

    Okay Comixfan. ;)
     
  10. apocdev updated AutoLearnBlueprints with a new update entry:

    Config Fix & Stripping

     
  11. Yes. I always do :)
     
  12. Out of date? Why I'm download 1.0.0.2 but in game show 1.0.0 ?
     
  13. 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
     
  14. Wulf

    Wulf Community Admin

    Use the Oxide release, else update to the latest snapshot. The error is not related to this plugin.
     
  15. I was running the latest release but just installed it again to see what happened. I still get this only with this one plugin? Unload this one and all goes away:
    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
     
  16. Wulf

    Wulf Community Admin

    Your previous error was not from the latest release, so it's likely your host is providing you with development snapshots.

    The error in this post appears to be from an invalid/wrongly configured configuration file.
     
  17. 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
  18. Not working with new update. getting a compile error.