Modcraft - The community dedicated to quality WoW modding!

Content creation => Modelling and Animation => Topic started by: Darkkang on May 27, 2011, 04:08:02 am

Title: Help me to convert goblin / Worgen M2 of Cataclysm to wotlk
Post by: Darkkang on May 27, 2011, 04:08:02 am
Hi, sorry for my english, I'm Spanish and I would like your help giving me the M2 or skins of goblins and Worgens of Cataclysm for wotlk or provide me how to get them because they do not know much about this but your if help me a lot because we have a RP server and we need these races Equippable so I put them as playable.

Thank you very much, Darkkang
Title: Re: Help me to convert goblin / Worgen M2 of Cataclysm to wotlk
Post by: SirFranc on June 01, 2011, 12:01:19 pm
It's not the first request like that, before getting the new models, at least try to make the old one (goblin) playable, once you manage that you can use the new models, because along with that you need to edit the DBC files, the GlueXML and the core of your server, there should be a guide about that if i'm not mistaken, also you can look for infos on WoWDevWiki ;)
Title: Re: Help me to convert goblin / Worgen M2 of Cataclysm to wotlk
Post by: Darkkang on June 02, 2011, 12:09:43 am
Thanks for replying, but I need M2, I have edited the gluesXml, core, db, dbc and I have the goblin and worgen male of Cataclysm Beta, but I need the M2, skins and anims current Cataclysm as not work in wotlk.

Thanks.
Title: Re: Help me to convert goblin / Worgen M2 of Cataclysm to wotlk
Post by: Eluo on June 08, 2011, 04:46:25 pm
as there are no tools for that, i think you either will have to write your own, or do it by hand.
I doubt that anyone will do this for you cause it actually is some shitload of work and a thing of days/weeks and not a 5min thing^^.

Btw right under your topic was already a discussion about that.
viewtopic.php?f=7&t=553 (http://modcraft.io/viewtopic.php?f=7&t=553" onclick="window.open(this.href);return false;)
Title: Re: Help me to convert goblin / Worgen M2 of Cataclysm to wotlk
Post by: Guest on July 04, 2011, 06:27:23 pm
Quote from: "Eluo"
as there are no tools for that, i think you either will have to write your own, or do it by hand.
I doubt that anyone will do this for you cause it actually is some shitload of work and a thing of days/weeks and not a 5min thing^^.

Btw right under your topic was already a discussion about that.
viewtopic.php?f=7&t=553 (http://modcraft.io/viewtopic.php?f=7&t=553" onclick="window.open(this.href);return false;)

will this not work then?
Quote
import four.m2 as CataM2
import four.skin as CataSkin
from pym2_3.m2 import *
from pym2_3.skin import *

cata = CataM2.M2File("Male\GoblinMale.M2")
cataskin = CataSkin.SkinFile("Male\GoblinMale00.skin")

wotlk = M2File()
wotlk.hdr = cata.hdr
#change header version
wotlk.hdr.version = 264
wotlk.name = cata.name
wotlk.gSequ = cata.gSequ
wotlk.animations = cata.animations
wotlk.anim_files = cata.anim_files
wotlk.anim_lookup = cata.anim_lookup
wotlk.bones = cata.bones
wotlk.key_bones = cata.key_bones
wotlk.vertices = cata.vertices
wotlk.colors = cata.colors
wotlk.textures = cata.textures
wotlk.transparency = cata.transparency
wotlk.uv_anim = cata.uv_anim
wotlk.tex_replace = cata.tex_replace
wotlk.renderflags = cata.renderflags
wotlk.bone_lookup = cata.bone_lookup
wotlk.tex_lookup = cata.tex_lookup
#wotlk.tex_units = cata.tex_units #no
#add texunit
tu = Lookup()
tu.Id = 0
wotlk.tex_units.append(tu)
wotlk.hdr.tex_units.count += 1

wotlk.trans_lookup = cata.trans_lookup
wotlk.uv_anim_lookup = cata.uv_anim_lookup
wotlk.bounding_triangles = cata.bounding_triangles
wotlk.bounding_vertices = cata.bounding_vertices
wotlk.bounding_normals = cata.bounding_normals
wotlk.attachments = cata.attachments
wotlk.attach_lookup = cata.attach_lookup
wotlk.events = cata.events
wotlk.lights = cata.lights
#wotlk.cameras = cata.cameras #no
for i in cata.cameras:
 t = Camera()
 t.Type = i.Type
 t.FOV = i.UnkAnim.KeySubs[0].values[0]
 t.FarClip = i.FarClip
 t.NearClip = i.NearClip
 t.TransPos = i.TransPos
 t.Pos = i.Pos
 t.TransTar = i.TransTar
 t.Target = i.Target
 t.Scaling = i.Scaling
 wotlk.cameras.append(t)
wotlk.camera_lookup = cata.camera_lookup
wotlk.ribbon_emitters = cata.ribbon_emitters
wotlk.particle_emitters = cata.particle_emitters

wotlkskin = SkinFile()
wotlkskin.header = cataskin.header
wotlkskin.indices = cataskin.indices
wotlkskin.tri = cataskin.tri
wotlkskin.prop = cataskin.prop
wotlkskin.mesh = cataskin.mesh
wotlkskin.texunit = cataskin.texunit
for i in wotlkskin.texunit:
 i.texunit = 0

wotlk.write("WMale\GoblinMale.m2")
wotlkskin.write("WMale\GoblinMale00.skin")
Title: Re: Help me to convert goblin / Worgen M2 of Cataclysm to wotlk
Post by: detonatorss on April 07, 2012, 09:01:29 am
for when i posted i not this tool need another scripts in python
Title: Re: Help me to convert goblin / Worgen M2 of Cataclysm to wotlk
Post by: detonatorss on April 07, 2012, 09:20:54 am
more easy you can "cojerlos" of the cata alpha version and i have a cata worgen alpha working but have a lot of bugs XD but work good i am sorry for mi spanish word, because i don't know a lot of english and darkkang stay in my staff and is spanish
Title: Re: Help me to convert goblin / Worgen M2 of Cataclysm to wotlk
Post by: detonatorss on April 09, 2012, 05:55:23 pm
hey darkkang i have the models of Cataclysm Full