Author Topic: "Could not locate texture" [Solved]  (Read 632 times)

Anyone know the reason behind this console error?
Code: [Select]
Could not locate texture: Add-Ons/GUI_Underground/Images/Bits (download failed, using default texture)
  +- using blank texture
I know the image is there, as a simple isFile(pathToImage) returns a 1. Does this have to do with like resolution? It isn't a very large image... Also, other images in the same folder seem to work.
I've tried adding .png to the path, but same error. The image is a .png image, nothing special. It's simple text saved as a .png from Photoshop.
« Last Edit: July 16, 2012, 07:08:30 PM by lilboarder32 »

No file extension in the console error?


I meant, does the console error change when you change the path.

I meant, does the console error change when you change the path.
Ya, this is from the same console.log
Code: [Select]
Could not locate texture: Add-Ons/GUI_Underground/Images/Bits.png (download failed, using default texture)
  +- using blank texture
Could not locate texture: Add-Ons/GUI_Underground/Images/Bits (download failed, using default texture)
  +- using blank texture

Same console.log:
Code: [Select]
==>echo(isFile("Add-Ons/GUI_Underground/Images/down_i.png"));
1
==>echo(isFile("Add-Ons/GUI_Underground/Images/bits.png"));
1

Capitalization shouldn't affect it, right?


I think I figured out the issue. Photoshop saved it as a photoshop file under the extension ".png". I was overwriting a previous version and didn't change file type, just the name.
« Last Edit: July 16, 2012, 07:08:55 PM by lilboarder32 »