1. Not entirely sure if it is just me being completely dumb and making a facepalm worthy mistake, but I cannot for the life of me figure out. Is there currently any way you can directly communicate to a MySQL database, or use any of the Oxide.Ext namespace classes? Because on compilation it simply tells me that Oxide namespace doesn't contain a namespace called "Ext". Is it disabled or am I being completely dumb?
     
  2. Wulf

    Wulf Community Admin

    Without seeing your code, it's hard to tell you exactly where you are going wrong. If you'd like to see some working examples of MySQL/SQLite, I'd recommend searching or seeing each extension's Overview at http://oxidemod.org/extensions/.
     
  3. @Wulf Doesn't matter what code, the compiler just doesn't know that the Oxide.Ext namespace exists.
    Code:
    using Oxide.Ext;namespace Oxide.Plugins {    [Info("TestPlugin", "Vilsol", 0.1)]
        [Description("This is what the plugin does")]
        public class TestPlugin : RustPlugin {    }}
    Error: http://i.imgur.com/YL4tsaH.png
     
  4. Wulf

    Wulf Community Admin

    There is no Oxide.Ext, you need to call things that actually exist like shown in the examples I linked.
     
  5. You don't understand the main problem. The code above should compile just fine. The compiler is not aware of those libraries, no matter in what way you try, the compiler has not loaded any of the libraries that are extensions of the Oxide system under the Ext namespace.

    Also, your examples are lua and python.
     
  6. Wulf

    Wulf Community Admin

    It will compile once you remove the invalid using statement. The SQLite extension has a C# example that shows proper usage.
     
  7. how about MySQL?
     
  8. Wulf

    Wulf Community Admin

    Oxide.Ext.MySql is the correct using statement to use.
     
  9. Right, figured it out, if anyone else is having this problem, try this code:

    Code:
    using Oxide.Core;
    using Oxide.Ext.MySql;namespace Oxide.Plugins {    [Info("TestPlugin", "Vilsol", 0.1)]
        [Description("This is what the plugin does")]
        public class Arsenal : RustPlugin {        private readonly Oxide.Ext.MySql.Libraries.MySql mySQL = Interface.GetMod().GetLibrary<Oxide.Ext.MySql.Libraries.MySql>("MySql");
            private Connection connection;        void Loaded() {
                connection = mySQL.OpenDb("host", 3306, "database", "user", "pass");]
            }    }}
     
  10. Wulf

    Wulf Community Admin

    http://oxidemod.org/threads/having-trouble-with-mysql-c.9255/#post-97875 ;)