Textures Parser (write and read) made in python

Any utility that assists in the creation of mods, assets, etc, go here. For example: Ultimate Doom Builder 2, Slade, WadSmoosh, etc.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

Textures Parser (write and read) made in python

Postby Gianpt » Wed Feb 16, 2022 8:47 am

Hi, i made a small tool to parse TEXTURES text definitions in python.
It can read and write valid textures data blocks, can be usefull for automated scripts about large amount of textures.

github
full wiki and installation instructions in the project github

I will not release more updates unless someone want some specific feature.
Here an example of code:
Code: Select allExpand view
import zdtwriter # zdoom-textures-writer

# Make a new texture block
wall = TextureData("WALLBRICK",type = "walltexture", optional = True, scaleY = 1.2)

# Make a path block
p = PatchData("textures/brick.png")

# Add the patch in the texture
wall.add_patch(p)

# Show on screen a texture block.
print(wall.write())
User avatar
Gianpt
 
Joined: 10 Mar 2021
Discord: 7736
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Return to Creation, Conversion, and Editing

Who is online

Users browsing this forum: No registered users and 1 guest