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: How i Can add A Clock time to a zone?  (Read 2007 times)

frezer748

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 175
    • View Profile
How i Can add A Clock time to a zone?
« on: April 28, 2011, 10:37:33 pm »
How can i make a clock zone for one zone? i mean a freeze time like 16:00 Clock and that the time on the zone are 4 ever,and how i can add another Sky for my zone and how can i make that the Mountains not so much lightning
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: How i Can add A Clock time to a zone?
« Reply #1 on: April 28, 2011, 10:44:03 pm »
http://wowdev.wiki/index.php?title=Map.dbc ->      TimeOfDayOverride    Integer    Set to -1 for everything but Orgrimmar and Dalaran arena. For those, the time of day will change to this.

This wont stop the clock though but wont change the sky. (actually, its pretty useless.)

You could as well just delete alll time and value pairs for the hours you dont want in your light dbc entries.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

frezer748

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 175
    • View Profile
Re: How i Can add A Clock time to a zone?
« Reply #2 on: April 28, 2011, 11:54:03 pm »
and how i can make  another sky? i mean change the sky,and how i turn off the ligh effects on the mountains
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: How i Can add A Clock time to a zone?
« Reply #3 on: April 29, 2011, 12:24:59 am »
[center:2pxaz965]

[li]global lights. defined for the map.[/li]
[li]lights in WMOs (/ M2s)[/li][/list]
In this guide I will only have a look on the map ones. Those are defined for a specific position on a map.
Lets say the sky in the Emerald Dream. Its defined that there are the following skies in Emerald Dream:
  • Position: 610565.0,0.0,501645.0; Range: 25994.0,39778.0; Sky: 187,188,10,11,4,
  • Position: 681133.0,-3835.0,699542.0; Range: 31902.0,41354.0; Sky: 189,188,10,11,4,
  • Position: 547200.0,0.0,566400.0; Range: 55138.0,72074.0; Sky: 190,188,10,11,4,
  • Position: 499200.0,0.0,748800.0; Range: 40960.0,51594.0; Sky: 191,188,10,11,4,
So, where did I get those from? Light.DBC. Its in the localizised MPQs. Most likely WoWDataenGBpatch-enGB-2.mpq.
But its always the highest number of the patch-file. So no guarantee on that filename. In that file the DBC is here:
*.mpqDBFilesClientLight.dbc. Just extract that one, you wont really need more files. There are a few other files but
you wont be able to change something good in those files. The other files are the other Light*.dbcs. They are actually
defining the colors etc but you will better only change skies to existing ones. Its way easier. We actually don't even
know everything on the files, its a bit complicated. But well, lets analyse the Light.dbc. Its built up like this:
  • ID of the sky
  • Map the sky is on
  • x -+
  • y .| the position of the sky on that map multiplied by 36
  • z -+
  • inner radius. where you are actually inside of the sky. again *36
  • outer radius. where you are seeing the sky but not in it. again *36
  • Sky, Fog
  • Water
  • other settings 1
  • other settings 2
  • other settings 3
The Sky, Fog, Water and other settings are references to the oter Light*.dbcs. As said, you don't need to modify them,
just use exisitng values.
The other values are pretty self explaining. Lets see again on a example:
Quote
97,36,0.0,0.0,0.0,0.0,0.0,96,97,10,11,4,
Well .. we got: Light number 97 on "DeadminesInstance" with the position 0,0,0 and the radius 0 to 0. Wait, wha? 0,0,0 and 0 -> 0?
Well, that means this is the standard sky on that map. Its everywhere there.
The other values are defining the sky. I actually don't know what they exactely make the sky look like.. I can't be arsed to
know every sky by heart :P So do you. Just try them. See if you find a nice looking one and copy it. My favorite sky is this:
Quote
...,448,345,448,345,3,
Its the one I used in tirisfal for those who may want a screen of it.

Lets actually say how to modify the sky.
  • Export and convert / open the Light.dbc.
  • Search for the sky you want to edit.
    On this step I may add that its possible to remove all skies on a map and just use the global one. Its a lot easier than
    changing every sky until you found the right one. On that check the end, I will post a template there.
  • Edit the settings, most likely the last ones since you won't want to move the sky around, or? :P
  • reconvert / pack and be happy.

