Page 1 of 1
Crash with custom product
Posted: Thu Aug 11, 2016 3:59 pm
by eleaza
I was trying to test custom product feature, and added a lot of new images, I notice there are some of them can not be shown in the game, and sometimes this crash "MethodRes::operator[]" happens when setting up a new factory with a new custom product
Re: Crash with custom product
Posted: Fri Aug 12, 2016 8:57 am
by David
1) The display problem is probably due to the PNG's color format.
2) For the crash, can it be replicated? If so, could you provide the save game as well as the custom product folder (you may ZIP the entire folder of the custom products and send it to me).
Re: Crash with custom product
Posted: Fri Aug 12, 2016 9:03 am
by eleaza
David wrote:1) The display problem is probably due to the PNG's color format.
2) For the crash, can it be replicated? If so, could you provide the save game as well as the custom product folder (you may ZIP the entire folder of the custom products and send it to me).
I change the color to 256 colors, and the images do show. And the crash doesn't happen. Maybe these 2 problems are linked.
Re: Crash with custom product
Posted: Fri Aug 12, 2016 9:23 am
by eleaza
David wrote:1) The display problem is probably due to the PNG's color format.
2) For the crash, can it be replicated? If so, could you provide the save game as well as the custom product folder (you may ZIP the entire folder of the custom products and send it to me).
I somehow recreate the crash. And it's actually not related to the images, but how the factory layout is set. In factory 21, there are 3 manufacturing unit already set to perfume, but the top left manufacturing unit is still blank. At this point if click any of the 3 established manufacturing unit, and choose customize and apply any existing custom level, this crash will be triggered.
Re: Crash with custom product
Posted: Fri Aug 12, 2016 1:13 pm
by David
1) I used XnView (free download from
http://www.xnview.com) to "Save As" the PNG again and it then worked.
See attached screenshot.
2) The next patch v3.5.13 will have the fix for the crash bug.
Re: Crash with custom product
Posted: Fri Aug 12, 2016 3:21 pm
by eleaza
David wrote:1) I used XnView (free download from
http://www.xnview.com) to "Save As" the PNG again and it then worked.
See attached screenshot.
2) The next patch v3.5.13 will have the fix for the crash bug.
Earlier png images shown blank are also converted by XnView. And I have already fixed all of the images in that zip file. Also the one shown in this screenshot is actually already been displayed correctly originally. (The one left blank in my original screenshot is the golden one)
And I think it's an issue not because of image color bit length, but how the image is compressed/stored. If an image is converted with the interlaced option, it will not been shown properly in the game. (I originally assume a bigger file size will maintain more detail in such small image size 120x120, so sometimes I converted them with interlaced, but apparently it's the cause of not being able to show)