Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Serifaz on June 22, 2011, 03:47:53 am

Title: [QUESTION] How to add new Game Objects, or swap them
Post by: Serifaz on June 22, 2011, 03:47:53 am
Hey all I have been building models for the Pandaren houses. I have a couple done.. But I'm thinking I may have wasted my time... I tried figuring out how to add new custom models as game objects but couldn't so i figured I would copy over one that isn't in the game officially...
So I took the m2 of a different object and swapped it but when I spawn it in game nothing shows up...

Sorry I know I'm still figuring stuff out... but any help would be greatly appreciated:)

P.s. if it is possible to make new entries for new game objects I would love to know how.
Title: Re: [QUESTION] How to add new Game Objects, or swap them
Post by: Eluo on June 22, 2011, 04:37:02 am
Should be easy ;)
One entry in GameObjectDisplayInfo.dbc and serverside a entry into gameobject_template(trinity) or the table for gameobjects of your server core.

Why your models wont show up could have multiple diffrent causes...hmm...just check everything again it should definitly work.


btw /moved to database as it is dbc related
Title: Re: [QUESTION] How to add new Game Objects, or swap them
Post by: Serifaz on June 22, 2011, 05:38:51 am
thanx Eluo... just a question I don't see any m2 files in the gameobject dbc file... they are all mdx or wmo... does my file have to be a mdx or can it be an m2 ... if so, should I inter the m2 file in the dbc. or refer to it as a mdx / wmo?
Title: Re: [QUESTION] How to add new Game Objects, or swap them
Post by: Excon on June 22, 2011, 06:55:44 am
m2 files are for characters and npc's the others are objects.
Title: Re: [QUESTION] How to add new Game Objects, or swap them
Post by: Eluo on June 22, 2011, 11:52:14 am
mdx was the old model format for smaller models in for example warcraft 3 and so on. As blizzard has its own structure , wow was based on this , and this is also how we got .dbcs and so on.
Some formats have changed and we now have .m2 but in most of the dbcs and also in adt files, models are internally handeled as .mdx and not as .m2 files. For what purpose? I dont think even blizzard knows a reason :D

If you ever see many .mdx paths , then just replace just in the path of course the .m2 with .mdx as the only .mdx models in wow are vanilla groundeffect doodads ;)
Title: Re: [QUESTION] How to add new Game Objects, or swap them
Post by: schlumpf on June 22, 2011, 01:32:05 pm
Actually, internally all .mdl and .mdx files are interpreted as .m2 when opening / creating a model. There is no difference if you name the entry bla.mdx or bla.m2, the client can use both.

MDX is still used internally.
Title: Re: [QUESTION] How to add new Game Objects, or swap them
Post by: Serifaz on June 24, 2011, 01:58:49 am
O.k. I have a test .m2 for an object, it can be anything...
but if I make a 3ds file of a house, will 3dstom2 convert it to an m2 that can be placed in game once the dbcs are updated, and entries are in the database?
Title: Re: [QUESTION] How to add new Game Objects, or swap them
Post by: Steff on June 24, 2011, 10:02:02 am
I have tested around with this and never get any model converted cleant that i could use it in WoW. If anyone get this to work it whould be nice to se a tutorial online.
Title: Re: [QUESTION] How to add new Game Objects, or swap them
Post by: Nils54 on August 06, 2011, 07:02:38 pm
Hello want to build you a completely new object?