Post new topic    
Red Slime
Send private message
Palette bug when importing hero sprites 
 PostThu May 07, 2020 8:06 am
Send private message Reply with quote
ODWMYLTF0000.png
As you can see, color 16 is black when it shouldn't be.
So, something's been happening in the Gorgonzola release whenever I import hero spritesets, and I don't know what's causing it. Essentially, the palette changes so that the last color in the index turns black.

I've tried it again with a dummy spriteset consisting only of colors 1 (transparent) and 16, and upon importing, it appears completely invisible in the preview when choosing to overwrite the palette (it appears again if importing without palette). Is this happening to anyone else?

edit: is there a way to make the image appear within the message, rather than at the top?
Metal King Slime
Send private message
 
 PostThu May 07, 2020 3:59 pm
Send private message Reply with quote
Thanks for the report. However I can't reproduce this, but if it is some kind of memory error, having varying and unreliable symptoms would be typical.

Is the image you're importing a .png or .bmp file? What bitdepth is it? (It tells you in the OHR's file browser)
Does it happen with all spritesets you try to import?
Does the colour reappear after you import the spriteset (with palette)?

Quote:
edit: is there a way to make the image appear within the message, rather than at the top?

For me, when the web browser window is less than 888 pixels wide (at 100% scale) it goes into mobile mode, which causes attached images to appear at the top instead of floating to the right. But 887px is still more than enough rom for floats, so that's unfortunate.
There's no way to make attached images appear differently, unless you upload them somewhere else and then embed the URL in your post. (In fact you can send yourself a PM with the image attached in order to host the file on SS, then link to it. But beware that there's a size limit on PM attachments)
Red Slime
Send private message
 
 PostFri May 08, 2020 2:30 am
Send private message Reply with quote
They're .png files, 4-bit color depth, it happens with all sprite sets I try to import, it happens both when importing entire sets and when importing individual frames, and no, the color doesn't appear after importing with the palette (I can manually change the last color in the palette to what it's supposed to be and the image comes out correctly, though?)

I tried it again after choosing magenta instead of black as the first color in the palette, and it still reads the last color as black.

Also, in the OP, there's supposed to be a screenshot of it happening, but it only appears when I'm logged in; when logged out, it vanishes. Is it visible to anyone else?
Slime Knight
Send private message
 
 PostFri May 08, 2020 8:12 am
Send private message Reply with quote
palbug.png
Last palette colour while importing the PNG is black
Hedera Helix wrote:
Also, in the OP, there's supposed to be a screenshot of it happening, but it only appears when I'm logged in; when logged out, it vanishes. Is it visible to anyone else?


Strange, screenshots normally appear also for visitors, but this one doesn't.

The bug is true, by the way! I reproduced it with a PNG file, too. The same file as BMP did import properly.
Metal King Slime
Send private message
 
 PostFri May 08, 2020 3:05 pm
Send private message Reply with quote
Ah yes, I was testing bmps; I can reproduce that
Well that's good, it localises the bug to a very small area. Will try fix it tomorrow.

You're right, image attachments aren't visible if you're logged out. They do show in the Games and Reviews forums though. I never noticed before. I asked Mogri if it's intentional.
Super Slime
Send private message
 
 PostFri May 08, 2020 3:50 pm
Send private message Reply with quote
No, unauthenticated users should see attachments, too. It's fixed here; let me know if it's happening elsewhere.
Mega Tact v1.1
Super Penguin Chef
Wizard Blocks
Liquid Metal Slime
Send private message
 
 PostFri May 08, 2020 8:30 pm
Send private message Reply with quote
TMC wrote:
You're right, image attachments aren't visible if you're logged out. They do show in the Games and Reviews forums though. I never noticed before. I asked Mogri if it's intentional.


I've seen this image display bug often (when logged in), and I've mentioned it several times, including most recently in this post.

Mogri wrote:
No, unauthenticated users should see attachments, too. It's fixed here; let me know if it's happening elsewhere.


Hopefully that fixes it. The randomness of its functionality is the reason I remote link graphics from my blog instead posting natively here. I'm tired of it asking me to download an image I should already see in the post.

I do wonder, though, if the size of the image has anything to do with its immediate display versus the download-to-view requirement.
Place Obligatory Signature Here
Super Slime
Send private message
 
 PostFri May 08, 2020 9:39 pm
Send private message Reply with quote
Pepsi Ranger wrote:
Hopefully that fixes it. The randomness of its functionality is the reason I remote link graphics from my blog instead posting natively here. I'm tired of it asking me to download an image I should already see in the post.

I do wonder, though, if the size of the image has anything to do with its immediate display versus the download-to-view requirement.


I'm pretty sure that's something else entirely. No idea why some of them don't display inline.
Mega Tact v1.1
Super Penguin Chef
Wizard Blocks
Display posts from previous: