1. Hi Guys, im actually developing a Plugin for Hurtworld.

    One Question im asking myself now is for example:

    You know the IntelliSense of VisualStudio IDE.. You type something and there are results for what you can type (for listing methods, attributes and so on)

    My Problem, im typing "hurt." and nothing appears?


    Is my IDE broken or do i have to import ("using") something?
     
  2. Wulf

    Wulf Community Admin

    The "hurt." thing is a library function provided by Oxide. I doubt it would show up in IntelliSense. It's only meant for non-C# languages. For C#, you can use PrintToChat and such usually.
     
  3. Right a Library Function.
    But is there a way to include/import the library so the IntelliSense see that im using that library (and autocomplete Stuff)?

    And if that doesnt work, how am i supposed to know that i'm able to do with "hurt."?

    In the Doc's there is nothing for that and other things :/
     
  4. Wulf

    Wulf Community Admin

    Oxide/Hurtworld.cs at master · OxideMod/Oxide · GitHub

    Library functions aren't usually meant for C# plugins, but they are there if you want.
     
  5. So there is NOTHING there like seeing what im able to do.
    Im actually reading a lot of existing plugins to fetch some knowledge of the libraries.

    Without an existing Plugin i would never know that i need to use "hurt" ...

    I think im missing there something like an Extension to the Doc o:
     
  6. Wulf

    Wulf Community Admin

    You can use IntelliSense for every DLL you have referenced in your project, but the "hurt" library functions are something you normally wouldn't use in C# plugins, as I mentioned previously. There are other options for C# plugins for these things, with most of the library functions generally not being needed for C# plugins at all.

    As far as the Docs go, they are a bit behind for Hurtworld as I haven't had time to contribute to them. We're working on some new ones though.
     
  7. Okay thank you for your Help :)
    A last Question: Where can i alternative lookup stuff like:
    - OnPlayerDeath
    - OnPlayerSpawn
     
  8. Wulf

    Wulf Community Admin

    They're all listed on the download page. Oxide for Hurtworld | Oxide
     
  9. Damn im so sorry that i have to ask again :/

    But im searching through google and find nothing O:

    Where are Attributes(etc.) for PlayerSession?
     
  10. Wulf

    Wulf Community Admin

    In the game's Assembly-CSharp.dll, which you can use IntelliSense for or a .NET decompiler such as JustDecompile.
     
  11. But there is no IntelliSense available while im writing "PlayerSession"
    whats the "using" or is there something else missing?
     
  12. Wulf

    Wulf Community Admin

    To use IntelliSense, you'd need to setup a proper project for the plugin. IntelliSense can't sense what isn't referenced. After creating a project, you can add Assembly-CSharp.dll as a reference along with the other DLLs you need.
     
  13. THERE IS MY TOP ANSWERE!!!
    Thank you xD now i can use IntelliSense on "hurt." too :D

    Thank you very much, im changing the Topic to "Resolved" now :)