Thread Tools
Old January 7, 2002, 22:23   #1
jadien
Settler
 
Local Time: 14:03
Local Date: October 31, 2010
Join Date: Jan 2002
Location: NYC
Posts: 5
Unit Production AI
Hey all.

I've been working on a scenario, which is essentially complete, but playtesting has revealed a fatal flaw -- The AI rarely builds military units. To answer the first things on most of your minds...

-Yes, the AI has the prereq techs. In fact, two of the units it can build have nil as their prereq

-No, there are no issues with the special unit slots. I avoided the Knight and the Musketeer altogether, and two of the three starting units are in the Warrior and Phalanx slots (The third is in the Settler spot).


The problem also showed up on the player's end of the game, in that the military advisor in the production screen rarely reccomends building anything but settlers, and usually makes no reccomendation at all. An interesting quirk of this was that the AI could build the Temple equivalent, which had a prerequisite of NO.

In any case, what can I do to remedy the problem? I spent weeks working on the scenario, and a week trying to alleviate this situation. If someone wants a copy of the scenario at hand, I'll email it to you.


Thanks, all.
jadien is offline  
Old January 8, 2002, 01:50   #2
Case
Civilization II PBEMCivilization II Democracy Game: Red FrontScenario League / Civ2-Creation
Emperor
 
Case's Avatar
 
Local Time: 05:03
Local Date: November 1, 2010
Join Date: Feb 2000
Posts: 3,057
A few sugestions
-Are the units roles set correctly?
-Are the units affordable?
-Have you tried setting the AI's personality to aggressive militaristic?

BTW, what's the scenario about?
Case is offline  
Old January 8, 2002, 02:08   #3
Frank Johnson
Civilization II MultiplayerDiploGamesCivilization IV: Multiplayer
King
 
Frank Johnson's Avatar
 
Local Time: 13:03
Local Date: October 31, 2010
Join Date: Dec 1969
Location: Houston, TX
Posts: 1,261
the AI won't produce a unit if.....

The unit is an attack unit and the attack and defense is lower than another attack unit or the unit is a defense unit and the defense and attack are lower than another defense unit.

If a unit is just "cheap" the AI wont build it.

Worse comes to worst use events to make new units appear every few turns.
Frank Johnson is offline  
Old January 8, 2002, 02:44   #4
Eyn
Warlord
 
Local Time: 19:03
Local Date: October 31, 2010
Join Date: Jan 2000
Location: Lyon, FRANCE
Posts: 249
does these units' movement => 2 ?
IA won't build "osbolete powers" land 2 pts movement units
ex:
Unit1 att 5 def 3
unit2 att 5 def 2
unit3 att 3 def 4
only unit1 and 3 will be build
...
but i also have some "corrects" units IA won't build.... but when i change the slots, IA finally build it.
Eyn is offline  
Old January 8, 2002, 16:58   #5
Mercator
Scenario League / Civ2-Creation
Emperor
 
Mercator's Avatar
 
Local Time: 21:03
Local Date: October 31, 2010
Join Date: Dec 1969
Posts: 3,079
I suggest you read the Advanced Scenario Design document by Leon Marrick. It's a must for every serious scenario maker...
(view online here)
If you want to download the document, don't use the download links mentioned in that page (they're broken), but go to the guides section first and download from there.

Sections 2a and 5e will be the most interesting for this issue (although most ideas are already mentioned in this thread).
Mercator is offline  
Old January 8, 2002, 21:51   #6
jadien
Settler
 
Local Time: 14:03
Local Date: October 31, 2010
Join Date: Jan 2002
Location: NYC
Posts: 5
I had already read the scenario creation tips, and the problem does not seem to lie in anything listed there.

The only units that can be created at the start by most civs are:

