Announcement

Collapse
No announcement yet.

Noob Question

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

  • Noob Question

    Perhaps this is a case of "If you have to ask you can't do it"...

    If I want to add a new improvemnt option (with graphic [button and square]) what files do I need to modify? For example, I want my workboat to build a bridge between two land masses. Obviously I would need a button for the UI (maybe reuse the road graphic for workers?). Then I'd need the bridge graphic. Then I'd have to add it as an improvement with corresponding data in the XML (?). And then whatever else I'm missing. Where should I begin, and which files should be altered?

    Any help at all would be appreciated!

  • #2
    You create the improvement in the xml\terrain\civ4improvementinfos.xml file
    you set the graphics for the improvement with the ART_DEFINES tag.

    then in the xml\units\civ4buildinfos.xml file
    you have to create a build for it
    This is where you put in the filename for your button graphics
    and where you set the tech requirement, time it takes to build, etc.

    then in the xml\units\civ4unitinfos.xml file
    you have to edit the unit that you want to build the improvement

    Check out my terraform mod if you want to see some examples of this. (most of the actual terraforming is done with python)

    I've had workboats build roads on water before. Land units couldn't use them though, and I forget exactly how water units acted.

    Comment


    • #3
      Thanks! I'll check it out, and give my programming skills the brush-up they so badly need.

      Comment

      Working...
      X