SmartStasis -- a complex script for a simple CCS

That's BatBrain, not SmartStasis. And it's because Zarqon is amused by letters and symbols in his to_int version checker. It'll go away after the next next version of BatBrain. :)

Okay *that* is awesome! LOL. :)

What about the jiggling problem I encountered in #1513?

Thanks!
 
Last edited:
I got an error today.

[87] 8-Bit Realm
Encounter: Tektite
Strategy: C:\7lMafia\ccs\xenthes.ccs [default]
Round 0: Xenthes wins initiative!
Bad monster value: "the darkness" (SmartStasis.ash, line 334)
Consult script 'SmartStasis.ash' not found.
You're on your own, partner.
Click here to continue in the relay browser.


SmartStasis.ash is still in my directory where it always has been.
 
I got the exact same error

[2454] Daily Dungeon (Room 0)
Encounter: vampire clam
Round 0: jakewolf1995 wins initiative!
Bad monster value: "the darkness" (SmartStasis.ash, line 334)
Consult script 'WHAM.ash' not found.
You're on your own, partner.
Click here to continue in the relay browser.

I have updated smartstasis, WHAM, batbrain, and to the newest build. It only started when I updated the build and after all that updating, it still isn't working.

EDIT: I found the error, it is

Code:
case $monster[the darkness]: encustom($item[inkwell]); break;

and should be

Code:
case $monster[darkness]: encustom($item[inkwell]); break;

Just take out the "the"
 
Last edited:
Well, when I check, it does still see both on that line...
> ash $monster[darkness]

Returned: Darkness
base_hp => 99999
base_attack => 100011
base_defense => 90011
raw_hp => 99999
raw_attack => 99999
raw_defense => 89999
base_initiative => 0
attack_element => none
defense_element => none
min_meat => 0
max_meat => 0
base_mainstat_exp => 12501.375
phylum => none
poison => none
boss => false
image => rorshach.gif

> ash $monster[the darkness]

Returned: The Darkness (blind)
base_hp => 0
base_attack => 0
base_defense => 0
raw_hp => -1
raw_attack => -1
raw_defense => -1
base_initiative => -1
attack_element => none
defense_element => none
min_meat => 0
max_meat => 0
base_mainstat_exp => 0.0
phylum => none
poison => none
boss => false
image =>
While the monster desired is probably darkness, not the darkness, there is a 'the darkness' monster in r12031.
 
I've no idea why this error started coming up, but mafia considers that tower monster to be called "Darkness", so just remove "the " from the offending line and everything should work fine.

EDIT: Ninja'd. I'm running revision 12033. 12032 modified monster.txt to add "Eye in the Darkness". I don't see how that causes this, but it seems likely the cause.

EDIT: Okay, it seems that would cause it, because if the string matches two monsters none is returned.
 
Last edited:
Exactly... can't fuzzy match. So zarqon will need to change 'the darkness' to just 'darkness' on line 334. Should really have happened back when the articles changed, but... :)

And anyone using SS until there's an official change will need to update their personal copies. Just change "the darkness" to "darkness" and it will work fine. :)
 
Not sure if I should post this here or on the BatBrain thread, but hitting a lot of times where SS tries to use the Indigo Cup twice.
 
In relay adventuring with hitting the 'Script' button, or in automated adventuring? The two mark adventures differently, which is a major part of the issue with fixing double-using single-use items.
 
I've been holding off on updating this due to a) not yet implementing the fixes to Point, and 2) new logic is needed for Rave Stealing. Suggestions for said new logic?

I have a mess of rehearsals and concerts up to and through this weekend, but I believe a working release of SS on Sunday is a realistic expectation, even if it doesn't include all the fixes I'd hoped. Having a version that doesn't verify in the first post isn't really forgivable, now is it? My reputation plummets each day it remains there.

Since I enjoy lessons in humility I'm going to leave it there till Sunday and see how low my reputation gets. Maybe thieves and cutthroats will start approaching me to join their guilds.
 
