Adding time of day properties to flats

Discuss coding questions, pull requests, and implementation details.
User avatar
jayhova
Posts: 621
Joined: Wed Jul 19, 2017 7:54 pm
Contact:

Adding time of day properties to flats

Post by jayhova » Mon Apr 29, 2019 4:36 pm

I want to start off by saying the K.O.W.'s Dungeon exit is pretty damn good. But like all good things it only make me want something better. The problem with the dungeon exit is that it is very obviously daylight. It got me to thinking how nice it would be if assets could change based on the time of day like the windows in houses. Would this be hard to do?

Image
Remember always 'What would Julian Do?'.
Windows 10 Pro 64 bit. DFU Ver. Alpha 0.10.7

User avatar
King of Worms
Posts: 2347
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Adding time of day properties to flats

Post by King of Worms » Mon Apr 29, 2019 8:05 pm

Would be bomb! And thank you :) With the emission map someone added its really great

User avatar
TheLacus
Posts: 955
Joined: Wed Sep 14, 2016 6:22 pm
Contact:

Re: Adding time of day properties to flats

Post by TheLacus » Mon Apr 29, 2019 8:31 pm

A mod can replace the model of the dungeon exit (70300) and add any custom script to it. No changes to core should be needed.
Mod System documentation - Learn how to create mods for Daggerfall Unity.
Modder Discussion - General help and discussion for the mod system.
Github Issues - Submit a bug report for the game, including the mod system.

User avatar
pango
Posts: 1483
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Adding time of day properties to flats

Post by pango » Mon Apr 29, 2019 8:43 pm

King of Worms wrote:
Mon Apr 29, 2019 8:05 pm
Would be bomb! And thank you :) With the emission map someone added its really great
I added the emission map for what looks like ages ago, and yet it's been only 6 months ;).
jayhova wrote:
Mon Apr 29, 2019 4:36 pm
I want to start off by saying the K.O.W.'s Dungeon exit is pretty damn good. But like all good things it only make me want something better. The problem with the dungeon exit is that it is very obviously daylight. It got me to thinking how nice it would be if assets could change based on the time of day like the windows in houses. Would this be hard to do?
The feature already exists, that's what AlexanderSig uses so that street lights change between day and night.
I'm not sure if I can find its technical description though :/

PS: Ah, DayNight component
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
King of Worms
Posts: 2347
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Adding time of day properties to flats

Post by King of Worms » Mon Apr 29, 2019 9:50 pm

I thought it was you Pango.

Ive read the link u posted, but I have no idea on how to make it work with textures.

With city windows, the emission maps Ive created work automatically. But the same emission map type applyed to the dungeon entrance does not switch on/off at any given time.

Even if it did, it would not have a desired result.

What we need to make it 100% is, that the texture completely changes at night, and the emission map changes as well (so we can for example see stars emitting light at the dung exit)

But I think that this might be possible and not so hard to implement, given the fact many day night systems are already working (also seasonal systems)

Edit: just saw Lacus comment. So we need to add some script to the model properties. Some1 pls do it and I create night version of exit :))))

User avatar
TheLacus
Posts: 955
Joined: Wed Sep 14, 2016 6:22 pm
Contact:

Re: Adding time of day properties to flats

Post by TheLacus » Tue Apr 30, 2019 9:46 pm

King of Worms wrote:
Mon Apr 29, 2019 9:50 pm
Edit: just saw Lacus comment. So we need to add some script to the model properties. Some1 pls do it and I create night version of exit :))))
If you send me the textures i'll make a prototype :)
Mod System documentation - Learn how to create mods for Daggerfall Unity.
Modder Discussion - General help and discussion for the mod system.
Github Issues - Submit a bug report for the game, including the mod system.

User avatar
King of Worms
Posts: 2347
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Adding time of day properties to flats

Post by King of Worms » Tue Apr 30, 2019 10:09 pm

Will try to do so tomorrow or at least before the weekend, thanks for offer!

User avatar
pango
Posts: 1483
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Adding time of day properties to flats

Post by pango » Wed May 01, 2019 11:16 am

Emission allows to detect the exit from far away, for the "night" version I wouldn't remove emission altogether, maybe just make it dark blue or something...
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
King of Worms
Posts: 2347
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Adding time of day properties to flats

Post by King of Worms » Thu May 02, 2019 11:20 am

pango wrote:
Wed May 01, 2019 11:16 am
Emission allows to detect the exit from far away, for the "night" version I wouldn't remove emission altogether, maybe just make it dark blue or something...
I agree... created this but Im not sure it is that interresting or good and if it is worth more work or I should create something else. Opinions welcomed. Ive used the moon from skyrim, just changed its color/brightness etc..
Also, I might remove the iron grate from the version we are using now, so this actual exit is more visible... juth how it is in these screens.
2.png
2.png (335.98 KiB) Viewed 1467 times

User avatar
jayhova
Posts: 621
Joined: Wed Jul 19, 2017 7:54 pm
Contact:

Re: Adding time of day properties to flats

Post by jayhova » Thu May 02, 2019 12:16 pm

That's beautiful. Needs an archway but other than that...
Remember always 'What would Julian Do?'.
Windows 10 Pro 64 bit. DFU Ver. Alpha 0.10.7

Post Reply