Yeah, Im just plain me. Seem to have sorted it now. Had an extra line spacing halfway through the coding. I must have inadvertantly done it while reading through it.
Now, I just need to find out ihow to pay for the full version as I think the extra features would be 'a nice to have'

WarTime
Allows admins to set a dedicated time for the use of siege weapons
Total Downloads: 1,143 - First Release: May 10, 2015 - Last Update: Jul 26, 2016
- 4.92308/5, 13 likes
-
ITs throwing all kinds of errors in the log. ill post them
-
what is mate, the wartime.cs?
-
I used wartime - just what we needed for our server..
I just have a problem it keeps make this error in the oxide log folder.
Code:10:14 PM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object) 10:14 PM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 10:14 PM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object)10:14 PM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 10:14 PM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object)10:14 PM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 10:14 PM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object)10:14 PM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Last edited by a moderator: May 15, 2015 -
Minor change that should stop the OnCubeTakeDamage error
Attached Files:
-
-
i tried you new fix cleard my plugin and config and logs and puttet the new wartime.cs in
Still make the same error for me
Code:1:55 AM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object) 1:55 AM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:55 AM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object) 1:55 AM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:55 AM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object) 1:55 AM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:55 AM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object) 1:55 AM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:55 AM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object) 1:55 AM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:55 AM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object) 1:55 AM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:55 AM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object) 1:55 AM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:55 AM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object) 1:55 AM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:55 AM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object) 1:55 AM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:55 AM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object) 1:55 AM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:55 AM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object) 1:55 AM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:55 AM [Info] Server Information Announcer : Brother Bauras has passed out
Last edited by a moderator: May 16, 2015 -
/wartime doesn't work when u have the Annoconer plugin. The Wartime/Peacetime doesn't switch modes.
-
Code:
8:31 AM [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime' (NullReferenceException: Object reference not set to an instance of an object) 8:31 AM [Debug] at Oxide.Plugins.WarTime.OnCubeTakeDamage (CodeHatch.Blocks.Networking.Events.CubeDamageEvent e) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
Last edited by a moderator: May 21, 2015 -
Where can I find the logs for kicks for this?
-
Anyone know how to get the dedicated timer for wartime working? As in the designate a time of day for wartime to be on?
-
Nope. hopefully it will be added soon.
[DOUBLEPOST=1432220846][/DOUBLEPOST]and
Mughisi that fix didnt work. people still siege during Wartime is on. -
I was playing on a server today that had a timer set for wartime, there must be a way to do it...
-
There is. A remote execution script. Google a simple one for lua
Also I run this and announcer and both pluggins work fine. I'd like to see a single log file for this plug-in though. -
-
thought its a .CS file
-
It doesn't register Trebuchets on impact because the ammunition isn't connected to a player.
-
So, WarTime isn't working on my server, like Jaxs said, it may be conflicting with Announcer plugin. Huge issue imho.
Also, can we get a log file that records all attempted hits while its in peacemode? -
yes the Announcer Plugin needs more work and updated. Laggs the server and crashes most plugins
-
Another thing is that if you are in a guild, and shooting your OWN house, it doesn't kick you.
I'd love to see it be that use of ANY siege while it's peaceful kicks you. -
I'm not sure why you are having issues. I can tell you that I have the announcer plugin and war time works fine. Also it doesn't matter if you are in the same guild or not for me, it will kick you. Not sure why you two are having issues with the mod. The only thing that doesn't register is the trebuchet because when a player fires the rock, it isn't tied to that player like a ballista is.