Moving to Git

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PowerDiver
    Prophet
    • Mar 2008
    • 2820

    #46
    There is a bug in decrease_stat due to cloned code. If you try to decrease a stat when it is fully drained, nothing happens. It shouldn't be surprising I'm the only one who ever encountered this. I'll submit a fix some week or other. However, so long as I am mucking with stat code:

    Should we go back to 3.1.0 approach of stat increases always being 1 below 18, and 10 percentiles at 18 or above? That was reverted due to lack of stat potions, but with rarity changes stats are easier to get now.

    Comment

    • d_m
      Angband Devteam member
      • Aug 2008
      • 1517

      #47
      Originally posted by PowerDiver
      Should we go back to 3.1.0 approach of stat increases always being 1 below 18, and 10 percentiles at 18 or above? That was reverted due to lack of stat potions, but with rarity changes stats are easier to get now.
      I would be fine with this.
      linux->xterm->screen->pmacs

      Comment

      • d_m
        Angband Devteam member
        • Aug 2008
        • 1517

        #48
        Originally posted by fizzix
        Ok, I've just spent about two hours trying to merge the master branch into my own and I've come to the conclusion that I don't understand at all how git works.
        I often have trouble iguring out the correct application of branch/merge/checkout/pull/push. I've been taking notes on things I do in Git in a textfile--eventually I'm going to try to create a section in the wiki for how to do things.

        Do you use IRC at all? #angband-dev has a lot of people who are better at Git than I am and often help me (elly, takkaria, magnate, myshkin, etc, etc). I definitely recommend it.
        linux->xterm->screen->pmacs

        Comment

        • takkaria
          Veteran
          • Apr 2007
          • 1951

          #49
          Originally posted by PowerDiver
          There is a bug in decrease_stat due to cloned code. If you try to decrease a stat when it is fully drained, nothing happens. It shouldn't be surprising I'm the only one who ever encountered this. I'll submit a fix some week or other. However, so long as I am mucking with stat code:

          Should we go back to 3.1.0 approach of stat increases always being 1 below 18, and 10 percentiles at 18 or above? That was reverted due to lack of stat potions, but with rarity changes stats are easier to get now.
          +1 from me
          takkaria whispers something about options. -more-

          Comment

          • takkaria
            Veteran
            • Apr 2007
            • 1951

            #50
            Originally posted by fizzix
            Ok, I've just spent about two hours trying to merge the master branch into my own and I've come to the conclusion that I don't understand at all how git works.

            Online sites don't seem to help at all, I'm missing something *much* more fundamental.

            I'd be content to just overwrite my branch with the current angband master branch, but I can't even get that to work...

            I'm so useless...

            edit: Ok, i think I accomplished this in the most asinine way imaginable... It still would be nice if someone was to tell me what I should have done...
            you may find http://trac.rephial.org/wiki/GitUsage useful.
            takkaria whispers something about options. -more-

            Comment

            • Nick
              Vanilla maintainer
              • Apr 2007
              • 9634

              #51
              Originally posted by fizzix
              Ok, I've just spent about two hours trying to merge the master branch into my own and I've come to the conclusion that I don't understand at all how git works.
              I have achieved this once, and IIRC the key is to use 'upstream' (which should be takkaria/angband if you forked from that). I think 'git merge remotes/upstream/master' may be the thing you want, although you may need to do something like 'git remote add <upstream URL>' first. Maybe.
              One for the Dark Lord on his dark throne
              In the Land of Mordor where the Shadows lie.

              Comment

              • Magnate
                Angband Devteam member
                • May 2007
                • 5110

                #52
                Originally posted by Nick
                I have achieved this once, and IIRC the key is to use 'upstream' (which should be takkaria/angband if you forked from that). I think 'git merge remotes/upstream/master' may be the thing you want, although you may need to do something like 'git remote add <upstream URL>' first. Maybe.
                If you create your git repository with "git clone <wherever>" then the thing you cloned is called 'origin'. So you need

                git fetch origin
                git merge origin/master

                To merge origin/master into your current branch.

                @fizzix: what was the problem - not knowing the syntax for the merge or not being able to merge successfully? If your branch is too far forked you may have dozens of conflicts.
                "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                Comment

                • Nick
                  Vanilla maintainer
                  • Apr 2007
                  • 9634

                  #53
                  Originally posted by Magnate
                  If you create your git repository with "git clone <wherever>" then the thing you cloned is called 'origin'.
                  Right. I hit the fork button on github, then cloned the result - hence my clone is origin. I'm sure we're helping.
                  One for the Dark Lord on his dark throne
                  In the Land of Mordor where the Shadows lie.

                  Comment

                  • fizzix
                    Prophet
                    • Aug 2009
                    • 3025

                    #54
                    Originally posted by Magnate
                    If you create your git repository with "git clone <wherever>" then the thing you cloned is called 'origin'. So you need

                    git fetch origin
                    git merge origin/master

                    To merge origin/master into your current branch.

                    @fizzix: what was the problem - not knowing the syntax for the merge or not being able to merge successfully? If your branch is too far forked you may have dozens of conflicts.
                    there were conflicts problems. I wanted to accept the origin version, but it wouldn't let me. Eventually I gave up, downloaded the files directly, replaced them all manually, and then still had trouble merging. Apparently it worked eventually, as it looks like I'm successfully merged and I can start trying to figure out how lighting squares works.

                    Comment

                    • takkaria
                      Veteran
                      • Apr 2007
                      • 1951

                      #55
                      Originally posted by fizzix
                      there were conflicts problems. I wanted to accept the origin version, but it wouldn't let me. Eventually I gave up, downloaded the files directly, replaced them all manually, and then still had trouble merging. Apparently it worked eventually, as it looks like I'm successfully merged and I can start trying to figure out how lighting squares works.
                      Lighting stuff is all in cave.c, pretty much.
                      takkaria whispers something about options. -more-

                      Comment

                      • Magnate
                        Angband Devteam member
                        • May 2007
                        • 5110

                        #56
                        Originally posted by fizzix
                        there were conflicts problems. I wanted to accept the origin version, but it wouldn't let me. Eventually I gave up, downloaded the files directly, replaced them all manually, and then still had trouble merging. Apparently it worked eventually, as it looks like I'm successfully merged and I can start trying to figure out how lighting squares works.
                        Fine - that isn't a git problem, as you'd have to deal with conflicts using any VCS. When 3.2 is out I'll try and come up with a better way of keeping track of who is messing which which bits of code so that we can minimise merge conflicts.
                        "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                        Comment

                        • Magnate
                          Angband Devteam member
                          • May 2007
                          • 5110

                          #57
                          Originally posted by Nick
                          Right. I hit the fork button on github, then cloned the result - hence my clone is origin. I'm sure we're helping.
                          Indeed - I think what people may not have realised reading your last post is that you created the remote "upstream" manually, after the clone of origin. It probably isn't ideal that when I've described that process on the dev wiki, I've called the new remote "official" instead.

                          Never mind - when we are assimilated all these problems will be solved ...
                          "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                          Comment

                          • Rizwan
                            Swordsman
                            • Jun 2007
                            • 292

                            #58
                            Originally posted by Magnate
                            Never mind - when we are assimilated all these problems will be solved ...
                            Nooooooo I don't want to be assimilated

                            Now you are scaring me with that Borg-like talk

                            Comment

                            Working...
                            😀
                            😂
                            🥰
                            😘
                            🤢
                            😎
                            😞
                            😡
                            👍
                            👎