Technology icon: sprite outside of .png
Technology icon: sprite outside of .png
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
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
Reason: changed title to be more descriptive
- thereaverofdarkness
- Filter Inserter
- Posts: 558
- Joined: Wed Jun 01, 2016 5:07 am
- Contact:
Re: Need a bit of help
You should make the thread title relevant to your question.
Re: Need a bit of help
This ^^thereaverofdarkness wrote:You should make the thread title relevant to your question.
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.
- DedlySpyder
- Filter Inserter
- Posts: 253
- Joined: Fri Jun 20, 2014 11:42 am
- Contact:
Re: Technology icon: sprite outside of .png
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 imageSprite outside of
"__base__/graphics/technology/advanced-electronics-2.png" (at 7,20, size 118x100 of 64x64)
- Galacticruler
- Long Handed Inserter
- Posts: 56
- Joined: Sat Apr 16, 2016 5:18 pm
- Contact:
Re: Technology icon: sprite outside of .png
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.
Re: Technology icon: sprite outside of .png
if this is about technology icons: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?
viewtopic.php?f=25&t=25836
Re: Technology icon: sprite outside of .png
Firstly thanks for fixing my mistake. Not a frequent forum user so sorry
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
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.DedlySpyder wrote: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 imageSprite outside of
"__base__/graphics/technology/advanced-electronics-2.png" (at 7,20, size 118x100 of 64x64)
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
Delete the cropcache.dat file in game directory or place where you have mods folder.
Re: Technology icon: sprite outside of .png
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 wrote:Delete the cropcache.dat file in game directory or place where you have mods folder.
Re: Technology icon: sprite outside of .png
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 wrote: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 wrote:Delete the cropcache.dat file in game directory or place where you have mods folder.
Re: Technology icon: sprite outside of .png
orzelek wrote: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 wrote: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 wrote:Delete the cropcache.dat file in game directory or place where you have mods folder.
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
So no way to solve this?
Re: Technology icon: sprite outside of .png
The crop-cache.dat file should be in the User Data directory.Geze wrote:So no way to solve this?
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
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 =)
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 =)