Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Syama108 on July 15, 2014, 06:21:20 am

Title: [SOLVED] How to change climate/weather/sky
Post by: Syama108 on July 15, 2014, 06:21:20 am
Hi. My name is Syama, New to modding WoW and learning quickly. (It's very fun :D)

I'm currently trying to make a snowy zone for a small project I'm working on and I have a question.

I managed to change the Light.dbc for the zone.. so the sun doesnt blind the player's eyes on the snow.. but how do I make it more cloudy and how do I setup weather so that it snows?

Currently the sky is sunny.. and I want to make it foggy and cloudy

And I wish to know how to setup weather!

Thanks in advance! Please help!

(I would post screenshots from the puush account but this forum doesnt allow me to link)
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: stan84 on July 15, 2014, 08:38:25 am
just add new record for area where you want add weather in game_weather table, in your server DB.
Its easy, explanation is not required ( i hope :)). Or do some experiments.

:)
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: Syama108 on July 15, 2014, 04:53:46 pm
Quote from: "stan84"
just add new record for area where you want add weather in game_weather table, in your server DB.
Its easy, explanation is not required ( i hope :)). Or do some experiments.

:)


Okay, I don't really need explanation I just needed to be directed on the right path to doing so :D I will try  to figure it out ;)

Thank you for the reply!
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: Syama108 on July 15, 2014, 05:18:39 pm
Okay so.. I went into the game_weather in my server and made a new row.. what do I set as the first column for "zone" my Area ID?

I set the area ID to my mountain area ID from my AreaTable.dbc but.. it didnt work.. what do I do?
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: p620 on July 15, 2014, 06:32:29 pm
Quote from: "Syama108"
Okay so.. I went into the game_weather in my server and made a new row.. what do I set as the first column for "zone" my Area ID?

I set the area ID to my mountain area ID from my AreaTable.dbc but.. it didnt work.. what do I do?
Yes, it didn't work for me as well. Currently I am in search of a new solution... Theoreticly it should work... First column is for the AreaID from the AreaTable.dbc, the others are for setting weather *proc chance* for different seasons. Also, the total sum of probabilities for a specific season should not be over 100%. But... In game there's still nothing.
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: stan84 on July 15, 2014, 06:39:35 pm
Exactly you have done it proper way i have also did this 1st time an it works.  I decided add weataher to my eversong zone on map 0 areaid 3430.
Look at my entries:

areatable.dbc
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: Syama108 on July 15, 2014, 10:02:41 pm
Mine is on a custom zone, in a custom map.. When I .gps ingame it says my zone and area are unknown, could that have anything to do with it?
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: stan84 on July 16, 2014, 08:13:57 am
have you:
- new areaid for custom zone in areatable.dbc and copied to server ?
- placed that areaid on edited map in noggit ?
- recreated maps files (which are contains your new areaid) in your server ?

Check all above things, but im almost sure your server does not have actual map files.

Stan :)
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: MR. Farrare on July 16, 2014, 11:46:51 am
or just put area id 0
it worked for me but the problem is the weather rain snow is every where but if you want a certain place do what stan said
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: Syama108 on July 16, 2014, 05:47:36 pm
Quote from: "stan84"
have you:
- new areaid for custom zone in areatable.dbc and copied to server ?
- placed that areaid on edited map in noggit ?
- recreated maps files (which are contains your new areaid) in your server ?

Check all above things, but im almost sure your server does not have actual map files.

Stan :)


I have done all of the above.

Still I get this in my .gps: "Map: 725 (rpgmod) Zone: 0 (<unknown>) Area: 0 (<unknown>)"
And I surely don't want my weather everywhere... just in this 1 zone (snow)

Wait.. did I forget to do something? How do I put my maps into my server? How do I extract maps/mmaps/vmaps from a custom patch?
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: stan84 on July 16, 2014, 08:11:06 pm
It depends of core you're using and client version. Generally you have to add in source code of your extractor, information about new patch MPQ's. And recompile it again. For example in my mangos extractor it looks like that :
mangos-classic / contrib / extractor / System.cpp

