Forum > Resources and Tools
[RELEASE] Darker Nights 4.3.4 (+3.3.5) v1.3
<< < (9/24) > >>
Milly:
Yes I did do it all by hand, it took 100 hours. It was quite miserable, in fact. :P
--- Quote from: "Magnus" ---In your file there are also much more records than in the original file. --- End quote --- Maybe it's because my mod is for Cataclysm, which has more zones, and therefore more light entries.
Also, 0x5A0 is 1440 in decimal. This means the time is set to noon (12:00 PM). 2880 is midnight.
kojak488:
--- Quote from: "Magnus" ---However, what I didn't understand at all is how the id is linked to a specific zone in light.dbc. In your file there are also much more records than in the original file. --- End quote ---
Perhaps you should try reading the links you posted?
--- Quote ---To get the right ID out from .Light.dbc (skyParam) you need to calculate it the following way: idLightIntBand = lightEntry.skyParam * 18 - 17 --- End quote ---
Each "ID" from light.dbc is a set of 18 IDs from LightIntBand.dbc.
Magnus:
Thanks for the info. In the meantime I also had a little bit more time to read more of this stuff.
And may the following snippet helps somebody to prevent the problem with rain/snow/fog destroying the night effect. Just add it in the beginning of Weather::ReGenerate() in weather.cpp. So you will have sun weather in the night. (May adjust the time).
--- Code: --- // night cycle if time between 21:00 and 6:00 time_t curTime = time(NULL); tm localTm; ACE_OS::localtime_r(&curTime, &localTm); if (localTm.tm_hour>=21 || localTm.tm_hour<=6) { TC_LOG_INFO("weather", "It's night time."); m_type = WEATHER_TYPE_FINE; m_grade = 0.0f; return false; }
--- End code ---
Milly:
--- Quote from: "Magnus" --- --- Code: --- // night cycle if time between 21:00 and 6:00 time_t curTime = time(NULL); tm localTm; ACE_OS::localtime_r(&curTime, &localTm); if (localTm.tm_hour>=21 || localTm.tm_hour<=6) { TC_LOG_INFO("weather", "It's night time."); m_type = WEATHER_TYPE_FINE; m_grade = 0.0f; return false; }
--- End code ---
--- End quote ---
Thanks Magnus, that's a pretty sweet idea :D
megasus:
Wow, this is indeed very cool.
Good job! ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
|