0/0/1, 1hp, 1fp, cost 30, Role: Settle (In Settler slot)
2/2/1, 1hp, 1fp, cost 20, Role: Defend (In Warrior slot)
3/1/1, 1hp, 1fp, cost 20, Role: Attack (In Archer slot, I might have said Phalanx earlier, but that was before I redid the rules.txt. The problem existed either way).

The only improvement that can be initially constructed (For most civs) is the Temple equivalent, at a cost of 30, and a prereq of nil.

Yes, all of the units can be constructed, and yes, they work properly. When played on the human end, nothing seems wrong except for the failure of the military advisor to have his own popup box (Most of the time).

The prereq/expire techs for the last two units (The ones the computer rarely builds) are both nil/nil. The settler unit has a prereq of nil, and an expiration of 'C', which is a no-no tech given to one civilization at start (Who instead has the unit in the Engineer slot). One civilization has a sea unit with a prereq of a tech whose prereq is a no-no. These civilizations behave no differently than the others, in that they rarely build anything except for improvement or settling units.

I am using Fantastic Worlds, pretty much as-shipped.
Any ideas, anybody?


P.S., to the person who asked about the subject of the scenario: It is based on the online game Sanctum, an online ccg. Take a look at http://sanctum.nioga.net .
jadien is offline  
Old January 8, 2002, 22:37   #7
jadien
Settler
 
Local Time: 14:03
Local Date: October 31, 2010
Join Date: Jan 2002
Location: NYC
Posts: 5
To clarify on the Musketeer/Knight issue... I have both units made inaccessible (Prereqs of NO), although I did make them backstory-relevent, as barbarian-only units.
jadien is offline  
Old January 16, 2002, 16:59   #8
William Keenan
Scenario League / Civ2-Creation
Prince
 
William Keenan's Avatar
 
Local Time: 14:03
Local Date: October 31, 2010
Join Date: Sep 1999
Location: New Jersey, USA, Earth, Sol, Milky Way
Posts: 705
This rule applies only to computer players and only to ground units.
If a better unit, in that same unit usage category (attack, defense, settle, etc.) is available then the computer player determines which units meeting all of these conditions to build, from among those you think it will, by looking only at attack and defense figures. Nothing else matters. A few examples (note that "5a/1d" means an attack of five and a defense of one) should make this clear:
  • 5a/1d and 4a/1d: Only the first is built. It does not matter how much you want the AI to build the second, or what extra capacities you grant either unit. You may only get the second to be built by setting either unit (or both) to air or sea, making the units' purposes different, or giving either unit (or both) a movement of one.
  • 2a/1d and 2a/2d: Only the second is built.
  • 5a/1d, 4a/2d, 3a/3d: works the same as 12a/1d, 3a/2d, and 1a/11d: all three are built, as those units with lower attacks (it does not matter how much lower) have better defenses (it does not matter how much better).
  • 6a/2d, 7a/2d, and 7a/1d: Only the middle unit is built, because it has the defense of the first without the poor attack, and the attack of the third without the poor defense.
William Keenan is offline  
Old January 16, 2002, 18:54   #9
Eyn
Warlord
 
Local Time: 19:03
Local Date: October 31, 2010
Join Date: Jan 2000
Location: Lyon, FRANCE
Posts: 249
do you still have the problem if u give 0 att, 0 def to the "musketeer" and "knight" units... just try
Eyn is offline  
Old January 17, 2002, 10:48   #10
William Keenan
Scenario League / Civ2-Creation
Prince
 
William Keenan's Avatar
 
Local Time: 14:03
Local Date: October 31, 2010
Join Date: Sep 1999
Location: New Jersey, USA, Earth, Sol, Milky Way
Posts: 705
Quote:
Originally posted by Eyn
do you still have the problem if u give 0 att, 0 def to the "musketeer" and "knight" units... just try
The "musketeer" and "knight" unit slot problem obsoletes the unit and makes it unbuildable. Since the unit can be build, it therefore must be the Att/Def issue.
William Keenan is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 15:03.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team