Announcement

Collapse
No announcement yet.

Help editing

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

  • Help editing

    i have come to realize i have no idea how to edit anything with xml and python. i was hoping maybe some one could come up with an "editing for dummies" tutorial. just want to know how to do basic stuff, what folders to look in, what files to edit and what they mean in-game, examples of how to do some minor things. Help please.

  • #2
    Well the files you'll find in the assets folder (python,xml).

    in the xml/buildings folder you take civ4buildingsinfos.xml and open it with an editor (for example the windows editor).

    every building has the same structure. it begins with the name "BUILDINGCLASS_PALACE" for example.
    Before that name there is following "BuildingInfo"
    the end of this certain building is marked by "/BuildingInfo"

    Within this "markers" the building has a certain structure:

    i.e.:

    - cost
    - health
    ...

    so for every building you'll find more or less the same lines of code.

    you can reduce the cost from 60 to 50 or give a factory a health value of "+1" instead of "-1".

    to know exactly what line stands for what information you have to compare the different buildings.

    ------------

    that is a very short intro. you have to start do small things. but make backups of the xml-files before you change them!

    Comment


    • #3
      this is from the xml file bonousinfo i'm not sure what most of it means. could you give me an idea what lines mean what and what effects they have in the game.


      BONUS_SILK
      TXT_KEY_BONUS_SILK
      TXT_KEY_BONUS_SILK_PEDIA
      BONUSCLASS_GENERAL
      ART_DEF_BONUS_SILK
      NONE
      TECH_CALENDAR
      NONE
      -
      0
      0
      1

      0
      0
      1
      5
      50
      3
      0
      90
      -
      25
      25
      0
      0

      100
      0
      0
      0
      1
      50
      1
      0
      1
      0
      1

      -
      -
      FEATURE_FOREST
      1


      -
      -
      TERRAIN_GRASS
      1

      -
      TERRAIN_PLAINS
      1


      1

      -

      Comment


      • #4
        umm that didnt turn out right let me try again.



        BONUS_SILK
        TXT_KEY_BONUS_SILK
        TXT_KEY_BONUS_SILK_PEDIA
        BONUSCLASS_GENERAL
        ART_DEF_BONUS_SILK
        NONE
        TECH_CALENDAR
        NONE
        -
        0
        0
        1

        0
        0
        1
        5
        50
        3
        0
        90
        -
        25
        25
        0
        0

        100
        0
        0
        0
        1
        50
        1
        0
        1
        0
        1

        -
        -
        FEATURE_FOREST
        1


        -
        -
        TERRAIN_GRASS
        1

        -
        TERRAIN_PLAINS
        1


        1

        -

        Comment


        • #5
          cant seem to get it to post right

          Comment


          • #6
            Well thats because you cant show this here <>.

            Sorry I don't understand every line of it. But you can start when you take your handbook and compare the attributes. Walls for example increase your defense with 50%, you'll find this value in the line "idefense".

            another thing is health. you'll find health, area health and global health. health is for this city where you build the building. area health increases, decreases health on the whole continent, global health in every city you have.

            It'll cost you a little bit of time, but the best is you try it on your own. start with thins you know. A lot of stuff you'll learn from the posts in this subforum.

            Wish you fun!

            Comment


            • #7
              I posted a quick guide on how to add civs in the following thread. It's a good way to get started. The best way to learn things is hands-on and by asking questions with specific things. As they say, Rome was not built in a day!

              Comment


              • #8
                If you want to post XML code here, run the code through a text editor first and replace all '<' and '>' with '<' and '>', or post the relevant code as attachment. But it's kind of hard to explain for a huge file what every single setting means (Isak is working documentation for this though, please give him a few days). As Trip says, please ask specific questions on what specific tags do or how to accomplish specific tasks.

                Edit: I'm looking into a way to make posting of XML code in this forum easier in the future. Not making any promises though and it may take a while.
                Last edited by Locutus; October 31, 2005, 22:06.
                Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                Comment

                Working...
                X