Announcement

Collapse
No announcement yet.

PROJECT: New SLIC & DB-Constants

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

  • PROJECT: New SLIC & DB-Constants

    I think it is a good idea to open a new thread collecting the new SLIC- and database-items added to the Apolyton Edition to keep some overview and to help modders and SLICers willing to test these new possibilities.
    I will start by adding some of the new SLIC-/DB-items I could find in the Altered Source Files thread until now below. This means that I will also have to edit this first couple of "entries" if needed.
    The idea is, that source coders adding/significantly modifying SLIC-functions, variables, DB-constants etc. would continue this thread by posting similar "entries" containing a short description (e.g. how to use a new function/variable, arguments, valid values etc.) - this way the creators of new modding tools would be able to edit their entries themselves, which I would prefer .
    Last edited by BureauBert; July 8, 2004, 18:02.
    The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

  • #2
    Const.txt: MAX_MATCH_LIST_CYCLES

    New DB-constant

    Determines how often the AI's MatchLists are processed to task their units.
    The default setting is 6 (the previous hard-coded setting)
    Description here .

    by: Fromafar
    Last edited by BureauBert; July 8, 2004, 17:43.
    The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

    Comment


    • #3
      Const.txt: CAPTURE_CITY_ADVANCE_CHANCE

      Reimplementation, this constant is already in Const. txt, it now takes effect.

      Percent chance of stealing an advance when capturing a city.
      The current default value is 0.5
      Valid values: 0.0 - 1.0
      Description here

      by: Martin Gühmann
      Last edited by BureauBert; July 8, 2004, 17:43.
      The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

      Comment


      • #4
        DB-access without /reloadslic

        Games that use slic database access can now be reloaded without the need to /reloadslic to prevent a crash, unfortunatly this applies only to games that are saved with the new version of the slic database access, games saved with Activision's patch v.1.1 and with slic code that uses database access may not be continued without a /reloadslic.
        Description here

        by: Martin Gühmann
        Last edited by BureauBert; July 8, 2004, 17:44.
        The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

        Comment


        • #5
          Terrain.txt: Freight costs

          DB-modifications due to modifications in the source code

          Due to the new computation of freight costs based on terrain type the number of caravans needed to establish a trade route has increased so much to be practically prohibitive.
          Flinx suggests these modifications in Terrain.txt to readjust freight costs.
          Last edited by BureauBert; July 8, 2004, 19:02.
          The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

          Comment


          • #6
            player.government

            New SLIC-variable

            Contains the player's government type (index from GovernmentDB).

            Description here .

            by: Peter Triggs
            The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

            Comment


            • #7
              g.num_of_players

              New SLIC-variable

              Gets the number of players in the current game.

              Description here .

              by: Martin Gühmann
              The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

              Comment


              • #8
                g.last_player

                New SLIC-variable

                Gets the last player, the player with the highest index in the game

                Description here .

                by: Martin Gühmann
                The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

                Comment


                • #9
                  g.max_players

                  New SLIC-variable

                  Gets the maximum number of players allowed by ctp2.exe in it's current version, currently it is 32 including the Barbarians

                  Description here .

                  by: Martin Gühmann

                  Edit: the function has been renamed from g.max_player to g.max_players
                  Last edited by BureauBert; July 24, 2004, 17:29.
                  The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

                  Comment


                  • #10
                    CargoCapacity(unit_t)

                    New SLIC-function

                    Gets the number of additional units unit_t can carry

                    Description here .

                    by: Martin Gühmann
                    The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

                    Comment


                    • #11
                      MaxCargoSize(unit_t)

                      New SLIC-function

                      Gets the maximum number of units unit_t can carry

                      Description here .

                      by: Martin Gühmann
                      The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

                      Comment


                      • #12
                        CargoSize(unit_t)

                        New SLIC-function

                        Gets the current number of units unit_t is carrying

                        Description here .

                        by: Martin Gühmann
                        The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

                        Comment


                        • #13
                          GetUnitFromCargo(unit1?, int?, unit2?)

                          New SLIC-function

                          Gets the int'th unit unit1 is carrying and stores it into unit2?

                          Description here .

                          by: Martin Gühmann
                          The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

                          Comment


                          • #14
                            GetContinent(location_t)

                            New SLIC-function

                            Gets the continent ID of location_t

                            Description here .

                            by: Martin Gühmann
                            The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

                            Comment


                            • #15
                              IsWater(location_t)

                              New SLIC-function

                              Returns true if location_t is water

                              Description here .

                              by: Martin Gühmann
                              The modding knowledgebase: CTP2 Bureau (with CTP2 AE Modding Wiki). Modern Times Mod (work in progress): MoT-Mod for CTP2.

                              Comment

                              Working...
                              X