hey,
in my old plugins i'm using TOD_Sky.Instance.Cycle.Hour to get the game time -> hour. But now it doesnt work anymore. Is it changed? Any other idea to get the game hour?
TOD_Sky not found
Discussion in 'Rust Development' started by Sir BenSon, Sep 3, 2016.
-
Wulf Community Admin
I don't think it has changed, but did you check the Assembly-CSharp.dll using JustDecompiler or similar tool?
-
Mhh TOD_Sky isn't in the CSharp Assembly. What is the right way?
-
It has'nt changed and is still there...
-
i using this references:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Oxide.Core;
using Oxide.Core.Libraries.Covalence;
using Oxide.Core.Plugins;
using Facepunch.Utility;
using Oxide.Core.Configuration;
using Oxide.Core.Logging;
using Rust.Xp;
using UnityEngine;
but it shows
Error CS0246 The type or namespace name 'TOD_Sky' could not be found (are you missing a using directive or an assembly reference?) -
Wulf Community Admin
It's not from a using statement. If you are seeing that in Visual Studio it sounds like you're missing the reference to Assembly-CSharp.dll.
