Announcement

Collapse
No announcement yet.

PROJECT: Revision Reports 2

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Revision 1026 Add AI build lists so that the AI can build buildings especially for small cities and cities near their maximum size.

    Some cleanings:
    modified trunk/ctp2_code/gs/newdb/Const.cdb
    modified trunk/ctp2_data/english/gamedata/civ_str.txt

    The Spanish version can now be loaded again:
    modified trunk/ctp2_data/spanish/gamedata/civ_str.txt

    The AI builds now buildings from a build list for small buildings if the city is less than the size of the second ring, and if it has some garrison of two units. And the AI builds now buildings to increase the maximum city size from a build list, when the city is two pops below the maximum city size:
    modified trunk/ctp2_code/ai/CityManagement/governor.cpp
    modified trunk/ctp2_code/gs/gameobj/CityData.cpp
    modified trunk/ctp2_code/gs/gameobj/citydata.h
    modified trunk/ctp2_code/gs/newdb/strategy.cdb
    modified trunk/ctp2_code/ui/interface/CityControlPanel.cpp
    modified trunk/ctp2_data/default/aidata/BuildingBuildLists.txt
    modified trunk/ctp2_data/default/aidata/buildlistsequences.txt
    modified trunk/ctp2_data/default/aidata/strategies.txt
    modified trunk/ctp2_data/english/gamedata/gl_str.txt
    modified trunk/ctp2_data/french/gamedata/gl_str.txt
    modified trunk/ctp2_data/german/gamedata/gl_str.txt
    modified trunk/ctp2_data/italian/gamedata/gl_str.txt
    modified trunk/ctp2_data/spanish/gamedata/gl_str.txt
    Civ2 military advisor: "No complaints, Sir!"

    Comment


    • Revision 1027: Fixed success reduction of slave raids for buildings that reduce the success rate by a percentage

      Some cleanings:
      modified trunk/ctp2_code/net/general/net_gamesettings.cpp
      modified trunk/ctp2_code/net/general/net_gamesettings.h
      modified trunk/ctp2_code/net/general/network.cpp
      modified trunk/ctp2_code/net/general/network.h

      The number of turns to completion is now also updated if it is not the turn of the visible player:
      modified trunk/ctp2_code/ui/interface/CityControlPanel.cpp

      A pillage event does not center the map anymore, if auto center is off:
      modified trunk/ctp2_code/gfx/spritesys/directorevent.cpp

      The game does not crash if you try to load a queue when the city build queue is empty.
      modified trunk/ctp2_code/gs/gameobj/CityData.cpp
      modified trunk/ctp2_code/gs/utility/Globals.h

      Added a goal priority bonus for cities with protection from slavery:
      modified trunk/ctp2_code/ai/strategy/goals/Goal.cpp
      modified trunk/ctp2_data/default/aidata/Goals.txt
      modified trunk/ctp2_code/gs/newdb/goal.cdb

      City buildings that protect from slavery will only reduce the success of an attacking slaver by the percent they give instead of giving a complete protection:
      modified trunk/ctp2_code/gs/gameobj/ArmyData.cpp
      modified trunk/ctp2_code/gs/gameobj/Unit.cpp
      modified trunk/ctp2_code/gs/gameobj/Unit.h
      modified trunk/ctp2_code/gs/gameobj/UnitData.cpp
      modified trunk/ctp2_code/gs/gameobj/UnitData.h
      Civ2 military advisor: "No complaints, Sir!"

      Comment


      • Revision 1028: Sped up debugging, made the settle eventually less favorable terrain, added expel to the AI opportunity actions, and increased the AI slave goals.

        Some cleanings:
        modified trunk/ctp2_code/ai/strategy/goals/Goal.cpp

        Sped up AI testing if unit animations are off. Now no unit moves are shown if the visible player is an AI and unit animations are off.
        modified trunk/ctp2_code/gfx/spritesys/director.cpp

        Added expel to the AI opportunity actions. If unit that can be expelled is nearby an AI unit that can expel then the AI will do, if there is no alliance.
        modified trunk/ctp2_code/ai/ctpai.cpp
        modified trunk/ctp2_code/ai/ctpai.h
        modified trunk/ctp2_code/gs/gameobj/Player.cpp
        modified trunk/ctp2_code/gs/gameobj/player.h

        Increase the priority for slave attacks:
        modified trunk/ctp2_data/default/aidata/Goals.txt
        modified trunk/ctp2_data/default/aidata/strategies.txt

        Increased the terrain score for dessert and swamp so that the AI will eventually fill also those areas with cities. So no space left for humans.
        modified trunk/ctp2_data/default/gamedata/terrain.txt
        Civ2 military advisor: "No complaints, Sir!"

        Comment


        • Revision 1029: Stopped the AI building settlers if there is no room for settling left, the AI will now use surplus settlers to increase the size of small cities, and added the AI sea settler build list to strategies.txt.

          Some cleanings:
          modified trunk/ctp2_code/gs/utility/MoveFlags.h
          modified trunk/ctp2_code/ai/strategy/agents/agent.cpp
          modified trunk/ctp2_code/gs/world/wldgen.cpp
          modified trunk/ctp2_code/gs/world/World.h
          modified trunk/ctp2_code/gs/world/WrlEnv.cpp

          Fixed a potential crash:
          modified trunk/ctp2_code/gfx/spritesys/director.cpp

          Fixed tunnel move costs for ships over tunnels if the move costs of the terrain differ from deep sea:
          modified trunk/ctp2_code/robot/pathing/unitastar.cpp

          Fixed AI goal raw priority calculation, if the AI goal elements are not in order of the goal database.
          modified trunk/ctp2_code/ai/strategy/goals/Goal.cpp
          modified trunk/ctp2_code/ai/strategy/goals/Goal.h

          Added a settle in city goal for the AI so it gets rid of surplus settlers:
          modified trunk/ctp2_code/ai/strategy/scheduler/scheduler.cpp
          modified trunk/ctp2_code/ai/strategy/goals/Goal.cpp
          modified trunk/ctp2_code/ai/strategy/goals/Goal.h
          modified trunk/ctp2_code/gs/gameobj/CityData.cpp
          modified trunk/ctp2_code/gs/gameobj/citydata.h
          modified trunk/ctp2_code/gs/gameobj/Player.cpp
          modified trunk/ctp2_code/gs/gameobj/player.h
          modified trunk/ctp2_code/gs/gameobj/UnitData.cpp
          modified trunk/ctp2_code/gs/gameobj/UnitData.h
          modified trunk/ctp2_code/gs/newdb/goal.cdb
          modified trunk/ctp2_code/gs/newdb/strategy.cdb
          modified trunk/ctp2_data/default/aidata/Goals.txt
          modified trunk/ctp2_data/default/aidata/strategies.txt

          Added a sea settler unit build list. And stopped the AI building settlers if it does not have any settle goals left:
          modified trunk/ctp2_code/ai/CityManagement/governor.cpp
          modified trunk/ctp2_code/ai/CityManagement/governor.h
          modified trunk/ctp2_code/gs/newdb/strategy.cdb
          modified trunk/ctp2_data/default/aidata/strategies.txt
          Civ2 military advisor: "No complaints, Sir!"

          Comment


          • Revision 1030: The AI does not use the build list for small cities if it has build some specified buildings in the target city

            Some cleanings:
            modified trunk/ctp2_code/ai/strategy/agents/agent.cpp
            modified trunk/ctp2_code/gs/newdb/CTPDatabase.h

            Prevented the game from hanging, when it is trying to optimize sliders for a civilization that will starve afterwards the happiness requirements has been met, and the AI does not build ships in cities that are just at a puddle than at an ocean:
            modified trunk/ctp2_code/ai/CityManagement/governor.cpp

            The AI will use armies containing settlers to conquer cities if those cities are empty:
            modified trunk/ctp2_code/ai/strategy/goals/Goal.cpp

            The AI won't use the build lists for small cities when a certain amount of buildings has been build in the target city:
            modified trunk/ctp2_code/ai/CityManagement/governor.cpp
            modified trunk/ctp2_code/ai/CityManagement/governor.h
            modified trunk/ctp2_code/ai/ctpai.cpp
            modified trunk/ctp2_code/gs/newdb/strategy.cdb
            modified trunk/ctp2_data/default/aidata/BuildingBuildLists.txt
            modified trunk/ctp2_data/default/aidata/strategies.txt
            Civ2 military advisor: "No complaints, Sir!"

            Comment


            • Revision 1031: The AI now builds pollution reducing buildings in dirty cities

              The AI does not build sea engineers at puddles:
              modified trunk/ctp2_code/ai/CityManagement/governor.cpp

              Added a build list for pollution reduction buildings, so that the AI builds such buildings in highly polluted cities:
              modified trunk/ctp2_code/gs/newdb/strategy.cdb
              modified trunk/ctp2_data/default/aidata/BuildingBuildLists.txt
              modified trunk/ctp2_data/default/aidata/buildlistsequences.txt
              modified trunk/ctp2_data/default/aidata/strategies.txt
              modified trunk/ctp2_data/english/gamedata/gl_str.txt
              modified trunk/ctp2_data/french/gamedata/gl_str.txt
              modified trunk/ctp2_data/german/gamedata/gl_str.txt
              modified trunk/ctp2_data/italian/gamedata/gl_str.txt
              modified trunk/ctp2_data/spanish/gamedata/gl_str.txt
              Civ2 military advisor: "No complaints, Sir!"

              Comment


              • Revision 1032: Makes the AI building settlers again in the late game when new regions can be settled again, some fixes concerning AI refuel, and prevent the ranking line graph from crashing if the number of civilizations dead or alive is bigger 32.

                The builds now settlers again if it was in no settler mode before, and a flood makes no land available for resettling
                modified trunk/ctp2_code/ai/CityManagement/governor.cpp
                modified trunk/ctp2_code/ai/CityManagement/governor.h
                modified trunk/ctp2_code/ai/mapanalysis/settlemap.cpp
                modified trunk/ctp2_code/ai/mapanalysis/settlemap.h

                The AI will also use aircraft carriers if the army to be carried is smaller than the aircraft carrier capacity:
                modified trunk/ctp2_code/ai/ctpai.cpp

                The AI does not consider cities that are full for refuel:
                modified trunk/ctp2_code/gs/gameobj/Player.cpp
                modified trunk/ctp2_code/gs/gameobj/player.h

                Some fixes:
                modified trunk/ctp2_code/ai/strategy/goals/Goal.cpp

                The game does not crash when the player opens the ranking tab and the number of civilizations dead or alive is bigger than 32:
                modified trunk/ctp2_code/ui/aui_ctp2/linegraph.cpp

                Added number of wonders to the ranking line graph:
                modified trunk/ctp2_code/ui/aui_ctp2/linegraph.cpp
                modified trunk/ctp2_code/ui/interface/rankingtab.cpp
                modified trunk/ctp2_code/ui/interface/rankingtab.h
                modified trunk/ctp2_data/default/gamedata/Units.txt
                modified trunk/ctp2_data/english/gamedata/ldl_str.txt
                modified trunk/ctp2_data/french/gamedata/ldl_str.txt
                modified trunk/ctp2_data/german/gamedata/ldl_str.txt
                modified trunk/ctp2_data/italian/gamedata/ldl_str.txt
                modified trunk/ctp2_data/japanese/gamedata/ldl_str.txt
                modified trunk/ctp2_data/spanish/gamedata/ldl_str.txt
                Civ2 military advisor: "No complaints, Sir!"

                Comment


                • Revision 1033: The AI now builds slavers or abolitionists, spies, another kind of special unit at the same time

                  Separated spy and slaver unit build lists from the special build lists:
                  ctp2_code/ai/CityManagement/governor.cpp
                  ctp2_code/ai/CityManagement/governor.h
                  ctp2_code/gs/newdb/strategy.cdb
                  ctp2_data/default/aidata/strategies.txt
                  ctp2_data/default/aidata/unitbuildlists.txt

                  Increased the elite chance of cyber ninjas, in investigate city attacks:
                  ctp2_data/default/gamedata/Units.txt
                  Civ2 military advisor: "No complaints, Sir!"

                  Comment


                  • Revision 1034: Improved AI happiness and wonder handling, and make spies to steal advances from cities that have advances:

                    Spies now steal advances from cities of civilizations that have advances to be stolen:
                    modified trunk/ctp2_code/ai/strategy/goals/Goal.cpp

                    The AI builds in unhappy cities buildings to improve happiness, and it build wonders in cities with high production:
                    modified trunk/ctp2_code/ai/CityManagement/governor.cpp
                    modified trunk/ctp2_code/gs/world/Cell.cpp
                    modified trunk/ctp2_code/gs/world/Cell.h
                    modified trunk/ctp2_data/default/aidata/buildlistsequences.txt
                    modified trunk/ctp2_data/default/aidata/strategies.txt
                    Civ2 military advisor: "No complaints, Sir!"

                    Comment


                    • Revision 1035

                      Changed AddMember to AddAccessor, to prevent crashes when reading old save games or starting scenarios.

                      modified trunk/ctp2_code/gs/slic/SlicBuiltin.cpp

                      Members are saved/restored in SlicStructInstance::Serialize, so adding a new one will break the save game format.

                      Comment


                      • (deleted: double post)
                        Last edited by Fromafar; October 23, 2009, 15:36. Reason: Double post

                        Comment


                        • Revision 1036: Fixed AI city rank calculation, tweaked the BuildListSequence selection, and restored the Penicillin wonder.

                          Fixed AI city rank calculation, so that the AI does not assign almost all its cities the wonder build list:
                          ctp2_code/ai/CityManagement/governor.cpp
                          ctp2_code/ai/CityManagement/governor.h
                          ctp2_code/ai/ctpai.cpp
                          ctp2_code/ai/mapanalysis/mapanalysis.cpp
                          ctp2_code/ai/mapanalysis/mapanalysis.h
                          ctp2_code/ui/interface/EditQueue.cpp
                          ctp2_code/gs/gameobj/citydata.h

                          Modified the priorities of of some of the build list, and the conditions thy are used. Added for each personality an island strategy. Those island strategies still need custom advance research lists:
                          ctp2_code/gs/newdb/strategy.cdb
                          ctp2_data/default/aidata/buildlistsequences.txt
                          ctp2_data/default/aidata/personalities.txt
                          ctp2_data/default/aidata/strategies.txt

                          Fixed the Penicillin wonder, next time check what the original Great Library said:
                          modified trunk/ctp2_code/gs/gameobj/CityData.cpp
                          modified trunk/ctp2_data/english/gamedata/Great_Library.txt
                          modified trunk/ctp2_data/french/gamedata/Great_Library.txt
                          modified trunk/ctp2_data/german/gamedata/Great_Library.txt
                          modified trunk/ctp2_data/italian/gamedata/Great_Library.txt
                          modified trunk/ctp2_data/spanish/gamedata/Great_Library.txt
                          Civ2 military advisor: "No complaints, Sir!"

                          Comment


                          • Revision 1037

                            Some cleanings, removed VS2008 debúg compiler warnings:
                            modified trunk/ctp2_code/gs/gameobj/bldque.cpp
                            modified trunk/ctp2_code/gs/gameobj/CityData.cpp
                            modified trunk/ctp2_code/gs/gameobj/Unit.cpp
                            modified trunk/ctp2_code/gs/utility/TurnCnt.cpp
                            modified trunk/ctp2_code/mapgen/Crater.cpp
                            modified trunk/ctp2_code/ui/aui_ctp2/pattern.cpp
                            modified trunk/ctp2_code/ui/aui_ctp2/radarmap.cpp
                            modified trunk/ctp2_code/ui/interface/spnewgamediffscreen.cpp
                            Civ2 military advisor: "No complaints, Sir!"

                            Comment


                            • Revision 1038: Added triple graphics buffering

                              Some cleanings:
                              modified trunk/ctp2_code/ai/strategy/scheduler/scheduler.cpp
                              modified trunk/ctp2_code/gfx/gfx_utils/ColorSet.cpp
                              modified trunk/ctp2_code/gs/gameobj/Diffcly.cpp
                              modified trunk/ctp2_code/robot/pathing/CityAstar.cpp
                              modified trunk/ctp2_code/ui/aui_ctp2/c3blitter.cpp
                              modified trunk/ctp2_code/ui/aui_directx/aui_directblitter.cpp
                              modified trunk/ctp2_code/ui/aui_utils/primitives.cpp
                              modified trunk/ctp2_code/ui/aui_utils/primitives.h

                              Enhanced debug memory reporting:
                              modified trunk/ctp2_code/ctp/debugtools/debugmemory.cpp

                              Added triple buffering, the objects are not drawn on the primate surface anymore, the screen you seen but on a back buffer, this makes the screen more smooth and removes a screen flickering artifact, which caused the screen to blink black for a second:
                              modified trunk/ctp2_code/ctp/civ3_main.cpp
                              modified trunk/ctp2_code/ctp/civapp.cpp
                              modified trunk/ctp2_code/ui/aui_common/aui_bitmapfont.cpp
                              modified trunk/ctp2_code/ui/aui_common/aui_dropdown.cpp
                              modified trunk/ctp2_code/ui/aui_common/aui_image.cpp
                              modified trunk/ctp2_code/ui/aui_common/aui_mouse.cpp
                              modified trunk/ctp2_code/ui/aui_common/aui_movie.cpp
                              modified trunk/ctp2_code/ui/aui_common/aui_moviebutton.cpp
                              modified trunk/ctp2_code/ui/aui_common/aui_surface.cpp
                              modified trunk/ctp2_code/ui/aui_common/aui_surface.h
                              modified trunk/ctp2_code/ui/aui_common/aui_ui.cpp
                              modified trunk/ctp2_code/ui/aui_common/aui_ui.h
                              modified trunk/ctp2_code/ui/aui_directx/aui_directmouse.cpp
                              modified trunk/ctp2_code/ui/aui_directx/aui_directmovie.cpp
                              modified trunk/ctp2_code/ui/aui_directx/aui_directsurface.cpp
                              modified trunk/ctp2_code/ui/aui_directx/aui_directsurface.h
                              modified trunk/ctp2_code/ui/aui_directx/aui_directui.cpp
                              modified trunk/ctp2_code/ui/aui_directx/aui_directui.h
                              modified trunk/ctp2_code/ui/interface/splash.cpp
                              Civ2 military advisor: "No complaints, Sir!"

                              Comment


                              • Revision 1039

                                Fixed a debug report message:
                                modified trunk/ctp2_code/gs/gameobj/bldque.cpp
                                Civ2 military advisor: "No complaints, Sir!"

                                Comment

                                Working...
                                X