Posted: Thu Jun 11, 2015 1:22 am Post subject:
Using a batch file to copy INIs from working directories.
Subject description: Plus some organized rules for use with Ares.
I'm not sure how others handle their mods, but I like to have a separate directory for all the assets and INIs outside the directory I run it from. This presents an annoyance in constantly copying files to the running directory. I'll leave a screenshot below how I split up my mod's files.
I realize with Ares you can just copy the RA2 folder straight up and work in there but it gets cluttered so I still prefer this method. If you don't use Ares, you can use this method to keep a spare copy of your mod when you want to switch it out.
I've written a "compile" and a "run" batch file for my mod. The latter only being needed for Ares. I haven't written a clean file yet, but may in the future.
CD "C:\Westwood\RA2"
Syringe "gamemd.exe" %* -CD -NOLOGO -LOG
P.S. This really isn't complicated enough to need a tutorial but I didn't think to do it until now so I figured I'd share it. I'll also leave the divided rules files I use. They won't work well with FinalAlert if you intend to do map making though.
EDIT: I feel kind of silly about this, but I realized that I could make a shortcut to my already created batch file in the main directory to run ares to begin with like I have on my desktop. So feel free to ignore the run bit. Oh and thanks to Apollo for the warning on that. I'm not experienced with batch commands at all which is why I created this thread to begin with.
Just don't do this with a move command kids (instead of copy), if the path is incorrect it rather creates a file (instead of directory) that it keeps overwriting and losing your files in process.
There are no safeguards in batches if given incorrect inputs. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum