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

    Gives Movement = 0

    Scheduled Pinned Locked Moved Map Making
    27 Posts 4 Posters 5.2k Views 4 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 wc_sumpton

      @beelee said in Gives Movement = 0:

      So if <option name="movement" value="0/> and you have a unit that gives movement
      <option name="givesMovement" value="1:russian_minor"/>

      This problem might be a couple of properties: "Selectable Zero Movement Units" and "Units May Give Bonus Movement".

      As to the first, I at one time submitted a change to so this would check transportation of unit, and dose it receive bonus movement. Ah well.

      Cheers...

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

        @wc_sumpton said in Gives Movement = 0:

        As to the first, I at one time submitted a change to so this would check transportation of unit, and dose it receive bonus movement. Ah well.

        guess you not a member yet 🙂

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

          @wc_sumpton

          so try false ? I guess easy enough to check 🙂

          Screenshot from 2024-08-28 12-34-02.png

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

            yea that didn't work lol. Didn't move at all lol

            well I guess player enforced be the way to go. No point in a request if yours already got shot down 🙂

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

              @beelee said in Gives Movement = 0:

              yea that didn't work lol. Didn't move at all lol

              First off can the russian_minor unit be selected? "Selectable Zero Movement Units" needs to be true. Also "Units May Give Bonus Movement" will need to be true.

              Also step "giveBonusMovement" should be left at default.

              Cheers...

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

                @wc_sumpton

                I have todo this in steps 🙂

                Heres unitAttachments I made the fctry move 1 should be 0 for our purposes 🙂

                Screenshot from 2024-08-28 15-30-00.png

                hmm .. i dont have "giveBonusMovement" listed. It's the Global 40 game that Veq and Bung did. Just modding it.

                Not sure how to go about it. Guess I'll just add it and see what happens lol

                oh yea so the russian_minor is a minor Fctry that can move if certain conditions are met. If I give it a movement factor, it can move.

                Edit
                so the Rail unit gives the Fctry a bonus move but if Fctry has zero move, it doesn't work.

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

                  @beelee

                  Did you get this figured out?

                  In TWW the is the Material. A 0-movement unit that can be transported. To select Material, "Selectable Zero Movement Units" needs to be true. But this allows all 0-movements to selected. And units need to be picked through so that these units are not selected. Ask @ubernaut or @Nothingtoseehere about this if it would be easier not to have to pick through factories all the time.

                  So, looking at MovePanel.jave at line 960:

                   if (!Properties.getSelectableZeroMovementUnits(getData().getProperties())) {
                        movableBuilder.and(Matches.unitCanMove());
                  }
                  

                  Just changing to add:

                        movableBuilder.and((Matches.unitCanMove())
                            .or(Matches.unitCanBeTransported()));
                  

                  Note there is an added "(" after the "and" because the "or" needs to be contained. This would allow Material to be selected, without having the other factories clutter the movement screen.

                  Now one more change:

                        movableBuilder.and((Matches.unitCanMove())
                            .or(Matches.unitCanBeTransported())
                            .or(Matches.unitCanBeGivenBonusMovementByFacilitiesInItsTerritory(mouseCurrentTerritory,
                                getCurrentPlayer())));
                  

                  With this the russian_minor which has a movement of 0 and no transportation cost but can move if a Rail is there, could now be chosen to move.

                  To me, IMHO, this is a simple QoL (Quality of Life) change that greatly enhances gameplay. But..

                  And there is always a "But"...

                  Cheers...

                  ubernautU B 2 Replies Last reply Reply Quote 2
                  • ubernautU Offline
                    ubernaut Lobby Moderators @wc_sumpton
                    last edited by ubernaut

                    @wc_sumpton not sure what "have to pick through factories all the time" means but it sounds like it would break the game to me. very often move them from non factory starting points and even shuttle them between different kinds of transports.

                    "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

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

                      @wc_sumpton

                      hey that'd be awesome ! Massive jag on last night. Still smoothing out. I'll process it more soon.

                      So is it the testing ? That why your java git stuff doesn't get accepted ?

                      I mean you test it on the games so wtf

                      If they want more developers maybe a link to how do the testing ?

                      Idk probably have to go to some college for that

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

                        @ubernaut

                        Thanks for commenting. What we're talking about is the unit selection for movement. When tapping a territory and a window displays those units that can be selected to move. TWW use "Selectable Zero Movement Units" true to allow for the selection on Materials, but this also allows for the selection of flagpoles, entrenchments, barracks, docks etc.. This does not change gameplay, all this does is allow some 0-movement units, those that can be transported or those that receive movement via another unit to still be selected, while other are still restricted, via a false setting. A true setting, like TWW would have no effect.

                        How many times has a unit, that can't move, been selected by mistake.

                        That's all we are talking about.

                        Cheers...

                        ubernautU 1 Reply Last reply Reply Quote 2
                        • ubernautU Offline
                          ubernaut Lobby Moderators @wc_sumpton
                          last edited by

                          @wc_sumpton gotcha

                          "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

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

                            @ubernaut

                            You know I have to do this! I just love doing things like this!

                            They say a picture is worth...
                            Screenshot 2024-08-29 183140.png
                            TWW combat movement select screens. On the left "Selectable Zero Movement Units" true on the right, w/modification, false.
                            Screenshot 2024-08-29 183251.png
                            Same as above, but for non-combat movement. Note that Material is selectable in both. Also, the units that do not appear in the selection cannot be selected with the mouse pointer.

                            Cheers...

                            ubernautU 1 Reply Last reply Reply Quote 3
                            • ubernautU Offline
                              ubernaut Lobby Moderators @wc_sumpton
                              last edited by

                              @wc_sumpton i like it! 🙂

                              "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

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

                                @ubernaut

                                WoW that was quick!

                                Cheers...

                                B 2 Replies Last reply Reply Quote 3
                                • B Offline
                                  beelee @wc_sumpton
                                  last edited by

                                  @wc_sumpton o

                                  oh boy this looks good 🙂

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

                                    @wc_sumpton is this a PR or can be done as is already ?

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

                                      @beelee

                                      I tried, back when TWW was being developed. There are so many units with that map. But..

                                      No PR. All I'm trying to do is show what a little care can do for the gameplay experience. If one of the other developers want to run with this. Then Good! At least good would come of it.

                                      But as it sits now. Look at the pictures and weep...

                                      Sorry.

                                      Cheers...

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

                                        @wc_sumpton 😧

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

                                          @beelee said in Gives Movement = 0:

                                          @wc_sumpton 😧

                                          You've made my day!

                                          Cheers...

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

                                            @ubernaut, @Nothingtoseehere

                                            You play TWW, my question is during non-combat movement, are all units in the embattled territory, including those that have already been moved and battled, selectable for movement? I'm not asking if these unit can move. I'm only if they are selectable?

                                            Cheers...

                                            N ubernautU 2 Replies Last reply Reply Quote 0

                                            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
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums