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 > Miscellaneous > Archive > CtP2-Creation/AI/Mods/Scenarios-Archive > Some suggestions for Loctus-Alexander bug (for expert SILCers only)
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
player1 is offline player1
King
Belgrade, YU
Sep 2001
time: 06:17
  Old Post 19-02-2002 00:03
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Some suggestions for Loctus-Alexander bug (for expert SILCers only) Support Apolyton, buy Galactic Civilizations: Deluxe Edition

What is so called Loctus-Alexander bug?
It's bug in CTP2 in wich one stack tries to go throught second stack, but since it can't (both stacks have lot of units), stack just stay stucked in fort of other group of units.
This behavior was very irritating in Alexader scenario and in basic game. It also degrades AI.


So I have several solutions.

First, if there are two FORTIFIED stacks on open, both not adjanced to ciites, and with sum of 12+ units (toghter). This happens when one tries to go through other one, since it is only way, or if both are on road.

Solution: just swap these two stacks (teleport). Although they'll lose thier orders, AI will give them a new one next turn, and porbably they won't divert too much form original orders (Medmod clears orders every 3 turns, and is doesn't hamper AI).

Second, if one stack is in city, and another one adjanced to city. In this case best solution is to move outse unit on one of surrounding tiles:

0000
0C00
00U0

in this case unit (stack) should be moved in one of following positions (A or B)

0000
0CB0
0AU0

This should solved the problem in most cases. If thes position don't exsist (ocen tile, or already occupied), then move unit on one of the opposide direction positions:

XX00
XC00
00U0

If none of these are possibile then move unit in oposite direction but one tile away from city.



Suggestion: First should be proccesed stacks adjanced to cities, and later stacks which are completly on open.




P.S.
A little off topic.
I have noticed that somtimes there are defensive stacks in cities. These stack AI doesn't try to uprage.
If detected, this stacks should be unstacked so AI could be allowed to upgrade those units.


P.P.S.
I hope there is someone who could code this.


P.P.P.S
I hope I haven missed something.

P.P.P.P.S.
No I haven't come back to CTP2. In fact I don't have this game on hard anymore. Still I feal obligated to share some good ideas here.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:17
  Old Post 23-02-2002 03:56 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Full PM-box? Change here!

Sorry for my late reaction, I've been very busy lately, which makes me tired and unable to think clearly about complex problems such as this one...

My solution to the Alexander scenario was to simply make all roads 2 tiles wide, this works as well. In the regular game this doesn't help much of course and you're solutions could well fill this gap. However, the problem is: how do you know the armies actually mean to move in the direction you think they're moving? They might just be passing by and be going in a completely different direction. You could reduce this problem by only teleporting armies that are fortifying. This still creates a problem though: if armies intend to fortify at the position at which they are, they will constantly try to fortify and be teleported, resulting in an infinite loop (at least until they are needed elsewhere or desstroyed).

Although your solutions could help a lot, they don't solve the problem entirely. Therefore, and because there are far easier ways of improving the AI, I've put a general solution to this problem pretty low on my priority list. If noone else does, I'll probably have a look at it sometime, but that could be a long time from now.

quote:
If detected, this stacks should be unstacked so AI could be allowed to upgrade those units.

I think we (read: Peter) came up with proper auto upgrade code quite a while ago. I think this upgrades all AI units, including city defenders.

quote:
I hope I haven missed something.

You've missed more than you can even begin to imagine...

quote:
Still I feal obligated to share some good ideas here.

Those are always welcome and very much appreciated

player1 is offline player1
King
Belgrade, YU
Sep 2001
time: 06:17
  Old Post 23-02-2002 05:21
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Civilization 2

This should apply only to fortified stacks outside cities which together with adjanced stacks have sum of 12+, and no stack should be moved more then once in turn.


About upgrading:
when I used my own MOD (no upgrade slic) I noticed that only cities with had FORTIFIED STACKS didn't upgrade them.
All other unis where up to date.

So some sort of city-automatic-unstacker could easily solve upgrade problems without need of some specific code.





P.S.
My expirience tells me that one of MAJOR problems with AI is "STUCKing of STACKS"
That's a REAL reason of POOR AI in modern times.
To many roads & railroads.
BUGGY pathfining. (hard-coded bug)


P.P.S.
Adding auto roads & railroads around AI citeis could reduce (but not completly solve) this problem.
Somthing like that should have a high prority in SLICing community.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:17
  Old Post 24-02-2002 04:00 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Help yourself to an AD-FREE life

quote:
About upgrading:
when I used my own MOD (no upgrade slic) I noticed that only cities with had FORTIFIED STACKS didn't upgrade them.
All other unis where up to date.


I don't know how long ago exactly you created your mod, was that before or after Peter (Triggs) released his unit-upgrade code for Cradle. If it was after, it's a moot point since that code, although I think it is (or at least was) slightly buggy, upgrades *all* units AFAIK, stacked or unstacked, fortified or unfortified.

quote:
My expirience tells me that one of MAJOR problems with AI is "STUCKing of STACKS"
That's a REAL reason of POOR AI in modern times.
To many roads & railroads.


I haven't noticed this myself yet but I'll test for it.

  < 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:
archivepost
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.0417 seconds (89.00% PHP - 11.00% MySQL) with 31 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