Yes, I know this sounds a bit stupid on "How to change the sky?". But meeeh .. it is. Thats all. Chaning the actual values of
the light so it will fit yours. Nothing big on it.

If you got questions on anything or if that "guide" was too bad, just answer. I will see if I can add it or clear it up for you.
But actually this should be all the information you need.

long,long,long,long,long,long,None,long,long,long,long,long,
1,0,0,0,0,0,0,448,345,448,345,3,
2,1,0,0,0,0,0,448,345,448,345,3,
3,13,0,0,0,0,0,448,345,448,345,3,
4,30,0,0,0,0,0,448,345,448,345,3,
5,33,0,0,0,0,0,448,345,448,345,3,
6,35,0,0,0,0,0,448,345,448,345,3,
7,36,0,0,0,0,0,448,345,448,345,3,
8,37,0,0,0,0,0,448,345,448,345,3,
9,44,0,0,0,0,0,448,345,448,345,3,
10,47,0,0,0,0,0,448,345,448,345,3,
11,129,0,0,0,0,0,448,345,448,345,3,
12,169,0,0,0,0,0,448,345,448,345,3,
13,189,0,0,0,0,0,448,345,448,345,3,
14,209,0,0,0,0,0,448,345,448,345,3,
15,249,0,0,0,0,0,448,345,448,345,3,
16,269,0,0,0,0,0,448,345,448,345,3,
17,289,0,0,0,0,0,448,345,448,345,3,
18,329,0,0,0,0,0,448,345,448,345,3,
19,309,0,0,0,0,0,448,345,448,345,3,
20,429,0,0,0,0,0,448,345,448,345,3,
21,451,0,0,0,0,0,448,345,448,345,3,
22,469,0,0,0,0,0,448,345,448,345,3,
23,489,0,0,0,0,0,448,345,448,345,3,
24,509,0,0,0,0,0,448,345,448,345,3,
25,529,0,0,0,0,0,448,345,448,345,3,
26,530,0,0,0,0,0,448,345,448,345,3,
27,531,0,0,0,0,0,448,345,448,345,3,
28,532,0,0,0,0,0,448,345,448,345,3,
29,542,0,0,0,0,0,448,345,448,345,3,
30,543,0,0,0,0,0,448,345,448,345,3,
31,550,0,0,0,0,0,448,345,448,345,3,
32,552,0,0,0,0,0,448,345,448,345,3,
33,553,0,0,0,0,0,448,345,448,345,3,
34,554,0,0,0,0,0,448,345,448,345,3,
35,555,0,0,0,0,0,448,345,448,345,3,
36,556,0,0,0,0,0,448,345,448,345,3,
37,557,0,0,0,0,0,448,345,448,345,3,
38,558,0,0,0,0,0,448,345,448,345,3,
39,560,0,0,0,0,0,448,345,448,345,3,
40,564,0,0,0,0,0,448,345,448,345,3,
41,566,0,0,0,0,0,448,345,448,345,3,
42,568,0,0,0,0,0,448,345,448,345,3,
43,572,0,0,0,0,0,448,345,448,345,3,
[/code]

Well, that's it. Feedback!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: How i Can add A Clock time to a zone?
« Reply #4 on: April 29, 2011, 12:25:08 am »

[li]Light [/li]
[li]LightIntBand [/li]
[li]LightFloatBand [/li]
[li]LightParams[/li]
[li]LightSkybox[/li][/list]

Here comes what we know about these different files and what we need to know:

ID
number of entries for this parameter of the sky
15 timestamps
15 datafields in float or integers.[/indent]

The problem with these two files is: Noone was crazy enough to try all values and write down the things that have changed. So our information is pretty limited.
LightIntBand is actually pretty good documented while LightFloatBand is just a collection of unknown values.

[color="#ffffff"]13,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[/indent]

We got 1 timestamp with the value 0 and the data for it is 0 too.

Thats a nice one. But, what we forgot is]0xAARRGGBB[/indent]
As we see: two bytes per value, alpha, red, green and blue.

So what we have to do is "translating" this to hex before we even can say something about the color. In this case 0 is very easy easy. Its 0x00 00 00 00. For the calculation of hex-numbers google or use the calc.exe you should have.

