Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Variants (http://angband.oook.cz/forum/forumdisplay.php?f=4)
-   -   Animeband - The worst variant ever (http://angband.oook.cz/forum/showthread.php?t=49)

ehuangsan June 2, 2007 17:17

Quote:

Originally Posted by phaethon_h (Post 823)
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 :confused:

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.

phaethon_h June 3, 2007 11:11

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.

ehuangsan June 3, 2007 23:16

Test it with ugly sticks and see what happens.

phaethon_h June 4, 2007 01:11

Quote:

Originally Posted by ehuangsan (Post 850)
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]


ehuangsan June 4, 2007 09:23

Quote:

Originally Posted by phaethon_h (Post 852)
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.

phaethon_h June 7, 2007 00:18

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.


phaethon_h June 7, 2007 00:23

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.


ehuangsan June 7, 2007 04:23

Hah! I dunno anymore :confused:

phaethon_h June 8, 2007 15:04

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.

takkaria June 8, 2007 15:09

Quote:

Originally Posted by phaethon_h (Post 943)
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.


All times are GMT +1. The time now is 13:28.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.