View Single Post
  #19  
Old April 28th, 2007, 05:45 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: PERFECT SPRITE EXTRACTION

Quote:
Endoperez said:
Would it be possible to do a shortcut for Dominions that first replaces guiborder2.tga with some other tga file, then launches Dom with a --postexec command that somehow replaces the new guiborder2.tga with the original? Or copy of the original, actually, but you know what I mean. It would enable one Dom directory to be used for both normal games AND for ultra-quick screen-grabbing of units, with the only difference being in the shortcut used to launch Dom.

I'm pretty sure it could be done with two .bat files, but I can't write those.
Something along the lines of Code:
@echo off
ren "<path to file>\guiborder2.tga" guiborder2.old
ren "<path to file>\guiborder2.new" guiborder2.tga
"<path>\dom3.exe"
ren "<path to file>\guiborder2.tga" guiborder2.new
ren "<path to file>\guiborder2.old" guiborder2.tga


Batch files are like shell scripts, just a collection of commands that you would type into the command line window.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote