Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

Reply
 
Thread Tools Display Modes
Old June 2, 2007, 16:17   #21
ehuangsan
Scout
 
ehuangsan's Avatar
 
Join Date: May 2007
Location: San Jose, California
Posts: 27
Donated: $3.91
ehuangsan is on a distinguished road
Quote:
Originally Posted by phaethon_h View Post
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
なに勘違いしてるんだまだ俺のバトルフェイズは終了してないぜ! ずっと俺のターン!
ehuangsan is offline   Reply With Quote
Old June 3, 2007, 10:11   #22
phaethon_h
Rookie
 
Join Date: May 2007
Posts: 17
phaethon_h is on a distinguished road
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.
phaethon_h is offline   Reply With Quote
Old June 3, 2007, 22:16   #23
ehuangsan
Scout
 
ehuangsan's Avatar
 
Join Date: May 2007
Location: San Jose, California
Posts: 27
Donated: $3.91
ehuangsan is on a distinguished road
Test it with ugly sticks and see what happens.
__________________
http://angband.oook.cz/animeband - Come for the horror
なに勘違いしてるんだまだ俺のバトルフェイズは終了してないぜ! ずっと俺のターン!
ehuangsan is offline   Reply With Quote
Old June 4, 2007, 00:11   #24
phaethon_h
Rookie
 
Join Date: May 2007
Posts: 17
phaethon_h is on a distinguished road
Quote:
Originally Posted by ehuangsan View Post
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]
phaethon_h is offline   Reply With Quote
Old June 4, 2007, 08:23   #25
ehuangsan
Scout
 
ehuangsan's Avatar
 
Join Date: May 2007
Location: San Jose, California
Posts: 27
Donated: $3.91
ehuangsan is on a distinguished road
Quote:
Originally Posted by phaethon_h View Post
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
なに勘違いしてるんだまだ俺のバトルフェイズは終了してないぜ! ずっと俺のターン!
ehuangsan is offline   Reply With Quote
Old June 6, 2007, 23:18   #26
phaethon_h
Rookie
 
Join Date: May 2007
Posts: 17
phaethon_h is on a distinguished road
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 is offline   Reply With Quote
Old June 6, 2007, 23:23   #27
phaethon_h
Rookie
 
Join Date: May 2007
Posts: 17
phaethon_h is on a distinguished road
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.
phaethon_h is offline   Reply With Quote
Old June 7, 2007, 03:23   #28
ehuangsan
Scout
 
ehuangsan's Avatar
 
Join Date: May 2007
Location: San Jose, California
Posts: 27
Donated: $3.91
ehuangsan is on a distinguished road
Hah! I dunno anymore
__________________
http://angband.oook.cz/animeband - Come for the horror
なに勘違いしてるんだまだ俺のバトルフェイズは終了してないぜ! ずっと俺のターン!
ehuangsan is offline   Reply With Quote
Old June 8, 2007, 14:04   #29
phaethon_h
Rookie
 
Join Date: May 2007
Posts: 17
phaethon_h is on a distinguished road
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 at 14:21.
phaethon_h is offline   Reply With Quote
Old June 8, 2007, 14:09   #30
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,946
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by phaethon_h View Post
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 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:52.


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