Announcement

Collapse
No announcement yet.

Problem Adding Improvements

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

  • Problem Adding Improvements

    REcently I tried to add The Library and the city clock from CTP using Martin G's TGAs, and I got a error at the beginning of the game. I added to the buildings, the unit Icon and the history, but it didn't want to work.

  • #2
    Cube it would be helpful if you give here the code of you extra buildings and the exact error message. I have to guess that the error lies in the uniticon.txt. Now here is an example of a building from the uniticon.txt: The incubation center. By the way you can add a lot of stuff to the uniticon.txt and the Great_Library.txt without any effect. To make CTP2 recordnize the stuff you need according entries in the advance.txt, wonder.txt et cetera. Here is it the building.txt.

    buildings.txt:

    ################################################## ##########

    IMPROVE_INCUBATION_CENTER {
    DefaultIcon ICON_IMPROVE_INCUBATION_CENTER
    Description DESCRIPTION_IMPROVE_INCUBATION_CENTER
    EnableAdvance ADVANCE_HUMAN_CLONING

    PrerequisiteBuilding IMPROVE_DRUG_STORE
    PrerequisiteBuilding IMPROVE_HOSPITAL

    ProductionCost 5500
    Upkeep 15
    RaiseOvercrowdingLevel 12
    }

    ################################################## ##########

    ICON_IMPROVE_INCUBATION_CENTER links to the uniticon.txt:

    ICON_IMPROVE_INCUBATION_CENTER { FirstFrame "UPIP033L.TGA" Movie "NULL" Gameplay "IMPROVE_INCUBATION_CENTER_GAMEPLAY" Historical "IMPROVE_INCUBATION_CENTER_HISTORICAL" Prereq "IMPROVE_INCUBATION_CENTER_PREREQ" Vari "IMPROVE_INCUBATION_CENTER_STATISTICS" Icon "UPIP033L.TGA" LargeIcon "NULL" SmallIcon "NULL" StatText "IMPROVE_INCUBATION_CENTER_STATISTICS" }

    For the images you have to define FirstFrame for the Great Library and Icon for the city build screen. Gameplay, Historical, Prereq and Vari are text entries used in the Great Library. StatText is text entry used in the city build screen. IMPROVE_INCUBATION_CENTER_GAMEPLAY, IMPROVE_INCUBATION_CENTER_HISTORICAL, IMPROVE_INCUBATION_CENTER_PREREQ, IMPROVE_INCUBATION_CENTER_STATISTICS can be found in the Great_Library.txt.

    I hope tese pieces of information will help.

    -Martin



    [This message has been edited by Martin Gühmann (edited May 03, 2001).]
    Civ2 military advisor: "No complaints, Sir!"

    Comment


    • #3
      This is what i added to Buildings.txt
      IMPROVE_CITY_CLOCK {
      DefaultIcon ICON_IMPROVE_CITY_CLOCK
      Description DESCRIPTION_IMPROVE_CITY_CLOCK
      EnableAdvance ADVANCE_AGE_OF_REASON
      ProductionCost 800
      Upkeep 8
      ProductionPercent 0.05
      CommercePercent 0.05
      }

      IMPROVE_LIBRARY {
      DefaultIcon ICON_IMPROVE_LIBRARY
      Description DESCRIPTION_IMPROVE_LIBRARY
      EnableAdvance ADVANCE_WRITING
      ProductionCost 300
      Upkeep 3
      SciencePercent 0.05
      }
      And this what I added to Uniticon.txt
      ICON_IMPROVE_LIBRARY { FirstFrame "CM012F.TGA" Movie "NULL" Gameplay "IMPROVE_LIBRARY_GAMEPLAY" Historical "IMPROVE_LIBRARY_HISTORICAL"Prereq "IMPROVE_LIBRARY_PREREQ" Vari "IMPROVE_LIBRARY_STATISTICS" Icon "CM012F.TGA" LargeIcon "NULL" SmallIcon "NULL" StatText "IMPROVE_LIBRARY_STATISTICS" }

      ICON_IMPROVE_CITY_CLOCK { FirstFrame "CM022F.TGA" Movie"NULL" Gameplay "IMPROVE_CITY_CLOCK_GAMEPLAY" Historical "IMPROVE_CITY_CLOCK_HISTORICAL" Prereq "IMPROVE_CITY_CLOCK_PREREQ" Vari "IMPROVE_CITY_CLOCK_STATISTICS" Icon"CM022F.TGA" LargeIcon "NULL" SmallICon "NULL" StatText "IMPROVE_CITY_CLOCK_STATISTICS" }
      It says expected string Id and required field productioncost missing and upkeep missing

      Comment


      • #4
        The code itself seems fine.
        ADVICE>>>
        I humbly admit I've never had any luck wahtsoever adding anything to the game by simply hacking into the text files. Instead, I use a freeware program called Editplus, which makes modification much easier and has made it work for me (finally). I think you can get it through Locutus's website.
        If you use it already sometimes it helps to change something, change it back, then save the document again. This is especially prone to happen with numbers and values, which fits your case perfectly.

        Hope this helps.
        -CB
        [This message has been edited by Chris B (edited May 04, 2001).]
        "It is ridiculous claiming that video games influence children. For instance, if Pac-Man affected kids born in the 80's we should by now have a bunch of teenagers who run around in darkened rooms and eat pills while listening to monotonous electronic music."

        Comment


        • #5
          quote:

          Originally posted by Cube on 05-04-2001 09:58 PM
          This is what i added to Buildings.txt
          IMPROVE_CITY_CLOCK {
          DefaultIcon ICON_IMPROVE_CITY_CLOCK
          Description DESCRIPTION_IMPROVE_CITY_CLOCK
          EnableAdvance ADVANCE_AGE_OF_REASON
          ProductionCost 800
          Upkeep 8
          ProductionPercent 0.05
          CommercePercent 0.05
          }

          IMPROVE_LIBRARY {
          DefaultIcon ICON_IMPROVE_LIBRARY
          Description DESCRIPTION_IMPROVE_LIBRARY
          EnableAdvance ADVANCE_WRITING
          ProductionCost 300
          Upkeep 3
          SciencePercent 0.05
          }




          Change
          Description DESCRIPTION_IMPROVE_CITY_CLOCK
          Description DESCRIPTION_IMPROVE_LIBRARY

          on your entries to

          Description DESCRIPTION_IMPROVE_ARENA

          and this will solve your problem

          I think these description lines are carryovers from CTP1 - they are part of the CTP2 code but they need to be left alone. They do not affect gameplay.
          Yes, let's be optimistic until we have reason to be otherwise...No, let's be pessimistic until we are forced to do otherwise...Maybe, let's be balanced until we are convinced to do otherwise. -- DrSpike, Skanky Burns, Shogun Gunner
          ...aisdhieort...dticcok...

          Comment


          • #6
            I also tried to add a building to CTP2. Here is my code:

            Code:
            ############################################################
            
            IMPROVE_MIND_CONTROL_EMITTER {
               DefaultIcon ICON_IMPROVE_MIND_CONTROL_EMITTER
               Description DESCRIPTION_IMPROVE_MIND_CONTROL_EMITTER
               EnableAdvance ADVANCE_MIND_CONTROL
            
               ProductionCost 10000
               Upkeep 50
               NoUnhappyPeople
               PreventConversion 50
               PreventSlavery 100
            }
            	
            ############################################################
            There were no problems with the Description entry.

            Now here is the statement of the Apolyton Modification Section:

            quote:



            Description - This string is not used within the game but must reference a valid String ID from one of the string files.




            The string file is called: junk_str.txt

            Here is my addition to this file:

            DESCRIPTION_IMPROVE_MIND_CONTROL_EMITTER "junkstring_DESCRIPTION_IMPROVE_IMPROVE_MIND_CONTRO L_EMITTER"

            That's the reason why my add-building works. But Hexagonian is absoluty right, you can use any valid Description from junk_str.txt.

            -Martin
            Civ2 military advisor: "No complaints, Sir!"

            Comment


            • #7
              Thanks I'll try that. Does any one know If Theres such a thing as a default Improvement Icon, becuase I want to add a blacksmith building and I don't have an icon or know if there's one available for download.

              Comment


              • #8
                Take a look into the uniticon.txt and you will find this:

                ICON_IMPROVE_DEFAULT { FirstFrame "UPLG001.TGA" Movie "NULL" Gameplay "NULL" Historical "NULL" Prereq "NULL" Vari "NULL" Icon "UPIP001L.tga" LargeIcon "NULL" SmallIcon "NULL" StatText "NULL" }

                I never took a look on these *.tga files but you can do it. Just replace one of the FirstFrame andIcon entries for one of the other buildings to UPIP001L.tga and than it is available, but do not ask me what you will see. It can be a blanc or something different or another building.

                -Martin


                Civ2 military advisor: "No complaints, Sir!"

                Comment

                Working...
                X