This 00 00 00 00 means: 0 alpha, 0 red, 0 green, 0 blue which actually is a fully transparent but black color which you don't see. As said: its transparent. You wont see black clouds.

What we could do is making these black, invisible clouds visible rosè clouds.
So the first step is getting the color:

For this you can use online hex-color-sites, msPaint, Photoshop or actually any other graphic programm.

What I will use is a color I use all the the time in the shoutbawx: [color="#ffc0cb"]rosè[/color]. The RGB hex-code for this is ff c0 cb. The normal way to write this in the web is #ffc0cb. Or for progammers]13,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4294951115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[/indent]
We just put this value in the first field of our data list. And this is actually how its done all the time.

But since this is too less to write a guide, we will add another thing.
Lets say: Let these clouds fade to an other color at mid-day aka 1200 / 12 am or whatever. But how do we express this in an integer?

Easy: The timestamps are made in half-minutes since midnight. So we get:
[indent]12 hrs = 12 * 60 minutes = 12 * 60 * 2 half-minutes[/indent]
Which means that our timestamp is 1440 then. And its the same procedure for every time you want.

So first we increase the number of cloud-colors in the second field, then we add the second timestamp and an other color. Pullefjun, give me a color! :D

[indent][color="White"]Anders | Pullefjun @ Hemma igen ]
[indent]: >
Eliteuser purple[/indent][/indent]

Mmh k, let me get that.
So our color for this is the eliteuser-purple as puLLefjun wished: #9900ff.

And we got:
  • 13, - id
  • 2, number of entries
  • 0,1440, - our timestamps
  • 4294951115, 4288217343, - our colors
or in the full line:
[indent]13,2,0,1440,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4294951115,4288217343,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[/indent]

But lets end this color juggling here. I think its your problem to find the right colors and timestamps and you should get it from the given information now. You really have all information you need.
21:39):

[indent][color="#ffffff"]Anders | Pullefjun @ Hemma igen ]
[indent]if I add another timestamp, lets say one hour later. 1560, would it be:
13,2,0,1440,0,1560?[/indent][/indent]

Well. 1560/2/60=13 but increase the number of entries and place the next value right behind the last one. It shouls be:
[indent]13,3,0,1440,1560,0,0,0,...[/indent]

And now have a last step to:

[color="#ffffff"] (<]
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

frezer748

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 175
    • View Profile
Re: How i Can add A Clock time to a zone?
« Reply #5 on: April 29, 2011, 12:36:04 am »
holy shit what a long text,thanks schlumpf ,but isn't it easier with this tool? http://www.mmowned.com/forums/world-of- ... ditor.html   I found it some minutes before you post your text


So i change the light.dbc with your guide and put the light.dbc that i modified into my custom patch (into the folder DBfilesclient) but the sky haven't change =( http://www.imagebanana.com/view/nl0imtj5/light.png
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Eluo

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 509
    • View Profile
Re: How i Can add A Clock time to a zone?
« Reply #6 on: April 29, 2011, 08:50:55 pm »
could be possible with this tool. The problem is that in my version of this program , if i add a new skybox the list of the box doesnt get bigger and so it is very very hard to click on your new skybox to edit it. Another skybox doesnt even appear since the size of the box seem to be fixed.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
One is a genius, the other\'s insane!

frezer748

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 175
    • View Profile
Re: How i Can add A Clock time to a zone?
« Reply #7 on: April 29, 2011, 09:05:08 pm »
Quote from: "Eluo"
could be possible with this tool. The problem is that in my version of this program , if i add a new skybox the list of the box doesnt get bigger and so it is very very hard to click on your new skybox to edit it. Another skybox doesnt even appear since the size of the box seem to be fixed.



eluo can you help me with my problem ? "So i change the light.dbc with your guide and put the light.dbc that i modified into my custom patch (into the folder DBfilesclient) but the sky haven't change =( http://www.imagebanana.com/view/nl0imtj5/light.png"


BTW: The Create with Vmaps don't work the extracot crash,at what time you comes online against in skype i want talk with you :D
« Last Edit: January 01, 1970, 01:00:00 am by Admin »