Technology icon: sprite outside of .png

Place to get help with not working mods / modding interface.
Post Reply
Geze
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Jun 13, 2016 6:22 pm
Contact:

Technology icon: sprite outside of .png

Post 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
Last edited by daniel34 on Tue Jun 14, 2016 3:00 pm, edited 2 times in total.
Reason: changed title to be more descriptive

User avatar
thereaverofdarkness
Filter Inserter
Filter Inserter
Posts: 558
Joined: Wed Jun 01, 2016 5:07 am
Contact:

Re: Need a bit of help

Post by thereaverofdarkness »

You should make the thread title relevant to your question.

ledzilla
Inserter
Inserter
Posts: 23
Joined: Wed Jun 08, 2016 5:55 pm
Contact:

Re: Need a bit of help

Post 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.

User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 253
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Re: Technology icon: sprite outside of .png

Post 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

User avatar
Galacticruler
Long Handed Inserter
Long Handed Inserter
Posts: 56
Joined: Sat Apr 16, 2016 5:18 pm
Contact:

Re: Technology icon: sprite outside of .png

Post 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?
PC is best.

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Technology icon: sprite outside of .png

Post 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
quick links: log file | graphical issues | wiki

Geze
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Jun 13, 2016 6:22 pm
Contact:

Re: Technology icon: sprite outside of .png

Post 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

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Technology icon: sprite outside of .png

Post by orzelek »

Delete the cropcache.dat file in game directory or place where you have mods folder.

Geze
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Jun 13, 2016 6:22 pm
Contact:

Re: Technology icon: sprite outside of .png

Post 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.

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Technology icon: sprite outside of .png

Post 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.

Geze
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Jun 13, 2016 6:22 pm
Contact:

Re: Technology icon: sprite outside of .png

Post 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

Geze
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Jun 13, 2016 6:22 pm
Contact:

Re: Technology icon: sprite outside of .png

Post by Geze »

So no way to solve this?

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Technology icon: sprite outside of .png

Post 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).
quick links: log file | graphical issues | wiki

Geze
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Jun 13, 2016 6:22 pm
Contact:

Re: Technology icon: sprite outside of .png

Post 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 =)

Post Reply

Return to “Modding help”