Jump to content
  • 0

Multiple texture edit


Darch

Question

Can I resize multiple textures at once at the TEXTURE1 lump? For example, I have tons of textures sized 90x45 that need to be resized 128x64 (just the texture sizes, not the graphics) and apparently I have change them one by one.

 

I'm using Slade 3.3 

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 1

I don't think there's a way to do this directly, but.... kind of. It's a gross hack.

 

Create a new texture lump in Slade, and tell it to use ZDoom's text-based TEXTURES format. Copy and paste the textures you want to batch-edit into there. Save the lump and open it in a text editor of your choice, then use find/replace or regular expressions to make the desired batch changes. Then re-import the modified TEXTURES lump, select its contents, and paste them back into your binary TEXTURE1 lump.

Share this post


Link to post
  • 1
6 hours ago, Darch said:

Can I resize multiple textures at once at the TEXTURE1 lump? For example, I have tons of textures sized 90x45 that need to be resized 128x64 (just the texture sizes, not the graphics) and apparently I have change them one by one.

 

I'm using Slade 3.3 

 

It would be a lot easier if you used the batch conversion tool in either IrfanView or XnView to resize the textures.

Share this post


Link to post
  • 1

You can export TEXTURE1 as a lump and use a hex editor (I recommend HxD if you don't have one already) to do some search & replace. You'll want to look for 5A 00 2D 00 and replace it with 80 00 40 00.

Edited by Gez

Share this post


Link to post
  • 0
20 hours ago, Gez said:

You can export TEXTURE1 as a lump and use a hex editor (I recommend HxD if you don't have one already) to do some search & replace. You'll want to look for 5A 00 2D 00 and replace it with 80 00 40 00.

 

Oh, that's a neat trick.

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...