Announcement

Collapse
No announcement yet.

Using Batch Files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #2
    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.
    STDs are like pokemon... you gotta catch them ALL!!!

    Comment


    • #3
      Thanks our_man. Can you tell me a couple of Jay Bee or Carl Fritz scenarios so that I can check this out.

      Comment


      • #4
        Of Jay Bee's, I'm pretty sure "Visigoths" and "Mexico" have them.




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

        STDs are like pokemon... you gotta catch them ALL!!!

        Comment


        • #5
          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.

          Comment


          • #6
            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

            Comment

            Working...
            X