Crash with custom product

General discussions about the release versions of Capitalism Lab
Post Reply
User avatar
eleaza
Level 7 user
Posts: 699
Joined: Sat Jul 09, 2016 2:40 pm
Been thanked: 1 time

Crash with custom product

Post 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
Attachments
MethodRes operator crash.jpg
MethodRes operator crash.jpg (507.65 KiB) Viewed 1695 times
E is for Endear, all cute and cuddly
L is for Luxury, longing for splendid
E is for Elate, making others happy
A is for Amenable, a serene nature
Z is for Zeal, zest for wonderful life
A is for Admirers, all of you love me
Image
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10426
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 225 times

Re: Crash with custom product

Post 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).
User avatar
eleaza
Level 7 user
Posts: 699
Joined: Sat Jul 09, 2016 2:40 pm
Been thanked: 1 time

Re: Crash with custom product

Post 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.
E is for Endear, all cute and cuddly
L is for Luxury, longing for splendid
E is for Elate, making others happy
A is for Amenable, a serene nature
Z is for Zeal, zest for wonderful life
A is for Admirers, all of you love me
Image
User avatar
eleaza
Level 7 user
Posts: 699
Joined: Sat Jul 09, 2016 2:40 pm
Been thanked: 1 time

Re: Crash with custom product

Post 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.
Attachments
SAVE.zip
(1.87 MiB) Downloaded 104 times
E is for Endear, all cute and cuddly
L is for Luxury, longing for splendid
E is for Elate, making others happy
A is for Amenable, a serene nature
Z is for Zeal, zest for wonderful life
A is for Admirers, all of you love me
Image
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10426
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 225 times

Re: Crash with custom product

Post 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.
Attachments
perform.jpg
perform.jpg (255.53 KiB) Viewed 1677 times
User avatar
eleaza
Level 7 user
Posts: 699
Joined: Sat Jul 09, 2016 2:40 pm
Been thanked: 1 time

Re: Crash with custom product

Post 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)
Attachments
Perfume golden interlaced issue.zip
(35.23 KiB) Downloaded 117 times
E is for Endear, all cute and cuddly
L is for Luxury, longing for splendid
E is for Elate, making others happy
A is for Amenable, a serene nature
Z is for Zeal, zest for wonderful life
A is for Admirers, all of you love me
Image
Post Reply