Solved Using C++ for plugins

Discussion in 'Rust Development' started by timish.bit, May 15, 2015.

  1. Hi,
    My name is Ricardo.
    My question is : Can I create a plugin in c++ ?
    I see the oxide run correctly in c#, javascript and others... but in c++ too?

    Regards
     
  2. Yeah ... many coders are making plugins in C# u can download their plugins to get an example

    Copy from http://oxidemod.org/downloads/oxide-for-rust-experimental.714/

    • New plugin languages - plugins can now be written in C#/CSharp, Lua, JavaScript, or Python! While C# will be the fastest as it's essentially native code, you're free to write in your language of choice!
     
  3. C# and C++ are two different languages @PaiN.

    and @timish.bit there is no support for any other languages than those listed at the download page (Lua, JavaScript, Python and C#).
     
  4. OH he said C++ .... sry i just woke up ..
     
  5. Will C++ ever be able to be used for plugins? I wanna learn to make plugins but dont wanna have to learn a new coding langauge.
     
    Last edited by a moderator: Aug 20, 2015
  6. I don't get it.
    What's the sense of using C++ for modding of a Unity3D game ?
    Deliberately mixing managed and unmanaged code is just a perversion, imho.
     
  7. Wulf

    Wulf Community Admin

    I'm not sure how you'll feel about our OxideNative mod for Unreal (C++) games then. ;)
    [DOUBLEPOST=1440083176][/DOUBLEPOST]
    I don't see C++ support being added.
     
  8. Hehe! Pretty fine.
    Dealing with unmanaged code thru managed is okay, but not vice versa :)
     
  9. :( I only know C++
     
  10. C# isn't a big step from C++ (the other way around is a lot more work!). I've been a C++ programmer for 20+ years now (professionally) and I've been working with C# exclusively for the past 9 months now and the transition was extremely quick. The syntax is almost identical and other than LINQ and some class keyword differences, you'll hop right in in no time. It's going to be even easier if you did any managed C++.
     
  11. Do you guys plan to make it so people can make plugins in C++? I am learning C++ and really dont wanna try learning C# or Java
     
  12. Wulf

    Wulf Community Admin

    You'd have to write a whole bridge to handle it, doubt it's really worth the time. C# is pretty easy to pick up, and I don't think most would have an issue if they know C++. Oxide is written in .NET/C#, as are pretty much all the games we support right now, which is why C# is the primary plugin language.
     
  13. If you know c++ then c# is nothing, you'll get the hang of it in about 3 minutes. Its 95% the same syntax.