Announcement

Collapse
No announcement yet.

Using Peaks

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

  • Using Peaks

    While working on my map, I was looking at natural resource placement and I was wondering how I can make the mountains at least useful by a city if not making them passable.

    Does anyone have any suggestions?
    Flash
    Ἐí ἀñ÷ῇ ἦí ὁ ëüãïò, êáὶ ὁ ëüãïò ἦí ðñὸò ôὸí èåüí, êáὶ èåὸò ἦí ὁ ëüãïò.
    the Moderator of the World Creators

  • #2
    Okay, I'm steamed. According to Civ4FeaturesInfo, the setting for Ice's Impassible isetting is set to 1. Peaks Impassible setting is set to 0 but you still can't use it. It may for my to remove all mountain peaks from my map.
    Last edited by Flash; June 14, 2006, 08:14.
    Flash
    Ἐí ἀñ÷ῇ ἦí ὁ ëüãïò, êáὶ ὁ ëüãïò ἦí ðñὸò ôὸí èåüí, êáὶ èåὸò ἦí ὁ ëüãïò.
    the Moderator of the World Creators

    Comment


    • #3
      Yes, I see that too. One thought I had is that maybe these fields in the CIV4UnitInfos.xml file have something to do with it:
      < TerrainImpassables/>
      < FeatureImpassables/>

      But those seem empty except for naval units, where they are:
      < TerrainImpassables>
          < TerrainImpassable>
            < TerrainType>TERRAIN_OCEAN< /TerrainType>
            < bTerrainImpassable>1< /bTerrainImpassable>
          < /TerrainImpassable>
      < /TerrainImpassables>

      Of course, none of this addresses your original question, letting citizens work mountain peak tiles.

      Hmmmmmm.
      One of these days I'll make 501 posts, and you won't have to look at my silly little diplomat anymore.
      "Oh my God, what a fabulous room. Are all these your guitars?"

      Comment


      • #4
        rjwoer,

        While experimenting I noticed for instance that you can add gold to the mountains. In game as you look around it will acknowledge that gold is present, but in the city radius that tile is unworkable.
        Flash
        Ἐí ἀñ÷ῇ ἦí ὁ ëüãïò, êáὶ ὁ ëüãïò ἦí ðñὸò ôὸí èåüí, êáὶ èåὸò ἦí ὁ ëüãïò.
        the Moderator of the World Creators

        Comment


        • #5
          Yes. I agree something is up here. I will keep thinking on it and hopefully I can come up with something. You are right in your confusion. I am a bit confused too!

          It's got to be in the XML files; we just need to find it.
          One of these days I'll make 501 posts, and you won't have to look at my silly little diplomat anymore.
          "Oh my God, what a fabulous room. Are all these your guitars?"

          Comment


          • #6
            rjwoer,

            I figure it has to be in the XML files too, but I can't find it.

            So, for now my map will only use peaks for LM terrain and where appropriete. Until the prohibition to mountains is revoked, I'm forced to use hills instead.
            Flash
            Ἐí ἀñ÷ῇ ἦí ὁ ëüãïò, êáὶ ὁ ëüãïò ἦí ðñὸò ôὸí èåüí, êáὶ èåὸò ἦí ὁ ëüãïò.
            the Moderator of the World Creators

            Comment


            • #7
              As part of the C4:AC mod, we did discover how to make Sea Cities, which then required making Ocean tiles workable. This all required the SDK with no XML or Python work (that I remember). I believe that whilst making a terrain type passable is possible with the XML, it is not so for making the tile workable.
              Ceeforee v0.1 - The Unofficial Civ 4 Editor -= Something no Civ Modder should ever be without =- Last Updated: 27/03/2009
              "Just because I'm paranoid doesn't mean there's no conspiracy"

              Comment


              • #8
                MMC,

                Thank you much for that info. As I'm not that adventurous at programming anymore, I guess I'll have to go with the limited mountain peak plan. darn it.
                Flash
                Ἐí ἀñ÷ῇ ἦí ὁ ëüãïò, êáὶ ὁ ëüãïò ἦí ðñὸò ôὸí èåüí, êáὶ èåὸò ἦí ὁ ëüãïò.
                the Moderator of the World Creators

                Comment


                • #9
                  ARGH NOOOOOO! I found just this thread i searched for so long and now you put your heads down???

                  Please!!!

                  @some Modding Master:
                  Can someone post the code for making the moutains act like normal terrain. I have already collected some code to make them passable. But thats just XML.
                  Question: How can towns gain some ressources from them? Any idea?
                  (Just switch that impassable away! I think that will do?!)
                  Last edited by Thror78; August 15, 2006, 05:06.

                  Comment


                  • #10
                    Thror78,
                    There are several problems. One is that the switch enabling the use of peaks is odd. Another, problem that drives me crazy is the lack of being able to use peaks in the cities. You can add resources to them but you still can't access them.

                    I'm not really sure what their purpose is other than acting as a naturally occurring Great Wall.

                    The only solution I've found until someone from Firaxis will post a solution is to use hills as both hills and mountains while using "Peaks" as LM Peaks of very tall mountains like Mt. Everest.

                    I've also wondered if it was possible to add a "mountain" terrain using the "Peak" graphics. But someone who understands Civ IV better than I will have to tell me if it is possible.
                    Flash
                    Ἐí ἀñ÷ῇ ἦí ὁ ëüãïò, êáὶ ὁ ëüãïò ἦí ðñὸò ôὸí èåüí, êáὶ èåὸò ἦí ὁ ëüãïò.
                    the Moderator of the World Creators

                    Comment


                    • #11
                      Yes there is already a Mod ->*Terraform*
                      But those new mountains look, ... hmm ... its a hill with mountain texture. The idea is good but i don't like it that way.
                      MMC mentioned to do some codework to make the Peaks similar to hills and to compile the whole thing.
                      I tried but i use no VC++ so i have there quite more problems.

                      Here is what i got from MMC:

                      RE: Peaks workable

                      I've had a quick look into it, and the simplist method I can think of, is setting the SDK to trick the game into thinking Peaks are hills. I don't have time to explain fully, but by replacing one of the 'isPeak()' commands to read 'isHills()', then it should work. I think the line you'll be looking for is line 616 in cyplot.cpp.

                      Are we getting closer now?

                      Comment


                      • #12
                        Thror78,
                        Actually, that does sound interesting. Keep me updated. I may send an e-mail to Firaxis.
                        Flash
                        Ἐí ἀñ÷ῇ ἦí ὁ ëüãïò, êáὶ ὁ ëüãïò ἦí ðñὸò ôὸí èåüí, êáὶ èåὸò ἦí ὁ ëüãïò.
                        the Moderator of the World Creators

                        Comment


                        • #13
                          Sid Meier's Civilization 4\Warlords\CvGameCoreDLL\CvPlot.cpp:

                          You can attach a txt but not a cpp file. So i attached a ".txt at the end. This has to be removed before compiling ;-)
                          CvPlot.cpp.txt -> CvPlot.cpp

                          Wherever i changed sth i wrote there "// TOM changed" so one can better find it

                          --- content of CvPlot.cpp:

                          bool CvPlot::canHaveBonus(BonusTypes eBonus, bool bIgnoreLatitude) const
                          ...
                          if (isPeak()) // LINE 1797
                          {
                          //return false;
                          return true; // TOM changed
                          }
                          ...
                          bool CvPlot::canHaveFeature(FeatureTypes eFeature) const
                          ...
                          if (isPeak()) // LINE 3078
                          {
                          //return false; // TOM changed
                          return true;
                          }
                          ...
                          bool CvPlot::isImpassable() const // LINE 3335
                          {
                          if (isPeak())
                          {
                          // return true; // TOM changed
                          return false;
                          }
                          ...
                          That are some nessessary changes i'd make. But i don't know if they are right:
                          You have to set up the whole SDK and compile the whole thing to the CvGameCoreDLL.dll.
                          Because MICROSOFT made an update and i didn#t find the old version anywhere it is not possible for me. But maybe some coder might be able to *help*

                          Thx for advise with ZIP-File. Done :-D
                          Attached Files
                          Last edited by Thror78; August 18, 2006, 04:33.

                          Comment


                          • #14
                            You can attach zip files if that makes it easier for you next time.
                            Ceeforee v0.1 - The Unofficial Civ 4 Editor -= Something no Civ Modder should ever be without =- Last Updated: 27/03/2009
                            "Just because I'm paranoid doesn't mean there's no conspiracy"

                            Comment


                            • #15
                              I am curious to see if it would work. It has been years since I tried to program anything and I had a lot to learn even then. (I went back to school I just graduated in May with a Ministry degree.)
                              Flash
                              Ἐí ἀñ÷ῇ ἦí ὁ ëüãïò, êáὶ ὁ ëüãïò ἦí ðñὸò ôὸí èåüí, êáὶ èåὸò ἦí ὁ ëüãïò.
                              the Moderator of the World Creators

                              Comment

                              Working...
                              X