 |
|  |
 |
|
RNF
|
|
Wilton, NH USA
Nov 2000 time: 05:14
|
|
Ok, here's a try at an Applescript to do what you want.
The batch file above seems to do three things:
- It copies one of the files events1.txt, events2.txt, ... events5.txt to events.txt, depending on the country you choose.
- It copies one of the files rules1.txt or rules2.txt to rules.txt, depending on whether your'e playing an Axis or Allied country.
- It unconditionally copies a bunch of sound files.
It appears that the sound files in use are never actually changed, so the last point seems to be useless, and I didn't bother implementing it. This script just does the first two points.
The script is located at http://www.jlc.net/~faiman/update_events.sit . If you're lucky, you can just click on the link and your browser will automatically download the file and unstuff it for you, leaving you with an Applescript applet file named "Update 2194 Days Events". If your browser tries to display the link as a bunch of gibberish instead of downloading, you'll have to control click, click-and-hold, or whatever you do in your particular browser to get a contextual menu that lets you say "download this file to disk". If you get update_events.sit on your disk, but it isn't automatically expanded, then you'll need to drag it onto your copy of Stuffit Expander.
Once you have the applet on your system, you can just run it by double clicking it like any other program. The first time you run it, it will bring up a dialog to ask you to locate the 2194 Days of War scenario folder (the folder that contains the rules and events files). After the first time, it will remember how to find the folder and you won't have to tell it again, even if you move the folder around on your disk. However, if it ever "loses" the folder, just drag any file or folder onto the applet icon to "reset" it, and the next time you run the script, it will ask you to locate the scenario folder again.
Once the applet has located the scenario folder, it will a display dialog box asking the user what country he wants to play as, will choose the appropriate events and rules files in the scenario folder, and will make copies of them to replace the events.txt and rules.txt files in the scenario folder.
If this isn't what you had in mind, or if you have problems getting it to work, please let me know. If you want to play with the script yourself, you can open it in the Apple Script Editor application.
|
|
|  |
 |
|
RNF
|
|
Wilton, NH USA
Nov 2000 time: 05:14
|
|
Odd. I guess the first question would be what MacOS version you're running.
The Finder doesn't let you copy one file right on top of another one, so the script deletes the original events.txt, makes a copy of the selected events file, and then renames the copy. Can you check what events files are in your scenario folder after the script dies? I would expect that there would *not* be a file named events.txt, and that there *would* be a file named "events1.txt copy" (or events2.txt, or whichever one is appropriate for your selected country).
(I do hope you made a copy of the whole scenario folder to play with before you started trying this out. :-)
Perhaps you could use Stuffit to package up your scenario folder as a .sit file and put it somewhere I could copy it, and I could try my script on your folder and see if I can reproduce the problem here.
It might simplify things if you could send me your email address so that we can work on this more directly than by exchanging messages here in the forum. I'm at faiman@jlc.net .
[This message has been edited by RNF (edited November 02, 2000).]
|
|
|  |
All times are GMT. The time now is 05:14. Apolyton Time is 00:14. |
top of page
|
|
|
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
|
|
|
|
|
|