TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Trying to get foreach to work

    Scheduled Pinned Locked Moved Map Making
    19 Posts 3 Posters 2.0k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • wc_sumptonW Offline
      wc_sumpton @beelee
      last edited by

      @beelee

      You are using $ParaBoost$ but you are showing the variables for ParaBoostTTys. I do not find a variable list for just ParaBoost. Maybe you meant ParaBoostTTys in the foreach?

      Cheers...

      1 Reply Last reply Reply Quote 1
      • wc_sumptonW Offline
        wc_sumpton @beelee
        last edited by wc_sumpton

        @beelee

        By the way, what are you using to edit/show the xml? I see no line numbers, and it could be hard to point to certain things without them.

        Cheers...

        B 2 Replies Last reply Reply Quote 1
        • B Online
          beelee @wc_sumpton
          last edited by

          @wc_sumpton

          emacs The line is shown on the bottom bar

          wc_sumptonW 1 Reply Last reply Reply Quote 0
          • B Online
            beelee @wc_sumpton
            last edited by

            @wc_sumpton

            yea it fired up 🙂 Idk if the behavior will be what I want but a step in the right direction lol

            I swear, I look at things for hours and still miss stuff like that lol

            1 Reply Last reply Reply Quote 0
            • wc_sumptonW Offline
              wc_sumpton @beelee
              last edited by

              @beelee

              Thank you. I was comparing what was in the downloaded xml, to what was shown. At or about line 32809 was a line like:
              <option name="placement" value="@ParaBoost@:ParaBoost" count="1"/>
              But the screen shows the line like:
              <option name="placement" value="@ParaBoost@:german_paraBoost" count="1"/>

              So, the difference was throwing me off a bit.

              Cheers...

              B 1 Reply Last reply Reply Quote 1
              • B Online
                beelee @wc_sumpton
                last edited by

                @wc_sumpton

                yea I updated to "german_paraBoost" after I posted the xml. I should have posted the new xml as well 🙂

                wc_sumptonW 1 Reply Last reply Reply Quote 0
                • wc_sumptonW Offline
                  wc_sumpton @beelee
                  last edited by

                  @beelee 👍 :astonished_face:

                  B 2 Replies Last reply Reply Quote 1
                  • B Online
                    beelee @wc_sumpton
                    last edited by

                    @wc_sumpton

                    heh heh yea it was like one minute after I posted the xml that I saw it.

                    It.only changed a couple characters, Surprised it changed the line number.

                    Thanks for the help as always 🙂

                    1 Reply Last reply Reply Quote 1
                    • B Online
                      beelee @wc_sumpton
                      last edited by

                      @wc_sumpton

                      lol I think it worked or at least partially lol

                      Screenshot from 2024-07-22 16-20-42.png

                      wc_sumptonW 1 Reply Last reply Reply Quote 1
                      • wc_sumptonW Offline
                        wc_sumpton @beelee
                        last edited by

                        @beelee

                        Go! Go! Go!

                        Cheers...

                        B 1 Reply Last reply Reply Quote 2
                        • B Online
                          beelee @wc_sumpton
                          last edited by

                          @wc_sumpton

                          so sadly, i can't get it to work before combat. I changed "battle" to before combatMove. That didn't work.

                          Probably has something todo with the condition(s)

                          I will continue to try and figure it out 🙂

                          this latest xml

                          Screenshot from 2024-07-22 18-36-26.png

                          global_40_expansion_uhd_boxes.xml

                          wc_sumptonW 1 Reply Last reply Reply Quote 1
                          • wc_sumptonW Offline
                            wc_sumpton @beelee
                            last edited by

                            @beelee

                            Try replacing germanscombatMove with germansCombatMove at line ~ 32810.

                            Sometimes the simple misspellings can be very hard to find.

                            Cheers...

                            B 1 Reply Last reply Reply Quote 2
                            • B Online
                              beelee @wc_sumpton
                              last edited by

                              @wc_sumpton
                              I feel so stupid lol

                              wc_sumptonW VictoryFirstV 2 Replies Last reply Reply Quote 2
                              • wc_sumptonW Offline
                                wc_sumpton @beelee
                                last edited by

                                @beelee

                                Don't, it took me 3+ hours to find. And I have the fresh eyes so to speak... :zany_face:

                                Cheers...

                                B 1 Reply Last reply Reply Quote 3
                                • B Online
                                  beelee @wc_sumpton
                                  last edited by

                                  @wc_sumpton

                                  Das ist gut 🙂

                                  Screenshot from 2024-07-23 12-25-34.png

                                  1 Reply Last reply Reply Quote 2
                                  • VictoryFirstV Offline
                                    VictoryFirst @beelee
                                    last edited by

                                    @beelee said in Trying to get foreach to work:

                                    @wc_sumpton
                                    I feel so stupid lol

                                    Hehe don't worry, I make mistakes like these all the time 🙂 germanCombatMove, attachTo="Russia", option name="condition", mixing up attachmentConditionMinesSZ11 with attachmentConditionMineSZ11... I've seen it all in just four days lol 🙂

                                    1 Reply Last reply Reply Quote 2
                                    • VictoryFirstV Offline
                                      VictoryFirst
                                      last edited by

                                      @beelee
                                      Lol see, I just mixed up attachmentCondition... with conditionAttachment :face_with_tears_of_joy:

                                      B 1 Reply Last reply Reply Quote 2
                                      • B Online
                                        beelee @VictoryFirst
                                        last edited by

                                        @victoryfirst

                                        well thanks to wc the paratroopers auto deploy now. Guess I need to do another update lol

                                        1 Reply Last reply Reply Quote 2

                                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                        With your input, this post could be even better 💗

                                        Register Login
                                        • 1 / 1
                                        • First post
                                          Last post
                                        Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums