Page 1 of 1
[0.12.26] [kovarex] image not found which is not used anymore
Posted: Sun Mar 13, 2016 7:15 pm
by judos
Hi there!
This happens when I updated hardCrafting to a new version and removed a few icons in the graphics folder which are unused. When I restart factorio now it tells me:
"Error when opening D:\Factorio\mods\hardCrafting_0.3.0\graphics/icons/signal-receiver.png for reading: No such file or directory."
Of course the image is not there anymore, I removed it intentionally but it is also not referenced anymore from my code...
I hope this is a minor thing to fix but if it is not fixed it will lead modders to never remove older graphics files and therefore increasing the loading time..
Thanks a lot for your work! I love the game

Re: [0.12.26] image not found which is not used anymore
Posted: Sun Mar 13, 2016 9:16 pm
by kovarex
That is strange, does it happen even if you remove the crop-cache file?
Re: [0.12.26] [kovarex] image not found which is not used anymore
Posted: Sun Mar 13, 2016 9:22 pm
by judos
Yes it happens even when I deleted the crop-cache.dat file. Only it happens earlier in the loading process (right after loading the mods):
Code: Select all
1.413 Loading mod hardCrafting 0.3.0 (data-final-fixes.lua)
9.475 Error Util.cpp:57: Error when opening D:/games\Factorio\Factorio modding\mods\hardCrafting_0.3.0\graphics/icons/signal-receiver.png for reading: No such file or directory
Without deleting the file it happened at around 88% loading progress:
Code: Select all
1.345 Loading mod hardCrafting 0.3.0 (data-final-fixes.lua)
1.825 Initial atlas bitmap size is 16384
1.829 Created atlas bitmap 16384x7825
7.699 Error Util.cpp:57: Error when opening D:/games\Factorio\Factorio modding\mods\hardCrafting_0.3.0\graphics/icons/signal-receiver.png for reading: No such file or directory
Re: [0.12.26] [kovarex] image not found which is not used anymore
Posted: Sun Mar 13, 2016 9:24 pm
by kovarex
Well, it has to be specified somewhere in the mod obviously.
Can you upload the mod? Or just full-text search the mod for the image name?
Re: [0.12.26] [kovarex] image not found which is not used anymore
Posted: Sun Mar 13, 2016 9:29 pm
by judos
I just did a full-text search and it's not defined anymore anywhere.
See attachement:
Re: [0.12.26] [kovarex] image not found which is not used anymore
Posted: Sun Mar 13, 2016 9:32 pm
by kovarex
Well, that is weird, I can start the mod without an issue, the game obviously can't just make it up, it needs to be stored somewhere
Try to search the name of the file in the Factorio folder.
Re: [0.12.26] [kovarex] image not found which is not used anymore
Posted: Sun Mar 13, 2016 9:48 pm
by judos
Uups, well you are right. My bad. Apparently I have copied the icon definition into another mod and didn't adjust the prefix __hardCrafting__ there. So I was worried for nothing. Thanks for the reply!

Re: [0.12.26] [kovarex] image not found which is not used anymore
Posted: Mon Mar 14, 2016 9:49 am
by kovarex
Ok, moved to not a bug
