Jump to content
  • 0

Trying to convert png into flat in SLADE procudes "unknown"


ViolentBeetle

Question

I don't know why. It just does. I managed to convert one batch of flats, but not another.

The lump size is 4096 but does not register as graphics anymore.

 

(It started working again between me posting and submitting, seems entirely random)

 

Update: It seems problem is not conversion per se, but saving. Any save risks breaking the lump type.

Edited by ViolentBeetle

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 1

Flats are identified only by their filesize (exactly 4096 bytes normally) so the identification heuristics for them isn't very "assertive". Notably, if they aren't inside a flat namespace, the identification will fail. If your flats are between F_START (or FF_START) and F_END, they should be identified correctly, though.

 

You may also try selecting your "unknown" flats, opening the console (ctrl-2), and typing "type gfx_flat". That'll force SLADE to consider the selected lumps to be typified as flats.

Share this post


Link to post
  • 0

Did it work any differently in game, or was it only weird in slade? The latter happened to me plenty often. To be fair, a flat is just a raw lump of data with no headers or metadata of any kind, so it can be hard for a program to always tell what it is.

 

If I recall correctly, this bug can be avoided by converting a png into a doom texture, and then converting the texture to flat.

Share this post


Link to post
  • 0

It didn't occur to me to try. I will try it the next time it happens.

 

Problem is, I also used SLADE to colorize the grayscale flats to get a consistent color. And button was not available when identification failed.

Edited by ViolentBeetle

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...