Modcraft - The community dedicated to quality WoW modding!

Content creation => Level Design => Tutorials => Topic started by: Steff on September 10, 2012, 09:12:33 am

Title: Ground effects
Post by: Steff on September 10, 2012, 09:12:33 am
WIP
Here I will ad a full groundeffects guide. But first here are some images that show the  of the amount/cluster value 10 in the DBC.

Ground effects



Description



Groundeffects are auto placed doodads sets that fill the ground. You dont have to place hundered or thousand of models, just create a new set and add it to the texture you like it to.

There is a special data array for this inside the Maptile (ADT) file that define what texture in a special square part of the ground is used for groundeffects source. Noggit SDL dont write this informations in the moment, so you need to update them with Mjollnas CMD tool after every texture change. This tool looks what the most common textur is on every of this squares (subchunks) and write down the texture id from 0 to 4 into this data array.

Create a new set



A set is always build out of 4 different models. You can browse the detail models that get used for this in following path inside your ModelViewer.

World/Nodxt/detail

Firs stepp is to search 4 nice models fitting to each other and your environment. Lets take the next 4 for our test.
DOnt be to critic here because you will see if they fit only ingame on the ground. Some mixtures that you think the will never fit work ingame fine.


Next we need to search the model IDs or even, it the are missing in the GroundEffectDoodad.dbc, we must add them. Use a DBC editor and search the models and write down the IDs of them. If the model is not inside the DBC just add it and write down the new ID. Set the third columm to 0 if you add new. I don´t know what this flag do. Its new since WotlK and if you have some idea post i will add this then.


Now we must create a new doodad set. Open the GroundEffectTexture.dbc in your DBC editor and inser a new line at the bottom with the next heigher ID.

