Modcraft - The community dedicated to quality WoW modding!

Featured => Noggit => Topic started by: Ulec on January 26, 2011, 10:04:28 pm

Title: [QUESTION] A few requests
Post by: Ulec on January 26, 2011, 10:04:28 pm
Is it possible to;


Also, as en extra question; could anyone hand over the spawnflags which determine the doodad sets of a wmo to me? I know the ones for the first two sets coming after default, but I have no clue regarding the rest since I've never run into a wmo in an adt which uses its third doodad set and it would be a tedious task to try to search for that while one of you might know the answer. Because you know, the DDset column in Taliis does not operate without the spawnflags filled properly, or doesn't do anything at all according to my practices.

Thanks in advance,
Ulec (from Prologue)
Title: Re: [QUESTION] A few requests
Post by: schlumpf on January 27, 2011, 02:54:37 am
Only with hex editing a WMO yourself. There is no such tool as of what I know.
Taliis may be able to do this. I also wrote a tool in C for this purpose once.. It may still be somewhere on the interwebs. Nothing in 3D though.
Try hitting numbers:
Code: [Select]
// doodads set
//! todo Does anyone use these?
//! Yes to change the doodadset of houses i use it . Steff :)
if( e->keysym.sym >= SDLK_0 && e->keysym.sym <= SDLK_9 && gWorld->IsSelection( eEntry_WMO ) )
gWorld->GetCurrentSelection()->data.wmo->doodadset = e->keysym.sym - SDLK_0;
No. SomeWhiteGuy did something on that topic in his map editor, but that thing is outdated and most likely also disappeared from the interwebs by now. There never have been other tools for non-flat-over-a-whole-adt-water.
http://madx.dk/wowdev/wiki/index.php?ti ... aTable.dbc (http://madx.dk/wowdev/wiki/index.php?title=AreaTable.dbc" onclick="window.open(this.href);return false;)
http://madx.dk/wowdev/wiki/index.php?ti ... aTable.dbc (http://madx.dk/wowdev/wiki/index.php?title=AreaTable.dbc" onclick="window.open(this.href);return false;)
http://madx.dk/wowdev/wiki/index.php?ti ... aTable.dbc (http://madx.dk/wowdev/wiki/index.php?title=WMOAreaTable.dbc" onclick="window.open(this.href);return false;)
Its just a number for the doodad set. 0-nDoodadSets. No flags there. If Taliis is showing flags and doodadset in one field, you may want to know its two 16 bit integers, the first one being flags, the second one the doodad set.
Title: Re: [QUESTION] A few requests
Post by: Ulec on January 27, 2011, 04:10:44 am
Thanks for both of your quick replies to my issues and questions :)

As for the doodadset appearance within the software; I've already tried hitting numbers from 0 to 9. Nothing happened.

As for the doodadset numbers and the spawnflags on Taliis. Nothing happens no matter what I type in the DDset column. Only the spawnflag column determines the in-game doodad sets for the wmo for me, strangely enough.

For instance;

65536 for First doodadset coming after default as the spawnflag; and 131072 for the second set. Even if you leave DDset column blank those doodadsets spawn still. If I leave the spawnflags column empty and just type in the DDsets, nothing happens. So I think they've lost their relevance to the doodadsets in my Taliis :)
Title: Re: [QUESTION] A few requests
Post by: schlumpf on January 27, 2011, 11:42:35 am
You need to have a wmo selected and press the normal numbers, not the numpad. Maybe its disabled in your revision though. Or you have hidden doodadsets in the View settings.

Well yeah, that's Taliis. Its just wrong with the columns. What you changed was namesets then, I guess. Tharo must have made a mistake there.

65536 as 32 bit integer in hex s 00 01 00 00. As two 16 bit integers, that's 1 for the doodadset and 0 for the spawnflags. 131072 is 00 02 00 00 in hex, so doodadset 2. So in order to get the correct one learn hex or take this list: 0, 65536, 131072, 196608, 262144, 327680, 393216, 458752, 524288, 589824, 655360 ...
If you also need spawn flags, just add them. Doodadset 1 with  flags 5 would be 65541 then.
Title: Re: [QUESTION] A few requests
Post by: Ulec on January 27, 2011, 05:09:41 pm
Ok thank you :)