Announcement

Collapse
No announcement yet.

PROJECT: Altered source files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Revision 334
    Extended support for multiple "ctp2_data" directories, and made it accessible through userprofile.txt.

    modified ctp2_code/ctp/civ3_main.cpp
    modified ctp2_code/ctp/civapp.cpp
    modified ctp2_code/gfx/spritesys/SpriteGroupList.cpp
    modified ctp2_code/gs/database/profileDB.cpp
    modified ctp2_code/gs/database/profileDB.h
    modified ctp2_code/gs/fileio/CivPaths.cpp
    modified ctp2_code/gs/fileio/CivPaths.h

    Comment


    • Revision 335 Miscellaneous

      deleted ctp2_code/ctp/ctp2_rsrc/civ3.aps - generated by compiler
      deleted ctp2_code/ctp/userprofile.txt - generated by executable
      modified ctp2_code/gs/gameobj/CityData.cpp - removed ACTIVISION_ORIGINAL block
      modified ctp2_code/ctp/c3.h - removed ACTIVISION_ORIGINAL reference from comment block
      modified ctp2_code/gs/slic/sliccmd.cpp - repaired memory leak
      modified ctp2_code/ui/interface/CauseAndEffectTab.cpp - AOM compatibility restored
      modified ctp2_code/ui/interface/citywindow.cpp - AOM compatibility restored

      Comment


      • Revision 336

        Cleaned governor.cpp a little bit: Corrected types and replaced some c-style casts by c++ standart carst, added more descriptions and added some experimental code for better slider oprimization. Currently this is outcommented as it seems rather harm the AI than help.
        modified trunk/ctp2_code/ai/CityManagement/governor.cpp
        modified trunk/ctp2_code/ai/CityManagement/governor.h

        Removed some .NET warnings
        modified trunk/ctp2_code/ai/mapanalysis/mapanalysis.h

        -Martin
        Civ2 military advisor: "No complaints, Sir!"

        Comment


        • Revision 337 Some updates:

          File created by CTP2 exe or compiler
          deleted ctp2_code/ctp/dipcombo.txt

          Removed some ACTIVSION_ORIGINAL reverences
          modified ctp2_data/default/gamedata/buildings.txt

          Merged in the GoodMod Great Libraries, for other languages the update is missing.
          modified ctp2_data/german/gamedata/Great_Library.txt
          modified ctp2_data/english/gamedata/Great_Library.txt

          Added player1's battleview fix.
          modified ctp2_data/italian/uidata/layouts/battleview.ldl

          Added a fifth power image, since you can find it the image ressources, but source implementations needs to be followed.
          modified ctp2_data/italian/uidata/layouts/intelligence.ldl

          Added a lot of ldl files so that we can track future changes at least in the German version.
          added ctp2_data/english/uidata/layouts/battleview.ldl
          added ctp2_data/english/uidata/layouts/intelligence.ldl
          added ctp2_data/french/uidata/layouts/battleview.ldl
          added ctp2_data/french/uidata/layouts/intelligence.ldl
          added ctp2_data/german/uidata/layouts/advancespad.ldl
          added ctp2_data/german/uidata/layouts/aipad.ldl
          added ctp2_data/german/uidata/layouts/ancient.ldl
          added ctp2_data/german/uidata/layouts/armymanager.ldl
          added ctp2_data/german/uidata/layouts/attract.ldl
          added ctp2_data/german/uidata/layouts/battleview.ldl
          added ctp2_data/german/uidata/layouts/buttonbank.ldl
          added ctp2_data/german/uidata/layouts/c3utilitydialog.ldl
          added ctp2_data/german/uidata/layouts/ce_screen.ldl
          added ctp2_data/german/uidata/layouts/ChatWindow.ldl
          added ctp2_data/german/uidata/layouts/cityespionage.ldl
          added ctp2_data/german/uidata/layouts/citymanager.ldl
          added ctp2_data/german/uidata/layouts/citypad.ldl
          added ctp2_data/german/uidata/layouts/cityview.ldl
          added ctp2_data/german/uidata/layouts/civ3.ldl
          added ctp2_data/german/uidata/layouts/controlpanel.ldl
          added ctp2_data/german/uidata/layouts/creditsscreen.ldl
          added ctp2_data/german/uidata/layouts/custommap.ldl
          added ctp2_data/german/uidata/layouts/cutnpastepad.ldl
          added ctp2_data/german/uidata/layouts/cvscreen.ldl
          added ctp2_data/german/uidata/layouts/diplomacy.ldl
          added ctp2_data/german/uidata/layouts/DiplomacyDetails.ldl
          added ctp2_data/german/uidata/layouts/diplomacywindow.ldl
          added ctp2_data/german/uidata/layouts/editqueue.ldl
          added ctp2_data/german/uidata/layouts/endgame.ldl
          added ctp2_data/german/uidata/layouts/fancy.ldl
          added ctp2_data/german/uidata/layouts/fliwindow.ldl
          added ctp2_data/german/uidata/layouts/font1.ldl
          added ctp2_data/german/uidata/layouts/font2.ldl
          added ctp2_data/german/uidata/layouts/font3.ldl
          added ctp2_data/german/uidata/layouts/font4.ldl
          added ctp2_data/german/uidata/layouts/font5.ldl
          added ctp2_data/german/uidata/layouts/font6.ldl
          added ctp2_data/german/uidata/layouts/gameplayoptions.ldl
          added ctp2_data/german/uidata/layouts/graphics.ldl
          added ctp2_data/german/uidata/layouts/greatlibrary.ldl
          added ctp2_data/german/uidata/layouts/happystatus.ldl
          added ctp2_data/german/uidata/layouts/helppopup.ldl
          added ctp2_data/german/uidata/layouts/helptile.ldl
          added ctp2_data/german/uidata/layouts/hotseatlist.ldl
          added ctp2_data/german/uidata/layouts/infoscreen.ldl
          added ctp2_data/german/uidata/layouts/intelligence.ldl
          added ctp2_data/german/uidata/layouts/intromovie.ldl
          added ctp2_data/german/uidata/layouts/loadsave.ldl
          added ctp2_data/german/uidata/layouts/messagebox.ldl
          added ctp2_data/german/uidata/layouts/musicscreen.ldl
          added ctp2_data/german/uidata/layouts/ns_chglobby.ldl
          added ctp2_data/german/uidata/layouts/ns_editplyr.ldl
          added ctp2_data/german/uidata/layouts/ns_joingame.ldl
          added ctp2_data/german/uidata/layouts/ns_launch.ldl
          added ctp2_data/german/uidata/layouts/ns_lobby.ldl
          added ctp2_data/german/uidata/layouts/ns_selcnct.ldl
          added ctp2_data/german/uidata/layouts/ns_selplyr.ldl
          added ctp2_data/german/uidata/layouts/ns_selserv.ldl
          added ctp2_data/german/uidata/layouts/ns_template.ldl
          added ctp2_data/german/uidata/layouts/objectpad.ldl
          added ctp2_data/german/uidata/layouts/options.ldl
          added ctp2_data/german/uidata/layouts/playerpad.ldl
          added ctp2_data/german/uidata/layouts/pointspad.ldl
          added ctp2_data/german/uidata/layouts/pollutionpad.ldl
          added ctp2_data/german/uidata/layouts/profileedit.ldl
          added ctp2_data/german/uidata/layouts/queuewin.ldl
          added ctp2_data/german/uidata/layouts/scenario.ldl
          added ctp2_data/german/uidata/layouts/sciencevictory.ldl
          added ctp2_data/german/uidata/layouts/segmentlist.ldl
          added ctp2_data/german/uidata/layouts/sound.ldl
          added ctp2_data/german/uidata/layouts/sourcelist.ldl
          added ctp2_data/german/uidata/layouts/SpriteEditor.ldl
          added ctp2_data/german/uidata/layouts/statswindow.ldl
          added ctp2_data/german/uidata/layouts/throneroom.ldl
          added ctp2_data/german/uidata/layouts/tilepad.ldl
          added ctp2_data/german/uidata/layouts/toolbar.ldl
          added ctp2_data/german/uidata/layouts/trademanager.ldl
          added ctp2_data/german/uidata/layouts/tradescreen.ldl
          added ctp2_data/german/uidata/layouts/tutorialwin.ldl
          added ctp2_data/german/uidata/layouts/unitmanager.ldl
          added ctp2_data/german/uidata/layouts/unitpad.ldl
          added ctp2_data/german/uidata/layouts/unitstatus.ldl
          added ctp2_data/german/uidata/layouts/victorymovie.ldl
          added ctp2_data/german/uidata/layouts/victoryscreen.ldl
          added ctp2_data/german/uidata/layouts/watchlist.ldl
          added ctp2_data/german/uidata/layouts/wondermovie.ldl
          added ctp2_data/japanese/uidata/layouts/battleview.ldl
          added ctp2_data/japanese/uidata/layouts/intelligence.ldl
          added ctp2_data/spanish/uidata/layouts/battleview.ldl
          added ctp2_data/spanish/uidata/layouts/intelligence.ldl
          Civ2 military advisor: "No complaints, Sir!"

          Comment


          • Added new flags, some are for future use


            gs\newdb\advance.cdb
            gs\newdb\building.cdb
            gs\newdb\government.cdb
            gs\newdb\terrimprove.cdb
            gs\newdb\unit.cdb
            gs\newdb\wonder.cdb


            added government type, cultureonly, citystyleonly, and Is RestrictedToGood (and isCoastal, island, isSea to CanBuildWonder in citydata.cpp)

            gs\gameobj\citydata.cpp
            gs\gameobj\terrainutil.zip


            attached file for review before it becomes revision
            Attached Files
            Formerly known as "E" on Apolyton

            See me at Civfanatics.com

            Comment


            • Revision 338

              Crash fixes

              modified ctp2_code/ctp/civapp.cpp
              modified ctp2_code/ctp/ctp2_utils/pointerlist.h
              modified ctp2_code/gs/slic/SlicEngine.cpp
              modified ctp2_code/gs/slic/SlicEngine.h
              modified ctp2_code/gs/slic/SlicSegment.cpp
              modified ctp2_code/ui/aui_directx/aui_directui.cpp
              modified ctp2_code/ui/aui_directx/aui_directui.h

              Small changes

              Allow string literals to be used as parameter
              modified ctp2_code/ui/interface/progresswindow.cpp
              modified ctp2_code/ui/interface/progresswindow.h

              Updated some "continental" English phrases.
              modified ctp2_data/english/gamedata/Great_Library.txt

              Not a code file (copy from ctp2_code when releasing)
              deleted ctp2_program/ctp/anet.inf

              Comment


              • r339

                ..\ctp2_code\gfx\spritesys\UnitActor.cpp
                ..\ctp2_code\gfx\spritesys\UnitActor.h
                ..\ctp2_code\gfx\spritesys\Director.cpp
                ..\ctp2_code\gfx\tilesys\TileDraw.cpp
                ..\ctp2_code\gfx\tilesys\TileHighlight.cpp
                ..\ctp2_code\gs\gameobj\ArmyData.cpp
                ..\ctp2_code\gs\gameobj\unit.cpp
                ..\ctp2_code\gs\gameobj\unit.h
                ..\ctp2_code\gs\gameobj\UnitData.cpp
                ..\ctp2_code\gs\gameobj\UnitData.h
                ..\ctp2_code\gs\gameobj\citydata.cpp
                ..\ctp2_code\gs\gameobj\citydata.h
                ..\ctp2_code\ai\ctpai.cpp
                ..\ctp2_code\ai\ctpai.h



                1) Show the number of turns until a city next grows a pop. I think you'll find that you really get attached to this quite quickly.

                2) Implemented Immobile units. These are like the militia units from the mods. I haven't changed units.txt because there aren't any likely candidates in the vanilla game.

                3) Implemented Bombarding from range. This extends the 'fire and forget' technique from the original code. (The white dotted line is the projectile's path.)

                Comment


                • Kool!

                  Originally posted by Peter Triggs
                  3) Implemented Bombarding from range. This extends the 'fire and forget' technique from the original code. (The white dotted line is the projectile's path.)
                  ·Circuit·Boi·wannabe·
                  "Evil reptilian kitten-eater from another planet."
                  Call to Power 2 Source Code Project 2005.06.28 Apolyton Edition

                  Comment


                  • Revision 340

                    Cleaned some files and added text files from the scenarios.

                    Removed .NET warnings
                    modified ctp2_code/gfx/tilesys/tiledmap.cpp
                    modified ctp2_code/gfx/tilesys/tiledmap.h
                    modified ctp2_code/gfx/tilesys/tiledraw.cpp
                    modified ctp2_code/gfx/tilesys/TileInfo.h

                    Cleaned Peter's turns to next pop design and improved the running time of the TurnsToNextPop method.
                    modified ctp2_code/gs/gameobj/CityData.cpp
                    modified ctp2_code/gs/gameobj/citydata.h

                    Tried to fix the turns to next pop on map feature, unfortunatly it doesn't work very well, for instance if you modify the number of specialists, you have to close and open the city manager again. And when I load an old savegame the number of turns is wrong, for some reason they don't consider specialists.
                    modified ctp2_code/ui/interface/citywindow.cpp

                    Added text files from scenarios. Espeacilly the const.txt's, it was a bad idea to remove them, because now we can't track the changes and a future playtest wouldn't restore these files to their original status. And obviously this is needed to be able to play the Alex scenario.
                    added Scenarios/AlexanderTheGreat/scen0000/default/aidata/UnitBuildLists.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/AG_func.slc
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/AG_mod.slc
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/buildings.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/citysize0.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/citysize1.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/citysize2.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/citysize3.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/citysize4.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/citysize5.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/civilisation.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/concept.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/Const.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/DiffDB.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/govern.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/newsprite.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/terrain.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/tileimp.txt
                    added Scenarios/AlexanderTheGreat/scen0000/default/gamedata/Wonder.txt
                    added Scenarios/AlexanderTheGreat/scen0000/german
                    added Scenarios/AlexanderTheGreat/scen0000/german/gamedata
                    added Scenarios/AlexanderTheGreat/scen0000/german/gamedata/civ_str.txt
                    added Scenarios/AlexanderTheGreat/scen0000/german/gamedata/gl_str.txt
                    added Scenarios/AlexanderTheGreat/scen0000/german/gamedata/Great_Library.txt
                    added Scenarios/AlexanderTheGreat/scen0000/german/gamedata/scen_str.txt
                    added Scenarios/AlexanderTheGreat/scen0000/german/gamedata/str_loc.txt
                    added Scenarios/AlexanderTheGreat/scen0000/scenicon.tga
                    added Scenarios/MagnificentSamurai/scen0000/default/aidata/diplomacy.txt
                    added Scenarios/MagnificentSamurai/scen0000/default/aidata/Goals.txt
                    added Scenarios/MagnificentSamurai/scen0000/default/aidata/strategies.txt
                    added Scenarios/MagnificentSamurai/scen0000/default/gamedata/civilisation.txt
                    added Scenarios/MagnificentSamurai/scen0000/default/gamedata/concept.txt
                    added Scenarios/MagnificentSamurai/scen0000/default/gamedata/Const.txt
                    added Scenarios/MagnificentSamurai/scen0000/default/gamedata/goodsID.txt
                    added Scenarios/MagnificentSamurai/scen0000/default/gamedata/newsprite.txt
                    added Scenarios/MagnificentSamurai/scen0000/default/gamedata/SS_msg.slc
                    added Scenarios/MagnificentSamurai/scen0000/default/gamedata/uniticon.txt
                    added Scenarios/MagnificentSamurai/scen0000/default/gamedata/Units.txt
                    added Scenarios/MagnificentSamurai/scen0000/german
                    added Scenarios/MagnificentSamurai/scen0000/german/gamedata
                    added Scenarios/MagnificentSamurai/scen0000/german/gamedata/civ_str.txt
                    added Scenarios/MagnificentSamurai/scen0000/german/gamedata/gl_str.txt
                    added Scenarios/MagnificentSamurai/scen0000/german/gamedata/Great_Library.txt
                    added Scenarios/MagnificentSamurai/scen0000/german/gamedata/scen_str.txt
                    added Scenarios/MagnificentSamurai/scen0000/german/gamedata/str_loc.txt
                    added Scenarios/NuclearDetente/scen0000/default/aidata
                    added Scenarios/NuclearDetente/scen0000/default/aidata/diplomacy.txt
                    added Scenarios/NuclearDetente/scen0000/default/aidata/strategies.txt
                    added Scenarios/NuclearDetente/scen0000/default/gamedata/civilisation.txt
                    added Scenarios/NuclearDetente/scen0000/default/gamedata/concept.txt
                    added Scenarios/NuclearDetente/scen0000/default/gamedata/ND_mod.slc
                    added Scenarios/NuclearDetente/scen0000/default/gamedata/ND_msg.slc
                    added Scenarios/NuclearDetente/scen0000/default/gamedata/uniticon.txt
                    added Scenarios/NuclearDetente/scen0000/default/gamedata/Units.txt
                    added Scenarios/NuclearDetente/scen0000/german
                    added Scenarios/NuclearDetente/scen0000/german/gamedata
                    added Scenarios/NuclearDetente/scen0000/german/gamedata/civ_str.txt
                    added Scenarios/NuclearDetente/scen0000/german/gamedata/gl_str.txt
                    added Scenarios/NuclearDetente/scen0000/german/gamedata/Great_Library.txt
                    added Scenarios/NuclearDetente/scen0000/german/gamedata/scen_str.txt
                    added Scenarios/NuclearDetente/scen0000/german/gamedata/str_loc.txt
                    Civ2 military advisor: "No complaints, Sir!"

                    Comment


                    • Revision 341

                      Added the missing original Spanish files from

                      ctp2_data/spanish/gamedata/
                      ctp2_data/spanish/uidata/layouts/

                      Forgot to put a comment with the revision, id edit one in if only i knew how and i really dont want to go messing
                      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


                      • Originally posted by Maquiladora
                        Forgot to put a comment with the revision, id edit one in if only i knew how and i really dont want to go messing
                        I suspect only kaan can do that (although it is possible for him to arrange matters so that we can).

                        Comment


                        • Revision 342 Mod compatibility crash fixes

                          modified ctp2_code/gs/newdb/CTPDatabase.cpp
                          modified ctp2_code/ui/aui_common/aui_control.cpp
                          modified ctp2_code/ui/aui_common/aui_control.h
                          modified ctp2_code/ui/aui_common/aui_imagebase.cpp
                          modified ctp2_code/ui/aui_ctp2/ctp2_menubar.cpp
                          modified ctp2_code/ui/aui_ctp2/ctp2_menubar.h
                          modified ctp2_code/ui/interface/controlpanelwindow.cpp
                          modified ctp2_code/ui/interface/initialplayscreen.cpp
                          modified ctp2_code/ui/interface/NationalManagementDialog.cpp

                          About the const.txt files (for scenarios): the original Activision versions should work for quite some time now, so there is no reason to distribute the "insert MAX_MATCH_CYCLES 6 somewhere in the middle" versions any more. Actually, I intend to remove the temporary ugly patch that makes it possible to still use these versions. When you compare the const.txt versions with those of the original game, the only functional change is in the main one, where the caravan coefficient has been modified. But that is another problem (for Mods).

                          Comment


                          • Originally posted by Fromafar
                            About the const.txt files (for scenarios): the original Activision versions should work for quite some time now, so there is no reason to distribute the "insert MAX_MATCH_CYCLES 6 somewhere in the middle" versions any more.
                            Well that's not quite my point here. The intention of the playtest versions is that they should work on every version of CTP2 that was installed before. On the game out of the box on the 1.1 patched version and of course on any other playtest taht was installed previously. So what happens if you just delete the files from the respiratory and someone does a patch from the remaining files is that the backwards compatibility is lost, because the file isn't in the respiratory and therefore can't be in the playtest, either. And if it isn't in the playtest it can't overwrite any file with changes from previous playtests.

                            Originally posted by Fromafar
                            When you compare the const.txt versions with those of the original game, the only functional change is in the main one, where the caravan coefficient has been modified. But that is another problem (for Mods).
                            Well actual I indent to move it into the source code as well, it is just inserting a '0' somewhere.

                            -Martin
                            Civ2 military advisor: "No complaints, Sir!"

                            Comment


                            • Revision 343 Added thread function names for the debug version

                              modified ctp2_code/ctp/civ3_main.cpp
                              modified ctp2_code/ctp/civ3_main.h
                              modified ctp2_code/ctp/debugtools/debug.c
                              modified ctp2_code/ctp/debugtools/debug.h
                              modified ctp2_code/net/io/net_thread.cpp
                              modified ctp2_code/ui/netshell/netfunc.cpp

                              Comment


                              • Revision 344 Removed support for the deprecated middle-inserted MAX_MATCH_CYCLES

                                modified ctp2_code/gs/database/ConstDB.cpp
                                modified ctp2_data/default/gamedata/Const.txt

                                Restored the original Activision files
                                Scenarios/AlexanderTheGreat/scen0000/default/gamedata/Const.txt
                                Scenarios/MagnificentSamurai/scen0000/default/gamedata/Const.txt

                                Comment

                                Working...
                                X