Failed to call hook 'CreateAnnouncement' on plugin 'GUIAnnouncements v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.GUIAnnouncements.ConvertBannerColor (System.String BColor) [0x00000] in :0
at Oxide.Plugins.GUIAnnouncements.CreateAnnouncement (System.String Msg, System.String bannerTintColor, System.String textColor, BasePlayer player, System.Single APIAdjustVPosition, System.Boolean isWelcomeAnnouncement, System.Boolean isRestartAnnouncement, System.String group, System.Boolean isTestAnnouncement) [0x00132] in :0
at Oxide.Plugins.GUIAnnouncements.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00366] in :0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0 Failed to call hook 'CreateAnnouncement' on plugin 'GUIAnnouncements v2.0.3'Not An Issue
Have you modified the plugin in any way?
Can you send reply with your entire config. Use the insert/edit code sample formatting tool to put it in.
{
"A List Of Available Colors To Use (DO NOT CHANGE)": {
"Banner Colors": "Grey, Red, Orange, Yellow, Green, Cyan, Blue, Purple",
"Text Colors": "White, Red, Orange, Yellow, Green, Cyan, Blue, Purple"
},
"General Settings": {
"Adjust Vertical Position": -0.03,
"Announcement Duration": 10.0,
"Fade In Time": 0.5,
"Fade Out Time": 0.5,
"Font Size": 18
},
"Private New Player Announcements": {
"Announcements List (Show On This Many Joins : List To Show)": {
"1": [
"1st Join {rank} {playername} New player announcement 1.",
"1st Join {rank} {playername} New player announcement 2.",
"1st Join {rank} {playername} New player announcement 3."
],
"2": [
"2nd Join {rank} {playername} New player announcement 1.",
"2nd Join {rank} {playername} New player announcement 2.",
"2nd Join {rank} {playername} New player announcement 3."
],
"3": [
"3rd Join {rank} {playername} New player announcement 1.",
"3rd Join {rank} {playername} New player announcement 2.",
"3rd Join {rank} {playername} New player announcement 3."
]
},
"Banner Color": "Grey",
"Enabled": false,
"Text Color": "White"
},
"Private Respawn Announcements": {
"Announcements List": [
"{playername} Respawn announcement 1.",
"{playername} Respawn announcement 2.",
"{playername} Respawn announcement 3."
],
"Banner Color": "Grey",
"Enabled": false,
"Text Color": "White"
},
"Private Test Announcement": {
"Adjust Vertical Position": 0.0,
"Banner Color": "Grey",
"Duration": 10.0,
"Fade In Time": 0.5,
"Fade Out Time": 0.5,
"Font Size": 18,
"Text Color": "White"
},
"Private Welcome Announcements": {
"Banner Color": "Grey",
"Delay": 0.0,
"Duration": 20.0,
"Enabled": true,
"Show Welcome Back If Player Has Been Here Before": true,
"Text Color": "White",
"Welcome Back Text": "Welcome back {playername}! There are {playercount} player(s) online.",
"Welcome Text": "Welcome {playername}! There are {playercount} player(s) online."
},
"Public Airdrop Announcements": {
"Banner Color": "Green",
"Enabled": true,
"Show Location": false,
"Text": "Airdrop en route!",
"Text Color": "Yellow",
"Text With Coords": "Airdrop en route to x{x}, z{z}",
"Text With Grid": "Airdrop en route to {grid}."
},
"Public Automatic Game Time Announcements": {
"Announcement List (Show at this in game time : Announcements to show)": {
"00:00": [
"The in game time is 00:00 announcement 1.",
"The in game time is 00:00 announcement 2.",
"The in game time is 00:00 announcement 3."
],
"12:00": [
"The in game time is 12:00 announcement 1.",
"The in game time is 12:00 announcement 2.",
"The in game time is 12:00 announcement 3."
],
"18:15": [
"The in game time is 18:15 announcement 1.",
"The in game time is 18:15 announcement 2.",
"The in game time is 18:15 announcement 3."
]
},
"Banner Color": "Grey",
"Enabled": false,
"Text Color": "White"
},
"Public Automatic Real Time Announcements": {
"Announcement List (Show at this local time : Announcements to show)": {
"18:15": [
"The local time is 18:15 announcement 1.",
"The local time is 18:15 announcement 2.",
"The local time is 18:15 announcement 3."
],
"00:00": [
"The local time is 00:00 announcement 1.",
"The local time is 00:00 announcement 2.",
"The local time is 00:00 announcement 3."
],
"12:00": [
"The local time is 12:00 announcement 1.",
"The local time is 12:00 announcement 2.",
"The local time is 12:00 announcement 3."
]
},
"Banner Color": "Grey",
"Enabled": false,
"Text Color": "White"
},
"Public Automatic Timed Announcements": {
"Announcement List": [
[
"1st Automatic Timed Announcement 1",
"1st Automatic Timed Announcement 2"
],
[
"2nd Automatic Timed Announcement 1",
"2nd Automatic Timed Announcement 2"
],
[
"3rd Automatic Timed Announcement 1",
"3rd Automatic Timed Announcement 2"
]
],
"Banner Color": "Grey",
"Enabled": false,
"Show Every (HH:MM:SS)": "00:30:00",
"Text Color": "White"
},
"Public Bradley APC Announcements": {
"Destroyed": false,
"Destroyed Banner Color": "Red",
"Destroyed Text": "The APC has been destroyed.",
"Destroyed Text Color": "White",
"Destroyed With Destroyer Text": "{playername} got the last shot on the APC destroying it!",
"Show Destroyer": false,
"Spawn": false,
"Spawn Banner Color": "Red",
"Spawn Text": "An APC is patrolling the launch site!",
"Spawn Text Color": "Yellow"
},
"Public Cargoship Announcements": {
"Leave": false,
"Leave Banner Color": "Blue",
"Leave Text": "The cargoship is departing.",
"Leave Text Color": "White",
"Spawn": false,
"Spawn Banner Color": "Blue",
"Spawn Text": "Cargoship ahoy!",
"Spawn Text Color": "Yellow"
},
"Public Chinook Announcements": {
"Announce Crate Drops": false,
"Crate Dropped Banner Color": "Red",
"Crate Dropped Text": "The Chinook has dropped a crate!",
"Crate Dropped Text Color": "Yellow",
"Crate Dropped Text With Grid": "The Chinook has dropped a crate in {grid}.",
"Despawn": false,
"Despawn Banner Color": "Red",
"Despawn Text": "The Chinook has left.",
"Despawn Text Color": "White",
"Destroyed": false,
"Destroyed Banner Color": "Red",
"Destroyed Text": "The Chinook has been taken down!",
"Destroyed Text Color": "White",
"Destroyed Text With Destroyer": "{playername} got the last shot on the Chinook taking it down!",
"Show Crate Drop Location": false,
"Show Destroyer": false,
"Spawn": false,
"Spawn Banner Color": "Red",
"Spawn Text": "Chinook inbound!",
"Spawn Text Color": "Yellow"
},
"Public Christmas Stocking Refill Announcement": {
"Banner Color": "Green",
"Enabled": false,
"Text": "Santa has refilled your stockings. Go check what you've got!",
"Text Color": "Red"
},
"Public Helicopter Announcements": {
"Despawn": false,
"Despawn Banner Color": "Red",
"Despawn Text": "The patrol helicopter has left.",
"Despawn Text Color": "White",
"Destroyed": true,
"Destroyed Banner Color": "Red",
"Destroyed Text": "The patrol helicopter has been taken down!",
"Destroyed Text Color": "White",
"Destroyed Text With Destroyer": "{playername} got the last shot on the helicopter taking it down!",
"Show Destroyer": true,
"Spawn": true,
"Spawn Banner Color": "Red",
"Spawn Text": "Patrol Helicopter Inbound!",
"Spawn Text Color": "Orange"
},
"Public Join/Leave Announcements": {
"Announce Only Players With Permission": true,
"Join Banner Color": "Grey",
"Join Enabled": false,
"Join Text": "{rank} {playername} has joined.",
"Join Text Color": "White",
"Leave Banner Color": "Grey",
"Leave Enabled": false,
"Leave Text": "{rank} {playername} has left.",
"Leave Text Color": "White"
},
"Public Oil Rig Crate Hack Announcements": {
"Banner Color": "Orange",
"Enabled": false,
"Hack Text": "An oil rig crate is being hacked!",
"Hack Text With Large Oil Rig": "The large oil rig crate is being hacked!",
"Hack Text With Small Oil Rig": "The small oil rig crate is being hacked!",
"Specify Which Oil Rig": false,
"Text Color": "Yellow"
},
"Public Player Banned Announcement": {
"Banner Color": "Grey",
"Enabled": false,
"Text": "{playername} has been banned. {reason}.",
"Text Color": "Red"
},
"Public Restart Announcements": {
"Announce With Time Left (HH:MM:SS)": [
"12:00:00",
"11:00:00",
"10:00:00",
"09:00:00",
"08:00:00",
"07:00:00",
"06:00:00",
"05:00:00",
"04:00:00",
"03:00:00",
"02:00:00",
"01:00:00",
"00:45:00",
"00:30:00",
"00:15:00",
"00:05:00"
],
"Banner Color": "Grey",
"Cancelled Scheduled Restart Text": "The restart in {time} has been cancelled.",
"Enabled": true,
"Restart Announcement Text": "Server Restarting in {time}",
"Restart At (HH:MM:SS)": [
"03:00:00"
],
"Restart My Server": true,
"Suspended Restart Text": "The restart in {time} has been suspended.",
"Text Color": "Yellow"
},
"Third Party Plugin Support": {
"Do Not Overlay LustyMap": false,
"LustyMap Position (Left/Right)": "Left"
}
} JoeSheep
Have you modified the plugin in any way?
Can you send reply with your entire config. Use the insert/edit code sample formatting tool to put it in.
No i have no changed the plugin, only thing i have done is changed the
"Adjust Vertical Position": -0.03,
Thanks for the info.
Were you expecting any particular announcement to appear at the moment that error occurred?
Is that the only error message at that time?
Can you list what plugins you have please?
ah after looking at the logs, it was always happening when the Cargo Train Event.
[CargoTrainEvent] [Cargo Train Event] Cargo Workcart inbound at O9!
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)
Failed to call hook 'CreateAnnouncement' on plugin 'GUIAnnouncements v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.GUIAnnouncements.ConvertBannerColor (System.String BColor) [0x00000] in <96b635bd429b4b22ac1b65d4a1d24564>:0
at Oxide.Plugins.GUIAnnouncements.CreateAnnouncement (System.String Msg, System.String bannerTintColor, System.String textColor, BasePlayer player, System.Single APIAdjustVPosition, System.Boolean isWelcomeAnnouncement, System.Boolean isRestartAnnouncement, System.String group, System.Boolean isTestAnnouncement) [0x00132] in <96b635bd429b4b22ac1b65d4a1d24564>:0
at Oxide.Plugins.GUIAnnouncements.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00366] in <96b635bd429b4b22ac1b65d4a1d24564>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)
[CargoTrainEvent] The next Cargo Train Event has been scheduled to run 7320.83 seconds (= 122.01 minutes) from now. Merged post
Ive updated that plugin, will see if it still happens
Locked automatically