{"id":19055476,"url":"https://github.com/gianptdev/zdoom-textures-writer","last_synced_at":"2026-05-11T13:30:17.558Z","repository":{"id":62590976,"uuid":"460026160","full_name":"GianptDev/zdoom-textures-writer","owner":"GianptDev","description":"Small tool to write a valid textures text file for the zdoom engine, inteded to be used for automated scripts.","archived":false,"fork":false,"pushed_at":"2022-02-16T15:05:26.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T09:25:31.844Z","etag":null,"topics":["dumper","parser","tool","zdoom"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GianptDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-16T13:56:00.000Z","updated_at":"2022-04-08T15:53:10.000Z","dependencies_parsed_at":"2022-11-03T22:48:31.433Z","dependency_job_id":null,"html_url":"https://github.com/GianptDev/zdoom-textures-writer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GianptDev%2Fzdoom-textures-writer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GianptDev%2Fzdoom-textures-writer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GianptDev%2Fzdoom-textures-writer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GianptDev%2Fzdoom-textures-writer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GianptDev","download_url":"https://codeload.github.com/GianptDev/zdoom-textures-writer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240111666,"owners_count":19749520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dumper","parser","tool","zdoom"],"created_at":"2024-11-08T23:45:23.565Z","updated_at":"2026-05-11T13:30:17.518Z","avatar_url":"https://github.com/GianptDev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zdoom-TexturesWriter\nSmall tool to write a valid textures text file for the zdoom engine, inteded to be used for automated scripts.\n\n## Installation\n### pip\nYou can simply use the pip command\n\n```pip install zdoom-textures-tool```\n\nThen you can import in your script whit:\n\n```import zdtwriter```\n\n## Use\nHere a small example, the script itself has some more examples inside of it.\n```\nimport zdtwriter # zdoom-textures-writer\n\n# Make a new texture block\nwall = TextureData(\"WALLBRICK\",type = \"walltexture\", optional = True, scaleY = 1.2)\n\n# Make a path block\np = PatchData(\"textures/brick.png\")\n\n# Add the patch in the texture\nwall.add_patch(p)\n\n# Show on screen a texture block.\nprint(wall.write())\n```\n\n### manual\nall of the code is inside of ```zdtwriter.py``` in the ```src``` folder, you can get the file and manually import it in your script.\n\n## Content\nThe script define 2 classes, 3 functions, 1 global value and some example code.\n\n### Classes\n- PatchData\n- - Contain all properties for a patch and can write a valid patch block.\n- TextureData\n- - Contain all properties of a texture block, patches can be added whit add_patch and can write a valid texture block.\n\n### Methods\n- write_textures(blocks)\n- - Will write a list of TextureData into a single string, basically just execute a loop and handle errors.\n- read_textures(parse)\n- - Will read a string and parse into TextureData and TexturePatch, currently it work but can be improved.\n- - If you want to read a file you need to use open() and read() first, this method require a string to parse, not a file path.\n- to_sprite_name(name, index, rotation)\n- - Will convert a string into a valid Sprite name, can be usefull for rotation sprites and sprites that uses more than 25 frames for animations. (later i will document more)\n\n### Globals\n- compact_mode = True\n- - if enabled all default properties are ignored when writing patches and textures, the output can become smaller.\n- - if disabled all default properties will be written.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgianptdev%2Fzdoom-textures-writer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgianptdev%2Fzdoom-textures-writer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgianptdev%2Fzdoom-textures-writer/lists"}