GUIAnnouncements

Moved

Total Downloads: 11,756 - First Release: Jul 13, 2015 - Last Update: Oct 20, 2017

5/5, 66 likes
  1. @michelemarri Have you checked if the data file has gone null? When I was making changes to what was stored in it, it ended up going null for me. Any errors you see in console would help too. I only have a text editor at the moment but I still may be able to make minor changes.
     
  2. GUIAnnouncementsPlayerData.json and GUIAnnouncements_PlayerTimesJoined.json are not null
    [DOUBLEPOST=1466506843][/DOUBLEPOST]no errors in the oxide console. but the welcome announcement doesn't show
     
  3. I just uploaded another to the same place, try downloading it again.
     
  4. hey it's working in the previous update. refreshed install
     
  5. Did you not try the new one I put here? Trello
     
  6. i'll try right now. a question for you. how can i add a new language? IT? i just have to duplicate the language file and add it to the end (GUIAnnouncements.it.json)?
    [DOUBLEPOST=1466515906][/DOUBLEPOST](14:27:42) | [Oxide] 05:27 [Error] Failed to call hook 'OnEntityDeath' on plugin 'GUIAnnouncements v1.11.33' (KeyNotFoundException: The given key was not present in the dictionary.)

    (14:27:42) | [Oxide] 05:27 [Debug] at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.GUIAnnouncements+PlayerData].get_Item (UInt64 key) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.GUIAnnouncements.OnEntityDeath (.BaseCombatEntity entity, .HitInfo info) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.GUIAnnouncements.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  7. @michelemarri
    If you were still in game when you put the new version on and loaded it, it wouldn't have added you to the PlayerData file. That is something that I will need to add in just for a 'fail safe'.
    Rejoin the game, then you should get added to the PlayerData file.

    Yes you just copy the .en file and change it to .it. But you will need to write the translations in the new file.
     
  8. *translation I've done that but seems not working. Italian file isn't loaded.
     
  9. You need to either in game type /Lang it to change just your language or in console type Lang it to change it for the server
     
  10. Code:
    [06/21/2016 19:10:32] [Oxide] 19:10 [Debug]   at Oxide.Plugins.GUIAnnouncements.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GUIAnnouncements.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 name, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  11. Last edited by a moderator: Jun 22, 2016
  12. Can you copy and paste the entire error message please?
     
  13. here you go :

    [Oxide] 04:12 [Info] GUIAnnouncements was compiled successfully in 3336ms
    [Oxide] 04:12 [Info] Loaded plugin GUIAnnouncements v1.11.35 by JoeSheep
    [Oxide] 04:12 [Error] Failed to call hook 'OnServerInitialized' on plugin 'GUIAnnouncements v1.11.35' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 04:12 [Debug] at Oxide.Plugins.GUIAnnouncements.OnServerInitialized () [0x00000] in <filename unknown>:0 at Oxide.Plugins.GUIAnnouncements.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  14. Please check if GUIAnnouncementsPlayerData says null when you open it in the data folder. If so, unload the plugin, delete it, load the plugin.
     
  15. Cheers fixed it before I've even asked <3
     
  16. thanks it fixed it :)
     
  17. I have translated the language file into Lithuanian:

    Code:
    {
      "ChatCommandAnnounce": "pranešti",
      "ChatCommandAnnounceTo": "praneštigavėjui",
      "ChatCommandAnnounceTest": "praneštitestas",
      "ChatCommandDestroyAnnouncement": "sunaikintipranešimą",
      "ChatCommandAnnouncementsToggle": "pranešimųjungiklis",
      "ChatCommandHelp": "praneštipagalba",
      "ConsoleCommandAnnounce": "pranešti.pranešti",
      "ConsoleCommandAnnounceTo": "pranešti.praneštigavėjui",
      "ConsoleCommandDestroyAnnouncement": "pranešti.sunaikinti",
      "ConsoleCommandAnnouncementsToggle": "pranešti.jungiklis",
      "ConsoleCommandHelp": "pranešti.pagalba",
      "PlayerNotFound": "Žaidėjas nerastas, patikrinkite jo vardą ir ar yra prisijungęs.",
      "NoPermission": "Jūs neturite tinkamų teisių.",
      "ChatCommandAnnounceUsage": "Naudojimas: /pranešti <žinutė>.",
      "ChatCommandAnnounceToUsage": "Naudojimas: /praneštigavėjui <žaidėjas> <žinutė>.",
      "ChatCommandAnnouncementsToggleUsage": "Naudojimas: /pranešimųjungiklis [žaidėjas].",
      "ConsoleCommandAnnounceUsage": "Naudojimas: pranešti.pranešti <žinutė>.",
      "ConsoleCommandAnnounceToUsage": "Naudojimas: pranešti.praneštigavėjui <žaidėjas> <žinutė>.",
      "ConsoleCommandAnnouncementsToggleUsage": "Naudojimas: pranešti.jungiklis <žaidėjas>.",
      "Excluded": "{playername} buvo pašalintas iš pranešimų.",
      "ExcludedTo": "Jūs buvote pašalintas iš pranešimų.",
      "Included": "{playername} buvo pridėtas į pranešimus.",
      "IncludedTo": "Jūs esate pridėtas į pranešimus.",
      "IsExcluded": "{playername} šiuo metu pašalintas iš pranešimų.",
      "AnnounceHelp": "Chat'o komandos: /pranešti <žinutė>, /praneštigavėjui <žaidėjas> <žinutė>, /pranešimųjungiklis [žaidėjas], /sunaikintipranešimą Konsolės komandos: pranešti.pranešti <žinutė>, pranešti.praneštigavėjui <žaidėjas> <žinutė>, pranešti.jungiklis <žaidėjas>, pranešti.sunaikinti",
      "HelicopterAnnouncement": "Patrulinis sraigtasparnis artėja!",
      "HelicopterDeathAnnouncement": "Patrulinis sraigtasparnis numuštas!",
      "HelicopterDeathAnnouncementWithPlayer": "{playername} šūvis buvo paskutinis, numušant sraigtasparnį!",
      "AirdropAnnouncement": "Oro siunta pakeliuj!",
      "AirdropAnnouncementWithLocation": "Oro siunta pakeliuj į x{x}, z{z}!",
      "WelcomeAnnouncement": "Sveiki {playername}!",
      "WelcomeBackAnnouncement": "Sveiki atvykę {playername}!",
      "YouAreExcluded": "Jūs esate pašalintas iš pranešimų ir negalite matyti testinio pranešimo.",
      "PlayerHelp": "Chat'o komandos: /pranešimųjungiklis"
    }
    Feel free to use this and shortly I will have a Russian translation. I am also looking in to doing French and Swedish translations too. This will be left in the overview.
     
  18. @JoeSheep Hi, run into this error - was a little bit late a wake so I seen this for the first time, it happened after server auto restarted...

    Code:
    (05:03:01) | [Oxide] 05:02 [Error] Failed to call hook 'OnEntityDeath' on plugin 'GUIAnnouncements v1.11.35' (NullReferenceException: Object reference not set to an instance of an object)
    (05:03:01) | [Oxide] 05:02 [Debug]   at Oxide.Plugins.GUIAnnouncements.OnEntityDeath (.BaseCombatEntity entity, .HitInfo info) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GUIAnnouncements.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    (05:03:01) | [Oxide] 05:02 [Error] Failed to call hook 'OnPlayerSleepEnded' on plugin 'GUIAnnouncements v1.11.35' (NullReferenceException: Object reference not set to an instance of an object)
    (05:03:01) | [Oxide] 05:02 [Debug]   at Oxide.Plugins.GUIAnnouncements.OnPlayerSleepEnded (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GUIAnnouncements.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    Code:
    (05:03:01) | [Oxide] 05:02 [Error] Failed to call hook 'OnEntityDeath' on plugin 'GUIAnnouncements v1.11.35' (NullReferenceException: Object reference not set to an instance of an object)
    (05:03:01) | [Oxide] 05:02 [Debug]   at Oxide.Plugins.GUIAnnouncements.OnEntityDeath (.BaseCombatEntity entity, .HitInfo info) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GUIAnnouncements.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    (05:03:01) | [Oxide] 05:02 [Error] Failed to call hook 'OnPlayerSleepEnded' on plugin 'GUIAnnouncements v1.11.35' (NullReferenceException: Object reference not set to an instance of an object)
    (05:03:01) | [Oxide] 05:02 [Debug]   at Oxide.Plugins.GUIAnnouncements.OnPlayerSleepEnded (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GUIAnnouncements.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    Also 2 guys died before the error (both run into snap-trap (somebody messed theyr home,invaded them, raid and let plenty of traps over there...)

    As I read above, will it fix if I will delete the player data file?
     
  19. @Brko™
    When a player dies they will have dead set to true in the data file under their name. So if a player is dying just before that error appears then it must mean your data file has become Null. Check it first just by opening it, then delete it if it says Null.