So...is this a WHAM issue or smartstassis? I have WHAM set to keep 200 CSA obedience grenades (or at least, that's what the relay script says I have it set to) but they're still being used when I have buckets and buckets of MP regen, max MP, and have all the AoJ skills so it can easily one-shot or use blend and curdle, etc, let alone it's a spooky monster so one boil would do probably 200+ damage with my +spell damage items/skill.

Code:
[278] Defiled Cranny
Encounter: gluttonous ghuol
Strategy: /~/.kolmafia/ccs/WHAM.ccs [default]
Round 0: chef_rannos wins initiative!
The string "/\/\^v^/\/\" is not an integer; returning 0 (zlib.ash, line 181)
The string "/\/\^v^/\/\" is not an integer; returning 0 (zlib.ash, line 182)
ATT: 90 (94% × (29), death in 2)
DEF: 85 (8.59% × 2.18, win in 90)
HP: 89.25, Value: 298.31 μ, RES: 0 (-1) (1) (-1)
WHAM: Monster HP is 89.25.
WHAM: Running SmartStasis
Profit per round: ActionProfitDamageOtherbase (0μ)0μ--
WHAM: Starting evaluation and performing of attack
WHAM: Enqueuing a stun to help with the battle
WHAM: We are going to 2-shot with CSA obedience grenade and Curdle.
Round 1: chef_rannos executes a macro!
Round 1: chef_rannos uses the CSA obedience grenade!
Round 2: gluttonous ghuol drops 4 attack power.
Round 2: gluttonous ghuol drops 4 defense.
Round 2: chef_rannos casts CURDLE!
Round 3: gluttonous ghuol takes 96 damage.
Round 3: chef_rannos wins the fight!
After Battle: Your Evilometer emits a single beep. The air in this part of the crypt smells slightly less evil...A little package floats in on a silver parachute. A note attached reads "The CSA notes that you are not wearing your CSA-issued backpack. While the CSA acknowledges the possibility of equipment loss in a combat situation, the CSA would also like to remind you that CSA membership, once initiated, is compulsory and permanent."
You acquire an item: CSA cheerfulness ration
You gain 3 hit points
You gain 5 Mana Points
You gain 61 Meat
You gain 11 Beefiness
You gain 11 Magicalness
You gain a Mysticality point!
You gain 6 Smarm
Look! You found 1 CSA cheerfulness ration (1,396μ)!
 
Another oddity...why cast blend when we're going to banish?

Code:
[284] Defiled Niche
Encounter: senile lihc
Strategy: /~/.kolmafia/ccs/WHAM.ccs [default]
Round 0: chef_rannos wins initiative!
The string "/\/\^v^/\/\" is not an integer; returning 0 (zlib.ash, line 181)
The string "/\/\^v^/\/\" is not an integer; returning 0 (zlib.ash, line 182)
ATT: 91 (94% × (28.38), death in 2)
DEF: 86 (8.59% × 2.18, win in 90)
HP: 89.25, Value: 266.91 μ, RES: 0 (-1) (1) (-1)
WHAM: Monster HP is 89.25.
WHAM: Running SmartStasis
Profit per round: ActionProfitDamageOtherbase (0μ)0μ--
Custom action: jiggle (stun first with skill 14034)
Round 1: chef_rannos executes a macro!
Round 1: chef_rannos casts BLEND!
Round 2: chef_rannos jiggles the Staff of the Standalone Cheese
Round 3: You jiggle your staff, and a whirling wheel of cheese appears before you. It bursts open, revealing the stench of untold aeons. It first turns gray, then turns green, then turns tail and runs. You won't see it again for a while, that's for sure.
WHAM: SS has finished the fight. Aborting script execution.


EDIT: I can see a reason...if jiggles are not tracked right and the script isn't sure if the banish will work, blend, jiggle then killing spells would be a good idea.
 
So...is this a WHAM issue or smartstassis? I have WHAM set to keep 200 CSA obedience grenades (or at least, that's what the relay script says I have it set to) but they're still being used when I have buckets and buckets of MP regen, max MP, and have all the AoJ skills so it can easily one-shot or use blend and curdle, etc, let alone it's a spooky monster so one boil would do probably 200+ damage with my +spell damage items/skill.

Huh. I took a quick look and I think it is a BatBrain issue. Specifically this line:

Code:
	  if (blacklist contains ("use"+it) && blacklist["use "+it] == 0) continue;

I think zarqon made a typo and that line should be this:

Code:
	  if (blacklist contains ("use "+it) && blacklist["use "+it] == 0) continue;
 
Back
Top