This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] Daytime customization  (Read 1514 times)

Cunninghamella

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 2
    • View Profile
[QUESTION] Daytime customization
« on: October 02, 2012, 01:07:46 pm »
Hello, I have couple of questions which were not, to my best knowledge, asked in this forum.

1) Does anybody know, where I can find the information about the exact time range, which defines "day" and "night" (used in zonemusic.dbc for example). I'd like to shift the threshold, when the "day" ends and the "night" begins. I suppose it is stored somewhere in the DBC but cannot find out the exact location.

2) Is there any chance to edit sun trajectory during the daytime? At now, both the dawn and sunset happen on the same place. I'd like to make the sun reach the zenith and then continue to the opposite side of the horizont. Also, the sun position on our map is not correct (actually it shines on the north), could it be changed as well?

3) This is kinda offtopic, but I'd feel bad for making brand new topic.
Some buildings have the ability to start playing music when entered (taverns, etc.). I'm pretty sure that it is not controlled via AreaID (maybe somewhere in wmo). Does anybody have an experience with these triggers, that change music between exterior and interior? If so, where I can find them to change it?

Thank you very much for any response!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Daytime customization
« Reply #1 on: October 02, 2012, 01:32:39 pm »
Good Questions imo.

1. Try LightIntBand.dbc - at least, there you can set some colors for specific times. Else, I am quite sure that Blizzard is using actual time (read: local server time) for the night-day reference.

2. I think - and I am quite sure that I am actually wrong - that this is done by a texture and a client-side animation. I can't tell you much about this, maybe someone else has more experience. I could imagine that, though.

3. While it is only used for waterfalls, I'd give SoundEmitters.dbc a try. Might work out for you ?


I can't give you specifics, as I didn't try that yet, but these are the most-direct I can muster right now.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Cunninghamella

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 2
    • View Profile
Re: [QUESTION] Daytime customization
« Reply #2 on: October 02, 2012, 02:01:54 pm »
What a quick answer. Thank you for your time! I gonna test all possible advices soon and then send a report about it.

1) I'll try that, but even if Blizzard is using actual server time, there should be defined somewhere, which time range (hour) is considered as "day" or "night" (also, when the game swithes zone music/ambience). For a color change, I work with Skybox editor which helps me to easily define hour and color from a palette.

3) Nice. I have found the values defined not only for waterfalls, but also for bonfires and another stuff. There is not many buildings with own interior music, so they really could be involved in this DBC, hidden among plenty of waterfalls.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Daytime customization
« Reply #3 on: October 02, 2012, 02:29:24 pm »
Quote from: "Cunninghamella"
[...]1) I'll try that, but even if Blizzard is using actual server time, there should be defined somewhere, which time range (hour) is considered as "day" or "night" (also, when the game swithes zone music/ambience). For a color change, I work with Skybox editor which helps me to easily define hour and color from a palette.
Day and Night could be interacted through the light.dbc, but I rather think that this is done through Day and Night.

Then again, the Outlands don't use Day and Night the way Azeroth does, doesn't it ? So it might be done with some sort of DBC setting.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »