Announcement

Collapse
No announcement yet.

PROJECT: Revision Reports 2

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

  • #16
    Revision 924

    Removed the goal pointer from the plan class, some less data to copy and to keep in sync:
    modified trunk/ctp2_code/ai/strategy/agents/agent.cpp
    modified trunk/ctp2_code/ai/strategy/agents/agent.h
    modified trunk/ctp2_code/ai/strategy/goals/Goal.cpp
    modified trunk/ctp2_code/ai/strategy/goals/Goal.h
    modified trunk/ctp2_code/ai/strategy/scheduler/Plan.cpp
    modified trunk/ctp2_code/ai/strategy/scheduler/Plan.h
    modified trunk/ctp2_code/ai/strategy/scheduler/scheduler.cpp
    modified trunk/ctp2_code/ai/strategy/scheduler/Scheduler.h

    Removed some warnings that appear on a VC8 compiler:
    modified trunk/ctp2_code/ctp/c3.h
    Civ2 military advisor: "No complaints, Sir!"

    Comment


    • #17
      Revision 925

      Removed the last remaining functionality of the squad class. This saves memory and a lot of memory allocations and deallocations, so that the AI is sped up. And it reduces the number of references that have to be kept in sync on copy.

      Furthermore, another problem in the AI garrison unit assignment was fixed.

      modified trunk/ctp2_code/ai/strategy/agents/agent.cpp
      modified trunk/ctp2_code/ai/strategy/agents/agent.h
      modified trunk/ctp2_code/ai/strategy/goals/Goal.cpp
      modified trunk/ctp2_code/ai/strategy/goals/Goal.h
      modified trunk/ctp2_code/ai/strategy/scheduler/scheduler.cpp
      modified trunk/ctp2_code/ai/strategy/scheduler/Scheduler.h
      Civ2 military advisor: "No complaints, Sir!"

      Comment


      • #18
        Revision 926

        Fixed scheduler copying, now the references in the goal and agent classes are not copied anymore, but recreated afterwards, so that the references point to the right objects:
        modified trunk/ctp2_code/ai/strategy/agents/agent.cpp
        modified trunk/ctp2_code/ai/strategy/goals/Goal.cpp
        modified trunk/ctp2_code/ai/strategy/scheduler/Plan.cpp
        modified trunk/ctp2_code/ai/strategy/scheduler/scheduler.cpp
        modified trunk/ctp2_code/ai/strategy/scheduler/Scheduler.h

        Not supposed to be in:
        modified trunk/ctp2_code/ctp/civ3_main.cpp
        modified trunk/ctp2_code/ctp/civpaths.txt

        Revision 927
        Reverted changes from last revision, those files slipped through accidentally:
        modified trunk/ctp2_code/ctp/civ3_main.cpp
        modified trunk/ctp2_code/ctp/civpaths.txt
        Civ2 military advisor: "No complaints, Sir!"

        Comment


        • #19
          Revision 928: Fixed the scheduler, and simplified AI code

          Some cleanings
          modified trunk/ctp2_code/ai/ctpai.cpp
          modified trunk/ctp2_code/ai/ctpai.h
          modified trunk/ctp2_code/ai/strategy/goals/Goal.cpp
          modified trunk/ctp2_code/gs/gameobj/Player.cpp

          When a new civ is added to the end of the schedulers, and is destroyed immediately (i.e. slave uprising) and the slot is used by another civ the game does not crash anymore.
          Simplified the AI code:
          modified trunk/ctp2_code/ai/strategy/scheduler/scheduler.cpp
          modified trunk/ctp2_code/ai/strategy/scheduler/Scheduler.h
          Civ2 military advisor: "No complaints, Sir!"

          Comment


          • #20
            Revision 929: Cleaned up the AI more

            All agents are added to the match list of a goal, except those that are dead:
            modified trunk/ctp2_code/ai/strategy/goals/Goal.cpp
            modified trunk/ctp2_code/ai/strategy/goals/Goal.h

            Removed unnecessary code:
            modified trunk/ctp2_code/ai/strategy/scheduler/scheduler.cpp
            modified trunk/ctp2_code/ai/strategy/scheduler/Scheduler.h
            Civ2 military advisor: "No complaints, Sir!"

            Comment


            • #21
              Added new combat option to rules screen.
              If option is on, front line units of a defending army will use their defence stat (rather than attack) to attack the front line units of the attacking army.
              See this post for details: http://apolyton.net/forums/showpost....93&postcount=1

              Revision 930:

              modified trunk/ctp2_code/gs/database/profileDB.cpp
              modified trunk/ctp2_code/gs/database/profileDB.h
              modified trunk/ctp2_code/gs/gameobj/CTP2Combat.cpp
              modified trunk/ctp2_code/gs/gameobj/CTP2Combat.h
              modified trunk/ctp2_code/ui/interface/spnewgamerulesscreen.cpp

              Revision 931:

              modified trunk/ctp2_data/english/gamedata/ldl_str.txt
              modified trunk/ctp2_data/english/uidata/layouts/spnewgamepopups.ldl
              modified trunk/ctp2_data/french/gamedata/ldl_str.txt
              modified trunk/ctp2_data/french/uidata/layouts/spnewgamepopups.ldl
              modified trunk/ctp2_data/german/gamedata/ldl_str.txt
              modified trunk/ctp2_data/german/uidata/layouts/spnewgamepopups.ldl
              modified trunk/ctp2_data/italian/gamedata/ldl_str.txt
              modified trunk/ctp2_data/italian/uidata/layouts/spnewgamepopups.ldl
              modified trunk/ctp2_data/japanese/gamedata/ldl_str.txt
              modified trunk/ctp2_data/japanese/uidata/layouts/spnewgamepopups.ldl
              modified trunk/ctp2_data/spanish/gamedata/ldl_str.txt
              modified trunk/ctp2_data/spanish/uidata/layouts/spnewgamepopups.ldl
              Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
              CtP2 AE Wiki & Modding Reference
              One way to compile the CtP2 Source Code.

              Comment


              • #22
                Revision 932:

                Fixed check on counter-attacking units using new combat option.

                modified trunk/ctp2_code/gs/gameobj/CTP2Combat.cpp
                modified trunk/ctp2_code/gs/gameobj/CTP2Combat.h
                Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                CtP2 AE Wiki & Modding Reference
                One way to compile the CtP2 Source Code.

                Comment


                • #23
                  Revision 933:

                  Removed new combat option from advanced options menu, to prevent cheating.

                  modified trunk/ctp2_code/gs/database/profileDB.cpp
                  Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                  CtP2 AE Wiki & Modding Reference
                  One way to compile the CtP2 Source Code.

                  Comment


                  • #24
                    Revision 934:

                    Units with defence > 0 but 0 attack no longer die immediately, and will at least defend themselves. If newcombat rule is enabled they will also counter-attack. Only an army containing units all with 0 attack and 0 defence will die immediately.

                    Note todo: units that die immediately do not show the death animation, this needs to be fixed because it worked in Activision 1.1 patch. Don't know when it was broken, at least a year old I would guess.

                    modified trunk/ctp2_code/gs/gameobj/ArmyData.cpp
                    Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                    CtP2 AE Wiki & Modding Reference
                    One way to compile the CtP2 Source Code.

                    Comment


                    • #25
                      Revision 935:

                      Added CreateBuilding and CreateWonder slic functions.

                      The difference with the same events is that the functions don't effect stored production in a city. And in the case of the CreateWonder event, doesn't trigger the wonder movie.

                      And actually I think the CreateWonder event is buggy when generated from slic, because the game freezes. Possibly related to the movie.

                      modified trunk/ctp2_code/gs/slic/SlicEngine.cpp
                      modified trunk/ctp2_code/gs/slic/SlicFunc.h
                      modified trunk/ctp2_code/gs/slic/slicfunc.cpp
                      Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                      CtP2 AE Wiki & Modding Reference
                      One way to compile the CtP2 Source Code.

                      Comment


                      • #26
                        OK hopefully I didn't break too much.

                        Revision 936:

                        - Expanded "New Combat" option. Details in this thread: http://apolyton.net/forums/showthread.php?t=104846
                        modified trunk/ctp2_code/gs/gameobj/CTP2Combat.cpp
                        modified trunk/ctp2_code/gs/gameobj/CTP2Combat.h

                        - Fixed some unit bonus calculations for all combat:
                        modified trunk/ctp2_code/gs/gameobj/UnitData.cpp
                        modified trunk/ctp2_code/gs/gameobj/UnitData.h

                        - Added "City Land Attack", "City Air Attack" and "City Sea Attack" to show the building bonuses in battleview window:
                        modified trunk/ctp2_code/gs/gameobj/CityData.cpp
                        modified trunk/ctp2_code/gs/gameobj/citydata.h
                        modified trunk/ctp2_code/gs/gameobj/unitutil.cpp
                        modified trunk/ctp2_code/gs/gameobj/unitutil.h
                        modified trunk/ctp2_code/ui/interface/battle.cpp
                        modified trunk/ctp2_code/ui/interface/battle.h
                        modified trunk/ctp2_code/ui/interface/battleview.cpp
                        modified trunk/ctp2_code/ui/interface/battleview.h
                        modified trunk/ctp2_code/ui/interface/battleviewwindow.cpp
                        modified trunk/ctp2_code/ui/interface/battleviewwindow.h

                        Revision 937:

                        - Rest of the battleview attack building modifications:
                        modified trunk/ctp2_data/english/gamedata/ldl_str.txt
                        modified trunk/ctp2_data/english/uidata/layouts/battleview.ldl
                        modified trunk/ctp2_data/french/gamedata/ldl_str.txt
                        modified trunk/ctp2_data/french/uidata/layouts/battleview.ldl
                        modified trunk/ctp2_data/german/gamedata/ldl_str.txt
                        modified trunk/ctp2_data/german/uidata/layouts/battleview.ldl
                        modified trunk/ctp2_data/italian/gamedata/ldl_str.txt
                        modified trunk/ctp2_data/italian/uidata/layouts/battleview.ldl
                        modified trunk/ctp2_data/japanese/gamedata/ldl_str.txt
                        modified trunk/ctp2_data/japanese/uidata/layouts/battleview.ldl
                        modified trunk/ctp2_data/spanish/gamedata/ldl_str.txt
                        modified trunk/ctp2_data/spanish/uidata/layouts/battleview.ldl
                        Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                        CtP2 AE Wiki & Modding Reference
                        One way to compile the CtP2 Source Code.

                        Comment


                        • #27
                          Revision 938:

                          Added new slic function UnitMovementLeft(unit), returns movement same as terrain.txt. 100 = 1 move, 33 = a single road move etc.

                          modified trunk/ctp2_code/gs/slic/SlicEngine.cpp
                          modified trunk/ctp2_code/gs/slic/SlicFunc.h
                          modified trunk/ctp2_code/gs/slic/slicfunc.cpp
                          Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                          CtP2 AE Wiki & Modding Reference
                          One way to compile the CtP2 Source Code.

                          Comment


                          • #28
                            Revision 939:

                            Modified CheckActiveDefenders to only fire when there's a valid target and still alive. This removes the exploit of making a full army of active-defender's waste their active defence on one unit.
                            Also removed counter-bombarding and counter-active-defense fire after an active defender has fired, to remove the big disadvantage of being the defender, and it was very cheesy to look at.

                            modified trunk/ctp2_code/gs/gameobj/ArmyData.cpp

                            Fixed comments made on previous changes.

                            modified trunk/ctp2_code/gs/gameobj/CTP2Combat.cpp
                            Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                            CtP2 AE Wiki & Modding Reference
                            One way to compile the CtP2 Source Code.

                            Comment


                            • #29
                              Revision 940:

                              Fixed attack=0 units being allowed to initiate an attack if they had "CanAttack" flag (Cyber Ninja for some reason).

                              modified trunk/ctp2_code/gs/gameobj/ArmyData.cpp
                              Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                              CtP2 AE Wiki & Modding Reference
                              One way to compile the CtP2 Source Code.

                              Comment


                              • #30
                                Revision 941:

                                Modified Bombard so ranged units and defenders use same bonuses as they do in combat.

                                modified trunk/ctp2_code/gs/gameobj/UnitData.cpp
                                Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                                CtP2 AE Wiki & Modding Reference
                                One way to compile the CtP2 Source Code.

                                Comment

                                Working...
                                X