Advertisement
Guest User

Combomod modified batch file for TFTDextender 1.03

a guest
Jul 4th, 2012
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. cls
  3. title ComboMod
  4.  
  5. if not exist geoscape.exe goto failure
  6. if "%PROCESSOR_ARCHITECTURE%" == "" goto dosbox
  7.  
  8. %1bb_tact\errcode.exe botch
  9. if exist TFTDextender.exe (
  10.   del TFTDExtender.ini
  11.   copy Geo.ini TFTDExtender.ini
  12.   start /w TFTDextender geoscape.exe "0"
  13. ) else (
  14.   if exist xcloader.exe start /w xcloader geoscape.exe "0"
  15.   if not exist xcloader.exe start /w geoscape.exe "0"
  16. )
  17. %1bb_tact\errcode.exe check
  18.  
  19. if errorlevel 2 goto begin
  20. goto realend
  21.  
  22. :begin
  23. %1bb_tact\combomod.exe
  24. if exist TFTDextender.exe (
  25.   del TFTDExtender.ini
  26.   copy Tac.ini TFTDExtender.ini
  27.   start /w TFTDextender tactical.exe "1"
  28. ) else (
  29.   if exist xcloader.exe start /w xcloader tactical.exe "1"
  30.   if not exist xcloader.exe start /w tactical.exe "1"
  31. )
  32.  
  33. %1bb_tact\combomod.exe cleanup
  34.  
  35. %1bb_tact\errcode.exe botch
  36. if exist TFTDextender.exe (
  37.   del TFTDExtender.ini
  38.   copy Geo.ini TFTDExtender.ini
  39.   start /w TFTDextender geoscape.exe "1"
  40. ) else (
  41.   if exist xcloader.exe start /w xcloader geoscape.exe "1"
  42.   if not exist xcloader.exe start /w geoscape.exe "1"
  43. )
  44. %1bb_tact\errcode.exe check
  45.  
  46. if errorlevel 2 goto begin
  47. goto realend
  48.  
  49. :dosbox
  50.  
  51. echo You're running DOS, or perhaps DOSBox.
  52. echo.
  53. echo Sorry, but ComboMod is only compatible with the CE
  54. echo version of the game, which in turn is Windows-only.
  55. echo.
  56.  
  57. pause
  58.  
  59. goto realend
  60.  
  61. :failure
  62.  
  63. echo Load failure!
  64. echo.
  65. echo This probably means one of the below is true:
  66. echo.
  67. echo * You're not running this from your game directory.
  68. echo * You're trying to run the DOS (original) version of the game - **ComboMod is CE ONLY**.
  69. echo * You're trying to run the CE (Windows) version of the game under DOSBox.
  70. echo * You're trying to run the CE (Windows) version of the game but haven't
  71. echo   created a split copy of your game executable yet.
  72. echo.
  73. echo In the last case, running "_EXE Split.bat" should sort that for you.
  74. echo.
  75.  
  76. pause
  77.  
  78. :realend
  79. del TFTDExtender.ini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement