PDA

View Full Version : Weapon model error



Loveboy
4th July 2013, 18:43
Hi Guys, i have a weapon model, want to make it in asset manager to xmodel, but i getting this error:

Model.xmodel_export : Expecting 'TRI'

What is this?

Tally
4th July 2013, 21:22
Hi Guys, i have a weapon model, want to make it in asset manager to xmodel, but i getting this error:

Model.xmodel_export : Expecting 'TRI'

What is this?

TRI is the header for certain types of vertices. Example:


TRI 0 0 0 0
VERT 1
NORMAL 0 -0.707107 -0.707107
COLOR -1.000000 -1.000000 -1.000000 -1.000000
UV 1 0.252092 0.399811
VERT 2
NORMAL 0 -0.707107 -1
COLOR -1.000000 -1.000000 -1.000000 -1.000000
UV 1 0.059529 0.695736
VERT 0
NORMAL 0 -0.707107 -0.707107
COLOR -1.000000 -1.000000 -1.000000 -1.000000
UV 1 0.252092 0.695736

TRI 0 0 0 0
VERT 3
NORMAL 0 0 -1
COLOR -1.000000 -1.000000 -1.000000 -1.000000
UV 1 0.059529 0.399811
VERT 2
NORMAL 0 -0.707107 -1
COLOR -1.000000 -1.000000 -1.000000 -1.000000
UV 1 0.059529 0.695736
VERT 1
NORMAL 0 -0.707107 -0.707107
COLOR -1.000000 -1.000000 -1.000000 -1.000000
UV 1 0.252092 0.399811


It looks like the exporter truncated (i.e. cut off) some of the code for your model, and so the compiler is telling you that code is missing. Try exporting the model again, and manually checking that the vertice code gets exported as well.