Page 2 of 3

Re: Texture / retexturing problem.

Posted: Thu May 09, 2013 10:11 pm
by valley609
remma wrote:Ok so a little baffled now, I've tried to replicate the error in two ways, firstly by changing the name of the image in my script file and secondly by just moving an image out of a folder.
Got the same error in both cases (barring a slightly changed filename)
I am equally surprised. I have made sure that the paths and filenames are matching (But with the looking for .tga in a .dds part), so either I've missed something vital, or the problem is elsewhere.
remma wrote: Oh and have you re-applied the texture and re-saved the model in GMT after updating your paths?
I have done it a couple of times with different settings, but I will try again as straight forward as possible.
remma wrote: Can you paste a copy of the entry from your materials.lua perhaps?
Sure, here it is:
SpoilerShow

Code: Select all

defineMaterial{
	name = "spider1",
	diffuseMap = "mod_assets/textures/monsters/spider1_dif.tga",
	specularMap = "assets/textures/monsters/spider1_spec.tga",
	normalMap = "assets/textures/monsters/spider1_normal.tga",
	doubleSided = false,
	lighting = true,
	alphaTest = false,
	blendMode = "Opaque",
	textureAddressMode = "Wrap",
	glossiness = 65,
	depthBias = 0,
}
I also just wanna say thank you, I can see you've spendt some time on this, I never knew the Legend of Grimrock community was THIS friendly. Thanks!

Re: Texture / retexturing problem.

Posted: Thu May 09, 2013 10:14 pm
by valley609
Conchron wrote:
valley609 wrote: I still get the "File not Found" error: http://imgur.com/OSyvT9l
and I have NO idea what I can do, or what is even wrong.
Follow the path. Simply open the folders for your dungeon and follow the path. Go to mod_assets, then textures, then monsters and find the file named spider1_dif. Check how you've spelled the folders, if the file is in the correct folder and so on. Your problem is along that line.
I have done this and made sure that I have written the right path.
The weird thing is that I get no error from the two other files ("spider1_spec.dds" and "spider1_normal.dds"), but only from the one file I modified.

Re: Texture / retexturing problem.

Posted: Thu May 09, 2013 10:18 pm
by Conchron
valley609 wrote:
I have done this and made sure that I have written the right path.
The weird thing is that I get no error from the two other files ("spider1_spec.dds" and "spider1_normal.dds"), but only from the one file I modified.
That's strange. The error message in the picture you posted tells you that what you've put in the script does not match the location of the file in your folders.

Re: Texture / retexturing problem.

Posted: Thu May 09, 2013 10:25 pm
by valley609
Conchron wrote:
valley609 wrote:
I have done this and made sure that I have written the right path.
The weird thing is that I get no error from the two other files ("spider1_spec.dds" and "spider1_normal.dds"), but only from the one file I modified.
That's strange. The error message in the picture you posted tells you that what you've put in the script does not match the location of the file in your folders.
I know, its really strange because it should work, I'll post the codes and paths here, in case I'm just missing something:




materials.lua
SpoilerShow

Code: Select all

defineMaterial{
   name = "spider1",
   diffuseMap = "mod_assets/textures/monsters/spider1_dif.tga",
   specularMap = "assets/textures/monsters/spider1_spec.tga",
   normalMap = "assets/textures/monsters/spider1_normal.tga",
   doubleSided = false,
   lighting = true,
   alphaTest = false,
   blendMode = "Opaque",
   textureAddressMode = "Wrap",
   glossiness = 65,
   depthBias = 0,
}

Path to spider1_dif.dds

Code: Select all

C:\Users\(UbersecretUsername)\Documents\Almost Human\Legend of Grimrock\Dungeons\Legend of Grant 2\mod_assets\textures\monsters\spider1_dif.dds
And thanks for helping out.

Re: Texture / retexturing problem.

Posted: Thu May 09, 2013 10:30 pm
by Conchron
Ok, then I'm back to your original though about photoshop not exporting the dds correctly. Try Paint.net. It's free to download. I make my textures in Paint Shop Pro save them as png and then I use paint.net to convert the files into dds. It's a bit complicated but it works better for me since I had problems with exporting to dds.
http://www.getpaint.net/download.html

Re: Texture / retexturing problem.

Posted: Thu May 09, 2013 10:32 pm
by valley609
Conchron wrote:Ok, then I'm back to your original though about photoshop not exporting the dds correctly. Try Paint.net. It's free to download. I make my textures in Paint Shop Pro save them as png and then I use paint.net to convert the files into dds. It's a bit complicated but it works better for me since I had problems with exporting to dds.
Thanks, I'll try that right now.

