City gates always open

Post here if you need help getting started with Daggerfall Unity or just want to clarify a potential bug. Questions about playing or modding classic Daggerfall should be posted to Community.
Post Reply
andromacus
Posts: 113
Joined: Sat May 23, 2020 9:07 am

City gates always open

Post by andromacus »

Hi All,

I recently noticed that the city gates of walled cities are now always open, even at night; while I remember clearly that in the original game and also in the previous versions of DFU the gates were closed at night. Does anybody know if this is intentional in the default version, if it is something introduced by a mod or if it is a bug?

Thanks!

User avatar
BadLuckBurt
Posts: 948
Joined: Sun Nov 05, 2017 8:30 pm

Re: City gates always open

Post by BadLuckBurt »

They should still be closed at night.

Code: Select all

        private void Update()
        {
            // Toggle closed at 18:00 and open again at 06:00
            bool isNight = DaggerfallUnity.Instance.WorldTime.Now.IsNight;
            if (isNight && isOpen || !isNight && !isOpen)
                Toggle();
        }
A simple test would be to disable your mods and see what happens.
DFU on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
DFU Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

.

andromacus
Posts: 113
Joined: Sat May 23, 2020 9:07 am

Re: City gates always open

Post by andromacus »

Thanks! Will try!

Post Reply