Animeband - The worst variant ever

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ehuangsan
    Scout
    • May 2007
    • 27

    #16
    Originally posted by phaethon_h
    hrm. That particular scenario didn't happen to me in 060a2. The scenario I posted did happen, though: A-hit1/3, teleport next to B, B-hit2/3, B-hit3/3. But then again it was a large horde of vicious Hello Kittys (Kitties?),: if I teleported next to another HK, I got hit by the remaining number of hits from a HK, but if I ended up in the clear, no remote hits. So I assume it was the other HK getting in the last hits.
    That's because my dumb solution was to only make the replacement technique work on first monster hit. If you tried to make it interrupt a string of hits coming from one monster, then the problem occurs.
    http://angband.oook.cz/animeband - Come for the horror
    なに勘違いしてるんだ…まだ俺のバトルフェイズは終了してないぜ! ずっと俺のターン!

    Comment

    • ehuangsan
      Scout
      • May 2007
      • 27

      #17
      Did you manage to replicate the previous solution? I think I should have an old beta version lying around somewhere that has it.
      http://angband.oook.cz/animeband - Come for the horror
      なに勘違いしてるんだ…まだ俺のバトルフェイズは終了してないぜ! ずっと俺のターン!

      Comment

      • phaethon_h
        Rookie
        • May 2007
        • 17

        #18
        Originally posted by ehuangsan
        Did you manage to replicate the previous solution? I think I should have an old beta version lying around somewhere that has it.
        um... no?... o_O

        Comment

        • ehuangsan
          Scout
          • May 2007
          • 27

          #19
          Ah, I think I remember how to replicate it.

          Change the "break" statement in melee1.c where the replacement code is to "continue". Otherwise, replacement only works on the first hit of the monster melee. I don't understand why that happens though.
          http://angband.oook.cz/animeband - Come for the horror
          なに勘違いしてるんだ…まだ俺のバトルフェイズは終了してないぜ! ずっと俺のターン!

          Comment

          • phaethon_h
            Rookie
            • May 2007
            • 17

            #20
            I think I'm going to need a log/messages dump of right and wrong (fabricated or not) to understand what you're trying to get at

            Comment

            • ehuangsan
              Scout
              • May 2007
              • 27

              #21
              Originally posted by phaethon_h
              I think I'm going to need a log/messages dump of right and wrong (fabricated or not) to understand what you're trying to get at
              At its current implementation, it'll only check for replacement on the monster's first attack. So you're never gonna get the situation of "Monster 1 hits you, monster 1 hits you, You use the replacement technique" for a monster with 4 attacks.

              When I tried to implement that previously, it would spew something funny like "Monster 1 hits you, you use replacement, Monster 1 hits you, etc." despite the fact you are clearly phased away.
              http://angband.oook.cz/animeband - Come for the horror
              なに勘違いしてるんだ…まだ俺のバトルフェイズは終了してないぜ! ずっと俺のターン!

              Comment

              • phaethon_h
                Rookie
                • May 2007
                • 17

                #22
                Changed break to continue with what's in svn and got this little game transaction:
                Code:
                Message Recall (0-19 of 108), Offset 0                                          
                                                                                                
                You hit the Drunk JET guy.
                You hit the Drunk JET guy.
                You miss the Drunk JET guy.
                The Drunk JET guy begs you for money.
                You hit the Drunk JET guy.
                The Drunk JET guy flees in terror!
                You hit the Drunk JET guy.
                You hit the Scruffy little dog.
                The Scruffy little dog flees in terror!
                You hit the Hello Kitty.
                The Hello Kitty claws you.
                The Hello Kitty claws you.
                The Hello Kitty claws you.
                The Hello Kitty claws you.
                The Hello Kitty attacks you, but you use the replacement technique!
                You feel something roll beneath your feet.
                You get a log ready.
                You hit the Hello Kitty.
                The Hello Kitty attacks you, but you use the replacement technique!
                You feel something roll beneath your feet.
                Don't know what to make of it.

                Comment

                • ehuangsan
                  Scout
                  • May 2007
                  • 27

                  #23
                  Test it with ugly sticks and see what happens.
                  http://angband.oook.cz/animeband - Come for the horror
                  なに勘違いしてるんだ…まだ俺のバトルフェイズは終了してないぜ! ずっと俺のターン!

                  Comment

                  • phaethon_h
                    Rookie
                    • May 2007
                    • 17

                    #24
                    Originally posted by ehuangsan
                    Test it with ugly sticks and see what happens.
                    This... doesn't look right?...
                    Code:
                    Message Recall (0-19 of 521), Offset 0                                          
                                                                                                    
                    You get a log ready.                                                            
                    The Ugly stick attacks you, but you use the replacement technique!              
                    You feel something roll beneath your feet.                                      
                    You get a log ready.                                                            
                    You hit the Ugly stick.                                                         
                    The Ugly stick attacks you, but you use the replacement technique!              
                    You feel something roll beneath your feet.                                      
                    You get a log ready.                                                            
                    You hit the Ugly stick.                                                         
                    The Ugly stick attacks you, but you use the replacement technique!              
                    You feel something roll beneath your feet.                                      
                    You get a log ready.                                                            
                    The Ugly stick attacks you, but you use the replacement technique!              
                    You feel something roll beneath your feet.                                      
                    You get a log ready.                                                            
                    The Ugly stick hits you.                                                        
                    You hit the Ugly stick.                                                         
                    You hit the Ugly stick.                                                         
                    The Ugly stick attacks you, but you use the replacement technique!              
                    You feel something roll beneath your feet.                                      
                                                                                                    
                    [Press 'p' for older, 'n' for newer, ..., or ESCAPE]

                    Comment

                    • ehuangsan
                      Scout
                      • May 2007
                      • 27

                      #25
                      Originally posted by phaethon_h
                      This... doesn't look right?...
                      Code:
                      Message Recall (0-19 of 521), Offset 0                                          
                                                                                                      
                      You get a log ready.                                                            
                      The Ugly stick attacks you, but you use the replacement technique!              
                      You feel something roll beneath your feet.                                      
                      You get a log ready.                                                            
                      You hit the Ugly stick.                                                         
                      The Ugly stick attacks you, but you use the replacement technique!              
                      You feel something roll beneath your feet.                                      
                      You get a log ready.                                                            
                      You hit the Ugly stick.                                                         
                      The Ugly stick attacks you, but you use the replacement technique!              
                      You feel something roll beneath your feet.                                      
                      You get a log ready.                                                            
                      The Ugly stick attacks you, but you use the replacement technique!              
                      You feel something roll beneath your feet.                                      
                      You get a log ready.                                                            
                      The Ugly stick hits you.                                                        
                      You hit the Ugly stick.                                                         
                      You hit the Ugly stick.                                                         
                      The Ugly stick attacks you, but you use the replacement technique!              
                      You feel something roll beneath your feet.                                      
                                                                                                      
                      [Press 'p' for older, 'n' for newer, ..., or ESCAPE]
                      Oh I forgot, ugly sticks are no loner multi hit. Try Black Chameleons instead then.
                      http://angband.oook.cz/animeband - Come for the horror
                      なに勘違いしてるんだ…まだ俺のバトルフェイズは終了してないぜ! ずっと俺のターン!

                      Comment

                      • phaethon_h
                        Rookie
                        • May 2007
                        • 17

                        #26
                        This is using continue, so now I see what you mean. I know why this happens. Give me several minutes.

                        Code:
                        Message Recall (0-19 of 58), Offset 0                                           
                                                                                                        
                        The Ugly stick attacks you, but you use the replacement technique!
                        You feel something roll beneath your feet.
                        You can learn 12 more spells.
                        You do not have enough meter to use that power!.
                        You get a log ready.
                        You hit the Black Chameleon.
                        The Black Chameleon bites you.
                        The Black Chameleon claws you.
                        The Black Chameleon attacks you, but you use the replacement technique!
                        You feel something roll beneath your feet.
                        You get a log ready.
                        The Black Chameleon attacks you, but you use the replacement technique!
                        You feel something roll beneath your feet.
                        The Black Chameleon claws you.
                        The Black Chameleon hits you.
                        You get a log ready.
                        The Black Chameleon bites you.
                        The Black Chameleon claws you.
                        The Black Chameleon attacks you, but you use the replacement technique!
                        You feel something roll beneath your feet.

                        Comment

                        • phaethon_h
                          Rookie
                          • May 2007
                          • 17

                          #27
                          hrm... fixed?

                          Code:
                          Message Recall (0-19 of 60), Offset 0 
                                                                                                          
                          You can learn 12 more spells.
                          You feel something roll beneath your feet.
                          Allocated.
                          You feel very good.
                          You are full!
                          You see no more Gold Potions of Healing.
                          You get a log ready.
                          You hit the Black Chameleon.
                          The Black Chameleon bites you.
                          The Black Chameleon attacks you, but you use the replacement technique!
                          You feel something roll beneath your feet.
                          You get a log ready.
                          You hit the Black Chameleon.
                          You hit the Black Chameleon.
                          The Black Chameleon attacks you, but you use the replacement technique!
                          You feel something roll beneath your feet.
                          You get a log ready.
                          You are no longer full.
                          The Black Chameleon attacks you, but you use the replacement technique!
                          You feel something roll beneath your feet.

                          Comment

                          • ehuangsan
                            Scout
                            • May 2007
                            • 27

                            #28
                            Hah! I dunno anymore
                            http://angband.oook.cz/animeband - Come for the horror
                            なに勘違いしてるんだ…まだ俺のバトルフェイズは終了してないぜ! ずっと俺のターン!

                            Comment

                            • phaethon_h
                              Rookie
                              • May 2007
                              • 17

                              #29
                              Debugging the disappearing Hunger indicator.

                              I've nailed down where the problem is. Basically on a dungeon level change, the hunger indicator does get drawn, but is immediately overwritten by the status bar, which fills the entire row with blanks then prints "Srch", "Lev N", etc. Now, the obvious things seems to be to reverse the order of the draw... but apparently the blindness indicator gets drawn twice... once explcitly on level change, then again in the statusbar. The two locations don't line up. There are apparently other indicators that have this "ghost-image" effect as well, based on patterns in the source text.

                              EDIT: and why it reappears on hunger change is because only the hunger indicator gets drawn, the statusbar isn't redrawn.

                              I want to see what the upstream angband does, before committing any changes.
                              Last edited by phaethon_h; June 8, 2007, 14:21.

                              Comment

                              • takkaria
                                Veteran
                                • Apr 2007
                                • 1951

                                #30
                                Originally posted by phaethon_h
                                Debugging the disappearing Hunger indicator.

                                I've nailed down where the problem is. Basically on a dungeon level change, the hunger indicator does get drawn, but is immediately overwritten by the status bar, which fills the entire row with blanks then prints "Srch", "Lev N", etc. Now, the obvious things seems to be to reverse the order of the draw... but apparently the blindness indicator gets drawn twice... once explcitly on level change, then again in the statusbar. The two locations don't line up. There are apparently other indicators that have this "ghost-image" effect as well, based on patterns in the source text.

                                I want to see what the upstream angband does, before committing any changes.
                                Angband just prints each individual statusline item in a predetermined fixed location. It'll be changing soon, though, to one which lists all effects from left to right whenever a redraw is required.
                                takkaria whispers something about options. -more-

                                Comment

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