(http://imagr.eu/up/504df0409915b8_Groundeffects1.jpg)

Write the 4 doodad IDs in the cells 2 till 4 (yellow). The next 4 values (green) define how often this doodad appear depending on the other values. The cell 6 is the value for doodad 1 and so on.

Next value in cell 10 is for the amount and the grouping of all dodads together. At the bottom of the tutorial you will find some Images that show some values for this cell.

Cell 11 (purple) is a link to the TerrainType.dbc. This DBC defines the sound you make, visual effects you get if you walk on ground. Like particels of sand flow up and footsteps you make in snow and sand. Just have a look at cell 2 in this DBC. There you have some description like sand or gras. So you can just use existing entrys here that fit to your texture.

Assigne your set to a texture



I use the old CMD tool to assign a groundeffects ID to a texture of my maptile (ADT). FIrst make a backup of your ADT your want to set the effects. Then copy the ADT you want to modify into the directory where your groundeffectadder.exe is located and drag&drop it on the exe.

(http://imagr.eu/up/504f387af41621_GroundEffectsAdder.jpg)

The tool will ask you now what ID you want to set for every in the ADT listed texture. Note that there can be mode textures be listed than you see on your adt. Just ignore the not used.

You can enter -1 if you don´t want to change an entry.
Enter now the ID if the texture occure that you want to add the ground effects set to.

You must redo this step every time you add a texture to the ADT or swap one in noggit.

Build the groundeffects date



Now we must build/rebuild the groundeffects data in the maptile.

First again BACKUP the files you want to change!

Now you must load the maptile with noggit and save it. Just locate the camera on the tile and select save current tile from file menu. Or just flatten blur all adts you want to edit with a value of 0 and save them all at once. This must be done because greachins water gets written on the end of the ADT where it not belongs and Mjollnas tool get problems with this.

Next copy the ADT to the folder where Mjollnas Groundeffects fix tool is located and drag&drop it on the exe. A black window will short open and you will see manny numbers flowting by.

(http://imagr.eu/up/504f3d8583e789_GEFix.jpg)

The tool don´t overwrite the original file. It creats a new one that get the string _new added at the end of the filename. Just delete the original, rename the _new file and copy it over to your patch folder.

You must redo this step every time you change texturing in noggit.

Now you must create a MPQ that includes the ADT and the 2 groundeffects DBCs in the right folders.
Go ingame and have a look. If the models don´t fit you can just edit the DBC entrys and set other model IDs.

It can take some time to get a good looking set that fits your environment.


GroundEffectTexture.dbc amount and grouping values cell 10



0
(http://imagr.eu/up/504d907838fcf7_0.jpg)

1
(http://imagr.eu/up/504d908f2c8944_1.jpg)

2
(http://imagr.eu/up/504d90abbc44a0_2.jpg)

4
(http://imagr.eu/up/504d90bbf0f272_4.jpg)

8
(http://imagr.eu/up/504d90cf607909_8.jpg)

16
(http://imagr.eu/up/504d90e595fdb5_16.jpg)

24
(http://imagr.eu/up/504d90f3e07768_24.jpg)

48
(http://imagr.eu/up/504d910a7c1f73_48.jpg)

128
(http://imagr.eu/up/504d911aaa8178_128.jpg)
Title: Re: Ground effects
Post by: longkallsong on September 10, 2012, 02:54:25 pm
Thats good , because i think many got the problem they dont know/get it to work. sadly im one of those to :(
but nice
Title: Re: Ground effects
Post by: Jøk3r on September 10, 2012, 11:07:43 pm
And the ground effects can be added to the adt by following eluos tutorial? I just tried to do it some time ago but it didn't work because i could drag'n'drop groundeffectadder.exe into the cmd console. o:
Title: Re: Ground effects
Post by: Steff on September 11, 2012, 11:10:13 am
It is still in Work. So just wait till finished. I only write this in public that you can already use the amount images.
Title: Re: Ground effects
Post by: Jøk3r on September 11, 2012, 01:10:42 pm
Ok ill wait (:
Title: Re: Ground effects
Post by: Steff on September 14, 2012, 01:49:49 pm
So please have a read over it. Is it clear enough?
Title: Re: Ground effects
Post by: Jøk3r on September 14, 2012, 02:20:42 pm
I'll test it now and edit this post (:


Edit:
For me it is clear and i think the most people shouldn't have problems with it:
(http://i.imgur.com/5FZJz.jpg)
Title: Re: Ground effects
Post by: Steff on September 14, 2012, 07:46:09 pm
Nice to here. If someone els have just post :)
Title: Re: Ground effects
Post by: fearless_wind on February 09, 2013, 05:26:29 pm
Somewhere WoW crashes after adding groundeffects. How can I solve this issue?
Title: Re: Ground effects
Post by: schlumpf on February 09, 2013, 05:45:55 pm
Quote from: "fearless_wind"
Somewhere WoW crashes after adding groundeffects. How can I solve this issue?
If it crashes somewhere, you need to do something.

Or provide actual information, if you want help.
Title: Re: Ground effects
Post by: fearless_wind on February 09, 2013, 06:04:52 pm
This application has encountered a critical error:

ERROR #132 (0x85100084) Fatal Exception
Program: D:World of Warcraft 2 - Siruswow.exe
Exception: 0xC0000005 (ACCESS_VIOLATION) at 001B:007B31F8
 Somewhere it works normal, but when I enter some chunks WoW instantly crashes.
Title: Re: Ground effects
Post by: schlumpf on February 09, 2013, 06:46:13 pm
https://www.google.de/search?client=saf ... 4ASgqIDoBA (https://www.google.de/search?client=safari&rls=en&q=007B31F8&ie=UTF-8&oe=UTF-8&redir_esc=&ei=V4sWUcfhCoWo4ASgqIDoBA" onclick="window.open(this.href);return false;)
Title: Re: Ground effects
Post by: Snys on February 11, 2015, 08:20:45 am
Sorry for my inglish ( i'm french ),
But this topic it"s for create a new ground effect on a adt, well me l Just want to delete a ground effect on a adt.
How I can do for delete a ground effect on a adt?
Thanks. :)
Title: Re: Ground effects
Post by: Amaroth on February 11, 2015, 12:10:26 pm
Enter effect ID 0?
Title: Re: Ground effects
Post by: Snys on February 11, 2015, 04:23:09 pm
ID : 0 don't work..
Title: Re: Ground effects
Post by: Ascathos on February 11, 2015, 04:36:35 pm
Quote from: "Snys"
ID : 0 don't work..
-1 has to work. 0 is a value that could be used.
Title: Re: Ground effects
Post by: Snys on February 11, 2015, 11:40:50 pm
Ok but what i can do for when i wrote 0, the ground effect vanish?
Title: Re: Ground effects
Post by: schlumpf on February 12, 2015, 12:42:01 am
iirc 0 is fine for "no doodads please". -1 was my sentinel for "don't change". don't have more info as I seem to not have added the "no doodads please" value to the wiki. think it was 0. -1 will be ignored by the tool. if 0 is not "none", sorry.
Title: Re: Ground effects
Post by: Snys on February 12, 2015, 07:57:51 am
Okay, i re-try and say to you if i've resolved this problem
Title: Re: Ground effects
Post by: schlumpf on February 12, 2015, 02:11:28 pm
it seems -1 is the value for none, but -1 is ignored by the tool. sorry. I don't know where I still have that source, but if anyone has, probably only replace all -1 by -2 and it would be fine. iirc I made the tool for new adts, where removing them was just not a thing so i didn't think about it.