Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => "Retro-Porting" => Topic started by: matem on November 23, 2016, 11:20:18 pm

Title: [RELEASE] Final fix for Legion helmet
Post by: matem on November 23, 2016, 11:20:18 pm
This script requires python and PyM2 to work.

It realign the position of every helmet model to match with the position of older expansions (from Classic to WOD).

Just place the two scripts in the same folder of PyM2 and create a folder called "M2", all the m2 to be converted must be in this folder.

This must be the folder structure:

PyM2
   |
   |------->1-LegionHelmet_FIX.py
   |
   |------->2-LegionHelmet_FIX.py
   |
   |------->M2

Run first the 1-LegionHelmet_FIX.py then 2-LegionHelmet_FIX.py

Here all the coords for every race/gender:
viewtopic.php?p=57861#p57861 (http://modcraft.io/viewtopic.php?p=57861#p57861" onclick="window.open(this.href);return false;)

PyM2 download: https://storage.googleapis.com/google-c ... rchive.zip (https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/pym2/source-archive.zip" onclick="window.open(this.href);return false;)

thanks to inico for his youtube video
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: Uthil on November 23, 2016, 11:50:42 pm
Going to test if works for all races. Till now gnomes and Undeads was busting balls until i could align them correct . If this works GREAT PIECE of WORK MATE !


***UPDATE :
Tested on female undead, doesnt position correct.
The coordinates Iniko provides are for humans. Else did i made a mistake ?
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: matem on November 24, 2016, 10:50:16 am
Quote from: "Uthil"
Going to test if works for all races. Till now gnomes and Undeads was busting balls until i could align them correct . If this works GREAT PIECE of WORK MATE !


***UPDATE :
Tested on female undead, doesnt position correct.
The coordinates Iniko provides are for humans. Else did i made a mistake ?

Yes you are right, i attached a file here for modify the coords. Just change it to match the cords of the race. For example for gnome i used

a.x = float(-0.0227258)
a.y = float(0.0)
a.z = float(-0.18623257)

Run it only after the first two files in the first post.
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: Uthil on November 24, 2016, 03:16:46 pm
Quote from: "matem"
Quote from: "Uthil"
Going to test if works for all races. Till now gnomes and Undeads was busting balls until i could align them correct . If this works GREAT PIECE of WORK MATE !


***UPDATE :
Tested on female undead, doesnt position correct.
The coordinates Iniko provides are for humans. Else did i made a mistake ?

Yes you are right, i attached a file here for modify the coords. Just change it to match the cords of the race. For example for gnome i used

a.x = float(-0.0227258)
a.y = float(0.0)
a.z = float(-0.18623257)

Run it only after the first two files in the first post.


Edit: just tested every race and gender, these are the right coords:

HUMAN (male and female), NELF (male and female), DRANEI (male and female), ORC (male and female), TAUREN (male and female), TROLL (male), BELF (male):
   a.x = float(-0.0587258)
   a.y = float(0.0)
   a.z = float(-0.18623257)

TROLL (female):
   a.x = float(-0.0887258)
   a.y = float(0.0)
   a.z = float(-0.08623257)

BELF (female):
   a.x = float(-0.0087258)
   a.y = float(0.0)
   a.z = float(-0.18623257)

UNDEAD (male):
   a.x = float(-0.0959258)
   a.y = float(0.0)
   a.z = float(-0.12623256)
   
UNDEAD (female):
   a.x = float(-0.0019258)
   a.y = float(0.0)
   a.z = float(-0.15623257)
   
GNOME (male and female), DWARF (male and female):
   a.x = float(-0.0227258)
   a.y = float(0.0)
   a.z = float(-0.18623257)
Thanks very much, going to check.
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: inico on November 24, 2016, 05:10:42 pm
Nice tool! Tested it with a few models and it's working correctly.
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: Uthil on December 03, 2016, 01:00:05 pm
So for the paladins [ helm_plate_raidpaladin_q_01_hum.m2 ]helmet i get this error in pymodeleditor :
Any idea how to overpass this ? Also the 1st fix script dont work so thats why i run it on the Py editor to see what error appears.

**UPDATE
Same error with shamanMythic helmet, tho here normal is working but paladins normal not.
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: matem on December 03, 2016, 03:25:23 pm
Have you converted m2 to wotlk
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: Uthil on December 03, 2016, 03:34:47 pm
Quote from: "matem"
Have you converted m2 to wotlk

