0 Members and 1 Guest are viewing this topic.
This is a strange one. I can't replicate the crash myself but I converted the terrain icon to BMP to check it out:Dimensions are fine (64x64), but I noticed a couple of things. It uses 16 colours rather than 17 (with first colour as black for transparency). At first, I wouldn't think this would be a problem.But then I noticed the positioning of the image within the orange border (as displayed in the land generator screen) was different from the source BMP; it's like the game was centring it perhaps because of all of the transparency in the icon image. I'd not seen this before. So then I added an extra colour to the palette (now 17 colours). This extra colour was not used in the image. I then tested it and bizarrely the game now doesn't change the positioning of the icon image. I then removed the extra colour, taking it back to 16 colours just to be sure something else wasn't happening, and the game reverted to changing the positioning again.So... long story short, having an icon that doesn't have a 17 colour palette makes the game handle/display the image differently. Best to stick to 17 colours. I've attached the new text.img icon image with 17 colours. Give it a test and see if it fixes it for those who are affected.
I can't explain why it crashes for some people and not others. The only thing I can say is that the BreakingBad terrain icon only had a 16 colour palette and it's likely that the game expects a 17 colour palette even if the image uses less colours. Did you try the new 17-colour icon I attached to see if this fixes the crash? I was surprised to see that the game positions the exact same image differently if it has 16 colours compared to 17 colours (check the amount of empty space to the right of the word "Breaking" in the icons I screenshot). This further supports the idea that the game expects a 17 colour palette.It is really fiddly sorting palettes and working with Sprite Editor. Hopefully in a future update 'Level.dir' files can be replaced with 'Level.zip' files and .img/.spr can be replaced with .png.Here is the video for creating the icon in Photoshop: https://cdn.discordapp.com/attachments/985634698812338176/1007387532524269688/Video_2022-08-11_213439-1.mp4
The icon with 17 colors seems to have helped the people with crashes, i'm asking more people to test it. Btw I didn't know you need to click Recreate SPR IMGs checkbox in the sprite editor. It doesn't say so in the Terrain Creation Guide.
Quote from: doc on September 05, 2022, 10:18 AMThe icon with 17 colors seems to have helped the people with crashes, i'm asking more people to test it. Btw I didn't know you need to click Recreate SPR IMGs checkbox in the sprite editor. It doesn't say so in the Terrain Creation Guide.You don't need to especially if the .IMG/.SPR doesn't exist (it will always be created). I just tick it out of habit to make sure Sprite Editor creates the files regardless of file date stamps. If .IMG/.SPR files already exist, Sprite Editor only re-creates/overwrites them if the corresponding .BMP has been modified since. It's usually correct but I've seen a couple of instances where it hasn't re-created the files despite a .BMP update. I'll update the guide as it's a good precaution. Good news on the icon. I updated the guide making a point about the 17 colour palette, even if the icon uses less colours.