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 > CivSwap released! (finally)
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
Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 06-04-2004 17:57 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
CivSwap released! (finally) Support Apolyton, buy Call to Power 2

No April Fool's this time... (but not nearly as exciting either)

Anyway, what the title says...

CivSwap is a little program that monitors game progress by checking the autosave, and can launch a program/batch file on set turns. As the name suggests, that program/batch file will most likely be a file swapping batch file, although it can be anything else.

Scenario players will no longer have to start a batch file while playing. All they need to do is run CivSwap at startup, turn on autosaving, and load the specified savegame when notified by events.

The readme contains a more detailed description, as well as a lengthy example (based on BeBro's Imperium Romanum)...

You can find CivSwap on my utility website. The readme is also available online, in the help section:
http://www.civgaming.net/mercator/mapedit/

Oh, you'll need the VB6 run-time files, as usual... If you have any of my other utilities, you'll have these already.

I would especially like to hear some comments about my readme.

Exile is offline Exile
King
of the Benighted Realms
Sep 2000
time: 23:17
  Old Post 07-04-2004 05:09
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Some questions Help yourself to an AD-FREE life

DLed it. Some questions.

1.) The Delevent thing; I've heard delevent doesn't work on MGE. Does your utility bypass that problem?

2.) what can it do? Can it replace old units w/new ones? Change terrain or terrain values? Alter the rules.txt?

3.) Ok, not a question here . . . . very thorough readme. Well done.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 07-04-2004 18:22 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Re: Some questions Enter the AD-FREE zone

I assume (3) meant the first two questions were answered?

In any case...

(1) Delevent most certainly does work on MGE. Not that I have actually tried it out, but delevent is a rather basic program. All it does is truncate a file at the first occurrence of "EVNT". In savegames this happens to be the events marker... You can even test this yourself: Make a new textfile, and put some random jibberish in it, with EVNT somewhere in the middle. Now drag 'n' drop that file onto delevent... Open the textfile again, and look! EVNT and everything after it has disappeared.

In other words, delevent can't possibly not work.

(1)/(2) CivSwap is nothing more than a gateway. It keeps track of the game turn and can then launch a program on the turns you've specified. That program can be just about anything you want, but will typically be a batch file. A batch file like you're used to from before.

So, CivSwap can do anything you can do with batch files. It simply runs that batch file automatically.

(3) Thanks.

Exile is offline Exile
King
of the Benighted Realms
Sep 2000
time: 23:17
Question  Old Post 07-04-2004 21:56
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton buy from Amazon

Ok, I'm not at all clear about batch files and their use. I've stayed away from such things up until now because I felt their use was too cumbersome and didn't like the interruption of the game.

But now it appears as if you've succeeded in automating the whole thing. That's great, but I would like to know what CAN be done with these tools.

Is there some sort of Batch-files-in-Civ2-for-dummies somewhere?

The hiddden agenda here is that, if this thing works like you say it does, Merc, it will neatly solve quite a few dilemmas in terms of a scenario that I've conceived, but not yet completed.

Stefan Härtel is offline Stefan Härtel
King
Eddie's best friend
Jul 1999
time: 06:17
  Old Post 07-04-2004 22:31
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Civilization 2

Superb work, Merc!!!!!

Exile, you can take a pre-existing batch file and alter it with notepad. I've done this a couple of times to test it, and it works (one is in my "Lost Paradise" scenario).

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 07-04-2004 22:33 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

quote:
Originally posted by Exile
Ok, I'm not at all clear about batch files and their use. I've stayed away from such things up until now because I felt their use was too cumbersome and didn't like the interruption of the game.


Batch files date back to the DOS era (and should really be outdated by Windows scripts by now). They're basically text files with a lot of DOS commands in it.

