Re: patches

  • From: Andre Majorel <amajorel@xxxxxxxxx>
  • To: Captain Mellow <captainmellow@xxxxxxxxx>, yadex@xxxxxxxxxxxxx
  • Date: Wed, 3 Aug 2005 23:33:33 +0200

On 2005-08-03 18:20 +0200, Andre Majorel wrote:
> On 2005-08-03 10:07 -0500, Captain Mellow wrote:
> 
> > Also, I was wondering if yadex had a way of changing the texture
> > offset of flats. I'm trying to align some lights.
> 
> I'm not sure what you mean here. Do you mean getting Doom to
> render the flat with an offset or modifying a lump in a wad ? If
> the latter, Yadex is not a resource editor ; you'd have to use
> DeuTex, Xwadtools or some such.

For example, to shift CEIL1_2 10 pixels right and 5 pixels up,

  path=/directory/where/doom.wad/is
  flat=ceil1_2
  deutex -doom $path -flats -ppm -xtract
  mogrify -roll +10-5 flats/$flat.ppm
  printf '[flats]\n%s\n' $flat >wadinfo.txt
  deutex -doom $path -flats -ppm -build $flat.wad

mogrify is in the ImageMagick package. If there's a simple way to
do the same thing with Netpbm, I haven't found it.

-- 
André Majorel <amajorel@xxxxxxxxx>
http://www.teaser.fr/~amajorel/

Other related posts: