1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  1. Hider

    Hider Wood Hoarder

    Hello, how to increase the day and reduce the night?
     
  2. MonkeY12

    MonkeY12 Scavenger

    TimeManager.Instance.DayLength = 1000f;
    TimeManager.Instance.NightLength = 10f;
     
  3. Hider

    Hider Wood Hoarder

    for cfg/console run?
     
  4. MonkeY12

    MonkeY12 Scavenger

    Plugin :D
     
  5. DamianooTV

    DamianooTV Naked Wanderer

    hmmm
    where passted this code?

    TimeManager.Instance.DayLength = 1000f;
    TimeManager.Instance.NightLength = 10f;
     
  6. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    You'd have to write a plugin with those in it. It's code, not a command or setting.
     
  7. klauz24

    klauz24 Plugin Developer

    Code (Text):
    using System;

    namespace Oxide.Plugins
    {
        [Info("DayNightDuration", "klauz24", 0.1)]
        class DayNightDuration : HurtworldPlugin
        {
            void Init()
            {
                // Time in seconds
                TimeManager.Instance.DayLength = 900;
                TimeManager.Instance.NightLength = 420;
            }
        }
    }
     
    DamianooTV likes this.
  8. DamianooTV

    DamianooTV Naked Wanderer

    wooow THX :)
     
  9. DamianooTV

    DamianooTV Naked Wanderer

    I create file FastNight.cs in serverfiles/oxide/plugins
    and add head code:
    Code (Text):
    using System;
    using System.Collections.Generic;
    using Newtonsoft.Json;
    using UnityEngine;
    using Oxide.Core;
    using System.Linq;
    code now:
    Code (Text):
    using System;
    using System.Collections.Generic;
    using Newtonsoft.Json;
    using UnityEngine;
    using Oxide.Core;
    using System.Linq;

    namespace Oxide.Plugins
    {
        [Info("DayNightDuration", "klauz24", 0.1)]
        class DayNightDuration : HurtworldPlugin
        {
            void Init()
            {
                // Time in seconds
                TimeManager.Instance.DayLength = 900;
                TimeManager.Instance.NightLength = 420;
            }
        }
    }
    not working.. night not change speed to day.
     
  10. klauz24

    klauz24 Plugin Developer

    Plugin name should be DayNightDuration in c# format.
     
    DamianooTV likes this.
  11. DamianooTV

    DamianooTV Naked Wanderer

    THX.
    Working ! ! ! !
     
  12. klauz24

    klauz24 Plugin Developer

    Ur welcome ;)
     
    Last edited: Jun 25, 2018