Page 1 of 1

Technology icon: sprite outside of .png

Posted: Mon Jun 13, 2016 6:27 pm
by Geze
Hello,

Sorry if I don't follow the rules of naming threads stricktly, but I simply need some help, and I can't find the answers anywhere.

Looking at the icons for "Technology" and research - I found I dislike most of them and wanted to change them to something else that i appreciated a bit more.

I were wandering if you guys can help because after replacing most of them I end up with the following error:

Sprite outside of
"__base__/graphics/technology/advanced-electronics-2.png" (at 7,20, size 118x100 of 64x64)

Now I know it is directly related to the new icons I've put in there - But is there anything i can change in the game files to make this error disappear?

Thanks in advance for any help

Re: Need a bit of help

Posted: Tue Jun 14, 2016 3:51 am
by thereaverofdarkness
You should make the thread title relevant to your question.

Re: Need a bit of help

Posted: Tue Jun 14, 2016 2:50 pm
by ledzilla
thereaverofdarkness wrote:You should make the thread title relevant to your question.
This ^^
Titling your post so people know what you're needing help with will assist in people being able to understand what is wanted.

Can you post your code where you're defining the image and having the error? if we can see what you're doing, we can help you to pinpoint what could be the cause of the trouble.

Re: Technology icon: sprite outside of .png

Posted: Tue Jun 14, 2016 3:21 pm
by DedlySpyder
Sprite outside of
"__base__/graphics/technology/advanced-electronics-2.png" (at 7,20, size 118x100 of 64x64)
Your advanced electronics 2 image is 118x100, but the game is looking for a 64x64. You either need to resize it, or change the prototype to accept a bigger image

Re: Technology icon: sprite outside of .png

Posted: Tue Jun 14, 2016 4:45 pm
by Galacticruler
on a relatedish note: why do icons sometimes appear way too big and get cut off at 1/4th of the icon's top left?

Re: Technology icon: sprite outside of .png

Posted: Tue Jun 14, 2016 5:00 pm
by daniel34
Galacticruler wrote:on a relatedish note: why do icons sometimes appear way too big and get cut off at 1/4th of the icon's top left?
if this is about technology icons:
viewtopic.php?f=25&t=25836

Re: Technology icon: sprite outside of .png

Posted: Tue Jun 14, 2016 5:51 pm
by Geze
Firstly thanks for fixing my mistake. Not a frequent forum user so sorry
DedlySpyder wrote:
Sprite outside of
"__base__/graphics/technology/advanced-electronics-2.png" (at 7,20, size 118x100 of 64x64)
Your advanced electronics 2 image is 118x100, but the game is looking for a 64x64. You either need to resize it, or change the prototype to accept a bigger image
Thanks for that response - But problem is, I have no idea where to look for it =/ I've opened the prototype folder and the technology folder but i can't seem to find anything there to help me with this.

Also upon opening the image in photoshop it says that the image size is 64x64 =S
Making the image to be size 128x128 seems to fix the issue? (That's the original size of the icon. I know that as i did a backup so i can run the game until i fix this issue)

The numbers don't add up at all =/ and I have no idea where to look in the game files to fix this

Re: Technology icon: sprite outside of .png

Posted: Tue Jun 14, 2016 9:05 pm
by orzelek
Delete the cropcache.dat file in game directory or place where you have mods folder.

Re: Technology icon: sprite outside of .png

Posted: Wed Jun 15, 2016 5:54 pm
by Geze
orzelek wrote:Delete the cropcache.dat file in game directory or place where you have mods folder.
Thanks, but thing is - I don't have that .dat file, nor I've ever installed any mods - So not sure where that would be? Didn't really find a mod folder anywhere.

Re: Technology icon: sprite outside of .png

Posted: Wed Jun 15, 2016 7:24 pm
by orzelek
Geze wrote:
orzelek wrote:Delete the cropcache.dat file in game directory or place where you have mods folder.
Thanks, but thing is - I don't have that .dat file, nor I've ever installed any mods - So not sure where that would be? Didn't really find a mod folder anywhere.
I'm using ipped version so crop-cache.dat is in the folder where you extractd the game. Not sure where normally installed game puts it - should be in same folder where log files are created.

Re: Technology icon: sprite outside of .png

Posted: Wed Jun 15, 2016 7:28 pm
by Geze
orzelek wrote:
Geze wrote:
orzelek wrote:Delete the cropcache.dat file in game directory or place where you have mods folder.
Thanks, but thing is - I don't have that .dat file, nor I've ever installed any mods - So not sure where that would be? Didn't really find a mod folder anywhere.
I'm using ipped version so crop-cache.dat is in the folder where you extractd the game. Not sure where normally installed game puts it - should be in same folder where log files are created.

Well I am pretty sure I've already said that I do not have such a file in any folder in the installation folder

Re: Technology icon: sprite outside of .png

Posted: Mon Jun 20, 2016 11:20 am
by Geze
So no way to solve this?

Re: Technology icon: sprite outside of .png

Posted: Mon Jun 20, 2016 1:11 pm
by daniel34
Geze wrote:So no way to solve this?
The crop-cache.dat file should be in the User Data directory.
If you are on Windows, press Win+R and enter %appdata%\Factorio to open it.
If you can't find it then use the search function of your OS to find the file.
After you've found it, delete the file.

If you still can't find it then post your factorio-current.log file (should be in the same folder, or use search again).

Re: Technology icon: sprite outside of .png

Posted: Mon Jun 20, 2016 11:45 pm
by Geze
Hello Daniel,

Thanks a lot for the clarification. Application data was indeed the folder the file was in (And not the installation folder)

This also have indeed solved the problem with the game not loading after replacing certain graphic aspects of the UI

Thanks a lot =)