Model converting

A refuge for those migrating from the fallen DXEditing.com and a place for general discussion relating to Deus Ex editing (coding, mapping, etc).
Post Reply
User avatar
FastGamerr
MJ12
Posts: 312
Joined: Sat Jul 10, 2010 10:06 am
Location: Finland
Contact:

Model converting

Post by FastGamerr »

Welp, hi again!

I found a nice dropship model I wanted to convert to my mod, and quite conveniently it already had a .ms3d file in the package. It had like 50 textures of which 45 were duplicates, so I trimmed them down to one texture, but the thing still has tons of meshes (dunno if that's the problem already there but..).

So anyhow, I made a script like this:
//=============================================================================
// ZVdropship.
//=============================================================================
class ZVdropship extends OutdoorThings;

#exec MESH IMPORT MESH=ZVdropship ANIVFILE=MODELS\ZVdropship_a.3d DATAFILE=MODELS\ZVdropship_d.3d X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=ZVdropship X=0 Y=0 Z=0

#exec MESH SEQUENCE MESH=ZVdropship SEQ=All STARTFRAME=0 NUMFRAMES=25
#exec MESH SEQUENCE MESH=ZVdropship SEQ=Still STARTFRAME=0 NUMFRAMES=1
#exec MESH SEQUENCE MESH=ZVdropship SEQ=Fire STARTFRAME=1 NUMFRAMES=20
#exec MESH SEQUENCE MESH=ZVdropship SEQ=Reload STARTFRAME=21 NUMFRAMES=5

#exec MESHMAP NEW MESHMAP=ZVdropship MESH=ZVdropship
#exec MESHMAP SCALE MESHMAP=ZVdropship X=1 Y=1 Z=1

#exec TEXTURE IMPORT NAME=ZVdropshipTex1 FILE=MODELS\ZVconsola.pcx GROUP=Skins
#exec TEXTURE IMPORT NAME=ZVdropshipTex2 FILE=MODELS\ZVdropship1.pcx GROUP=Skins
#exec TEXTURE IMPORT NAME=ZVdropshipTex3 FILE=MODELS\ZVfront.pcx GROUP=Skins
#exec TEXTURE IMPORT NAME=ZVdropshipTex4 FILE=MODELS\ZVmis.pcx GROUP=Skins
#exec TEXTURE IMPORT NAME=ZVdropshipTex5 FILE=MODELS\ZVwindshild.pcx GROUP=Skins

#exec MESHMAP SETTEXTURE MESHMAP=ZVdropship NUM=1 TEXTURE=ZVdropshipTex1
#exec MESHMAP SETTEXTURE MESHMAP=ZVdropship NUM=2 TEXTURE=ZVdropshipTex2
#exec MESHMAP SETTEXTURE MESHMAP=ZVdropship NUM=3 TEXTURE=ZVdropshipTex3
#exec MESHMAP SETTEXTURE MESHMAP=ZVdropship NUM=4 TEXTURE=ZVdropshipTex4
#exec MESHMAP SETTEXTURE MESHMAP=ZVdropship NUM=5 TEXTURE=ZVdropshipTex5

defaultproperties
{
DrawType=DT_Mesh
Mesh=ZVdropship
}
á la Steve Tack, all the files are in their proper places and I exported the texture to DX through unr2de as it should be. But anyhow, when I try to even place the item in the game to see if it even worked, I get this error message:

Image

So yeah, I'm wondering if the problem already lies with the model itself, the code that I'm trying to use or something else.
User avatar
Akerfeldt
UNATCO
Posts: 253
Joined: Fri Feb 24, 2006 5:00 pm
Location: The Cliffs of Insanity!

Re: Model converting

Post by Akerfeldt »

Number everything 0-4 instead of 1-5
User avatar
FastGamerr
MJ12
Posts: 312
Joined: Sat Jul 10, 2010 10:06 am
Location: Finland
Contact:

Re: Model converting

Post by FastGamerr »

Changed them to
#exec TEXTURE IMPORT NAME=ZVdropshipTex0 FILE=MODELS\ZVconsola.pcx GROUP=Skins
#exec TEXTURE IMPORT NAME=ZVdropshipTex1 FILE=MODELS\ZVdropship1.pcx GROUP=Skins
#exec TEXTURE IMPORT NAME=ZVdropshipTex2 FILE=MODELS\ZVfront.pcx GROUP=Skins
#exec TEXTURE IMPORT NAME=ZVdropshipTex3 FILE=MODELS\ZVmis.pcx GROUP=Skins
#exec TEXTURE IMPORT NAME=ZVdropshipTex4 FILE=MODELS\ZVwindshild.pcx GROUP=Skins

#exec MESHMAP SETTEXTURE MESHMAP=ZVdropship NUM=0 TEXTURE=ZVdropshipTex0
#exec MESHMAP SETTEXTURE MESHMAP=ZVdropship NUM=1 TEXTURE=ZVdropshipTex1
#exec MESHMAP SETTEXTURE MESHMAP=ZVdropship NUM=2 TEXTURE=ZVdropshipTex2
#exec MESHMAP SETTEXTURE MESHMAP=ZVdropship NUM=3 TEXTURE=ZVdropshipTex3
#exec MESHMAP SETTEXTURE MESHMAP=ZVdropship NUM=4 TEXTURE=ZVdropshipTex4
No help :(
User avatar
Akerfeldt
UNATCO
Posts: 253
Joined: Fri Feb 24, 2006 5:00 pm
Location: The Cliffs of Insanity!

Re: Model converting

Post by Akerfeldt »

Ah, might be a problem with the model then. I can have a look at it when I get off work.
Post Reply