1. So currently i'm trying to make an extension. And i can't use it. I don't understand what i am doing wrong.
    Code:
    using Oxide.Core;
    using Oxide.Core.Extensions;namespace Oxide.Ext.MapUtils
    {
        public class MapUtilsExtension : Extension
        {
            public override string Name => "MapUtils";
            public override string Author => "me";
            public override VersionNumber Version => new VersionNumber(1, 0, 0);        private Libraries.MapUtils map;        public MapUtilsExtension(ExtensionManager manager) : base(manager)
            {
            }        public override void Load() => Manager.RegisterLibrary("MapUtils", map = new Libraries.MapUtils());
        }
    }
    Code:
    using System;
    using System.IO;using Oxide.Core;
    using Oxide.Core.Libraries;namespace Oxide.Ext.MapUtils.Libraries
    {
        public class MapUtils : Library
        {
            // methods
        }
    }
    My plugin:
    Code:
    using Oxide.Core;namespace Oxide.Plugins
    {
        [Info("Something", "Something", "0.0.1", ResourceId = 000)]
        [Description("This is what the plugin does")]
        public class Something: RustPlugin
        {
            private Ext.MapUtils.Libraries.MapUtils map = Interface.GetMod().GetLibrary<Ext.MapUtils.Libraries.MapUtils>();        void OnServerInitialized()
            {
                    map.SomeMethod();
            }
        }
    }
    And i get an error:
    Code:
    [Oxide] 17:55 [Error] Error while compiling Something.cs(10,15): error CS0234: The type or namespace name `MapUtils' does not exist in the namespace `Oxide.Ext'. Are you missing an assembly reference?
    What's wrong?

    P.S. Yes i copied my extension dll to "Managed" folder. Extension loads fine "[Oxide] 18:46 [Info] Loaded extension MapUtils v1.0.0"
     
    Last edited by a moderator: Oct 11, 2016
  2. Any thoughts?
     
  3. Wulf

    Wulf Community Admin