Page 1 of 1
TEXTURES lump utility
Posted: Tue May 26, 2009 1:47 pm
by Daniel
Hello,
Is there any utility that creates an TEXTURES lump from any given directory with image files?
Thanks!
Re: TEXTURES lump utility
Posted: Tue May 26, 2009 2:24 pm
by theDooMguy47
I don't know of any utility made specifically for this, but in SLumpEd, you can hilight a texture or group of textures, right click, and click "add to pnames", then do that again and click "add to texture1", and you're ready to go.
Re: TEXTURES lump utility
Posted: Tue May 26, 2009 2:26 pm
by Nash
Didn't SoulPriestess write something to do this? Or was it bagheadspidey?
I recall it being a PHP script or something.
Re: TEXTURES lump utility
Posted: Tue May 26, 2009 2:33 pm
by Gez
[wiki]TEXTUREx[/wiki] != [wiki]TEXTURES[/wiki]
The whole point of TEXTURES is that you don't have to bother with [wiki]PNAMES[/wiki].
Hey, try this:
1. Open command line window in relevant directory
2. Type
3. Open textures.txt in a regexp-capable text editor
4. Use the following search & replace command:
Code: Select all
Search:
\([A-Za-z0-9]+\).png
Replace:
Texture \1, width, height\n{\tXScale 1.0\n\tYScale 1.0\n\tPatch \1, 0, 0 {}\n}
Now the only thing you have to do manually is replace each texture's width and height entry by the actual values. (If they all have the same size, or if most of them do, you can do that directly in the replacement expression.)
Re: TEXTURES lump utility
Posted: Tue May 26, 2009 3:42 pm
by Daniel
Hi,
Sorry, but TEXTURE# won't do the desired customization; it must be TEXTURES instead.
@Gez: nice trick, I'll try that. Before I have to add about 4,000 PNGs with notepad...

Re: TEXTURES lump utility
Posted: Tue May 26, 2009 3:49 pm
by Gez
4000? Ouch. At this point a dedicated tool is needed. (Unless, as said, they're all of the same size.)
Re: TEXTURES lump utility
Posted: Tue May 26, 2009 4:28 pm
by NiGHTMARE
Gez wrote:The whole point of TEXTURES is that you don't have to bother with [wiki]PNAMES[/wiki].
Not quite the
whole point; there are plenty of other things TEXTURES can do which TEXTURE1 can't.
Re: TEXTURES lump utility
Posted: Wed May 27, 2009 1:03 pm
by Enjay
And, on most occasions for most textures, if all you want to do is avoid PNAMES, the TX system would work and that doesn't require a control lump at all.
Back to Nash's point, I too remember talk of someone making a "dir to TEXTURES" tool and I too would have suggested SP or BHS as likely authors.
Re: TEXTURES lump utility
Posted: Wed May 27, 2009 6:38 pm
by carlcyber
Re: TEXTURES lump utility
Posted: Thu May 28, 2009 11:21 am
by Enjay
Ah, thank you. SoulPriestess it was then.