Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Darch

Multiple texture edit

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.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×