No, i actually change the header so to be MD20 with also column 4 from 12 to 10. Kinda like manually downgrade to WoD. Going then to try use phillips tool and recheck them. Till now with that procedure didn't had any issue ill try convert it to WotLK version.

**UPDATE
Dont know i get it down to LK with either kowards tool or philips tool but then i cant turn it down to classic. I might doing something wrong, kinda frustrated.
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: matem on December 03, 2016, 11:13:14 pm
try with this
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: Uthil on December 04, 2016, 01:58:39 pm
Quote from: "matem"
try with this

Yup i have this one and adspartans  and i use in every conversion im doing. First with Py editor for coords, then i use that and then finally i downport them to classic. So till now for some weird reason paladin - shaman and rogue (fount it now) after conversion game crash.
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: Uthil on December 06, 2016, 06:54:56 am
ok i hyst made again an attempt for this paladin helmet, i figure out that i had to run the tool before i edit it with the pymodeleditor. Now when i game when i select the paladin i crash with the following error .

By the way i reposition all bones under the human coordinates, even those that has a particle. Ill try a few more test later tonight. Any idea about this error ?
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: hyakkimaru on December 11, 2016, 06:32:29 pm
Hi,

I tried an other thing, since I'm using races models from Legion, I have an other issue, every helmets from previous version are misplaced on my chars, do you know how to adapt vanilla, tbc, other versions helmets to my models ?

I haven't touched python for a long time and I'm kinda... lost  :?
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: Uthil on December 11, 2016, 06:44:38 pm
Quote from: "hyakkimaru"
Hi,

I tried an other thing, since I'm using races models from Legion, I have an other issue, every helmets from previous version are misplaced on my chars, do you know how to adapt vanilla, tbc, other versions helmets to my models ?

I haven't touched python for a long time and I'm kinda... lost  :?

You mean you are using legion chars models downported to the rest versions, like tbc or classic ?
Im already doing this since im using T19 sets to replace the T3. Im stuck on paladins/shaman/Rogue by getting this error that i post above.

You can do it by following the 2 methods, one by inico and the one by matem. As far ask i know, from WotLK and beyond seems to work. But for classic as i said i have stuck on those 3, i have complete rest class changes.
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: hyakkimaru on December 11, 2016, 07:05:06 pm
After some tests I get this error :

pym2trunkm2.py", line 928, in unpack
    self.Timestamp, = struct.unpack("i",f.read(4))
struct.error: unpack requires a string argument of length 4

>_> my computer seems to refuse to be nice with me
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: Darkkang on December 23, 2016, 07:10:45 pm
What are the coordinates of the Pandaren?
Thx
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: matem on December 25, 2016, 11:27:12 am
Quote from: "Darkkang"
What are the coordinates of the Pandaren?
Thx
I ported legion items to wotlk, i dk what are the coordinates of the pandaren
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: Simple_Spectr on January 10, 2017, 04:14:35 pm
Link on PyModelEditor tool is dead. :(
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: inico on January 10, 2017, 08:53:54 pm
Quote from: "Simple_Spectr"
Link on PyModelEditor tool is dead. :(

Then use THIS ONE (http://modcraft.io/viewtopic.php?f=53&t=3846).
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: Deimos2110 on February 15, 2017, 04:38:27 am
Update link on "Legion fix" plz!
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: IPEINA on February 19, 2017, 02:18:28 pm
Hi, buddy.I in you share PYM2 didn't find what you are saying LegionHelmet_FIX. Py script.You upload attachment link has failed, can you give me a copy.Thank you very much!
Title: Re: [RELEASE] Final fix for Legion helmet
Post by: Uthil on March 01, 2017, 09:14:13 am
When im trying to edit a weapon from cata i get this error :
Code: [Select]
Qt: Untested Windows version 6.2 detected!
Traceback (most recent call last):
  File "C:UsersZerocoolDesktoppymodeleditorpymodeleditor.py", line 188, in openM2
    self.m2 = M2File(openname)
  File "C:UsersZerocoolDesktoppymodeleditorm2.py", line 1134, in __init__
    self.particle_emitters      = ReadBlock(f,hdr.particle_emitters,Particle,self.anim_files)
  File "C:UsersZerocoolDesktoppymodeleditorwowfile.py", line 31, in ReadBlock
    temp = func().unpack(f,animfiles)
  File "C:UsersZerocoolDesktoppymodeleditorm2.py", line 679, in unpack
    f.seek(self.ofsModel)
IOError: [Errno 22] Invalid argument

Any idea whats going wrong there ??