Set texture problem...

Hi. i have a menu for my game and there is the button continue and next to it i want to have the screenshot of the last saved game… the sceenshot is saved in the execution directory of the blend… so if game save screenshot as //.lastgame.png. this is working good but if i create a material in menu that point to the //.lastgame.png it will show the material without texture… for fully understanding here is the structure of the blend files and so on,…

/home/user/

  • .lastgame.png *3

/usr/share/gamename/
-levels (folder)
- gamelevel.blend *1

  • menu.blend *2

*1 this blend will make the screenshot in the execution directory of the game. in linux it will make it in the home directory. so i put the dot in the beggining of the file to be hidden…
*2 the menu that will show the mesh with this texture
*3 the screenshot file

i hope you will understand this…

P.S. I think that in windows is the execution directory the folder in which you run the blend… so it maybe the C:/Program Files/Game Name/ if you have it executed here and here will be stored the screenshots…