Page 1 of 1

sprite exceeds 800x600 error

Posted: Tue Aug 18, 2020 3:27 pm
by Brutus
I keep getting this faulty error message after I modified the warehou1 images.

Error message:
''Error loading from MOD: Building sprite WAREHOU1.SPR exceeds 800x600''

All of my files are clearly 800x600 saved in png 32 bit, see the attached ZIP file for the images in question.

It works perfectly fine for my modified warehouse2 and other images that I modified but it keeps erroring out on this one. I just don't understand why. I've rebuilt the image several times from the original now and made sure it fit the specifications :cry: It just keeps messing up. What did I do wrong?

Re: sprite exceeds 800x600 error

Posted: Fri Aug 21, 2020 7:21 am
by David
I've recently updated the guide for modding buildings. Please read it at https://www.capitalismlab.com/mod/advan ... buildings/

It now no longer requires the background in green color. Instead, it recognizes the transparency in the alpha channel, which is a much easier process for preparing building graphics.

You can look at the example at <Your CapLab game folder>\MOD_kit\Images\Buildings\Apart4

I checked the warehouse image files you provided. While its format has been converted into 32 bit with alpha channel, the alpha channel does not contain transparency data, thus the tool was not able to clip the image to the right size.

What type of buildings are you trying to prepare your mod? Is there anything else that I can help?

Re: sprite exceeds 800x600 error

Posted: Fri Aug 21, 2020 12:05 pm
by Brutus
Hmmm I see

Still strange though since I edited Warehou2 in the exact same way and that one works perfectly fine :oops:

I will try this alternative method and see how it goes. I'll post back once it is done and release the files to the community for whoever is interested. :D