Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: autobasement, wham and coldform etc...

  1. #1
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    D.C. suburbs of Virginia, USA
    Posts
    3,652

    Default autobasement, wham and coldform etc...

    I'm putting this here since I don't know where the best place for it would be.

    I'm using autobasement, wham and implicitly smartstasis and batbrain. Several times combat will fail. It seems that damage predictions are not taking into account the presence of the various elemental forms, such as coldform. Predicted damage is quite high, but actual damage seems to be 1 HP.

    Clearly one solution would be for autobasement to uneffect the forms prior to certain types of combat. I'm fine with that since in aftercore buying soft green whatevers is trivial, but I'm sure there is someone who is obsessed with optimization rather than automation who might object to uneffecting something that might be useful.

    The other solution would be to to make damage predictions aware of the elemental forms. My hunch is that is not easy or it would have been done already?

    Ideas? Suggestions? I can certainly deal with it using a BBS or something similar but...
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post
    There are 69 players more powerful than you.
    Originally Posted by Statistics Leaderboards

  2. #2

    Default

    Nothing in the basement is immune to any element, so uneffecting a form should not be helpful there. Post a specific example and maybe we can see what is actually happening. Maybe a shard of double-ice is being used along with coldform?

  3. #3
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    D.C. suburbs of Virginia, USA
    Posts
    3,652

    Default

    While we wait for a specific example that I can post, what are the KoL mechanics that might possibly cause Weapon of the Pastalord and Saucegeyser to only do 1 HP damage? Since the situation only occurs when running autobasement, feel free to ignore Flavor and similar possibilities that autobasement is not going to use. Thanks.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post
    There are 69 players more powerful than you.
    Originally Posted by Statistics Leaderboards

  4. #4

    Default

    Normally that would never happen in the basement. However, shards of double-ice are decent cheap combat items, so it would make sense that those are picked. Once they are used, the monster is cold-aligned. If you are also cold-aligned, anything you do will do 1 damage. The solution in that case is for those scripts to not use that combat item when you have coldform active.

    If it is something different, then an example will be needed to figure it out.

  5. #5
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    D.C. suburbs of Virginia, USA
    Posts
    3,652

    Default

    Here is an example. The first combat was under control of autobasement and wham. The second was manual.

    Code:
    [3059] Fernswarthy's Basement (Level 166)
    Encounter: The Ghost of Fernswarthy's great great great great great great great great great great Grandfather
    Round 0: cafebabe loses initiative!
     > WHAM: Running SmartStasis
     > WHAM: Starting evaluation and performing of attack
     > WHAM: Enqueuing a stun to help with the battle
    Round 1: cafebabe executes a macro!
    Round 1: cafebabe casts ENTANGLING NOODLES!
    Round 2: cafebabe casts SAUCEGEYSER!
    Round 3: the ghost of fernswarthy's n great-grandfather takes 327 damage.
    Round 3: cafebabe casts WEAPON OF THE PASTALORD!
    Round 4: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 271 hit points
     > WHAM: Starting evaluation and performing of attack
    Round 4: cafebabe executes a macro!
    Round 4: cafebabe casts WEAPON OF THE PASTALORD!
    Round 5: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 261 hit points
     > WHAM: Starting evaluation and performing of attack
    Round 5: cafebabe executes a macro!
    Round 5: cafebabe casts WEAPON OF THE PASTALORD!
    Round 6: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 263 hit points
     > WHAM: Starting evaluation and performing of attack
    Round 6: cafebabe executes a macro!
    Round 6: cafebabe casts WEAPON OF THE PASTALORD!
    Round 7: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 297 hit points
     > WHAM: Starting evaluation and performing of attack
    Round 7: cafebabe executes a macro!
    Round 7: cafebabe casts WEAPON OF THE PASTALORD!
    Round 8: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 263 hit points
     > WHAM: Starting evaluation and performing of attack
    Round 8: cafebabe executes a macro!
    Round 8: cafebabe casts WEAPON OF THE PASTALORD!
    Round 9: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 262 hit points
     > WHAM: Starting evaluation and performing of attack
    Round 9: cafebabe executes a macro!
    Round 9: cafebabe casts WEAPON OF THE PASTALORD!
    Round 10: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 260 hit points
     > WHAM: Starting evaluation and performing of attack
    Round 10: cafebabe executes a macro!
    Round 10: cafebabe casts WEAPON OF THE PASTALORD!
    Round 11: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 294 hit points
     > WHAM: Starting evaluation and performing of attack
    Round 11: cafebabe executes a macro!
    Round 11: cafebabe casts WEAPON OF THE PASTALORD!
    Round 12: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 293 hit points
     > WHAM: Starting evaluation and performing of attack
    Round 12: cafebabe executes a macro!
    Round 12: cafebabe casts WEAPON OF THE PASTALORD!
    Round 13: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 278 hit points
     > WHAM: Starting evaluation and performing of attack
    Round 13: cafebabe executes a macro!
    Round 13: cafebabe casts WEAPON OF THE PASTALORD!
    Round 14: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 297 hit points
     > WHAM: Starting evaluation and performing of attack
    Round 14: cafebabe executes a macro!
    Round 14: cafebabe casts WEAPON OF THE PASTALORD!
    Round 15: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 290 hit points
     > WHAM: Starting evaluation and performing of attack
    Round 15: cafebabe executes a macro!
    Round 15: cafebabe casts WEAPON OF THE PASTALORD!
    Round 16: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 283 hit points
     > WHAM: Starting evaluation and performing of attack
    Round 16: cafebabe executes a macro!
    Round 16: cafebabe casts WEAPON OF THE PASTALORD!
    Round 17: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 287 hit points
    Round 17: cafebabe attacks!
    Round 18: the ghost of fernswarthy's n great-grandfather takes 1 damage.
    You lose 292 hit points
     > lost the fight, quitting
     > Basement sucessfully automated for 23 out of 87 adventures.
     > You've had the crap beaten out of you... attempting to find some more crap.
    
    Visiting Relaxing Hot Tub in clan VIP lounge
    You lose an effect: Beaten Up
    You gain 3,937 hit points
     > Restoring HP! Currently at 3948 of 3948 HP, 18 of 1250 MP, current meat: 212415 ... Target HP = 3751.
    
    use 1 cold-filtered water
    You acquire an effect: Purity of Spirit (duration: 10 Adventures)
    
    [3060] Fernswarthy's Basement (Level 166)
    Encounter: The Ghost of Fernswarthy's great great great great great great great great great great Grandfather
    Round 0: cafebabe loses initiative!
    You lose 169 hit points
    Round 1: cafebabe uses the shard of double-ice and uses the shard of double-ice!
    Round 2: the ghost of fernswarthy's n great-grandfather takes 2506 damage.
    Round 2: cafebabe wins the fight!
    After Battle: Eman bends its brim into an approximation of a smile.
    You gain 373 Strongness
    You gain a Muscle point!
    You gain 155 Wizardliness
    You gain a Mysticality point!
    You gain 177 Chutzpah
    This doesn't show the coldform interaction that I am suspicious about but something could be improved, right?
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post
    There are 69 players more powerful than you.
    Originally Posted by Statistics Leaderboards

  6. #6

    Default

    You're doing physical damage (since you said Flavour isn't being used) to a physically-resistant monster. Mafia has no idea what monsters are physically resistant. I don't know how mafia would usefully provide that information, or how scripts might change with or without mafia changing to account for it.

    The second fight shows a shard of double-ice being used (probably what got you to that part of the log?), and it seems likely that it would be used even with coldform active.

  7. #7
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    D.C. suburbs of Virginia, USA
    Posts
    3,652

    Default

    The double ice was me, manually.

    It seems like the disconnect is that I am expecting the scripts to know a monster is physically resistant and adjust the strategy accordingly. Since that is beyond mafia's capabilities at the moment my expectation is unreasonable. Thanks for helping me figure that out.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post
    There are 69 players more powerful than you.
    Originally Posted by Statistics Leaderboards

  8. #8
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    10,664

    Default

    monsters.tx says this about Fernswarthy's Grandfather:

    The Ghost of Fernswarthy's n great-grandfather HP: [0.425*ceil(BL^1.4)+ML] Def: [ceil(0.9*(2*ceil(BL^1.4)+ML))] Atk: [2*ceil(BL^1.4)+ML] Init: 70 Phys: 100 P: undead

    Note the 100% Physical Resistance.

    That does not appear to be accessible via a $monster proxy field. It could be.

    Speaking of Basement monsters - I invented the "N" name of them so that scripts and CCS could key on them. Now, KoL has officially named them "X" monsters - X bottles of beer on a golem, for example. I think we should change to conform - but that will require scripts and CCS files to change all over...
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  9. #9
    Senior Member Winterbay's Avatar
    Join Date
    Feb 2010
    Posts
    5,033

    Default

    My thinking is that it appears that sometimes Weapon of the Pastalord gets incorrect calculations. I've never seen a script try to attack a physically resistant monster, but WotP pops up form time to time. Batbrain is aware of the Ghost being resistant so it's not that at least.
    My scripts:
    Best sushi for Profit
    Winterbay's Helpful Automatic Monsterbasher (WHAM)

    Scripts maintained by me:
    Autobasement
    Smashlib

    A small programmer joke:
    Wife: Honey, please go to the market and buy 1 bottle of milk. If they have eggs, bring 6.
    The man came back with 6 bottles of milk.
    Wife: Why did you buy 6 bottles of milk.
    Man: Because they had eggs...

    The 6 Stages of Debugging: 1 )That can't happen. 2) That shouldn't happen. 3) Hmmm, weird. 4) Why does that happen? 5) Oh, I see. 6 )How did that ever work?

    All programs can be optimized, and all programs have bugs; therefore all programs can be optimized to one line that doesn’t work. /Bob Fitch, Blizzard

  10. #10
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,596

    Default

    Yes... BatBrain TRIES to make the ghost fully phys resistant, here:
    Code:
          case $monster[the ghost of fernswarthy n great-grandfather]: mres[$element[none]] = 1; maxround = 50; break;
    Note that it avoids 1 (of 1) damage of element type none (physical). Also, the fight can go on for 50 rounds.

    As long as switch(monster) picks out the right monster... it's SUPPOSED to eliminate the physical-only attacks. I think that's on the scripts though... what Winterbay would probably need to validate that, if you aren't just going to break BatBrain to lie and say that it's a different monster... but you'll have to do a LOT of work on that. Because it blends forced last_monster bits and directed specifications... which might be part of the issue.
    > ashq import <BatBrain.ash> set_monster($monster[the ghost of fernswarthy n great-grandfather]);

    Factoring in Scarysauce: (6) damage, retal
    ATT: 12 (5.57% × 1, death in 5173)
    DEF: 11 (95.45% × 309.53, win in 7)
    HP: 12.6, Value: 20.63 μ
    That's with my last killed monster being a Caveman Hippy... so all of the major checks for monster_stat got redirected back to last_monster rather than staying the defined monster.

Similar Threads

  1. autoBasement.ash - Better basement automation
    By Rinn in forum Turn-Burning Scripts
    Replies: 1253
    Last Post: 02-15-2017, 02:53 AM
  2. Winterbay's Helpful Automatic Monsterbasher (WHAM)
    By Winterbay in forum Custom Combat Settings
    Replies: 1923
    Last Post: 01-06-2017, 09:03 PM
  3. WHAM, Manual and 43 reasons to be confused.
    By fronobulax in forum Community Support
    Replies: 8
    Last Post: 02-22-2014, 03:48 PM
  4. Bug Maximizer problem HP in conjunction with autobasement.
    By Winterbay in forum Bug Reports
    Replies: 2
    Last Post: 07-20-2012, 11:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •