 |
|
Soundwave
|
|
How do you may batch files like .bat for civ2, coz i wanna have muiltaplayer events in my scenario?
|
|
|  |
 |
|
Paul Hanson
|
 |
Dilbert
Aug 1999 time: 05:18
|
|
Take this as an example. This is from Red Front, BTW. I've numbered the lines to make it easier to refer to them.
1.@echo off
2.copy wterrain1.gif terrain1.gif
3.copy wterrain2.gif terrain2.gif
4.copy wcities.gif cities.gif
5.copy rules2.txt rules.txt
6.copy units2.gif units.gif
7.copy events2.txt events.txt
8.DELEVENT RF.sav
9.exit
Line 1 will ensure that the bat file does not report back everything it is doing whilst it is working.
Lines 2 through 7 are copying files, and renaming them in the process. For instance, line 2 is taking the file wterrain1.gif and making a copy, which is named terrain1.gif. When doing your own, simply insert the name of the file you wish to copy and tell it to rename it to whatever you want. Line 7 is probably the one you are interested in; it is taking a file called events2.txt, which Civ2 will not recognise, and renaming it to events.txt, so Civ2 will use it as the events file.
Line 8 is important; it is using the Microprose program DELEVENT, which removes the events data from a saved game file, in this case RF.sav. When playing your scenario, you must instruct people to give the save file a particular name, or this will not work.
Line 9 is quitting the bat file and shutting the window it creates when it runs.
|
|
|  |
 |
|
Soundwave
|
|
but i dont get it
do i have to write heaps of lines to say change units1 to units
then units2 to units??
|
|
|  |
 |
|
Paul Hanson
|
 |
Dilbert
Aug 1999 time: 05:18
|
|
Soundwave; do you know the basic names for all the files that make up a Civ2 scenario? I'll assume that you do, but if you don't just say so and I'll explain it.
Lets assume that you have a five part scenario, and that each part of the scenario has a different events file. You would probably name the files like so: events1, events2, events3, events4 and events5 (these will, of course, all have the .txt extension. Before beginning the scenario, the player would have to run the batch file for the first part, which would contain a line like:
copy events1.txt events.txt
This will copy the events1.txt file, creating a copy called events.txt. Civ2 will now detect this file and use it as the one for the first part of your scenario. When the time comes to change events files, you would indicate this in game via an event that reads something like "Change to the next set of events", or something similar. At this point, you would instruct the player to run the next bat file, which would contain the lines:
DELEVENT savegame.sav
copy events2.txt events.txt
Or something similar. This would wipe the events data in the samegame file and replace the current events file with the next one. The savegame would then be reloaded and all the units and such would remain the same, but the events would be different.
This is tricky to explain. My advice would be to follow our_man's advice and check out some existing bat files.
|
|
|  |
 |
|
Soundwave
|
|
I have 8 different events files, muilt, british, french, russia, austria, ottoman, italian, german.. HELP!@
|
|
|  |
 |
|
Soundwave
|
|
So what should i do now??
|
|
|  |
 |
|
Soundwave
|
|
Thanks, i spent about 30mins checkin gthe things and i misplaced the ENDTEXT after the txt on everysingle one excpet the start one.. so yay!
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:18. Apolyton Time is 00:18. |
top of page
|
| archivepost |
|
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
|
|
|
|
|
|