Files
April 26, 2024, 08:11 PM

Breaking Bad

File #2584, Viewed 3411 Time(s)

Basic Information
File rate
3.12 / 5
Total Members Voted: 8
Name: Breaking Bad
Type: Terrain
Author: Ukraine doc

Click to download: (Downloaded 543 time(s))
BreakingBad.zip

Downloaded 543 time(s).

Time: July 18, 2022, 06:50 AM
Description:
Here's a terrain I've made. Inspired by Breaking Bad. Kradie, thanks for testing.

Author Topic: File #2584, Breaking Bad  (Read 3412 times)

0 Members and 1 Guest are viewing this topic.

Offline Echiko

Re: File #2584, Breaking Bad
« Reply #15 on: September 04, 2022, 06:36 PM »
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.

Anyway King-Gizzard let me say that making that small map is very complicated! Without SIBASA I couldn't have published my SPQR terrain, and both me and doc made the same stuff with that icon, so where is the problem? Where is our mistake?
This user cannot be contacted through PMs.

Offline King-Gizzard

Re: File #2584, Breaking Bad
« Reply #16 on: September 04, 2022, 09:16 PM »
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


Offline Echiko

Re: File #2584, Breaking Bad
« Reply #17 on: September 04, 2022, 09:31 PM »
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

I didn't try it yet (will do that soon), but that video was not only useful but also hilarious :D you make a folder with my name  :D :D :D
This user cannot be contacted through PMs.

Offline doc

Re: File #2584, Breaking Bad
« Reply #18 on: September 05, 2022, 10:18 AM »
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.

Offline King-Gizzard

Re: File #2584, Breaking Bad
« Reply #19 on: September 05, 2022, 10:42 AM »
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.

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.

Offline Echiko

Re: File #2584, Breaking Bad
« Reply #20 on: September 05, 2022, 01:30 PM »
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.

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.

Please do, for me it's the hardest thing to do while making a terrain. :-*
This user cannot be contacted through PMs.