Page 1 of 3

Problems with PK3 Directory style

Posted: Sat Aug 05, 2006 12:46
by Tormentor667
I extracted all of my sprites out of my wad, placed them into the "directory" folder of my pk3 and now when I run the MRWNG, everything looks like a mess:
Image
What did I do wrong?! :(

Posted: Sat Aug 05, 2006 12:48
by Cyrez
sprites go in there own folder named "sprites" :wink:

Posted: Sat Aug 05, 2006 13:02
by Tormentor667
Yeah this is where I have them but I found the problem: All the sprites must be in PNG format instead of BMP... damn, is there a tool with which I can "batch-convert" all of them to PNG? Makes no fun to do this 4000times manually :(

Posted: Sat Aug 05, 2006 13:10
by Cyrez
both paint shop pro and photoshop have a batch converter utility. there is also a demo of a standalone converter here http://www.batchconverter.com/image-converter.html

Posted: Sat Aug 05, 2006 13:18
by Tormentor667
Great, Photoshop works fine, thx for your help. Another question: What about OFFSETS of sprites?! :(

Posted: Sat Aug 05, 2006 13:32
by Cyrez
randy created an imagetool to set offsets in PNG's but i never learned to use it. i use xwe for it, just select the sprite in xwe, offset as desired then select image>apply alignment. repeat for each sprite.

Posted: Sat Aug 05, 2006 16:23
by Tormentor667
Cyrez wrote:randy created an imagetool to set offsets in PNG's but i never learned to use it. i use xwe for it, just select the sprite in xwe, offset as desired then select image>apply alignment. repeat for each sprite.
That works fine for WADs but what about PK3s?

Posted: Sat Aug 05, 2006 17:48
by Shinjanji
Cyrez wrote:randy created an imagetool to set offsets in PNG's
Yes, it's SetPNG. It's command-line though, and will be very tedious to do this to every one of the sprites.

Posted: Sat Aug 05, 2006 18:04
by Tormentor667
So what does this SetPNG do? Add offset information to each png? Or does it save them in another data file?! I need this for the new MRW:NG (Monster Resource Wad : Next Generation) and if I have to "command line" this for every single Sprite (3900+), I will finish that in about 5 Million Years :( A converting tool would be very handy that reads out the offset of all the sprites in my WAD and attaches them to the PNGs in the directory with the same name or to the file, don't know how this is working :(

Posted: Sun Aug 06, 2006 7:29
by Nash
I remember Graf saying a while ago that he might write a tool that converts Doom patch format sprites into PNGs while retaining offsets.

Hope you release it, Graf. =)

Posted: Sun Aug 06, 2006 22:12
by Tormentor667
/me needs it :(

Posted: Sun Aug 06, 2006 22:26
by Graf Zahl
/me don't have the time to write it. :(

How about bugging Csabo to add true Zip support to XWE? It can already read them so why not write?

Posted: Sun Aug 06, 2006 23:20
by Tormentor667
This is something we should conisder!

By now, I have converted all the sprites from Doom format to PNG (3,900 of them) with correct palettes and transparency, what I need now is correct offsets. And I'd be more happy to apply them all with XWE instead of appliyng them with SetPNG ...

Posted: Mon Aug 07, 2006 4:29
by Nash
Well Torm, I guess for now you have no other choice but to manually set the offsets for 3900 sprites.

Have lots of coffee/beer ready and be prepared to not get out of your house for the whole day. =P

Posted: Mon Aug 07, 2006 6:55
by Tormentor667
I'd be happy if I could do this with XWE instead of SetPNG ... :|