Re: Texture / retexturing problem.

Posted: Thu May 09, 2013 10:32 pm
by remma
valley609 wrote:
Conchron wrote:
valley609 wrote:
The weird thing is that I get no error from the two other files ("spider1_spec.dds" and "spider1_normal.dds"), but only from the one file I modified.
It might just be that the parser is stopping at that line and failing then not checking any further

Also the assets in the assets folder are hardcoded so should load up by default. That being said in your materials file you have

specularMap = "assets/textures/monsters/spider1_spec.tga",
normalMap = "assets/textures/monsters/spider1_normal.tga",

if you are going to use the inbuilt spec and norms then change these to

specularMap = "assets/textures/monsters/spider_spec.tga",
normalMap = "assets/textures/monsters/spider_normal.tga",

but if you have created your own then place then in you mod_assets/textures/monsters folder and change the lines to:

specularMap = "mod_assets/textures/monsters/spider1_spec.tga",
normalMap = "mod_assets/textures/monsters/spider1_normal.tga",

also please make sure you don't have spider1_diff.tga existing in your textures folder as this may cause an issue, the only spider1_diff file that should be in there should be the DDS

It might also be the encoding you are using, personally I use paint.net (can't beat free) might be worth a try to d/l that and re-save your file through that

Re: Texture / retexturing problem.

Posted: Thu May 09, 2013 10:41 pm
by valley609
SpoilerShow
remma wrote:
It might just be that the parser is stopping at that line and failing then not checking any further

Also the assets in the assets folder are hardcoded so should load up by default. That being said in your materials file you have

specularMap = "assets/textures/monsters/spider1_spec.tga",
normalMap = "assets/textures/monsters/spider1_normal.tga",

if you are going to use the inbuilt spec and norms then change these to

specularMap = "assets/textures/monsters/spider_spec.tga",
normalMap = "assets/textures/monsters/spider_normal.tga",

but if you have created your own then place then in you mod_assets/textures/monsters folder and change the lines to:

specularMap = "mod_assets/textures/monsters/spider1_spec.tga",
normalMap = "mod_assets/textures/monsters/spider1_normal.tga",

also please make sure you don't have spider1_diff.tga existing in your textures folder as this may cause an issue, the only spider1_diff file that should be in there should be the DDS

It might also be the encoding you are using, personally I use paint.net (can't beat free) might be worth a try to d/l that and re-save your file through that
Right now I only have "spider1_dif.dds", "spider1_normal.dds" and "spider1_spec.dds" in my texturefolder.
John wrote earlier that the path in the materials.lua should say .tga even though the files its looking for
are .dds files, I have seen this in a couple of tutorials around too, so I'll just hope that Im not messing up on that part.

Re: Texture / retexturing problem.

Posted: Thu May 09, 2013 10:45 pm
by remma
valley609 wrote:
Right now I only have "spider1_dif.dds", "spider1_normal.dds" and "spider1_spec.dds" in my texturefolder.
John wrote earlier that the path in the materials.lua should say .tga even though the files its looking for
are .dds files, I have seen this in a couple of tutorials around too, so I'll just hope that Im not messing up on that part.
Cool, yep John was spot on - confusing innit? lol

you'll still need to edit your materials .lua file a little

specularMap = "mod_assets/textures/monsters/spider1_spec.tga",
normalMap = "mod_assets/textures/monsters/spider1_normal.tga"

Re: Texture / retexturing problem.

Posted: Thu May 09, 2013 10:48 pm
by Conchron
valley609 wrote:
Right now I only have "spider1_dif.dds", "spider1_normal.dds" and "spider1_spec.dds" in my texturefolder.
John wrote earlier that the path in the materials.lua should say .tga even though the files its looking for
are .dds files, I have seen this in a couple of tutorials around too, so I'll just hope that Im not messing up on that part.
remma might be on to something. The spider files in the original asset folder are probably not named "spider1". The "1" is yours isn't it? Then it should be

specularMap = "assets/textures/monsters/spider_spec.tga",
normalMap = "assets/textures/monsters/spider_normal.tga",

As remma wrote.

You can also copy the spec and normal file from the asset pack to your texture/monsters folder and rename them spider1_spec and spider1_normal. Then the
specularMap = "mod_assets/textures/monsters/spider1_spec.tga",
normalMap = "mod_assets/textures/monsters/spider1_normal.tga",

works too.