Announcement

Collapse
No announcement yet.

Teraform

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

  • Teraform

    The only mod for this game I am really really wanting is one to give workers a teraform ability ala CIV2. I've found places in the XML that appear to define what workers can build as afar as terain improvements. I have found another spot in the XML that appears to define the different improvements themselves (as far as the button icon at the bottom and such). And I see in the SDK documentation where the functions are that would allow me to change the terrain type.

    What I don't know is:

    1. The SDK is going to be released next year...so I assume there is no way yet to change the terrain type at a given X,Y coordinate?

    2. I have no clue what gets called when I actually try to perform the teraform action. I know form looking at the SDK that there is a function attached to the terain that returns a true/false depending on if a given improvement is allowed on that type of terain. I'd need to make sure the teraform build is allowed on the appropriate terain types. I also need to actually handle the teraform operation once it has been selected, and I am unsure where to go abou this.

    Anyone have any idea of where to start?

  • #2
    It looks like you can do this without the SDK, but you'll need to hack some python.

    According to the API, CyPlot has member functions setPlotType(), setTerrainType(), setFeatureType(), setNOfRiver(), setWOfRiver(); the first two have flags that I think you'll have to set to force production to be recomputed & graphics to be redrawn.

    Oh, this is so cool - you can have workers dig canals!

    Now, the terrain model is a lot simpler than in SMAC, and you might want to think hard about the amount of work required to level hills or raise mountains, but it looks like we could put planting forests back in if we wanted to reenable old abuses.

    Comment


    • #3
      Call to Power let you terraform different types of terrain as you discovered different technologies. So as the game progressed, you could alter more and more types of terrain. I believe Fusion let you terraform Mountains (even so, that's one big H-bomb!). Just a thought, if you're planning on making a terraforming mod...

      Comment


      • #4
        Actually I've already made a mod allowing forestation, albeit indirectly. Linky link.

        Other than that, I'm working on a version which allows all kinds of terraforming, but I'm struggling with the Python and don't have as much time for CIV at the moment as I would like to have.
        _____
        rezaf

        Check out my Forest planting mod or my Terrain adaption mod

        Comment


        • #5
          I just released a terraforming mod. Check out this

          Comment

          Working...
          X