Announcement

Collapse
No announcement yet.

[MOD] Building Demolition mod

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

  • [MOD] Building Demolition mod

    Updated Nov. 6th to version 1.0

    I always thought the game needed a building demolition feature accessible from within a city- without using the Wolrd Builder!

    This mod solves the problem...

    Usage:

    Press CTRL+D from within a city overview screen (apparantly mouse events are not handled when in this screen! ) to demolish a building. Currently you can demolish even world wonders... though I will look into preventing that

    Installation:

    Download the .rar file and extract contents into your My Games\Sid Meier's Civilization 4 folder -- NOTE: this is NOT your installation folder! It's the one under MY Documents.

    This will place a new CvEventManager.py file into your Cusotm Assets\Python folder.

    The only drawback to this is if you already modified your CvEventManager.py file this will overwrite any modifications you made

    To uninstall this mod/feature just go in and delete this file and the game will use the default EventManager located in the installation folder.

    Known Issues:

    None right now...

    Things updated for version 1.0

    - You can no longer demolish World Wonders (thanks Andrew1999!)

    -You can no longer demolish the Palace (since you can move them already by builing it in another city)

    -You get a sound effect when the building is demolished

    -The sections of code this mod needs in CvEventManager.py are now clearly marked so if you want ed to add this feature but already made some custom modifications to your EventManager file it should be easier to cut & paste what's required

    Download (Located on Apolyton's file directory):

    Go To Download
    Last edited by TheDarkside; November 6, 2005, 13:10.

  • #2
    screen shot
    Attached Files

    Comment


    • #3
      Yay! Now we can get rid of those pesky coal power plants once hydro power becomes available!
      Mylon Mod - Adressing game pace and making big cities bigger.
      Inquisition Mod - Exterminating heretic religions since 1200 AD

      Comment


      • #4
        Ack! Silly silly me... the hot key is CTRL + D ! Not R ...

        sorry about that

        Comment


        • #5
          Please submit the mod to the directory.
          Creator of the Civ3MultiTool

          Comment


          • #6
            Wow, you did some great job . Maybe you can also build a mod (or put it in this mod) so that you can demolish a city?
            Last edited by Ramsses; November 4, 2005, 02:20.
            Greetz, Ramses

            Comment


            • #7
              Ooh, nifty.
              XBox Live: VovanSim
              xbox.com (login required)
              Halo 3 Service Record (I fail at FPS...)
              Spore page

              Comment


              • #8
                (Direct link to file removed, use the Apolyton Directory)
                Last edited by TheDarkside; November 4, 2005, 15:11.

                Comment


                • #9
                  Originally posted by Ramsses
                  Wow, you did some great job . Maybe you can also build a mod (or put it in this mod) so that you can demolish a city?
                  That would actually be really easy to do now if I did it with a keyboard shortcut but someone is already working on this using a nice little button!

                  Comment


                  • #10
                    Ah, can't wait . Will you post it in this thread?
                    Greetz, Ramses

                    Comment


                    • #11
                      Originally posted by Ramsses
                      Ah, can't wait . Will you post it in this thread?
                      hi there, it's now available through the Apolyton File Directory. I provided a link on the original post of this thread

                      edit: whoops looks like I misunderstood you there! You were referring to the abandon city feature it seems?... well since someone else is working on that I really don't want to step on their toes or anything...
                      Last edited by TheDarkside; November 5, 2005, 00:16.

                      Comment


                      • #12
                        I found this function call while dredging through the events file:

                        Code:
                        isWorldWonderClass(gc.getBuildingInfo(iBuildingType).getBuildingClassType())
                        That should tell you if you're trying to raze a wonder. I assume you can get iBuilding type from the building object you're destroying.

                        Comment


                        • #13
                          What a great mod! Thanks.

                          Comment


                          • #14
                            Originally posted by Andrew1999
                            I found this function call while dredging through the events file:

                            Code:
                            isWorldWonderClass(gc.getBuildingInfo(iBuildingType).getBuildingClassType())
                            That should tell you if you're trying to raze a wonder. I assume you can get iBuilding type from the building object you're destroying.
                            Oh nice, thanks Andrew for looking into that!

                            As soon as I get some free time I'll work that in.

                            Comment


                            • #15
                              OK some good news. Thanks to Andrew I now check for World Wonders- restricting you to only being able to demolish regular buildings or national wonders.

                              And I just figured out how to refresh the screen so that the list of buildings on the left side of the city screen will refresh right away- AND the buttons on the bottom will refresh so you can start building the same building again (If you were crazy or something )

                              I'll package these up in a new distribution as soon as I get a few more things I want to add...

                              Comment

                              Working...
                              X