Announcement

Collapse
No announcement yet.

Anyone who knows C++

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

  • Anyone who knows C++

    I am trying to add some modifications in the UI.
    I want to decrease the population per pop number from 10,000 to 1,000.
    So i heard Locutus saying that the UI is based on C++. Then i looked for the integer to this number in the UI and I found out it is PopulationValue.
    So in C++ I want to write something like
    Code:
    PopulationValue = PopulationValue/10
    It is possible to write such C++ code that would work in the UI files?
    "Kill a man and you are a murder.
    Kill thousands and you are a conquer.
    Kill all and you are a God!"
    -Jean Rostand

  • #2
    Add a ';' to that and it's good C code alright. But where did you want to insert it so that it works? AFAIK you need the source code for that...
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

    Comment


    • #3
      Actually this was going to be the question after i had the code. Still I was think in insert inside the file i want to change.
      "Kill a man and you are a murder.
      Kill thousands and you are a conquer.
      Kill all and you are a God!"
      -Jean Rostand

      Comment


      • #4
        Anyone who knows C++...

        want to write a program to decode sprites?
        Concrete, Abstract, or Squoingy?
        "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis

        Comment


        • #5
          Re: Anyone who knows C++

          Originally posted by Pedrunn
          PopulationValue = PopulationValue/10
          I'm making my living with C++. As Locutus said, if you add a ; it will be correct. A shorter form would be:

          Code:
          PopulationValue /= 10;

          Comment


          • #6
            Sir Ralph, don't confuse these poor old kids any more than they already are
            Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

            Comment


            • #7
              Maybe that's why the SLIC documentation is so cryptic: it was written by programmers.

              Comment


              • #8
                I could have told you that years ago (in fact, I think I did)...
                Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                Comment


                • #9
                  just don’t go to activsion for the source code you’ll get some bloke on the end of an email going I think you may have to look at one of the patches for that and he gets pretty upset with you on the next e-mail after you tell him Satan him self is more help full when you want to sell your soul.
                  "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                  The BIG MC making ctp2 a much unsafer place.
                  Visit the big mc’s website

                  Comment


                  • #10
                    Now if you add commas and periods, that would be wonderful and it could be possible to figure, what your point is...

                    Comment


                    • #11
                      it is in the style of the bloke from activsion
                      "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                      The BIG MC making ctp2 a much unsafer place.
                      Visit the big mc’s website

                      Comment


                      • #12
                        Sir Ralph, would you consider attempting to decode the sprite files for the greater good?
                        Concrete, Abstract, or Squoingy?
                        "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis

                        Comment


                        • #13
                          wombat i am looking into that for you if you want to help mail me
                          "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                          The BIG MC making ctp2 a much unsafer place.
                          Visit the big mc’s website

                          Comment


                          • #14
                            Originally posted by Immortal Wombat
                            Sir Ralph, would you consider attempting to decode the sprite files for the greater good?
                            If it fits in my abilities and (more important) time frame, why not. Although I still don't understand what you want .

                            Comment


                            • #15
                              he wants a sprite decompiler
                              "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                              The BIG MC making ctp2 a much unsafer place.
                              Visit the big mc’s website

                              Comment

                              Working...
                              X