Announcement

Collapse
No announcement yet.

[Utility] UnitsCSV v.1

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

  • #16
    So I can add my own entries for units.txt in the cfg file if I find any more?
    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


    • #17
      Yeap

      I'll add an option to load buildings.txt and advance.txt, and make an associated config files.

      And get rid of that output to the screen that I forgot to remove.
      Last edited by EPW; May 23, 2009, 00:44.
      "

      Comment


      • #18
        Here's what I have for buildings.cfg so far:

        Code:
        #A "s" means it has a value listed after it, a "t" means it doesn't. 
        #An "a" means its an ability and flags in brackets come after it. 
        #Ability flags start with an "a" and are follewed by an "s" or a "t"
        DefaultIcon s
        Description s
        EnableAdvance s
        EnableAdvance s
        PrerequisiteBuilding s
        PrerequisiteBuilding s
        PrerequisiteBuilding s
        PrerequisiteBuilding s
        PrerequisiteBuilding s
        ProductionCost s
        Upkeep s
        RaiseOvercrowdingLevel s
        RaiseMaxPopulation s
        HappyInc s
        OffenseBonusLand s
        CommercePercent s
        SciencePercent s
        ProductionPercent s
        FoodPercent s
        GoldPerCitizen s
        PopulationPollutionPercent s
        ProductionPollutionPercent s
        OffenseBonusWater s
        OffenseBonusAir s
        StarvationProtection s
        LowerCrime s
        LowerPeaceMovement s
        DefendersPercent s
        PreventConversion s
        PreventSlavery s
        ProtectFromBioAgents s
        ProtectFromNanoVirus s
        FoodVat s
        ForceField t
        Television t
        NuclearPlant t
        AllowGrunts t
        CityWalls t
        CantBuildInSea t
        CoastalBuilding t
        IsReligious t
        Cathedral t
        Brokerage t
        Capitol t
        DoubleTelevangelists t
        "

        Comment


        • #19
          v1.1

          Latest version, supports Advance.txt and buildings.txt as well as units.txt.
          Attached Files
          "

          Comment


          • #20
            Did you allow for the GovernmentsModified stuff yet?

            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


            • #21
              No, is that even implemented?
              "

              Comment


              • #22
                I'd prefer a system like this, but I'm biased.

                Code:
                IMPROVE_COURTHOUSE {
                   DefaultIcon ICON_IMPROVE_COURTHOUSE
                   Description DESCRIPTION_IMPROVE_COURTHOUSE
                   EnableAdvance ADVANCE_JURISPRUDENCE
                   ProductionCost 330
                   Upkeep 1
                   LowerCrime -0.1
                  
                   GOVERNMENT_MONARCHY {
                        ProductionCost 400
                        Upkeep 4
                        LowerCrime -0.4
                        HappyInc -1 
                   }
                }
                "

                Comment


                • #23
                  Originally posted by EPW View Post
                  No, is that even implemented?
                  AFAIK some of it, yes.
                  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
                    Code:
                    IMPROVE_COURTHOUSE > GOVERNMENT_MONARCHY {
                    This goes against everything my program stands for.

                    I may be exaggerating.
                    "

                    Comment


                    • #25
                      I see what you're saying, kind of.

                      Consider it a challenge or ignore it.
                      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
                        govern.txt and terrain.txt should work too, though there are so many flags I don't want to think about it.

                        Edit: and wonders.txt, and tileimp.txt, and risks.txt, and pop.txt, and Orders.txt, and...

                        Some adjustment should get uniticon.txt to work.
                        "

                        Comment


                        • #27
                          I think I'll just add another config file where you can specify the .txt, .csv, or .cfg file you want to load.
                          "

                          Comment


                          • #28
                            Originally posted by Maquiladora View Post
                            I see what you're saying, kind of.

                            Consider it a challenge or ignore it.
                            Did it. I got to use the strcat function.

                            I'm going to release a "Final" version soon. Now that it works with a lot of the database files, I need a knew name though. Recommendations are welcome. (I've only come up with DBCSV so far)
                            "

                            Comment


                            • #29
                              Thread closed, because the tool was renamed, you can continue here if you wish.

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

                              Comment

                              Working...
                              X