Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Civilization II > Scenario League / Civ2-Creation > Batch and Delevent Files
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
29.Jul: MOVING UP ON REVISED `TOP 100` INDEX
29.May: GAME MECHANICS REFERENCE BOOKLET
06.Mar: DROPPING FROM SECOND TO THIRD
CivGroups
Scenario League / Civ2-Creation (66): Not a Member - Join

bottom of page
  - CIVILIZATION 2 from $6.95 - CIVILIZATION 2 from $4.25 - CIV2: TEST OF TIME from $2.50 - CIV2: MULTIPLAYER GOLD EDITION from $4.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:17
  Old Post 06-06-2004 19:12 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Batch and Delevent Files Support Apolyton

Two questions. First, every time I'm making a batch file in MS-DOS and type a command line with echo in front, it immediately displays what's after the echo when I press Enter. Is this a problem, and if so, how do I fix it? Second, I know a delevent.exe file is something line the command line "delevent blank.scn," but how do I actually create the @#%$& thing; is it done like a batch file or is there another method?

Harry Tuttle is offline Harry Tuttle

Prince
of the Hoople Heads
Mar 2003
time: 00:17
  Old Post 06-06-2004 19:29
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Delevant is actually a file contained in the Civ2 directory. Just cut and paste it into your scenario folder. The batch file should use delevant to wipe your events out of your save file when the batch file is run. The following is the batch file I used to run Atomic Eagle. Try using it as an example. I hope this helps.

@echo off
cls
echo.
echo Atomic Eagle Part 1 (V.1.0)
echo.
echo (Loads graphic, rules, and event files)
echo (load a chapter according to where you are in the game)
echo.
echo Which Chapter do you wish to load?
echo.
echo 1. Chapter 1
echo 2. Chapter 2
echo 3. Chapter 3
echo X. Exit without Loading
echo.
choice /c:123X Enter your selection

if errorlevel 10 goto done
if errorlevel 9 goto done
if errorlevel 8 goto done
if errorlevel 7 goto done
if errorlevel 6 goto done
if errorlevel 5 goto done
if errorlevel 4 goto done
if errorlevel 3 goto Three
if errorlevel 2 goto Two
if errorlevel 1 goto One

:One
echo.
echo Chapter 1
copy rules1.txt rules.txt
copy units1.bmp units.bmp
copy cities1.bmp cities.bmp
copy events1.txt events.txt
copy labels1.txt labels.txt
copy 1extra2.wav extra2.wav
copy 1extra3.wav extra3.wav
copy 1extra4.wav extra4.wav
copy 1extra5.wav extra5.wav
copy 1extra6.wav extra6.wav
copy 1extra7.wav extra7.wav
copy 1custom1.wav custom1.wav
copy 1custom2.wav custom2.wav
copy 1custom3.wav custom3.wav
DELEVENT Atomic.sav
goto done

:Two
echo.
echo Chapter 2
copy rules2.txt rules.txt
copy units2.bmp units.bmp
copy events2.txt events.txt
copy labels2.txt labels.txt
copy extra2x.wav extra2.wav
copy extra3x.wav extra3.wav
copy extra4x.wav extra4.wav
copy extra5x.wav extra5.wav
copy extra6x.wav extra6.wav
copy extra7x.wav extra7.wav
copy custom1x.wav custom1.wav
copy custom2x.wav custom2.wav
copy custom3x.wav custom3.wav
DELEVENT Atomic.sav
goto done

:Three
echo.
echo Chapter 3
copy rules3.txt rules.txt
copy units3.bmp units.bmp
copy cities3.bmp cities.bmp
goto done

:done
echo.
exit
quit




------ edit: and what do you mean in MS-DOS? A batch file is (to my knowledge) made by typing in the commands above into a .txt file and saving it with the extension of .bat

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:17
  Old Post 06-06-2004 20:12 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Full PM-box? Change here!

That is tremendous help. Thanks a lot! And, as for why I would use MS-DOS, a Internet site on batch files told me to use that format and didn't mention text files. I think Mercatore Uno gave me the link in another of my threads on the issue.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 07-06-2004 02:35 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton buy from Amazon

You must've misunderstood... Batch files are, well, a batch of MS-DOS commands put together in one text file.

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:17
  Old Post 07-06-2004 06:34 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Inflate your Upload Space

Long ago, I used "COPY CON X.BAT" to generate short bat files, ending with a control-Z. Since Civ2 bat files are anything but short, and since it's easier to modify an existing template, I just use Notepad now. Just make sure the extension is .bat not .txt.

Btw just in case you didn't test it, the 'echo.' in Merc's example simply displays a blank line. In addition, you must have at least one character of text after the /c:123X argument in the CHOICE line. W98 will work without it, but XP chokes severely.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 07-06-2004 19:26 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Tired of ads?

Hey, I didn't know about that "copy con" thing.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:17.
Apolyton Time is 00:17.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0390 seconds (85.37% PHP - 14.63% MySQL) with 36 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net