1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

[BTS] Better BTS AI Download

Discussion in 'Civ4 - Better AI' started by jdog5000, Nov 3, 2008.

  1. jdog5000

    jdog5000 Revolutionary

    Joined:
    Nov 25, 2003
    Messages:
    2,601
    Location:
    California
    Most definitely UP 1.10 will be included ... there's some real significant bug fixes in there!

    As for Firaxis releasing another patch, I have no idea. 3.19 was a total surprise, but it also made sense for them because they were putting together a final Civ4 package and removing the CD requirement as a nice gift to the community. Since they were putting out another product, spending the cash on generating and testing a patch was a possibility.

    I'm sure the Civ4 programmers (several of whom are former CivFanatics members actually) really would like to polish up the last few bugs and fixes they didn't quite get right in 3.19, but I'm not sure it'll make sense from a business perspective. If they do, I imagine they'll borrow heavily from the UP code. 3.19 had many new tweaks and changes, but a lot of the bug fixes were just slightly reworked code from the prior UP.

    If Firaxis does put out another patch, it will be a real testament to their commitment to the Civ community though.
     
  2. Afforess

    Afforess The White Wizard

    Joined:
    Jul 31, 2007
    Messages:
    12,239
    Location:
    Austin, Texas
    I'd almost rather they didn't. It would just kill all of our mods...:(
     
  3. jdog5000

    jdog5000 Revolutionary

    Joined:
    Nov 25, 2003
    Messages:
    2,601
    Location:
    California
    Version 0.80 has been posted!

    Between UP 1.10 and the new BBAI changes, this is a significant update over 0.78. Several significant bugs were squashed in the UP, the AI now uses Nationhood as a defensive civic so that it can draft, and the AI no longer constantly plows under cottages in the second half of the game.

    There are a lot of other important notes about this version, check out the version thread.

    New in Better BTS AI v0.80
    Spoiler :

    Added in Unofficial Patch v 1.10

    Bugfix
    - Fixed bug (introduced) in CvPlayerAI::AI_diploVote where getMasterPower() was used incorrectly
    - Fixed bug in CvPlayerAI::AI_civicValue where part of logic for valuing trade routes was actually applied to all civics
    - Fixed bug (introduced) in CvTeamAI::AI_getWarSuccessCapitulationRatio where wrong form of getTeam was used (bug had minimal effect)

    Victory strategy AI
    - Added new hash variable infrastructure to store AI strategies for going for victory in save games
    - Added framework for computing when AI should go for various victory strategies based on combination of game state and personality/traits
    - Added victory strategy flags

    War strategy AI
    - When considering whether to accept capitulation, AI is now okay with its vassals capturing cities from enemy, but will still accept capitulation to block other civs from capturing many enemy cities
    - AI now will accept capitulation if its doing badly in other wars, to lose an enemy and gain an ally
    - AI no longer auto accepts capitulation if it has other wars, if it's doing very well then it may keep fighting
    - AI is now more willing to finish off very small civs rather than accept their capitulation, war mongers in particular
    - When AI is close to cultural or space victory, it now defends the cities crucial to victory much more
    - Added CvTeamAI::AI_getEnemyPowerPercent() to compute relative power of enemies

    City AI
    - Blocked circumstance where small AI city with nothing else to do could start building spaceship parts, even if it would take forever
    - AI cities now more likely to build gold instead of research, since generally get more research from pushing up research slider
    - Introduced a couple new functions to compute quantities used in determining which plots to work which are of broader interest, like city target size, weights on different yield types, etc
    - Cultural victory cities now will not distract themselves with filling needs for aircraft when not on defensive
    - AI at peace will now have cities which give air experience fill more needed aircraft slots
    - Changes to AI's determination of the desired size of its cities when choosing tile improvements. No longer effected by espionage missions, much less effected by bad health from industrialization. (helps stop cottage/workshop changes)
    - Adjusted AI drafting strategy to match new valuation of Nationhood as a civic. AI will now draft more aggressively if it's in big trouble overall, or if it has citizens working worthless tiles.
    - Fixed major cause of cycling between cottages and workshops in CvCityAI::AI_bestPlotBuild. AI now consistently values cottages as average between cottage and town, removing asymmetry that led to cycling.

    Gold AI
    - When making gold hurry decisions, AI now considers how much money it needs to save for unit upgrades

    Civic AI
    - Adjusted meaning of AI_bestCivic, it now gives the civic with the highest value of the CivicOptionType instead of first weighting the current civic higher. Works logically in the couple places where this function is used by the AI.
    - Using new meaning of AI_bestCivic, the AI now can easily consider more reasons for holding back on civics changes.
    - Adjusted AI valuing of legal civics to make AI run nationhood when in or preparing for a tough war (previously rarely happened). Made Free Speech a little less appealing so that civs who do not yet have the towns to benefit from it won't all jump to it.

    Barbarian AI
    - Barb player no longer wastes CPU time considering changing sliders, civics, or religion
    - Barb cities will now replace defenders to the initial handicap number, instead of being content with fewer

    General AI
    - Added CvTeam::getCurrentMasterPower to get current military power of master of a vassal
    - Modified CvTeam::getAtWarCount to optionally ignore war with vassals
    - Added Maniac's code for supporting canMoveAllTerrain transports in mods

    Tech Diffusion
    - Revamped existing Civ4 system for increasing tech rate based on how many civs you know who already have what you're researching. New system increases tech diffusion rates based on open borders and vassal agreements, as well as fixing a dependence on the total number of civs on the map.
    - Added a tech welfare system to boost research rates of technologically backwards civs to help keep them relevant to the game. Designed to keep tech stragglers from being quite as far behind, without making living off tech welfare a viable strategy.
    - Tech diffusion is equal for AI and human players in the same circumstance, but has been setup such that if one player (usually the human player) starts to pull far ahead in tech then all others will start to get a boost so that the game remains interesting. The other civs will still be behind, but hopefully not too far.

    Customization
    - Added several setting to control the new tech diffusion logic to GlobalDefinesAlt.xml
    - Exposed additional research rate controls to GlobalDefinesAlt.xml. Since AI tech rates have improved, some tech timing balancing has been done through these settings and customization of research rates is now very easy.

    Debug
    - Changed and improved debug display for players, long lists of units, and cities
    - In debug mode, plots where AI is planning on changing from one improvement type to another are now highlighted to help track down issues with oscillation in improvements
    - In debug mode, debug plot circles now updated at end of each player's turn, so they can be watched while in automation
    - Many additions in CvCityAI to aid debug display
     
  4. Cybah

    Cybah Emperor

    Joined:
    Jun 22, 2007
    Messages:
    1,480
    seems to be a milestone. great. :)
     
  5. Roland Johansen

    Roland Johansen Deity

    Joined:
    Apr 29, 2003
    Messages:
    4,292
    Location:
    the Netherlands
    Wow...

    There are about ten upgrades in this version which each individually would have justified a new version. Brrr, this AI is getting smart...

    :goodjob:
     
  6. sourdiesel

    sourdiesel Warlord

    Joined:
    Jun 30, 2009
    Messages:
    158
    Thank you jdog for continuing to update this :goodjob: Of all the things that make modded Civ4 great I don't think there is a more integral component than BetterAI. It's the soul of all the modpacks I play.
     
  7. Afforess

    Afforess The White Wizard

    Joined:
    Jul 31, 2007
    Messages:
    12,239
    Location:
    Austin, Texas
    Where are the sources? The link on the OP to Sourceforge only has .78 sources, unless I'm mistaken.

    EDIT: nvm, I found them.
     
  8. sourdiesel

    sourdiesel Warlord

    Joined:
    Jun 30, 2009
    Messages:
    158
    The source is included in the main download.
     
  9. Cybah

    Cybah Emperor

    Joined:
    Jun 22, 2007
    Messages:
    1,480
    nevermind. ;)
     
  10. Ninja2

    Ninja2 Great Engineer

    Joined:
    Nov 17, 2005
    Messages:
    1,142
    Location:
    Denmarkia
    Awesome update, jdog! I can't wait to start upgrading my mod! If only there were 36 hours to the day...
     
  11. jdog5000

    jdog5000 Revolutionary

    Joined:
    Nov 25, 2003
    Messages:
    2,601
    Location:
    California
    Yeah, an extra 12 hours would be so nice ...
     
  12. Zeppelin4

    Zeppelin4 Warlord

    Joined:
    Mar 30, 2007
    Messages:
    230
    Ignore post
     
  13. jdog5000

    jdog5000 Revolutionary

    Joined:
    Nov 25, 2003
    Messages:
    2,601
    Location:
    California
    Version 0.81 has been posted!

    Focus of this version was on efficiency improvements, it's way faster than the previous version (and quite a bit faster than the development version posted a few weeks ago). It's not faster than vanilla BtS under average circumstances, but is now in the same range and may prove faster on large maps with many civs.

    There are quite a few other fixes and tweaks, including UP 1.2 and several issues with transports and settlers. For more, see the version thread.

    Enjoy!
     
  14. jdog5000

    jdog5000 Revolutionary

    Joined:
    Nov 25, 2003
    Messages:
    2,601
    Location:
    California
    Version 0.81 has been reposted after a bug which slipped in to this version was fixed ...
     
  15. Cybah

    Cybah Emperor

    Joined:
    Jun 22, 2007
    Messages:
    1,480
    hm, SVN update did not change anything? was the bug in the svn version as well?
     
  16. jdog5000

    jdog5000 Revolutionary

    Joined:
    Nov 25, 2003
    Messages:
    2,601
    Location:
    California
    Sorry, changes now checked in to svn as well.
     
  17. JacobP

    JacobP Chieftain

    Joined:
    Jun 13, 2009
    Messages:
    17
    It looks like the version on here and on Sourceforge are very different. On CFC, it's 3.44 MB and on Sourceforge it's 2.5 MB. Is there a difference?
     
  18. jdog5000

    jdog5000 Revolutionary

    Joined:
    Nov 25, 2003
    Messages:
    2,601
    Location:
    California
    The version here accidentally had the source code zip twice ... no gameplay difference at all. Has been fixed.

    Edit: Thanks for pointing it out too ... I need more sleep apparently.
     
  19. JacobP

    JacobP Chieftain

    Joined:
    Jun 13, 2009
    Messages:
    17
    Happy to help. Thanks for all the hard work!
     
  20. jdog5000

    jdog5000 Revolutionary

    Joined:
    Nov 25, 2003
    Messages:
    2,601
    Location:
    California
    Version 0.82 release, check out the discussion thread for more info!
     

Share This Page