I guess you could compare it to what you can do with Windows Explorer (except it's in a command-line environment). You can create/delete/move/copy files and directories, run programs, see directory listings and file properties. That sort of thing.

The things of interest for civ2 are mostly just executing programs (i.e. run delevent to delete events), copy, move and delete files (for file swapping), and possibly creating textfiles (you can redirect DOS output to a text file).

quote:
Is there some sort of Batch-files-in-Civ2-for-dummies somewhere?


Well, you can start by reading the example in the CivSwap readme.

quote:
The hiddden agenda here is that, if this thing works like you say it does, Merc, it will neatly solve quite a few dilemmas in terms of a scenario that I've conceived, but not yet completed.


Exile is offline Exile
King
of the Benighted Realms
Sep 2000
time: 23:17
  Old Post 08-04-2004 03:14
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
It's becoming clearer . . . . Support Apolyton, buy Galactic Civilizations

Ok, this is my fault for failing to phrase my inquiry in a sufficiently precise manner.

WHAT can batchfiles do ?

can they . . . ;

alter rules.txt ?
terrain.gif ?
units.gif ?
universal principles?

. . . and these things at precise turns in a given scenario?

Sorry to belabor this point, I'm just trying to establish what is NOW do-able, scenario-wise, thanks to your stirling efforts.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 08-04-2004 04:29 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Re: It's becoming clearer . . . . Increase the size of your Attachments

quote:
Originally posted by Exile
WHAT can batchfiles do ? [...]


Oh, I see what you meant (I think )...

No. Batch files can't edit files, so you can't change individual units or terrains. You can only swap complete files. If you have all the different versions of the rules.txt and graphics files ready, you can use a batch file to swap them.

That's what I meant when I referred to Windows Explorer, too... Say, in Explorer you can move files and start programs, but you can't edit files. You can of course open a program that can do the editing, but that's no longer Explorer, that's a text editor or image editor.

quote:
. . . and these things at precise turns in a given scenario?


With CivSwap, yes.

quote:
Sorry to belabor this point, I'm just trying to establish what is NOW do-able, scenario-wise, thanks to your stirling efforts.


No problem...

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:17
  Old Post 08-04-2004 09:55 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Suffering from ads?

One down, two to go.

What's this on the site update?

quote:
Finally, I've expanded the utility descriptions a little (thanks to Catfish).

Really, it was no trouble at all.

Erm, what did I do? A reference to a passing comment in that Starcraft thread at CFC, perhaps?

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 08-04-2004 18:13 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Suffering from ads?

Yep... Is the CSPL description good enough now?

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

It looks like I was actually almost 4 years late with CivSwap!!

Pano already made something like this, back in 2000. It's called Mfe (multi file editor). It's available here:
http://reflet.via.ecp.fr/~pano/Mfe/index_.html
http://coc.apolyton.net/utilities/index.shtml

Moreover, it uses its own configuration files rather than relying on batch files.

Could anyone else have a look at this?

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:17
  Old Post 14-04-2004 12:37 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Got spare money?

quote:
Originally posted by Mercatore Uno
It looks like I was actually almost 4 years late with CivSwap!!

Actually, I've had this utility sitting on my HD for years. I've never used it and had completely forgotten about it. At a casual glance, the user guide appears a bit rough. It's written in broken English and could probably do with a decent example for clarification. Looks impressive, though.

quote:
Originally posted by Mercatore Uno
Yep... Is the CSPL description good enough now?

Sensitive, aren't we? It's passable, I suppose. Can't have Kull's site surpassing yours now, can we?

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 14-04-2004 14:06 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Enter the AD-FREE zone

quote:
Originally posted by Catfish

Actually, I've had this utility sitting on my HD for years.


I don't think I've ever actually downloaded it, but I know I've visited that utility page many times.

It is a bit rough, but it's turn options are quite a bit more advanced, although that will only be of any importance if you want to change files very often.
It also uses it's own configuration files, rather than batch files, which probably makes it a bit easier to understand.On the other hand, it doesn't automatically track the autosave like CivSwap, so it still requires some interaction with a program outside of civ2.

quote:
Sensitive, aren't we? It's passable, I suppose. Can't have Kull's site surpassing yours now, can we?


Exile is offline Exile
King
of the Benighted Realms
Sep 2000
time: 23:17
  Old Post 14-04-2004 23:18
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Cullivan's got a site?



Url?

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 15-04-2004 00:48 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, buy Civilization 2

Let me think... I'm sure I must have that link somewhere... What was it again... Yes, it's... no, now it's gone again.




cullivan.com

Cyrion is offline Cyrion
King
Caught somewhere in time
Jan 2002
time: 06:17
  Old Post 15-04-2004 02:51
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Put an end to popups!

Mercator

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:17
  Old Post 15-04-2004 03:24 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton

quote:
Originally posted by Mercatore Uno
Let me think... I'm sure I must have that link somewhere... What was it again... Yes, it's... no, now it's gone again.
cullivan.com

...and to think it was all sparked by an innocent comment by some character called Wobbegong over at CFC:

quote:
Originally posted by Wobbegong
As far as the trainer is concerned, the closest thing I can think of is Angelo Scotto's CSPL (also found at Mercator's site, but there's a better description of it here at Kull's) and that's going to require some C/C++ coding ability.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 15-04-2004 04:42 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Support Apolyton or Terrorists Win

I'm not that evil. I didn't make the link so small because it's competition, but because the URL can't get any easier.

Yes, I wonder who that strange fellow is. As if anyone can really be as eloquent as I am.[/haughty]

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:17
  Old Post 15-04-2004 12:34 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

quote:
Originally posted by Mercatore Uno
I'm not that evil. I didn't make the link so small because it's competition, but because the URL can't get any easier.

Riiiiight. …but the evil version is so much funnier.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 15-04-2004 16:59 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

... um... Stop spamming my thread!

  < 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.0590 seconds (91.48% PHP - 8.52% 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