// List MPQ for extract from
const char* CONF_mpq_list[] =
{
    "dbc.MPQ",
    "terrain.MPQ",
    "patch.MPQ",
    "patch-2.MPQ",
    "patch-xx.MPQ",
};  

where xx are number of your custom patch.
For info how to extract maps, vmaps, and mmaps go on website of your core.


Stan
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: Syama108 on July 16, 2014, 09:38:11 pm
Quote from: "stan84"
It depends of core you're using and client version. Generally you have to add in source code of your extractor, information about new patch MPQ's. And recompile it again. For example in my mangos extractor it looks like that :
mangos-classic / contrib / extractor / System.cpp

// List MPQ for extract from
const char* CONF_mpq_list[] =
{
    "dbc.MPQ",
    "terrain.MPQ",
    "patch.MPQ",
    "patch-2.MPQ",
    "patch-xx.MPQ",
};  

where xx are number of your custom patch.
For info how to extract maps, vmaps, and mmaps go on website of your core.


Stan


I'm using Trinity Core and 3.3.5a I'll try the website. If you know of any tutorials or links you can give me to help me I'd greatly appreciate it. Or perhaps an extractor I can modify for my custom patch that isfor trinity core?
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: p620 on July 17, 2014, 09:03:08 pm
Quote from: "Syama108"
Quote from: "stan84"
have you:
- new areaid for custom zone in areatable.dbc and copied to server ?
- placed that areaid on edited map in noggit ?
- recreated maps files (which are contains your new areaid) in your server ?

Check all above things, but im almost sure your server does not have actual map files.

Stan :)


I have done all of the above.

Still I get this in my .gps: "Map: 725 (rpgmod) Zone: 0 (<unknown>) Area: 0 (<unknown>)"
And I surely don't want my weather everywhere... just in this 1 zone (snow)

Wait.. did I forget to do something? How do I put my maps into my server? How do I extract maps/mmaps/vmaps from a custom patch?
Check the Map.dbc. The column with a number of 23 (if I remember correctly) (3.3.5a) should contain correct  AreaID of the parent location, or it won't work.
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: Syama108 on July 17, 2014, 10:10:47 pm
What if I have multiple zones? I have a snowy mountains region, forest/plains ect.. I don't want it to snow everywhere.. just the mountains. If I set the Area ID in the map.dbc to my mountains then the whole map has zone/area as mountains
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: p620 on July 18, 2014, 03:55:40 am
Just set the *23* column to your parent AreaID in the Map.dbc and in the game_weather u should fill the *zone* column with a specific areaID of your zone which weather needs changes.
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: Syama108 on July 18, 2014, 06:08:35 am
Quote from: "p620"
Just set the *23* column to your parent AreaID in the Map.dbc and in the game_weather u should fill the *zone* column with a specific areaID of your zone which weather needs changes.




What is my parent Area ID?

All I have is my map which is 725 and my Mountain area from the AreaTable.dbc which is 108108.

I tried making an area called "Test" which I set the mountains to it's parent area then setting test to the column 23 in map.dbc. But now the whole world's zone is Test


And back to my other question, how do I get the vmaps/map files from my custom map to my server? Where do I get an extractor that I can modify to extract my custom patch?
Title: Re: [QUESTION] How to change climate/weather/sky
Post by: Syama108 on July 30, 2014, 03:50:44 am
Okay, nevermind.. I figured out how to get to the source code of my tools after some long compiling. Thanks for your previous efforts guys! Ty! Thread Closed.
Title: Re: [SOLVED] How to change climate/weather/sky
Post by: Steff on July 30, 2014, 07:19:30 pm
You need to recode sour extractor.  Kt is not so hard.  As you run a server you should have setup compile environment.  Go to your ide and search in the extractor code.