Announcement

Collapse
No announcement yet.

Knee-Deep in SLIC

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

  • #16
    yes that code could work
    "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


    • #17
      Originally posted by The Big Mc
      I would like to see it when it is done
      Patience, little grasshopper

      I should be done this month unless any bugs show up in testing that passed me by so far.
      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


      • #18
        hoow wise master I have travelled many nights to try to find a slicer with my skill could you point me in the direction of a master slicer.
        "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


        • #19
          Originally posted by MrBaggins
          Out of curiousity, do we know for a fact that *this*

          Quote by MrOgre
          Important note! As this documenation is being prepared, the first patch for CTP2 is about to be released. Unfortunately a bug with functions was discovered too late to fix. Specifically, in some cases, using members of unit, army, city, and location variables that are function parameters may not always work as expected. There is, however, a workaround. Copy the function parameter to a local variable and use that variable instead.


          was fixed, in every case?
          In that case I would recomment to read the small sentence under the code:

          The author apologizes for this and promises that if there is another patch it will be fixed. But the above workaround should always work.
          Most important here is the little word: if. They promissed to fix it if there will be another patch but as we all know there was no more patch therefore this bug isn't fixed.

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

          Comment


          • #20
            weren't there two patches?

            1.1

            and

            1.11


            Anyway... I guess its wise to be wary of the warning, and copy these non-ints locally, when you use them.

            Comment


            • #21
              tipical for 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


              • #22
                Originally posted by MrBaggins
                weren't there two patches?

                1.1

                and

                1.11


                Anyway... I guess its wise to be wary of the warning, and copy these non-ints locally, when you use them.
                No there is just one patch v1.1 and v.1.11 are idential the only different is the installer. The installer of v.1.1 had some problems on non US/UK English OS versions IIRC. So the content is the same.

                To the promisse again they said if and not when, so it was at this time already questionable if there would be another patch.

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

                Comment


                • #23
                  Wired I should be the last person posted in this thread, but obviously the post wasn't registrated.

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

                  Comment


                  • #24
                    Well I just tried this and good a lot of sytax errors:

                    Code:
                    HandleEvent(SendGood)'MG_GiveGoodASound'post{
                    	message(1,'MGGoodMessage');
                    }
                    
                    MessageBox'MGGoodMessage'{
                    	Text(ID_MG_GOOD_MESSAGE);
                    }
                    
                    MG_GOOD_MESSAGE "Ressurce hat: {ressourceDB(value[0])}, {ressourceDB(value[0]).Sound}, {ressourceDB(value[0]).SpriteID}, {ressourceDB(value[0]).Gold}, {ressourceDB(value[0]).Food}, {ressourceDB(value[0]).Production}, {ressourceDB(value[0]).Probability}"
                    The errors were like this:

                    arguments not implemented
                    Function calls not implemented

                    Well I belive this as most of the fields in the Good.txt don't do anything. But this means the RessourceDB function is useless.

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

                    Comment


                    • #25
                      And again a not registered post.

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

                      Comment


                      • #26
                        I think it just means you can't call functions from the string files. You need to assign it to a global in the SLIC, and then pass that to the message box.
                        ResourceDB() is an int_f function that returns a number given a string, so it can't be used in the string files.
                        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


                        • #27
                          I had a problem at the week end to I put in some slic for my science victory and got an error. I tried to pass a player into a variable and then use that variable to find out the number of cities the player had.
                          "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