@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.
GUIAnnouncements
Moved
Total Downloads: 11,756 - First Release: Jul 13, 2015 - Last Update: Oct 20, 2017
- 5/5, 66 likes
-
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 -
-
hey it's working in the previous update. refreshed install
-
-
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 -
@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. -
*translation I've done that but seems not working. Italian file isn't loaded.
-
-
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
-
JoeSheep updated GUI Announcements with a new update entry:
v1.11.35
Last edited by a moderator: Jun 22, 2016 -
i get this error when useing the plugin, it was fine before and now it is not working i tried wiping all the files for it and reinstalled but i still get the error
https://i.gyazo.com/bb337e4d52b6e3012ff47cfdfc207feb.png
Can anyone help ? -
-
[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 -
-
-
-
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" }
-
@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
As I read above, will it fix if I will delete the player data file? -
@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.