TEXTURES lump utility
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
TEXTURES lump utility
Hello,
Is there any utility that creates an TEXTURES lump from any given directory with image files?
Thanks!
Is there any utility that creates an TEXTURES lump from any given directory with image files?
Thanks!
- theDooMguy47
- Posts: 109
- Joined: Tue Apr 14, 2009 8:05 pm
- Location: Lake Titicaca, Nicaragua
Re: TEXTURES lump utility
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
Didn't SoulPriestess write something to do this? Or was it bagheadspidey?
I recall it being a PHP script or something.
I recall it being a PHP script or something.
Re: TEXTURES lump utility
[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:
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.)
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
Code: Select all
dir /b *.png > textures.txt
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}
Re: TEXTURES lump utility
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...
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
4000? Ouch. At this point a dedicated tool is needed. (Unless, as said, they're all of the same size.)
Re: TEXTURES lump utility
Not quite the whole point; there are plenty of other things TEXTURES can do which TEXTURE1 can't.Gez wrote:The whole point of TEXTURES is that you don't have to bother with [wiki]PNAMES[/wiki].
Re: TEXTURES lump utility
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.
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
Ah, thank you. SoulPriestess it was then.