Outlawz Posted February 12, 2011 Report Share Posted February 12, 2011 I'm working on a custom static and it crashes when I load it into the Object editor due 'invalid texture slot'. What am I doing wrong? Log D:\bf2editor\Code\BF2\Geom\StaticMeshTemplate.cpp(1221): numMaterials 2D:\bf2editor\Code\BF2\RendDX9\ShaderManager.cpp(166): Effect loaded: Shaders/StaticMesh.fx D:\bf2editor\Code\BF2\Geom\StaticMeshStateManager.cpp(204): Fx technique BaseDetailCrackNCrack D:\bf2editor\Code\BF2\RendDX9\TextureManager.cpp(735): load textureData:objects/staticobjects/common/textures/common_01_c D:\bf2editor\Code\BF2\RendDX9\TextureManager.cpp(212): Texture loaded: objects/staticobjects/common/textures/common_01_c.dds (as objects/staticobjects/common/textures/common_01_c) D:\bf2editor\Code\BF2\RendDX9\TextureManager.cpp(735): load textureData:objects/staticobjects/common/textures/conc_256_de D:\bf2editor\Code\BF2\RendDX9\TextureManager.cpp(212): Texture loaded: objects/staticobjects/common/textures/conc_256_de.dds (as objects/staticobjects/common/textures/conc_256_de) D:\bf2editor\Code\BF2\RendDX9\TextureManager.cpp(735): load textureData:objects/staticobjects/common/textures/common_01_cr D:\bf2editor\Code\BF2\RendDX9\TextureManager.cpp(212): Texture loaded: objects/staticobjects/common/textures/common_01_cr.dds (as objects/staticobjects/common/textures/common_01_cr) D:\bf2editor\Code\BF2\Geom\StaticMeshStateManager.cpp(249): (currentTextureSlot < 8) Invalid texture slot! D:\bf2editor\Code\BF2\RendDX9\TextureManager.cpp(735): load textureData:objects/staticobjects/common/textures/common_01_crb D:\bf2editor\Code\BF2\RendDX9\TextureManager.cpp(212): Texture loaded: objects/staticobjects/common/textures/common_01_crb.dds (as objects/staticobjects/common/textures/common_01_crb) Quote Link to comment Share on other sites More sharing options...
Outlawz Posted February 12, 2011 Author Report Share Posted February 12, 2011 Nevermind, guess BaseDetailCrackNCrack isn't a valid technique, adding NDetail texture thus changing the technique fixed it. Quote Link to comment Share on other sites More sharing options...
mschoeldgen[Xww2] Posted February 13, 2011 Report Share Posted February 13, 2011 If you've installed the BF2 tools for 3DSMax, there are 3 textdocuments with all valid techniques in /3DSMax/_BF2Help/Documents/Objects/Common/MaterialsNames/. For statics : Base BaseDetail BaseDetailDirt BaseDetailNDetail BaseDetailDirtNDetail BaseDetailCrackNDetailNCrack BaseDetailNDetailparallaxdetail BaseDetailDirtCrackNDetailNCrack BaseNDetail alpha_one Quote Link to comment Share on other sites More sharing options...
Outlawz Posted February 13, 2011 Author Report Share Posted February 13, 2011 What's alpha_one? Quote Link to comment Share on other sites More sharing options...
mschoeldgen[Xww2] Posted February 14, 2011 Report Share Posted February 14, 2011 It should inject 1-bit transparency on this technique - but its probably not working correctly ( or i did apply it wrongly ). Its mostly easier to use BF2Materials.EXE later. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.