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
  1. I realized that it was an incurable error ?
    [DOUBLEPOST=1458543698][/DOUBLEPOST]Console: WarTime.cs(111,73): warning CS0184: The given expression is never of the provided (`CodeHatch.Engine.Networking.Player') type
    Kits.cs(150,25): warning CS0649: Field `Oxide.Plugins.Kits.KitData.Enabled' is never assigned to, and will always have its default value `false'
    RestartAnnouncer.cs(18,21): warning CS0414: The private field `Oxide.Plugins.RestartAnnouncer.time' is assigned but its value is never used
     
  2. Wulf

    Wulf Community Admin

    Those are warnings, not errors.
     
  3. and here ?
     
  4. I want just remove trebuchet of my server on peace time but i want ballista to be okay in peacetime, how can i make it ?
    What lines i have to modify ?
     
  5. pls could you take a look was working until i updated to the latest one cheers it wont load a config file or load at all
     
  6. Hi,

    Just started to try this mod out today. I am trying to modifie the time for peacetime/wartime in the config file. But no matter what i do it is peacetime all the time, unless i toggle wartime on and off manually by using command /wartime.
    Right now i keep the mod on default settings (except the punish-thing) while im trying to find a solution, and even then it is always peacetime, all day, all night.

    This is how it looks in the config file as default.

    {
    "adminSiegeException": false,
    "BanTime": 1,
    "Peacetime": 23,
    "Punish": "kick",
    "UsingRealtime": false,
    "WarOn": false,
    "Wartime": 9
    }

    I would like it to be wartime from 23.00 to 02.00 using realtime... I have tried it. It did not work.

    Help a noob out?

    Edit: It did not work for some reason yesterday, but today it worked when i tried a different peacetime/wartime.
     
    Last edited by a moderator: May 28, 2016
  7. If you want it to work like that these are the settings you need:
    {
    "adminSiegeException": false,
    "BanTime": 1,
    "Peacetime": 2,
    "Punish": "kick",
    "UsingRealtime": true,
    "WarOn": false,
    "Wartime": 23
    }
    the three things I changed were:
    {
    "Peacetime": 23, (changed to 2 to activate peacetime at 02.00)
    "UsingRealtime": false, (changed to true to actually work with time)
    "Wartime": 9 (changed to 23 to activate wartime at 23.00)
    }
    [DOUBLEPOST=1465516066][/DOUBLEPOST]
    Will post an update for this soon.

    try removing all the files of the plugin and then put only the plugin file itself back in the plugin folder.
     
  8. I am getting these errors too. Any progress on fixing this? It is spamming the hell out of my logs.
     
  9. D-Kay updated WarTime with a new update entry:

    1.1.1

     
  10. Im still having problems with this. Sometimes i try to switch up the wartime/peacetime. When i try to do it just switches back to what it was,-
    Lately i have tried to set the wartime to start at 23:00 (i use the number 23) and peacetime to start at 01:00 (i use the number 1). I then save the change, wait for it so finish saving, then open the config file again - but the numbers are back to what they where before i made the change. Anyone else experience this?
     
  11. Try removing the plugin before you replace the config file and then put it back.
     
  12. Thank you, it worked.
     
  13. D-Kay updated WarTime with a new update entry:

    1.1.2


    [DOUBLEPOST=1469558828][/DOUBLEPOST]
    Could you try again? Should now ignore any damage for 5 seconds after the first log to remove spam.
     
  14. Logs and chat don't get spammed anymore thanks. There is still one error. But that shouldn't be an issue.


    Code:
    08:15 [Debug] NullReferenceException: Object reference not set to an instance of an object
    CodeHatch.Blocks.CubeInfo.DestroyPrefab ()
    TilesetColliderCube.OnDamage (CodeHatch.Damaging.Damage damage, DamageSource source)
    ExplodeDamage.DamageBlocks (Bounds bounds)
    ExplodeDamage+<ApplyEffectsOverTime>c__Iterator1C7.MoveNext ()
     
  15. Suddenly he stopped working... WTF
     
  16. How do you mean? Did the plugin crash or is it not functioning at all?
     
  17. Code:
    21:35 [Error] Failed to initialize plugin 'WarTime v1.1.2' (JsonSerializationException: No JSON content found and type 'System.Boolean' is not nullable. Path '', line 1, position 5.)
    21:35 [Debug]   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0
    
    A clean installation of the plugin.
     
  18. Hello,

    When an admin named Bill trebbed a base they still get kicked or banned, was wondering why with this as my setup and having adminSiegeexception set to True?

    {
    "Settings": {
    "Admin1": "Bill",
    "Admin2": "Yuudachi",
    "Admin3": "Kinomoto",
    "adminSiegeException": true,
    "BanTime": 1,
    "ignoreBallista": false,
    "ignoreTrebuchet": false,
    "Peacetime": 24,
    "Punish": "Ban",
    "UsingRealtime": false,
    "Wartime": 3
    }
     
  19. If you take a look at the plugin page (WarTime for Reign of Kings | Oxide) you'll see it no longer uses the Admin1, Admin2,etc and instead uses the wartime.exception permission for server owners to add to permission groups.