chilvence
Master Procrastinator

Posts: 1147
Registered: 01-03 |
Cyb said:
On a related note, this is more of a feature request, but PNG files have offset values in the header (I think), which I believe ZDoom uses for PNG sprites. If XWE could modify those offsets that would be cool and keep me from writing my own util for that very purpose ;)
Heh, I wondered why I suddenly had this idea in my head. I found out a litte more; I dont know wheter basic png files contain any offset information or whether Randy has added an extra chunk to contain the sprite offsets. But in any case, a utility to set them can be found here:
http://forum.zdoom.org/viewtopic.php?t=1139&start=15)
If you don't fancy setting each file one by one, you can use a for loop at the command prompt to make it less of a pain, just go into your png folder and type "dir /b >list", open list and type the x y offsets after each file, and then put this line into a batch file:
for /f "tokens=1,2,3" %%i in (list) do setpng -grab %%j %%k %%i %%i
|