Nmaxtoolbox-Importer for Drakensang and other Nebula2 games

Post questions about game models here, or help out others!
User avatar
Tosyk
double-veteran
double-veteran
Posts: 953
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 227 times
Been thanked: 123 times
Contact:

Re: Nmaxtoolbox-Importer for Drakensang and other Nebula2 games

Post by Tosyk » Sat Jun 05, 2010 7:51 am

Szkaradek123 wrote:Models have weight data
I don't know how to get weighting data :(

What i do:

1. copying .py and .blend files to

Code: Select all

D:\Games\Drakensang\pack_npk
2. starting Blender v2.49b (python v2.6.2 + PyFFI v2.1.4.win32)
3. i open the file

Code: Select all

D:\Games\Drakensang\pack_npk\nebula.blend
4. changing

Code: Select all

     #root = Blender.sys.dirname(filename)
     root="c:/Program Files/Drakensang/pack.npk"+os.sep
to

Code: Select all

     #root = Blender.sys.dirname(filename)
     root="D:/Games/Drakensang/pack_npk"+os.sep
5. saving .blend and executing it
6. loading ogre.n2 from

Code: Select all

D:\Games\Drakensang\pack_npk\gfxlib\characters
7. "chose character ogre window" shows up
8. i choosing simply ogre and press ok
9. loading all bones and models
10. press A (for all selecting)
11. file -> export -> fbx/dae
12. no matter in what i exporting, result are the same: bones and models without skin modifier.

p.s.: i don't know how to use Blender, but i think something wrong happen 6 step (above). Can you help me with this issue? :(

upd:

I'm noticced that my blender create .pyc files with same name as .py. Maybe issue in this?
Image
Thank you for all you do here
my blog | my forum

Szkaradek123
mega-veteran
mega-veteran
Posts: 293
Joined: Wed May 05, 2010 8:21 pm
Location: Poland Głogów
Has thanked: 21 times
Been thanked: 619 times

Re: Nmaxtoolbox-Importer for Drakensang and other Nebula2 games

Post by Szkaradek123 » Sat Jun 05, 2010 12:59 pm

Please try this method:
1.right mouse button(RMB) select object(mesh)
2.shift + RMB select next objects(all meshes)
3.ctrl + J - joint selected objects(only meshes)
4.shift +RMB select armature
5.ctrl + P - make parent objects => choose "don't create groups"
6.meshes and armature must be selected
7.paste script "export_half-life_smd.py" in ...\.blender\scripts
8.choose - File => Export half-life 2 => choose static
9.3ds max import smd => http:///www.wunderboy.org or import smd in milkshape

Problem is names of bones and names of vertexgroups. Sorry for this. I'll try to fix that.
You do not have the required permissions to view the files attached to this post.

User avatar
Tosyk
double-veteran
double-veteran
Posts: 953
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 227 times
Been thanked: 123 times
Contact:

Re: Nmaxtoolbox-Importer for Drakensang and other Nebula2 games

Post by Tosyk » Sat Jun 05, 2010 1:37 pm

Szkaradek123 wrote:Please try this method:
1.right mouse button(RMB) select object(mesh)
2.shift + RMB select next objects(all meshes)
3.ctrl + J - joint selected objects(only meshes)
4.shift +RMB select armature
5.ctrl + P - make parent objects => choose "don't create groups"
6.meshes and armature must be selected
7.paste script "export_half-life_smd.py" in ...\.blender\scripts
8.choose - File => Export half-life 2 => choose static
9.3ds max import smd => http:///www.wunderboy.org or import smd in milkshape

Problem is names of bones and names of vertexgroups. Sorry for this. I'll try to fix that.
I try your way, so i get weight data, but something wrong with it. Please check my .smd below

smd

upd:
And here .blend file with ogre. I make him by your tutorial, i think he with bad envelopes. But why...
Thank you for all you do here
my blog | my forum

Szkaradek123
mega-veteran
mega-veteran
Posts: 293
Joined: Wed May 05, 2010 8:21 pm
Location: Poland Głogów
Has thanked: 21 times
Been thanked: 619 times

Re: Nmaxtoolbox-Importer for Drakensang and other Nebula2 games

Post by Szkaradek123 » Sun Jun 06, 2010 6:12 pm

Try it.
1.run script and select - ...\characters\oger\skins\oger\characters\oger.n2 or other
2.run script one more time and select - characters\oger\skeleton.n2
You do not have the required permissions to view the files attached to this post.

User avatar
Tosyk
double-veteran
double-veteran
Posts: 953
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 227 times
Been thanked: 123 times
Contact:

Re: Nmaxtoolbox-Importer for Drakensang and other Nebula2 games

Post by Tosyk » Sun Jun 06, 2010 7:26 pm

Szkaradek123 wrote:Try it.
1.run script and select - ...\characters\oger\skins\oger\characters\oger.n2 or other
2.run script one more time and select - characters\oger\skeleton.n2
Doesn't work :( I use you guide, but always get bad skining:

Image

where i need place this files:

Code: Select all

nebula.blend
importn2v1.6.py
importnvx2.py
ncharacter3skinshapenode.py
nparticleskinshapenode.py
nshadowskinshapenode.py
nshapenode.py
nskinanimator.py
nskinshapenode.py
word.py
?
Thank you for all you do here
my blog | my forum

Szkaradek123
mega-veteran
mega-veteran
Posts: 293
Joined: Wed May 05, 2010 8:21 pm
Location: Poland Głogów
Has thanked: 21 times
Been thanked: 619 times

Re: Nmaxtoolbox-Importer for Drakensang and other Nebula2 games

Post by Szkaradek123 » Sun Jun 06, 2010 7:41 pm

It should work.
Unzip - import nebula.zip to new folder.
In new folder open nebula.blend
Run script.

User avatar
Tosyk
double-veteran
double-veteran
Posts: 953
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 227 times
Been thanked: 123 times
Contact:

Re: Nmaxtoolbox-Importer for Drakensang and other Nebula2 games

Post by Tosyk » Sun Jun 06, 2010 7:48 pm

Szkaradek123 wrote:It should work.
Unzip - import nebula.zip to new folder.
In new folder open nebula.blend
Run script.
I'll reinstall all my blend tools right now, and try one more time, report to you is already on the way :roll:

upd:
Now i get an error from 7 line:

Code: Select all

from nskinanimator import nskinanimator
upd2:
Video :scaredy:
Thank you for all you do here
my blog | my forum

User avatar
Tosyk
double-veteran
double-veteran
Posts: 953
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 227 times
Been thanked: 123 times
Contact:

Re: Nmaxtoolbox-Importer for Drakensang and other Nebula2 games

Post by Tosyk » Mon Aug 09, 2010 3:06 pm

Sorry for Double-Post

I can export with right weight data in smd (i handled with oger :mrgreen: ):eek: But some model gives me an error when i try to export it in smd:

Code: Select all

Half-Life 2 Export Error
Can not Multi-Fold meshes (Edges used by more than 2 faces)
So i trying export models in FBX and DAE and here is no problem, but when i import it into 3ds max they import without skin modifier. So how can i solved this issue? Maybe you can help me?
Thank you for all you do here
my blog | my forum

Post Reply