1. This seems to be an issue when the plugin is loaded for the very first time, feel free to use the attached version that resolves this issue :)
     

    Attached Files:

  2. Works! Thanks Mughisi :)
     
  3. Getting this error:

    [4/8/2015 11:23:16 PM] [Oxide] 11:23 PM [Error] Failed to call hook 'OnPlayerSpawn' on plugin 'Better Start' (ArgumentException: failed to convert parameters)

    after getting this
    1. I tried reconfiguring the config file - didn't work
    2. Downloading the plugin again - didn't work
    3. removing the plugin and config file - SAME ERROR? How?
    Can anyone help me with this one?
     
  4. Wulf

    Wulf Community Admin

    Did you try this version? http://oxidemod.org/threads/better-start.6731/page-3#post-75655
     
  5. Seem to be pulling this error now:

    Code:
    [Oxide] 1:08 AM [Error] Failed to call hook 'OnPlayerSpawn' on plugin 'Better Start' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 1:08 AM [Debug]   at Oxide.Plugins.BetterStart.teachPlayerBlueprints (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterStart.OnPlayerSpawn (.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 
    The reason I like this plugin is because I can set the player at max HP/metabolism on spawn, but also being able to add learned blueprints (I know Kits can essentially do BPs). I've been trying to learn a bit more about the plugins, but I'm not particularly great with code. I am assuming it an issue with the following code?

    Code:
            private void teachPlayerBlueprints(BasePlayer player)
            {
                PlayerBlueprints blueprints = player.blueprints;
                foreach (string name in config.startingBlueprints)
                {
                    Item item = ItemManager.CreateByName(name, 1);
                    item.isBlueprint = true;
                    blueprints.Learn(item.info);
                }
            }
     
    Last edited by a moderator: Apr 10, 2015
  6. [Warning] BetterStart plugin is using deprecated hook: OnPlayerSpawn
     
  7. Code:
    [Oxide] 11:57 AM [Debug]   at Oxide.Plugins.BetterStart.giveItem (.BasePlayer player, System.String inventoryName, Oxide.Plugins.itemMeta meta) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterStart.givePlayerStartingItems (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterStart.OnPlayerSpawn (.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
     
  8. Still get this. Nothing?
     
  9. Wulf

    Wulf Community Admin

  10. is there a plugin like this that is being supported? I guess it would be using the autokit feature of kits and metabolism control...
     
    Last edited by a moderator: May 1, 2015