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 > AI Improvement Selection
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
harmonic is offline harmonic
Settler

Jun 2004
time: 05:17
  Old Post 14-07-2004 19:40 Visit harmonic's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
AI Improvement Selection Support Apolyton

Is it possible to change the order, or priority, of the AI's city improvement selections when a city is set on auto-build? (In detail, I mean, not just by switching between millitary & domestic.)

Thanks!

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

I don't know. Does the AI also follow the citypref.txt?

Panda is offline Panda
Prince
Europe
Jan 1970
time: 05:17
  Old Post 15-07-2004 02:10
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton buy from Amazon

I think it does, but only if the working directory matches the location of the file. i.e. this is normally the civ2 root directory so the citypref.txt would have to be in there (and so would only work for games using those files, usually unmodified; scenarios would be unaffected).

For scenarios you can set up a new shortcut file (*.lnk) that targets the civ2.exe file but the working directory is set to a different location, e.g. a scenario directory.

See the example below.

This also allows civ2 to use alternative city.gif and menuloop.wav files in scenario folders. Little tip.

Attachment: civ2link.gif
This has been downloaded 72 time(s).

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



So a citypref in the scenario folder doesn't work?

And if you change the working directory, there are some files you must place in that working directory, even if they're just copies of the originals. It's the game.txt and labels.txt at least, I think, and possibly some others too.

Panda is offline Panda
Prince
Europe
Jan 1970
time: 05:17
  Old Post 15-07-2004 05:35
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

menu.txt is essential as well. Have you tried this?

harmonic is offline harmonic
Settler

Jun 2004
time: 05:17
  Old Post 15-07-2004 06:25 Visit harmonic's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Full PM-box? Change here!

I think I'm missing some basic concept here or something; I can't find a citypref.txt file anywhere in my civ2 directory... Is this because I am not using MGE?

Or, can I just copy the file in? (I actually have MGE, just have allways prefered not to use it..)

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 15-07-2004 17:07 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Lose 30 kilos (of popups)

Citypref.txt is not a pre-existing file. It's an optional feature they added allowing you to define the build order when you put your cities on auto-build.

Let me see, this is what it said in the readme of the 2.42 patch (I imagine it hasn't changed since, for later civ2 versions):

quote:
Customizing autobuild
---------------------
You may customize the domestic advisor's city improvement
picks for the autobuild if you wish. Create a file in your
Civilization II directory called CITYPREF.TXT. The first line
should be:

@AUTOBUILD

Each succeeding line contains the name of a city improvement in
the order you want to build them. You don't have to list every
city improvement, but each improvement must be spelled -exactly-
as it is in RULES.TXT. (For foreign language versions, use the
exact spelling from RULES.FRE or RULES.GER as appropriate.)
Your domestic advisor will then choose improvements from this
list provided that technology is available and the city is
otherwise eligible to build them. If nothing on list is available,
the advisor resorts to his normal algorithm.

The military advisor will make his picks as usual. However, you
can order him never to build "defensive" type units by inserting
the line @NODEFEND at the beginning or end of the CITYPREF.TXT
file (don't put it between the @AUTOBUILD line and the list of
improvements).

An example file is below:

@NODEFEND
@AUTOBUILD
Temple
Marketplace
Library

The file is reread every time you click the "AUTO" button on the
"What shall we build?" menu. If you wish, you can alter your
priorities over the course of a game without reloading.

Harry Tuttle is offline Harry Tuttle

Prince
of the Hoople Heads
Mar 2003
time: 00:17
  Old Post 15-07-2004 22:15
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Avatar Enlargement: We've got the solution

Oh cool! This is actually really interesting. I didn't know this existed.

harmonic is offline harmonic
Settler

Jun 2004
time: 05:17
  Old Post 17-07-2004 07:29 Visit harmonic's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Browse Apolyton AD-FREE

Woah, Awesome! All hail King Mercator!


There's something else about the auto-build function:

There are a few improvements that don't seem to be able to be auto-built; the temple, colluseum, barracks, airport & solar power plant. (I might be missing one there...) Why is this? It seems somewhat to have to do with oblolete technology, at least in the barracks' case. A solar plant sure isn't obsolete, though.

In any case, I'm eager to learn if the citypref file will override this little glitch.

Thanks, and thanks again!

Harry Tuttle is offline Harry Tuttle

Prince
of the Hoople Heads
Mar 2003
time: 00:17
  Old Post 17-07-2004 09:16
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton buy from Amazon

I don't suppose Auto Build has any effect on the AI build queue?

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

quote:
Originally posted by harmonic
Woah, Awesome! All hail King Mercator!


Well, thanks, but I hardly deserve any credit here... I just read the manual in contrast with everybody else.

And I've never used the file myself, so I can't really help any further.

But, um, could you be more specific about the building problem? Are you testing it with the standard game, or have you changed the tech tree or so already? Are you sure you spelled the names right, you got the prerequisite techs, no wonders that already function as such an improvement etc?

harmonic is offline harmonic
Settler

Jun 2004
time: 05:17
  Old Post 20-07-2004 04:48 Visit harmonic's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Inflate your Upload Space

My autobuild problem... It's been around for a while, I noticed it not long after I first started playing the game. (Which has been a long time.) Up until now I hadn't been interested in scenario design at all - but I had been messing with the terrain values, specifically, raising the trade values to boost the rate at which advances are gained.

Obviously I changed other terrain values from time to time, but mostly trade values.

Never messed with advances or improvements, like I said, 'till now. Anyway, for clarification, no this is not being tested under any advancement or improvement mods. I haven't had a lot of time to playtest any of these new changes, really. I spent most of the time downloading FAQs, guides and such. Seems like every time I set out to make a change and test it, I find some new choice, so off I go researching again.

It's ok though... my goals are pretty lofty, I want to put out the best work possible. Thanks a million for all the help!

  < 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.0393 seconds (86.13% PHP - 13.87% 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