i get my custom textures on the model and get it working in editor. but when i then proceed to test export and playtest, the whole game crashes upon loading my custom dungeon. this being related to the spec. and normal. textures from original being replaced with
spanky new texture layers. my question being :how do i set grimrock creature models to accept custom spec and normal map from different texture location. replacing the ones in grimrock asset folder doesn't come out properly, and changing texture assignments in script causes that one wopper of a crash. so if anybody has even the foggiest clue as how to fix this. help would be verry much appreciated.
example:
defineMaterial{
name = "entrail",
diffuseMap = "mod_assets/textures/monsters/entrail_dif.tga",
specularMap = "assets/textures/monsters/drain_tentacles_spec.tga",
normalMap = "assets/textures/monsters/drain_tentacles_normal.tga",
enviromentalmask = "mod_assets/textures/monsters/entrail_em.tga",
displacementmap = "mod_assets/textures/monsters/entrail_disp.tga",
occlusionmap = "mod_assets/textures/monsters/entrail_occ.tga",
doubleSided = false,
lighting = true,
alphaTest = true,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 10,
displacementscale = 10,
depthBias = 0,
}
the above one works without crash but doesn't look right
the one below works fine and looks even better in editor but crashes when exported and loaded. :
defineMaterial{
name = "entrail",
diffuseMap = "mod_assets/textures/monsters/entrail_dif.tga",
specularMap = "mod_assets/textures/monsters/drain_tentacles_spec.tga",
normalMap = "mod_assets/textures/monsters/drain_tentacles_normal.tga",
enviromentalmask = "mod_assets/textures/monsters/entrail_em.tga",
displacementmap = "mod_assets/textures/monsters/entrail_disp.tga",
occlusionmap = "mod_assets/textures/monsters/entrail_occ.tga",
doubleSided = false,
lighting = true,
alphaTest = true,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 10,
displacementscale = 10,
depthBias = 0,
}

