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 > Call To Power II > CtP2-Source Code Project > Debug: Science pact
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
CivGroups
CTP2 Source Code Project (59): Not a Member - Join

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
kaan is offline kaan
Prince
Aarhus
Mar 2001
time: 05:32
  Old Post 27-12-2003 20:46
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Debug: Science pact Avatar Enlargement: We've got the solution

Well i put in a few DPRINTF() to figure out what is wrong with the science pact and my early findings are that it seems to work flawlessly allthough it may seem a little unbalanced, but thats another issue entirely

any comments on what i might be missing would be apreaciated.

Klaus

Attachment: civ3log14.txt
This has been downloaded 8 time(s).

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:32
Post  Old Post 27-12-2003 22:29 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Why a new thread if we already have a thraed about?

-Martin

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:32
  Old Post 27-12-2003 22:51
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Put an end to popups!

Since I already started to post in this one:

quote:

Player.cpp@1902: Science from pacts is 724 for player 7, who made 67 by himself


Whoa! That doesn't seem right.

BTW, has anybody tried playing around with the debug mask (civ3_main.cpp @ ~1767):

code:
c3debug_SetDebugMask( k_DBG_AI | k_DBG_SCHEDULER | k_DBG_GAMESTATE, 1);


The options are:

code:
#define k_DBG_ALL 0xffffffff #define k_DBG_NONE 0x00000000 #define k_DBG_INFO 0x00000001 #define k_DBG_AI 0x00000002 #define k_DBG_NET 0x00000004 #define k_DBG_GRAPHICS 0x00000008 #define k_DBG_DATABASE 0x00000010 #define k_DBG_FILE 0x00000020 #define k_DBG_GAMESTATE 0x00000040 #define k_DBG_UI 0x00000080 #define k_DBG_FIX 0x00000100 #define k_DBG_SLIC 0x00000200 #define k_DBG_SCHEDULER 0x00000400 #define k_DBG_SCHEDULER_DETAIL 0x00000c00 #define k_DBG_SCHEDULER_ALL 0x00001c00 #define k_DBG_DIPLOMACY 0x00002000 #define k_DBG_MAPANALYSIS 0x00004000


You can get it to print out all sorts of stuff by varying these. I've been trying to figure out how the AI tasks it's units and in particular why it won't do cross water invasions.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:32
Post  Old Post 27-12-2003 23:12 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Civilization 2

quote:
Originally posted by Peter Triggs
You can get it to print out all sorts of stuff by varying these. I've been trying to figure out how the AI tasks it's units and in particular why it won't do cross water invasions.


If you want to do cross water invasions then some prerequites must be match.

1. No enemy should be left on your continent.
2. You need enough attack units to do it.
3. You need enough transport capacity.
4. You need a deployment place on your continent to rally your troops until you have enough there at one place to put them all into ships.
5. You need a victim, a goal where you could send your invasion force.
6. Of course every ship should arrive at the same time.
7. When every ship is at the goal all units should go from board.
8. Of course the transprters need an escorte.

Determining that you are alone on a continent is not too difficuilt. Also rallying enough troops is not too difficuilt either. You must only know where the deployment place is, easy if you just have one per continent, more difficuilt if you have more per continent. But then you have to decide who should be the victim. Of course it is good to attack the civ on the neighbor conz´tinent or better island, but if the neighbor is too strong then you should first conquer some lonely islands to extend your empire and grow stronger. Of course don't attack one tile islands if you don't have the necessary units, and in this case not a very huge fleet is needed. So also multiple invasion goals could be possible. Of course make shure that every ship is full.

The current AI has a problem in path finding if the original indented path is blocked, it just stops there and fortifies its troops. Then it has no idea that it has to ungroup or better to group out the neccessary units if it wants to fill transporters and there is not enough space for the whole stack. Another problem that I see is that the AI just coordinates its units on a very low level, so that it would only fill one transporter and sends it to somewhere and fills the next transporter and sends it to somewhere else. But of course only if there are enough units if there are less units then it doe not fill the transporters, instead of that it uses five unit transporters for only one units.

Taking in considerartion what you have to do for a serious invasion and what the AI does and even would does by design without bugs, then it is not very surprisingly that you never see a serious invasion.

-Martin

kaan is offline kaan
Prince
Aarhus
Mar 2001
time: 05:32
  Old Post 28-12-2003 05:24
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton

