Batch files on Mac

thamis

King of Kish
Joined
Jan 21, 2002
Messages
1,583
Hi!

I'm a PC user and made the Ancient Mediterranean MOD. It includes batch files for easy installation & launching. But I didn't think of Mac users. (sorry guys!) :cute:

How do I make Mac batch files? Or would there be someone willing to convert my files to Mac batch?

What else is different on Mac CIV3?
 
The way to to .bat files on the Mac is preferably by using Applescript, which is a somewhat simple language that can be used to control many programs, including "Finder" which is the shell of the MacOS.
I have written applescripts previously for the "Red front" scenario. I also wrote an Applescript that converted Civ 2 PC scenarios to Civ 2 Mac scenarios. They were very different, using different graphics and sound formats.
If you have a .bat file and a mod, send it to me (or give me a link) and I will see what I can do. No promises, though.

best wishes
Chris (d88-cbr@nada.kth.se)

P.S. To my knowledge Civ 3 for the Mac should be identical to Civ 3 for the PC, except that we have no editor.
 
Would be great if you could convert this batch file (taken from the Ancient Med MOD - link in sig):

@echo off
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo T H E A N C I E N T M E D I T E R R A N E A N
echo.
echo A Modification for Civilization III
echo Updates: See Ancient Mediterranean MOD Link
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo.
REM ###############################################################
echo BACKING UP FILES...
REM ###############################################################

cd..
REM /CIV3/

IF EXIST civ3mod.bic ren civ3mod.bic civ3mod.bic.anc

cd art
REM /CIV3/ART

IF EXIST resources.pcx ren resources.pcx resources.pcx.anc
IF EXIST resources_shadows.pcx ren resources_shadows.pcx resources_shadows.pcx.anc
IF EXIST title.pcx ren title.pcx title.pcx.anc

cd units
REM /CIV3/ART/UNITS

IF EXIST units_32.pcx ren units_32.pcx units_32.pcx.anc

cd..
cd terrain
REM /CIV3/ART/TERRAIN

IF EXIST TerrainBuildings.pcx ren TerrainBuildings.pcx TerrainBuildings.pcx.anc

cd..
REM /CIV3/ART

IF EXIST cities ren cities cities.anc
IF EXIST erasplash ren erasplash erasplash.anc

cd civilopedia
cd icons
REM /CIV3/ART/CIVILOPEDIA/ICONS

IF EXIST resources ren resources resources.anc

cd..
cd..
cd..
cd text
REM /CIV3/TEXT

IF EXIST civilopedia.txt ren civilopedia.txt civilopedia.txt.anc
IF EXIST pediaicons.txt ren pediaicons.txt pediaicons.txt.anc
IF EXIST diplomacy.txt ren diplomacy.txt diplomacy.txt.anc

REM ###############################################################
echo COPYING FILES...
REM ###############################################################

cd..
REM /CIV3/

cd "Ancient Mediterranean"
REM /CIV3/ANCIENT MEDITERRANEAN

xcopy *.* ..\*.* /V /S /E /Y

REM ###############################################################
echo.
echo.
echo LAUNCHING GAME... ENJOY!
echo.
echo DO NOT CLOSE THIS WINDOW!
echo.
echo TO CORRECT STARTING POSITIONS:
echo Press ALT+TAB and double-clich the Correct St. Pos. link.
REM ###############################################################

cd..
REM /CIV3/
civ3edit.exe

REM ###############################################################
echo RESTORING FILES...
REM ###############################################################

IF EXIST civ3mod.bic.anc del civ3mod.bic
REN civ3mod.bic.anc civ3mod.bic

cd art
REM /CIV3/ART

IF EXIST resources.pcx.anc del resources.pcx
REN resources.pcx.anc resources.pcx
IF EXIST resources_shadows.pcx.anc del resources_shadows.pcx
REN resources_shadows.pcx.anc resources_shadows.pcx
IF EXIST title.pcx.anc del title.pcx
REN title.pcx.anc title.pcx

cd units
REM /CIV3/ART/UNITS

IF EXIST units_32.pcx.anc del units_32.pcx
REN units_32.pcx.anc units_32.pcx

cd..
cd terrain
REM /CIV3/ART/TERRAIN

IF EXIST TerrainBuildings.pcx.anc del TerrainBuildings.pcx
REN TerrainBuildings.pcx.anc TerrainBuildings.pcx

cd..
REM /CIV3/ART

IF EXIST cities.anc rmdir cities /S /Q
REN cities.anc cities
IF EXIST erasplash.anc rmdir erasplash /S /Q
REN erasplash.anc erasplash

cd civilopedia
cd icons
REM /CIV3/ART/CIVILOPEDIA/ICONS

IF EXIST resources.anc rmdir resources /S /Q
REN resources.anc resources

cd..
cd..
cd..
cd text
REM /CIV3/TEXT

IF EXIST civilopedia.txt.anc del civilopedia.txt
REN civilopedia.txt.anc civilopedia.txt
IF EXIST pediaicons.txt.anc del pediaicons.txt
REN pediaicons.txt.anc pediaicons.txt
IF EXIST diplomacy.txt.anc del diplomacy.txt
REN diplomacy.txt.anc del diplomacy.txt

cd..
REM /CIV3

del "!!! Correct Starting Positions !!!.lnk"
del "!!! Play the Ancient Mediterranean MOD !!!.lnk"
del "_Ancient Mediterranean MOD on the Internet.url"
del "_Civ Placement Tool on the Internet.url"
del "_WiWi's ModManager on the Internet.url"
del "ancient world.bat"
del "play.bat"

cd "Ancient Mediterranean"
REM /CIV3/ANCIENT MEDITERRANEAN

REM ###############################################################
echo CHECK FOR UPDATES ON www.civfanatics.com
echo OR JUST FOLLOW THE LINK IN THIS DIRECTORY!
REM ###############################################################

I won't be checking on this thread for the next two weeks, so take your time. :)
 
Back
Top Bottom