[error] Failed to load model ID:
#1

Hi,

So I get this error for some of the objects that I added with AddSimpleModel. I realized the problem is with the .dff since the error only appears after I add the collision to it using kdff. The model loads fine if it doesn't have a collision. Other objects load fine with collision.

Also, some objects appear full white, although, the txd seems fine.

Any ideas on how I could fix these ?
Reply
#2

I think your model (all 3d mesh) have more ~30000, faces or vertices, see number count in kdff gui, therefore server send message to chat - failed to load model, divide model into many parts in blender, 3ds max (important: center all pivots of any piece of object to center) and attach all pieces of dff files in art config like a:

Код:
AddSimpleModel(5,2005, -2005, "dust2_1.dff", "dust2".txd");
AddSimpleModel(5,2006, -2006, "dust2_2.dff", "dust2".txd");
AddSimpleModel(5,2007, -2007, "dust2_3.dff", "dust2".txd");
AddSimpleModel(5,2008, -2008, "dust2_4.dff", "dust2".txd");
AddSimpleModel(5,2009, -2009, "dust2_5.dff", "dust2".txd");
AddSimpleModel(5,2010, -2010, "dust2_6.dff", "dust2".txd");
AddSimpleModel(5,2011, -2011, "dust2_7.dff", "dust2".txd");
AddSimpleModel(5,2012, -2012, "dust2_8.dff", "dust2".txd");
All location, map, object connects to 1:



Or your model dont have textures, maybe she uses alpha textures, have same problem before, try use .dds format, convert all images
Dont works collision? You click in kdff gui optimized mesh faces? In command promt version kdff optimize func - dont works

P.S sorry for cracked eng
Reply
#3

I checked and indeed, the model has over 30000 both faces and vertices. However, the model loads fine if it doesn't have a collision attached. It also loads fine with a box type collision, but it's the wrong collision. And yes, I did the collision manually and not in console which is generated fine as I checked it with a collision editor.

EDIT: I also experience the same error with models way below 30000 faces and vertices.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)