quote:
Originally posted by Martin Gühmann
Why a new thread if we already have a thraed about?

-Martin


Sorry I didnt know it existed

This also means that this forum has reached the critical mass where i have to search it before blabbering out my every thought

The only thing left to do with this issue is a design discussion about the right balance of a science pact.

I think ill move on to finding out why the mayors dont use entertainers to manage happines.
The old fix posted by Mr Ogre seems to have vanished in the forum rearangement but it works well. The thing nagging me is that its a workaround to a bug instead of a fix.

Klaus

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:32
Post  Old Post 28-12-2003 06:12 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

quote:
Originally posted by kaan
I think ill move on to finding out why the mayors dont use entertainers to manage happines.
The old fix posted by Mr Ogre seems to have vanished in the forum rearangement but it works well. The thing nagging me is that its a workaround to a bug instead of a fix.


The mayors use the AI strategies of assigning entertainers, in GoodMod I removed the possibility to use enterteiners for the AIs, because the AI has no idea when it should use entertainers and when not. Either you get a city with to much entertainers or with to few entertainers. In if there are to less entertainers the AI use the sliders anyway. So why wasting the valuable work power of the people if the effect is not controlled. So I came to the conclusion that it is better that the AI don't use entertainers and removed them from the city pop specialist table. Surprisingly even without the entertainers on the table I saw the AI using some entertainers.

So I mean there is much more then fixing just a bug, probably the whole thing has to be redesigned, to make it work as best as it could be and not only as good as it was intended.

-Martin

Solver is offline Solver
Apolyton Duke Of Something
Latvia, Riga
Sep 2000
time: 07:32
  Old Post 28-12-2003 19:07 Visit Solver<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton or Terrorists Win

Peter,

Settings those debug constants to some values (especially the debug all one) will create absolutely huge logfiles. Some serious patience is required.

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:32
  Old Post 31-12-2003 20:10
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton or Terrorists Win

Klaus,

quote:

I think ill move on to finding out why the mayors dont use entertainers to manage happines.
The old fix posted by Mr Ogre seems to have vanished in the forum rearangement but it works well. The thing nagging me is that its a workaround to a bug instead of a fix.


It was Azmel2 who posted that:

quote:

A friend of mine found a pretty obvious and obnoxious AI bug and I spent the day hunting it down. It turns out that a simple text file change will fix your mayors so they keep your cities happy. To fix the bug, just overwrite the file pop.txt in your ctp2_data/default/gamedata directory with a new pop.txt that has the following first record (before POP_ENTERTAINER) :

## Mayors ignore the first pop record, this fixes the problem
## with low happiness not being handled correctly by mayors.
## (REM031501)

POP_ZERO_IGNORED {
EnableAdvance ADVANCE_CLASSICAL_EDUCATION
Food 0
}

Actually, you should probably do this in a scenario and not overwrite the default pop.txt, but do what ever you think is best.

If you want to try it with a game in progress, the easiest way to get it to re-read the pop values is to quit and reload the game and then to bring up the cheat menu and remove the "drama" advance. Then add the drama advance back in. I tried it using a game I was sent and it immediately brought most of the unhappy mayor controlled cities to a non-rioting level. There are a few cities that are still under the magic 73 happiness, but I think this has to do with the mayor not adequetly adjusting for unhappiness caused by pollution. There's nothing I can do about that from text file changes.

I haven't played an entire game with this change, but you should notice the AI plays better too since all AI cities are effectively under mayoral control.

My apologies to the CTP2 community for not finding and fixing this stupid bug before we shipped.

-- Richard


Solver,

You're not kidding. That's why I posted somewhere that Azmel2 must have the patience of a saint.

kaan is offline kaan
Prince
Aarhus
Mar 2001
time: 05:32
  Old Post 01-01-2004 06:03
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Thanks peter, that was very usefull to read again

Solver is offline Solver
Apolyton Duke Of Something
Latvia, Riga
Sep 2000
time: 07:32
  Old Post 01-01-2004 08:35 Visit Solver<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Get a bigger avatar today!

quote:
Solver,

You're not kidding. That's why I posted somewhere that Azmel2 must have the patience of a saint.



Indeed. Play a turn in the morning and leave for work, maybe .

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:32.
Apolyton Time is 00:32.
    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.0387 seconds (88.35% PHP - 11.65% 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