This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [TOOL] PyModelEditor  (Read 33977 times)

Tigurius

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 126
    • View Profile
[TOOL] PyModelEditor
« on: July 28, 2010, 12:24:23 pm »
So this is the Alpha Version, I'll release. It has been tested under Ubuntu and Windows Vista  until now, but it should run under every OS where a Python Interpreter and PyQt is available.

Things you need:
Python 2.6.x (other versions may work aswell)
PyQt4
PyOpenGL (most likely)


Currently, it's mighty enough, to add animated textures to models:


Atm it has no global m2, so you need to edit the things one after another (it doesn't update globally, yet). Big models, like Character ones, may need some time to load.
Run it via the startme.py file.


Download
Last Changes:
*Added LightEditor
*Added SequenceEditor
*Bugfixes
Old Versions:
DOWNLOAD NOW!
Old: http://www.file-upload.net/download-2593348/pymodeleditor.zip.html
Older: File-Upload.net - PyModelEditor-AlphaRelease.zip
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ultradeth

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 11
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #1 on: September 17, 2010, 05:18:55 am »
Ive downloaded everything, but what do I open?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Tigurius

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 126
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #2 on: September 17, 2010, 12:17:10 pm »
Quote
Run it via the startme.py file.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ultradeth

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 11
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #3 on: September 17, 2010, 09:21:27 pm »
It opens then instantly closes...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Tigurius

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 126
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #4 on: September 20, 2010, 02:40:06 pm »
Start it via cmd (Shift+righ click -> start command prompt -> either startme.py or python startme.py) and then post which errors occured.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

gorq

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 141
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #5 on: September 25, 2010, 03:51:55 pm »
it does not load pandarenmonk model... Can i make something to load this model in pymodeleditor?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Tigurius

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 126
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #6 on: September 26, 2010, 02:21:50 am »
For me it does.
Can you give me the error?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

gorq

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 141
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #7 on: September 26, 2010, 10:14:47 pm »
sure

Code: [Select]
Traceback (most recent call last):
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorpymodeleditor.py", line 156, in openM2
    self.m2 = M2File(openname)
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorm2.py", line 1095, in __init__
    f = open(filename,"r+b")
IOError: [Errno 22] invalid mode ('r+b') or filename: PyQt4.QtCore.QString(u'')
Traceback (most recent call last):
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorpymodeleditor.py", line 156, in openM2
    self.m2 = M2File(openname)
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorm2.py", line 1134, in __init__
    self.particle_emitters = ReadBlock(f,hdr.particle_emitters,Particle,self.anim_files)
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorwowfile.py", line 31, in ReadBlock
    temp = func().unpack(f,animfiles)
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorm2.py", line 739, in unpack
    self.Enabled = AnimBlock().unpack(f,DATA_INT,animfiles)
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorm2.py", line 337, in unpack
    temp = AnimSub().unpack(f,type)
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorm2.py", line 245, in unpack
    temp, = struct.unpack("i",f.read(4))
struct.error: unpack requires a string argument of length 4

« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Tigurius

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 126
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #8 on: September 29, 2010, 12:30:19 am »
Have you all the *.anim files in the directory?

Also try the newest version:
http://www.file-upload.net/download-285 ... r.zip.html
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

gorq

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 141
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #9 on: September 29, 2010, 02:50:59 pm »
I have extracted all .anim files in the same folder; and tried with new version; but pandarenmonk seems to not work.

Code: [Select]
Traceback (most recent call last):
  File "C:Documents and SettingsAdministradorEscritoriopymodeleditorpymodeleditor.py", line 188, in openM2
    self.m2 = M2File(openname)
  File "C:Documents and SettingsAdministradorEscritoriopymodeleditorm2.py", line 1134, in __init__
    self.particle_emitters = ReadBlock(f,hdr.particle_emitters,Particle,self.anim_files)
  File "C:Documents and SettingsAdministradorEscritoriopymodeleditorwowfile.py", line 31, in ReadBlock
    temp = func().unpack(f,animfiles)
  File "C:Documents and SettingsAdministradorEscritoriopymodeleditorm2.py", line 739, in unpack
    self.Enabled = AnimBlock().unpack(f,DATA_INT,animfiles)
  File "C:Documents and SettingsAdministradorEscritoriopymodeleditorm2.py", line 337, in unpack
    temp = AnimSub().unpack(f,type)
  File "C:Documents and SettingsAdministradorEscritoriopymodeleditorm2.py", line 244, in unpack
    temp, = struct.unpack("i",f.read(4))
struct.error: unpack requires a string argument of length 4



New version is great!!! :D Maybe you could add a UV Mapping util? ^^ This could fix a bit the Murloc :D:D

EDIT:

I want to add a bug i have noticed. When i modify texture type, PyModelEditor broke .anim animations. I have changed texture type via hexedit and it works fine ^^

EDIT2:

i think i have nothiced another bug in attachment point. When adding or modifing them it brokes .anim animations too. i have tried with m2modder and attachment adder and it works fine.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Herbalism

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 81
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #10 on: December 05, 2010, 10:59:59 pm »
Ok, to be completely honest here... I don't understand what this tool can do/does.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Jøk3r

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 544
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #11 on: December 27, 2010, 01:20:42 am »
I can't start the programm. It close itselfs instant :/
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
I don't like Noggit... I LOVE it :D
If you have any question about Noggit, feel free to contact me. I will give my best to help you (:

Eluo

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 509
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #12 on: February 06, 2011, 04:43:41 pm »
Take a look ito the log or post it in here :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
One is a genius, the other\'s insane!

Serifaz

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 293
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #13 on: February 08, 2011, 04:11:03 am »
Hey trying to get this program working...
not working out for me.

I did all of the above I downloaded all the files... I think my problem is I don't know what I am supposed to do with them / don't know were to put them / I need details.

I am kinda retarded when it comes to this stuff so I need a lot of details...
I have never ever ever EVER run python.
so please help me do this it would help me a lot with Ashbringer.

I have run the
startme py by running cmd. and then selecting it...
I don't know what you meen by shift right click.
that doesn't do anything when I try it but bring up the normal right click menu.

any help would be greatly appreciated, thanx in advance.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

SirFranc

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 209
    • View Profile
Re: [TOOL] PyModelEditor
« Reply #14 on: February 14, 2011, 01:31:30 am »
I installed everything, on startup pops an error:
Import Error: DLL load failed %1 is not a valid application of win32

O.o'
i wrote startme.py on the prompt...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Join the True Roleplay!