• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

.bat files

cjcz7

Charter Member
Hi again!
I recently downloaded the H2S radar style tactical display and I enjoy using it for many of the nighttime bomber missions. However, I still like to use the original tactical display occasionally and wondered if there was any way to easily switch between the two.

I have no experience at all with .bat files, but I had some free time and so experimented with the ETO era swappers. I modified a copy of 'masteretostartup.bat to look like this:

@ECHO OFF
CLS
ECHO.
ECHO.
ECHO W E L C O M E T O C F S 3 E T O E X P A N S I O N
ECHO.
ECHO.
ECHO.
ECHO 1. H2S tactical display
ECHO.
ECHO 2. normal tactical display with clock code
ECHO.

SET CHOICE=
ECHO.
SET /p choice=PLEASE SELECT YOUR THEATER ERA BY TYPING THE NUMBER AND THEN ENTER
ECHO.
ECHO.
IF NOT '%choice%'=='' SET CHOICE=%choice:~0,1%
IF '%choice%'=='1' GOTO :H2S
IF '%choice%'=='2' GOTO :eek:riginal
ECHO.



:H2S
copy "C:\Program Files (x86)\Microsoft Games\CFS3 ETO Expansion\aircraft\shared\tac_display_H2S\tactical_display.dds" "C:\Program Files (x86)\Microsoft Games\combat flight simulator 3\aircraft\shared"



GOTO SUCCESS
:eek:riginal
copy "C:\Program Files (x86)\Microsoft Games\CFS3 ETO Expansion\aircraft\shared\tactical_display_orig\tactical_display.dds" "C:\Program Files (x86)\Microsoft Games\combat flight simulator 3\aircraft\shared"
GOTO SUCCESS
:SUCCESS

I had each .dds file in a separate folder under aircraft\shared

the swapper dose work, only it is completely random as to which file is copied!
as I said before, I am a complete novice and I am sure it is a simple mistake. This is as much about me teaching myself than anything else!

I am extremely grateful to any help!
 
um, just a wild guess, but you could try setting up the bat file to rename textures rather than copy textures. Then both texture files could live in the same file path. Also the .bat file could live in the same folder, and the instructions would be a lot simpler.

Just a matter of deciding what to call the texture files. There are ETO bat files to work off as examples of file renaming instructions.

HTH,
D
 
Are the .dds files named the same? If so then the game will load the 1st one that it reads. Hence the random loading.

Best when you have 2 or more files that you want to alternate between is to use the REN (rename) command. Place the batch file in the same folder as the 2 files and when you go to the different choices all you will need to do is use a ren command. Therefor you will not have to call out the long directory path to the files, There are examples of ren command in the global_layer batch file, the master file, and the spawns folder. You can create a desktop shortcut of the batch file.

Bob
 
thanks guys,
I did try using ren commands, only I found that the .bat file didn’t work at all, saying something along the lines of 'the system could not find the file specified', even after I checked and double checked the file names and paths.
I will continue to experiment!:jump:...
 
Place the bat file in the folder containing the files you want to swap in and out. Run it directly from the folder (no shortcuts). Also turn off your User Account Control as that can mess it up.

Doing these things has helped me resolve similar issues.

-hth
 
Here you go. Place the 2 .dds files and selector.bat in same folder. Name one .dds file "h2s_tactical_display.dds", the other .dds file "tactical_display.dds". You can create a desktop shortcut for the bat file.

Copy and paste the following text to notepad save as "all files" with the .bat extention.

I have tested in one of my rigs and the selector works slick as a huckster at the county fair.

Bob





@ECHO OFF
CLS
ECHO.
ECHO.
ECHO W E L C O M E T O C F S 3 T A C T I C A L D I S P L A Y S E L E C T O R
ECHO.
ECHO.
ECHO.
ECHO 1. H2S tactical display
ECHO.
ECHO 2. normal tactical display with clock code
ECHO.
SET CHOICE=
ECHO.
SET /p choice=PLEASE SELECT YOUR DISPLAY BY TYPING THE NUMBER AND THEN ENTER
ECHO.
ECHO.
IF NOT '%choice%'=='' SET CHOICE=%choice:~0,1%
IF '%choice%'=='1' GOTO :H2S
IF '%choice%'=='2' GOTO :STOCK
ECHO.
ECHO "%choice%" IS NOT VALID CHOICE PLEASE TRY AGAIN
ECHO.
:H2S
IF NOT EXIST stock_tactical _display.dds GOTO :STOCK_2_H2S
IF NOT EXIST h2s_tactical_display.dds GOTO :SUCCESS
:STOCK
IF NOT EXIST h2s_tactical _display.dds GOTO :H2S_2_STOCK
IF NOT EXIST stock_tactical_display.dds GOTO :SUCCESS
:STOCK_2_H2S
REN tactical_display.dds stock_tactical_display.dds
REN h2s_tactical_display.dds tactical_display.dds
GOTO :SUCCESS
:H2S_2_STOCK
REN tactical_display.dds h2s_tactical_display.dds
REN stock_tactical_display.dds tactical_display.dds
GOTO :SUCCESS
:SUCCESS
 
Back
Top