Announcement

Collapse
No announcement yet.

Units.txt problems

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

  • Units.txt problems

    I am not sure how many people out there have played with units.txt, nice file, NICE BIG FILE!!

    I am making a scenario, testing and all is great, except when I tried to make it so no units could pirate, I got an error message after crashing to desktop, something very similiar to "CANT_PIRATE line 490 is not a flag"

    I have altered files befooore, when workng on my civil war scenario and had it down pat, but now I am back having a go at it.

    My question is this,-

    How can i tell what line i am on? Is there a way?

    I know what I could do, start over, change one unit at a time, and start game, process of elimination I reckon, to se what it is I messed up.

    I am just looking for any way to count lines, does the file count line down from top of page, or does it start with I believe "73 units" or whatever the count is or does it count only lines actually using a description, ect.?? just wanted to know if anyone has encountered this situation, that way you could go straight to that line and repair the code you messed up.

    Thanks

    Troll

    P.S.

    I am going to work on a Civil War Scenario, a little at a time, but it takes soo much work, I may just be whizzing in the wind, albeit my own whizz, my own wind...so it may not actually get past the "Want to" stage

    Troll
    Hi, I'm RAH and I'm a Benaholic.-rah

  • #2
    Your using NotePad (or WordPad) now, I assume? You don't want to count lines manually, that's gonna go horribly wrong. You want to use a decent text editor instead. I'm a big fan of EditPlus myself, but that's also because it has support for SLIC files (if you download an additional syntax file). Another popular editor is UltraEdit. Both these programs are shareware but I'm sure there are also similar freeware programs out there (but at least in case of EditPlus it's no problem to use the unregistered version if you want).
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

    Comment


    • #3
      Originally posted by Locutus
      Your using NotePad (or WordPad) now, I assume? You don't want to count lines manually, that's gonna go horribly wrong. You want to use a decent text editor instead. I'm a big fan of EditPlus myself, but that's also because it has support for SLIC files (if you download an additional syntax file). Another popular editor is UltraEdit. Both these programs are shareware but I'm sure there are also similar freeware programs out there (but at least in case of EditPlus it's no problem to use the unregistered version if you want).
      Thanks a lot!

      Thats exactly what I wanted and needed!

      I am using EditPlus, works great, although the command lines are off 1 number(no biggie) from what error is reported to the actual line the error is on, as in "CANT_PILLAGE is not a unit flag" on say line 627, and the actual line is line 626 according to EditPlus.

      Ok, nowthats resolved, NEXT biggie


      As I start deleting theses errors I am finding that all my "CANT_PILLAGE" & CANT_PIRATE" Lines seem to have to come out, I have removed 7 so far, a total of 14 errors.

      My next question, and my feeble 2 mb of Brain has long since been used up! is, Is there a way to keep from pirating or keep from pillaging, I am currently simply addding a letter "T" to CAN_PILLAGE & CAN_PIRATE under special flags in the units.txt.

      I successfully did this before, but alas, forgot exactly how it took place??

      I was wondering should I move the "CANT_PILLAGE" & "CANT_PIRATE" above the special flags??..or am I missing something??
      I shall look in the archives to see if I can find if someone answered this previously or not, or did I accidently discover this on my own, deep within the dark confines of my catle chemistry lab?

      Off to modding work I go!!

      Troll
      Hi, I'm RAH and I'm a Benaholic.-rah

      Comment


      • #4
        Originally posted by Troll


        Thanks a lot!

        Thats exactly what I wanted and needed!

        I am using EditPlus, works great, although the command lines are off 1 number(no biggie) from what error is reported to the actual line the error is on, as in "CANT_PILLAGE is not a unit flag" on say line 627, and the actual line is line 626 according to EditPlus.

        Ok, nowthats resolved, NEXT biggie


        As I start deleting theses errors I am finding that all my "CANT_PILLAGE" & CANT_PIRATE" Lines seem to have to come out, I have removed 7 so far, a total of 14 errors.

        My next question, and my feeble 2 mb of Brain has long since been used up! is, Is there a way to keep from pirating or keep from pillaging, I am currently simply addding a letter "T" to CAN_PILLAGE & CAN_PIRATE under special flags in the units.txt.

        I successfully did this before, but alas, forgot exactly how it took place??

        I was wondering should I move the "CANT_PILLAGE" & "CANT_PIRATE" above the special flags??..or am I missing something??
        I shall look in the archives to see if I can find if someone answered this previously or not, or did I accidently discover this on my own, deep within the dark confines of my catle chemistry lab?

        Off to modding work I go!!

        Troll
        No, I tried to move to another location the "CANT_PIRATE & CANT_PILLAGE" but the computer files look for the default command that should go there, like "BATTLEFIELD_RANGE" in this particular instance.

        Off to see more options, as one fine individual said to me..once, a long time ago>>>>>>>

        *EDIT*

        *TEST*

        +EDIT+

        +TEST+

        I shall perservere!

        Troll
        Hi, I'm RAH and I'm a Benaholic.-rah

        Comment


        • #5
          Forgive my ignorance,forgive my memory loss and forgive me for posting three in a row

          Immortal Wombat
          Prince
          forever.

          Dec 2000

          08-04-2002 01:42



          CANT_BUILD is a flag, CANT_PIRATE and CANT_PILLAGE are not, if you wish to remove that ability, just delete the flag entirely.

          ie. Find the unit you wish to remove the ability, and delete the line CAN_PILLAGE and CAN_PIRATE.




          __________________
          Wasted Life
          Creative Consultant, CTP2 MODCO (...we listen to OUR fans)
          "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


          This was from a previous post!

          I am sorry to keep posting, i shall now move forward!

          (Hoping Solver Hall doesnt summons his number up!!


          Troll
          Hi, I'm RAH and I'm a Benaholic.-rah

          Comment


          • #6
            /me watching
            Solver, WePlayCiv Co-Administrator
            Contact: solver-at-weplayciv-dot-com
            I can kill you whenever I please... but not today. - The Cigarette Smoking Man

            Comment


            • #7
              Good to see you figured it out on your own and that you're making progress

              And don't worry, Solver officially has no jurisdiction here. If he wants to give you a hard time, he'll have to get past me first
              Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

              Comment


              • #8
                Past you first? Hardly Locutus, I would give him a nice runner if I wished .
                Solver, WePlayCiv Co-Administrator
                Contact: solver-at-weplayciv-dot-com
                I can kill you whenever I please... but not today. - The Cigarette Smoking Man

                Comment


                • #9
                  Ah, but I would take the matter up to the Supreme Court of Apolyton, aka the Staff Room Torture of regular posters is prohibited by the Miranda act you know
                  Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                  Comment


                  • #10
                    /me wonders if he should mention theBigMc's mental torture
                    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


                    • #11


                      but he's not a staff member...
                      Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                      Comment


                      • #12
                        It was my understanding that the Miranda Act covered torture by any poster
                        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
                          Well, they never convicted ottok
                          Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                          Comment


                          • #14
                            He was acquited on the grounds of Suomi Ridiculum no?
                            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


                            • #15
                              Ah, yes, that's true...

                              Well, I'm sure we could make The Big Mc an honourary Fin...
                              Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                              Comment

                              Working...
                              X