1. What about making a Message for when the player is connecting (current message) and then display a message when the player is initialized and loaded into the server? It's kind of misleading currently I think with saying they're connected when they are not even loaded in yet.
    But idk maybe people like that :p
     
  2. That would be too many messages I guess, back in the lua version the connected messages appeared on the OnPlayerConnected event but a few people asked me to change it to CanPlayerLogin event for some reason.
    It does make a bit of a different tho, while a player connects to the server he can be rejected for some reason, so the message may appear but the player may not connect at all.

    Guess I'll change it then.
     
  3. I just get a lot of people asking me about it on my server because they try to talk to people when they get on but no ones there yet lol.
     
  4. SkinN õ.Õ'.|. updated Notifier with a new update entry:

    Death Notes | Tweaks

     
  5. Plugin not working after update. This is my error:
    Code:
    > oxide.reload notifier
    [Oxide] 12:01 AM [Info] Unloaded plugin Notifier v2.1.2 by SkinN
    [Oxide] 12:01 AM [Info] Loaded plugin Notifier v2.1.2 by SkinN
    [Oxide] 12:01 AM [Error] Failed to initialize plugin notifier
    Traceback (most recent call last):
      File "notifier.py", line 28, in Init
      File "notifier.py", line 131, in UpdateConfig
    Can you help?
     
    Last edited by a moderator: Feb 26, 2015
  6. SkinN õ.Õ'.|. updated Notifier with a new update entry:

    Notifier | Hotfix


    [DOUBLEPOST=1424927732][/DOUBLEPOST]
    Fixed.
    Thanks for reporting.
     
  7. Sure, glad I could help. Thank you for updating.
     
  8. Hi, I wanted to modify your notifier and few others(death msg and help menu) by depending on country where the gamer is from(translate these notifications by language of country where this gamer is from) but I don't know how to get info about country. You have some lines that describes country but for me on this level(0 knowing of rust and oxide libraries ) for now it get's only steamid... Can you please tell me how to get this info by function in code? Thank you :)


    And sorry for my english :)
     
  9. Hi, the /help command does not work ? ->Output: unknown command "help" ! <- today version 2.1.3

    can u fix it or write a description how to use it

    thanks
     
  10. "HIDE ADMINS CONNECTIONS": true. Notifier v2.1.3.
    Code:
    Dark has left (Disconnected)
    [Oxide] 3:39 PM [Error] UnboundLocalException while calling OnPlayerDisconnected:
    Traceback (most recent call last):
      File "notifier.py", line 227, in OnPlayerDisconnected 
    UnboundLocalError: Local variable 'connection' referenced before assignment.
     
  11. Do you have the helptext plugin installed? This would cause /help to not exist.

    @SkinN õ.Õ'.|.
    Looks like your trying to call connection before you actually set it up might want to make your check the full variable of player.net.connection.authLevel or move your connection variable above your conditionals.
    @DarkRnD I uploaded a slight adjustment you might try to see if that helps resolve your issue until the developer gets on to write a tweak.
     
  12. In order to use the help command you need the Help Text plugin.
     
  13. SkinN õ.Õ'.|. updated Notifier with a new update entry:

    Notifier | Minor Fix


    [DOUBLEPOST=1424963353][/DOUBLEPOST]
    Fixed.
    Thanks for reporting.
    [DOUBLEPOST=1424963482][/DOUBLEPOST]
    This is the code that I use to get the player country:
    Code:
        def OnPlayerConnected(self, packet):        # PLAYER INFO
            connection = packet.connection
            auth = connection.authLevel
            steamid = rust.UserIDFromConnection(connection)
            name = connection.username
            ip = connection.ipaddress.split(':')[0]        # ADMINS TAGS
            if self.Config['SETTINGS']['ENABLE ADMIN TAGS']:            if auth == 1:                name = '%s %s' % (self.Config['SETTINGS']['MODERATOR TAG'], name)            elif auth == 2:                name = '%s %s' % (self.Config['SETTINGS']['OWNER TAG'], name)        # CONNECT MESSAGE ( GET PLAYER COUNTRY FUNTION )
            country = 'undefined'
            ip_url = 'http://ipinfo.io/%s/country' % ip        def response_handler(code, response):            country = response.replace('\n','')            if country == 'undefined' or code != 200: country = '?'            self.users[steamid] = country            if self.Config['SETTINGS']['SHOW CONNECTED']:                if not (self.Config['SETTINGS']['HIDE ADMINS CONNECTIONS'] and int(auth) > 0):                    msg = self.Config['MESSAGES']['PLAYER CONNECTED']
                        msg = msg.replace('{username}', name)
                        msg = msg.replace('{steamid}', steamid)
                        msg = msg.replace('{userip}', ip)
                        msg = msg.replace('{country}', country)                    self.say(msg, self.Config['CHAT COLORS']['CONNECT/DISCONNECT MESSAGES'], steamid)        webrequests.EnqueueGet(ip_url, Action[Int32,String](response_handler), self.Plugin)
    
    But of course there's a few things you must skip, like the Admins tags and the actual 'connected' message.
     
  14. @Skinn, i was wondering if you could help me clarify the following error:
    Code:
    [Oxide] 6:02 PM [Info] Unloaded plugin Notifier v2.1.3 by SkinN
    [Oxide] 6:02 PM [Info] Loaded plugin Notifier v2.1.4 by SkinN
    Reporting Performance Data system/server
    [Oxide] 6:03 PM [Error] KeyNotFoundException while calling SendHelpText: (KeyNot
    FoundException: ENABLE HELPTEXT)
    [Oxide] 6:03 PM [Debug] at IronPython.Runtime.PythonDictionary.GetItem (object)
    <0x0006c>
    at IronPython.Runtime.PythonDictionary.get_Item (object) <0x00024>
    at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServi
    ces.Closure,System.Runtime.CompilerServices.CallSite,object,string) <0x00097>
    at System.Dynamic.UpdateDelegates.UpdateAndExecute2<object, string, object> (Sys
    tem.Runtime.CompilerServices.CallSite,object,string) <0x0030a>
    at Microsoft.Scripting.Interpreter.DynamicInstruction`3<object, string, object>.
    Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x00113>
    at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpre
    ter.InterpretedFrame) <0x000c8>
    i must admit that i haven't removed the current config when i loaded your update, is it necessary to do so ?
     
    Last edited by a moderator: Feb 26, 2015
  15. nvm, that did it.... *facepalm*
     
  16. The error means that the 'Enable HelpText' setting is not in the config file. And no, you don't need to delete the older file, as the plugin will force the older to update to the most recent one (saving only the adverts and overwriting everything else), though, the 'Enable HelpText' would not be deleted in any case.
    Anyway, you have the original version of the config file in the plugin overview, you may copy it and paste it to your config file, then reload the plugin. (remember to save anything you want before doing it)
     
  17. Code:
    [2/26/2015 1:51:18 PM] [Oxide] 1:51 PM [Error] MissingMemberException while calling OnEntityDeath: (MissingMemberException: 'UInt32' object has no attribute 'title')
    [2/26/2015 1:51:18 PM] bam666 was killed by Suicide
    [2/26/2015 1:51:45 PM] [Oxide] 1:51 PM [Info] Animal: npc/animals/wolf_corpse
    [2/26/2015 1:51:49 PM] [Oxide] 1:51 PM [Debug] at IronPython.Runtime.Binding.PythonGetMemberBinder/FastErrorGet`1<object>.GetError (System.Runtime.CompilerServices.CallSite,object,IronPython.Runtime.CodeContext) <0x00137>
    at (wrapper dynamic-method) object.OnEntityDeath$58 (System.Runtime.CompilerServices.Closure,IronPython.Runtime.PythonFunction,object,object,object) <0x07719>
    [2/26/2015 1:33:47 PM] New connection from 2.132.176.156:32657
    [2/26/2015 1:33:48 PM] [Oxide] 1:33 PM [Debug]   at IronPython.Runtime.Binding.PythonGetMemberBinder+FastErrorGet`1[System.Object].GetError (System.Runtime.CompilerServices.CallSite site, System.Object target, IronPython.Runtime.CodeContext context) [0x00000] in <filename unknown>:0
      at Microsoft.Scripting.Interpreter.DynamicInstruction`3[System.Object,IronPython.Runtime.CodeContext,System.Object].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
      at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
    
     
  18. That is not a Notifier error.
     
  19. wrong way written