Problems with PK3 Directory style

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Problems with PK3 Directory style

Post 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?! :(
User avatar
Cyrez
Posts: 45
Joined: Sun Sep 18, 2005 4:05
Location: Missouri
Contact:

Post by Cyrez »

sprites go in there own folder named "sprites" :wink:
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post 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 :(
User avatar
Cyrez
Posts: 45
Joined: Sun Sep 18, 2005 4:05
Location: Missouri
Contact:

Post 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
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post by Tormentor667 »

Great, Photoshop works fine, thx for your help. Another question: What about OFFSETS of sprites?! :(
User avatar
Cyrez
Posts: 45
Joined: Sun Sep 18, 2005 4:05
Location: Missouri
Contact:

Post 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.
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post 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?
User avatar
Shinjanji
Posts: 198
Joined: Sun Nov 06, 2005 16:45
Location: Pennsylvania, USA

Post 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.
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post 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 :(
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post 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. =)
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post by Tormentor667 »

/me needs it :(
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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?
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post 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 ...
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post 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
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post by Tormentor667 »

I'd be happy if I could do this with XWE instead of SetPNG ... :|
Locked

Return to “GZDoom”