Announcement

Collapse
No announcement yet.

PROJECT: Altered source files

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

  • Updated documentation sources.
    doc/dev/*: Development documentation (pdflatex source)

    For the generated pdf, visit the last post of the thread Project: Code Documentation
    Attached Files

    Comment


    • Activision 1.1 patch reimplementation:

      ui\netshell\netshell_game.h: updated GAMEID to match the value in the new anet.inf.
      ui\interface\spnewgametribescreen.cpp: improved checking to prevent a crash.

      Not source code:

      scenarios\alexnew\scen0000\english\gamedata\great_ library.txt: repaired some links that were causing asserts when debugging.

      [Edit: file link removed. Included in the 2004.12.27 source collection.]
      Last edited by Fromafar; January 4, 2005, 16:42.

      Comment


      • 2004.11.05
        Slic builtin update by Martin Gühmann:

        ..\ctp2_code\gs\slic\SlicBuiltin.cpp
        The following builtins have been updated:

        - player.capital: The player's capital as string or city_t.
        - player.largestcity: The player's largest city as string or city_t.
        - player.researching: The database index or name of the current player's research project.
        - player.militarystate: The player's military state as index or string.
        - player.leaderperonality: The player's leader's personality type as string or personality database index.
        - player.govttype: The player's government type as string or government database index.

        ..\ctp2_code\gs\slic\SlicSymbol.cpp
        GetText function now returns FALSE to be able to check whether there according slic symbol has a valid string.

        ..\ctp2_code\gs\slic\sliccmd.cpp
        Modifed the integer checker function so that they return FALSE if there is a valid string associated with the given slic symbol, so that the slic builtins above still work in string replacement as used.

        ..\ctp2_code\ai\diplomacy\sstateevent.cpp
        Added two "!" so that the code for the AI to respect the city limit is used in non-ACTIVISION_ORIGINAL builds instead the way around.

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

        Comment


        • Bug fixes:

          ctp2_code\ai\diplomacy\diplomat.cpp
          ctp2_data\default\gamedata\civilisation.txt
          Prevented a crash on invalid input, and corrected the invalid input.

          ctp2_code\gs\gameobj\citydata.cpp
          Untested: attempt at a solution for the problem that cities don't grow in PBEM.

          ctp2_code\net\general\net_packet.h
          Preparation for more Activision patch 1.1 reimplementation: added the id of the feat tracker data block.

          [Edit: file link removed. Included in the 2004.12.27 source collection.]
          Last edited by Fromafar; January 4, 2005, 16:43.

          Comment


          • Bug fixes:

            net\general\net_info.cpp
            Unblock the client user interface when the server has handled the city production, so you don't have to open some manager before being permitted to do anything - for MP.

            gs\database\constdb.cpp
            Restored database compatibility with the original Activision version when possible - for MP testing.

            gs\gameobj\player.cpp
            Untested: handled the science update as the population update of the previous post. An attempt at a solution for the problem that researching is useless with PBEM.

            [Edit: file link removed. Included in the 2004.12.27 source collection.]
            Last edited by Fromafar; January 4, 2005, 16:44.

            Comment


            • Bug fix/user interface improvement

              ctp\civapp.cpp
              ui\interface\musicscreen.cpp
              ui\interface\musictrackscreen.cpp

              Clean up the music screens when cleaning up the GUI, to reduce the size of the leak log.
              Do not reset the - unconfirmed - user changes when returning to the music screen after visiting the music track selection screen.

              [Edit: file link removed. Included in the 2004.12.27 source collection.]
              Last edited by Fromafar; January 4, 2005, 16:46.

              Comment


              • Miscellaneous open issues:

                ctp2_code\gfx\tilesys\resourcemap.cpp
                Repaired memory leak.

                ctp2_code\gfx\tilesys\tiledmap.cpp
                Initialised more data (pointers) in the constructor, to prevent a possible access to invalid memory.

                ctp2_code\gs\slic\slicfuncai.cpp
                ctp2_code\gs\slic\slicfuncai.h
                Restored compatibility for WAW/Diplomod.

                ctp2_code\gs\gameobj\vision.cpp
                Removed leak report cause (not actually a leak).

                ctp2_data\default\gamedata\buildings.txt
                Corrected arena and aquaduct prerequisite advances.

                ctp2_data\default\gamedata\script.slc
                Added a Quit button at the interplayer screen for hotseat games.

                [Edit: file link removed. Included in the 2004.12.27 source collection.]
                Last edited by Fromafar; January 4, 2005, 16:46.

                Comment


                • 2004.11.05
                  Slic builtin update by Martin Gühmann:

                  ..\ctp2_data\english\gamedata\civ_str.txt
                  ..\ctp2_data\french\gamedata\civ_str.txt
                  ..\ctp2_data\german\gamedata\civ_str.txt
                  ..\ctp2_data\italian\gamedata\civ_str.txt

                  Updated to match latest civ additions. Note the Italian file only contains untranslated strings in English. The according files for the Spanish and Japanese version are missing. Latest English version based on a file by Locutus. Latest French version based on a file by Tamerlin.

                  ..\ctp2_data\german\gamedata\str_loc.txt
                  ..\ctp2_data\italian\gamedata\str_loc.txt

                  Localized civ grammer for the new civs, note that only the file for the German version contains real data, the Italian file was filled with dummy data. A French version could also have filled with dummy data but I think in this case we can wait for the file with the real data. And note such a file is missing for the Spanish version. I don't know whether there is such an file for the Japanese version.

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

                  Comment


                  • Miscellaneous issues again:

                    ctp2_code\net\general\net_info.cpp
                    ctp2_code\net\general\net_info.h
                    ctp2_code\gs\gameobj\citydata.cpp
                    Updated kaan's #14 solution after testing against the official Activision patch with a debugger.

                    ctp2_code\ai\ctpai.cpp
                    ctp2_code\ai\diplomacy\diplomat.cpp
                    Improved diplomat cleanup (speed-up, memory leak prevented).

                    ctp2_code\gs\armydata.cpp
                    Prevented a memory leak report from some unused variables.

                    ctp2_code\gs\dbgen\ctdpb.y
                    Exit dbgen with a proper value, to prevent random "cmd" error build stops.

                    [Edit: file link removed. Included in the 2004.12.27 source collection.]
                    Last edited by Fromafar; January 4, 2005, 16:47.

                    Comment


                    • Bug fixes:

                      ctp2_code\ui\aui_directx\aui_directmouse.cpp
                      ctp2_code\ui\aui_directx\aui_directkeyboard.cpp
                      Continue handling events (thus removing these from the input buffer) when an input buffer overflow is reported.

                      ctp2_code\gfx\spritesys\spritegroup.cpp
                      ctp2_code\gfx\spritesys\cityspritegroup.cpp
                      ctp2_code\gfx\spritesys\effectspritegroup.cpp
                      ctp2_code\gfx\spritesys\projectilespritegroup.cpp
                      ctp2_code\gfx\spritesys\projectilespritegroup.h
                      ctp2_code\gfx\spritesys\unitspritegroup.cpp
                      Repaired crashes when attempting to load a saved file with the new Alexander scenario.

                      Note for Locutus:
                      Loading a saved file from the AlexNew scenario will make the program look for files in the AlexanderTheGreat original scenario directory, causing reports of missing sprites, and a crash later. Changing the first line in Scenarios\AlexNew\scen0000\scenario.txt to something unique will correct this.

                      [Edit: file link removed. Included in the 2004.12.27 source collection.]
                      Last edited by Fromafar; January 4, 2005, 16:48.

                      Comment


                      • Activision patch reimplementation

                        ctp2_code\gs\gameobj\citydata.cpp
                        ctp2_code\net\general\net_city.cpp
                        Propagate city defensive bonus.

                        [Edit: file link removed. Included in the 2004.12.27 source collection.]
                        Last edited by Fromafar; January 4, 2005, 16:49.

                        Comment


                        • Nice one

                          I would have never guessed that it would be that simple.

                          Bug #28 done, only 5 left now

                          Comment


                          • ctp2_code\gs\armydata.cpp
                            increased bombard range code as helped by Solver



                            updated attachment to include Peter Triggs additions
                            Last edited by Ekmek; December 27, 2004, 03:06.
                            Formerly known as "E" on Apolyton

                            See me at Civfanatics.com

                            Comment


                            • Anyone actually tested it ?
                              Solver, WePlayCiv Co-Administrator
                              Contact: solver-at-weplayciv-dot-com
                              I can kill you whenever I please... but not today. - The Cigarette Smoking Man

                              Comment


                              • Activision patch reimplementation

                                ctp2_code\net\general\net_info.cpp
                                ctp2_code\net\general\net_info.h
                                ctp2_code\gs\gameobj\feattracker.cpp
                                ctp2_code\gs\gameobj\feattracker.h
                                Feat accomplishment propagation from server to client.

                                Notes: The new net_info code value has been verified with a debugger (as received from a server with the Activision patch), so kaan's PW propagation code value has been moved up some places. Actually, I have never received the PW propagation info message from the server yet. And I still haven't got a clue about the FT data. Maybe it has nothing to do with feat tracking.
                                FT = First Turn? False Trail?

                                [Edit: file link removed. Included in the 2004.12.27 source collection.]
                                Last edited by Fromafar; January 4, 2005, 16:50.

                                Comment

                                Working...
                                X