ServerInfo

Moved

Total Downloads: 10,611 - First Release: Aug 29, 2015 - Last Update: Oct 27, 2017

5/5, 53 likes
  1. don't button working!
     
  2. Tell me how to make this panel When a player uses /help
    upload_2015-11-19_8-7-33.png
     
  3. Wulf

    Wulf Community Admin

  4. Every time i type /info to get the gui up my client locks up and stops responding for around 10 seconds, Has anyone else had this problem? Happens with the kits gui as well.
     
  5. I have two doubts:
    How do I make the entire image on the screen? Print: Screenshot
    How do I create a new tab?
    Code:
    {
      "settings": {
        "Tabs": [
          {
            "ButtonText": "Comandos",
            "HeaderText": "Comandos do Servidor",
            "Pages": [
              {
                "TextLines": [
                  "<color=brown> • </color> <color=grey> Use </color> <color=brown> /tphelp tpr </color> <color=grey> Ajuda com tp </color>",
                  "<color=brown> • </color> <color=grey> Use </color> <color=brown> /tphelp home </color> <color=grey> Ajuda com home </color>",
                  "<color=brown> • </color> <color=grey> Use </color> <color=brown> /bgrade </color> <color=grey> Grade de contrução </color>",
                  "<color=brown> • </color> <color=grey> Use </color> <color=brown> /clan help </color> <color=grey> Ajuda com clans </color>",
                  "<color=brown> • </color> <color=grey> Use </color> <color=brown> /remove </color> <color=grey> Ferramenta remove </color>",
                  "<color=brown> • </color> <color=grey> Use </color> <color=brown> /sil </color> <color=grey> Para colocar imagem em placa </color>",
                  "<color=brown> • </color> <color=grey> Use </color> <color=brown> /ff on/off </color> <color=grey> Para ativar/desativar fogo amigo no clan </color>",
                  "<color=brown> • </color> <color=grey> Use </color> <color=brown> /loja </color> <color=grey> Você adquire creditos com doações </color>",
                  "<color=brown> • </color> <color=grey> Use </color> <color=brown> /mochila </color> <color=grey> Abre sua mochila </color>",
                  "<color=brown> • </color> <color=grey> Use </color> <color=brown> /kit </color> <color=grey> Pegue seu kit </color>",
                  "<color=brown> • </color> <color=grey> Use </color> <color=brown> /map </color> <color=grey> Abre um mapa dentro do jogo </color>",
                  "<color=brown> • </color> <color=grey> Use </color> <color=brown> /trr </color> <color=grey> Solicitar um troca </color>"
                ],
                "ImageSettings": [
                  {
                    "Position": {
                      "MinX": 0.25,
                      "MaxX": 0.75,
                      "MinY": 0.25,
                      "MaxY": 0.75
                    },
                    "Url": "http://i.imgur.com/pVq9FO7.jpg?1",
                    "TransparencyInPercent": 10
                  }
                ]
              },
              {
                "TextLines": [],
                "ImageSettings": []
              },
              {
                "TextLines": [],
                "ImageSettings": []
              }
            ],
            "TabButtonAnchor": 4,
            "TabButtonFontSize": 16,
            "HeaderAnchor": 0,
            "HeaderFontSize": 32,
            "TextFontSize": 16,
            "TextAnchor": 3,
            "OxideGroup": ""
          }
        ],
        "ShowInfoOnPlayerInit": true,
        "TabToOpenByDefault": 0,
        "Position": {
          "MinX": 0.15,
          "MaxX": 0.9,
          "MinY": 0.2,
          "MaxY": 0.9
        },
        "BackgroundImage": {
          "Enabled": false,
          "Position": {
            "MinX": 0.0,
            "MaxX": 1.0,
            "MinY": 0.0,
            "MaxY": 1.0
          },
          "Url": "http://7-themes.com/data_images/out/35/6889756-black-backgrounds.jpg",
          "TransparencyInPercent": 100
        },
        "ActiveButtonColor": "#808080ff",
        "InactiveButtonColor": "##808080ff",
        "CloseButtonColor": "##808080ff",
        "NextPageButtonColor": "##808080ff",
        "PrevPageButtonColor": "##808080ff",
        "BackgroundColor": "#000000FF",
        "HelpButton": {
          "IsEnabled": false,
          "Text": "Help",
          "Position": {
            "MinX": 0.0,
            "MaxX": 0.05,
            "MinY": 0.1,
            "MaxY": 0.14
          },
          "Color": "#7F7F7FFF",
          "FontSize": 18
        },
        "UpgradedConfig": false
      }
    }
     
    Last edited by a moderator: Nov 22, 2015
  6. You happen to know of where I can have *some* clue on how to translate that CUI Element stuff to Javascript?
    All I really want to do is a hello world, in js :\
     
  7. Wulf

    Wulf Community Admin

    I'm not sure about the CUI stuff in JavaScript, but there are examples of .js in the Docs, on our GitHub, and on the Extensions page.
     
  8. For some reason, I can't find the Github (that was my first thought, read the source-code and try to match it to the javascript equal following the API Docs); Also, the API Docs have a very basic overview of the API (pex, it doesn't include the CUI api at all).

    I'll check the Extensions Page :) [but if you could link me the github page, it would be neat :p)

    OK, I got somewhere with the Extensions page; Reading a plugin that employs the `CUI` stuff, it does `using Oxide.Game.Rust.Cui`-- in the JS Extesion I saw something as `importNameSpace('RUST')` -- I'm assuming importNameSpace('CUI') works?
     
    Last edited by a moderator: Nov 23, 2015
  9. Oxide/RustCui.cs at master · OxideMod/Oxide · GitHub
     
  10. Last edited by a moderator: Nov 28, 2015
  11. My first page is blank white no matter what i do , even deleted config and reuploaded the plugin again making a fresh config , same problem .
     
  12. The Plugin was perfect but now i got a error message every time.
    Code:
    [Oxide] 6:54 PM [Error] Failed to call hook 'ShowInfo' on plugin 'ServerInfo v0.4.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 6:54 PM [Debug]   at Oxide.Plugins.ServerInfo.AddMainPanel (Oxide.Game.Rust.Cui.CuiElementContainer container) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerInfo.ShowInfo (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerInfo.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Dec 4, 2015
  13. Code:
    [Oxide] 12:04 PM [Debug]  at Oxide.Plugins.ServerInfo.AddMainPanel (Oxide.Game.Rust.Cui.CuiElementContainer container) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerInfo.ShowInfo (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerInfo_OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerInfo+<OnPlayerInit>c__AnonStorey2.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Dec 4, 2015
  14. Can you add to set the transparenc of background?
     
  15. how can i make the buttons smaler that i can put morge buttons on page one ?
     
  16. hi guys, is there any ready made templates anywhere?, I can configure the text in this, but I cant remove all the images etc I don't know anything about editing things like this, I just want a simple page with 3 tabs, just no images, when I try to delete the images I just screw everything up, manythanks
     
  17. Hello, I want to give here a small example looks like my ServerInfo.json (fully functional) for we find some examples and it is sometimes convenient to have a visual to understand things.
    Click here because i'm limited by maximum number of characters and my .json file are more than 10 000...
    ZeroBin

    You will notice that I have left empty pages in order to make additions / changes later.
    I hope I have given an explanation to those who need it.
     

    Attached Files:

  18. I noticed on reload of the plugin it resets the changes I made during the running server is this normal or is there no way I can change while the server is up?
     
  19. Try contacting KZU Gaming they did a video about their server showing off the plugin in french they are a belgian community
    http://www.kzu-gaming.be/
    KZU Gaming
    KZU Gaming – Google+