Make night shorter then day - Day/night cycles

Hi,

I found how to change the day and night cycles by searching this forum. I change it and it work. But I was wondering if it is possible to make the night shorter then the day.

Is that possible and if so. Can someone tell me where I can change that in the source code. Day/night Dusk/Dawn. And if it is possible to make Dusk and Dawn shorter or longer

I found this code on the internet and someone extracted it from: \Interface\FrameXML of locale-enUS.mpq

And it had this code:

[FONT=Arial]GAMETIME_DAWN = ( 5 * 60) + 30; – 5:30 AM
GAMETIME_DUSK = (21 * 60) + 0; – 9:00 PM

function GameTimeFrame_Update()
local hour, minute = GetGameTime();
local time = (hour * 60) + minute;
if(time ~= this.timeOfDay) then
this.timeOfDay = time;
local minx = 0;
local maxx = 50/128;
local miny = 0;
local maxy = 50/64;
if(time < GAMETIME_DAWN or time >= GAMETIME_DUSK) then
minx = minx + 0.5;
maxx = maxx + 0.5;
end
GameTimeTexture:SetTexCoord(minx, maxx, miny, maxy);

	if(GameTooltip:IsOwned(this)) then
		GameTimeFrame_UpdateTooltip(hour, minute);
	end
end

end

function GameTimeFrame_UpdateTooltip(hours, minutes)
if(TwentyFourHourTime) then
GameTooltip:SetText(format(TEXT(TIME_TWENTYFOURHOURS), hours, minutes));
else
local pm = 0;
if(hours >= 12) then
pm = 1;
end
if(hours > 12) then
hours = hours - 12;
end
if(hours == 0) then
hours = 12;
end
if(pm == 0) then
GameTooltip:SetText(format(TEXT(TIME_TWELVEHOURAM), hours, minutes));
else
GameTooltip:SetText(format(TEXT(TIME_TWELVEHOURPM), hours, minutes));
end
end
end

function GameTime_GetTime()
local hour, minute = GetGameTime();

if(TwentyFourHourTime) then
	return format(TEXT(TIME_TWENTYFOURHOURS), hour, minute);
else
	local pm = 0;
	if(hour >= 12) then
		pm = 1;
	end
	if(hour > 12) then
		hour = hour - 12;
	end
	if(hour == 0) then
		hour = 12;
	end
	if(pm == 0) then
		return format(TEXT(TIME_TWELVEHOURAM), hour, minute);
	else
		return format(TEXT(TIME_TWELVEHOURPM), hour, minute);
	end
end

end[/FONT]

Thanks

That’s a clientside Lua script to modify the GameTimeFrame (the calendar icon in the top right corner) and has nothing to do with changing the game time.

Solution 1:

Theoretically you can change the time the TC server is sending.
Result: Players sees on the ingame clock a different time and it may have different other (unwanted) side-effects.

Solution 2:

You can change the time of light effects in the client table LightIntBand.dbc. That would need a custom MPQ patch later and in general: Hell of work.

For client modifications you can ask here: www.modcraft.io

Thanks for your reply,

I found the solution. They changed the code a bit in player.cpp and that is the reason I couldn`t change the in game speed time for WoW 7.3.5 and WoW 8.x.x.

I found the line of code that change in game speed and changed that to “0.1f”. If I am correct…day duration (06.00 till 18.00) is now for me 4 hrs and night duriation is (18.00 till 06.00) also 4 hours for me.

I am still changing the numbers a bit if I go for longer day`s and night. Or stick to 8 hrs day/night cycles.

I am happy with dusk and dawn but prefered the night maby 1 hr shorter. But I cant complain. Now I experience a better 24 hrs day cycles.

Thanks for your replay and problem solved.

Sky1