Thread Tools
Old October 16, 2002, 22:28   #1
Caspian
Prince
 
Caspian's Avatar
 
Local Time: 09:28
Local Date: November 1, 2010
Join Date: Sep 1999
Location: Scotland
Posts: 304
Using Batch Files
Ok, I have a question about the potential of batch files. I've seen these used in scenarios with multiple event, unit, terrain etc, etc files. Now, can a batch file be used to move sound effect waves from a storage folder into the primary 'sound' folder of a scenario?

I ask this because in the scenario I'm creating I've sat for hours toying with unit slots, trying to figure the best way to cram as many units in as possible. I've planned which units I expect to become obsolete early in the game, freeing up unit slots for new weapons in later event files.
(thank god for the wonder of Leonardo's Workshop )

Many of the units altered in this way will be very different and this causes problems. For example, if I change 'Extra Slot 1" from a tank to a plane, I would also want to change the sound effect. I don't want the player to have the burden of this very tedious task.

Can you do this with a batch file? If not, is there an alternative other than...Zzzzzz doing it manualy?
Caspian is offline  
Old October 17, 2002, 05:35   #2
our_man
Civilization II Democracy Game: Red FrontScenario League / Civ2-Creation
Prince
 
our_man's Avatar
 
Local Time: 10:28
Local Date: November 1, 2010
Join Date: Oct 2000
Location: Glasgow, Scotland
Posts: 522
I think its possible. Jay Bee and Carl Fritz use a copysound.bat in their scenarios in order to save on space... You might also want to check out Red Front by Nemo - I think there is an example of changing sounds for units slots in that with regard to the "Karl" mortar.
our_man is offline  
Old October 17, 2002, 08:02   #3
Caspian
Prince
 
Caspian's Avatar
 
Local Time: 09:28
Local Date: November 1, 2010
Join Date: Sep 1999
Location: Scotland
Posts: 304
Thanks our_man. Can you tell me a couple of Jay Bee or Carl Fritz scenarios so that I can check this out.
Caspian is offline  
Old October 17, 2002, 15:24   #4
our_man
Civilization II Democracy Game: Red FrontScenario League / Civ2-Creation
Prince
 
our_man's Avatar
 
Local Time: 10:28
Local Date: November 1, 2010
Join Date: Oct 2000
Location: Glasgow, Scotland
Posts: 522
Of Jay Bee's, I'm pretty sure "Visigoths" and "Mexico" have them.

http://spanish.apolyton.net/visig20.zip
http://spanish.apolyton.net/mexico20.zip

Carl Fritz's "The Struggle for Empire" also has one:

http://users.stargate.net/~harden/downloads/empire.zip
our_man is offline  
Old October 17, 2002, 18:44   #5
klesh
King
 
klesh's Avatar
 
Local Time: 05:28
Local Date: November 1, 2010
Join Date: Jan 2000
Location: Massachusetts, USA
Posts: 2,048
Yes, very easy to do
All you need to do is have the comp copy the wavefiles in the same way they copy your gifs.

copy UnitsC.gif units.gif
copy Coolsound.wav Extra1.wav


It'll copy over as well, so you could have several Coolsound.wav's (1,2,3 etc) and copy them each to Extra1, they'll overwrite.
klesh is offline  
Old October 17, 2002, 19:28   #6
Caspian
Prince
 
Caspian's Avatar
 
Local Time: 09:28
Local Date: November 1, 2010
Join Date: Sep 1999
Location: Scotland
Posts: 304
Well, that will certainly make things alot easier. thanks for your help guys. I opened up the Batch file from Red Front using wordpad. It looked fairly simple. I will use this as a base for my batch file
Caspian is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:28.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team