SmartStasis -- a complex script for a simple CCS

EdFox

Member
Give me another result with your verbosity set to 10. It'll be lengthy, but should help me track down the problem much more easily.

Ask and you shall receive.

Code:
[1127] Giant's Castle
Encounter: Goth Giant
Strategy: C:\Users\Eszetela\Documents\My Dropbox\KoLmafia\.kolmafia\ccs\Farm.ccs [default]
Round 0: edfox wins initiative!
Checking for updates (running BatBrain ver. 0.7.8)...
_version_batbrain => 0.7.8
You have a current version of BatBrain.
map_pluralMonsters.txt => 2011-02-28T13:05:11-06:00, checked 20110403
You have the latest pluralMonsters.txt. Will not check again today.
awful poetry journal (30.0 @ +0.0): 136.0 meat * 30.0% = 40.8
thin black candle (30.0 @ +0.0): 144.0 meat * 30.0% = 43.2
Warm Subject gift certificate (30.0 @ +0.0): 447.0 meat * 30.0% = 134.1
Value of stat gain: 340
map_batfactors.txt => 2011-03-28T10:15:46-05:00, checked 20110403
You have the latest batfactors.txt. Will not check again today.
awful poetry journal (30.0 @ +0.0): 136.0 meat * 30.0% = 40.8
thin black candle (30.0 @ +0.0): 144.0 meat * 30.0% = 43.2
Warm Subject gift certificate (30.0 @ +0.0): 447.0 meat * 30.0% = 134.1
Value of stat gain: 340
Monster value: 708.1
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Profit per round: ActionProfitDamageOtherbase; Stab Bat (0μ)-318.42μ13.6 (0 MPD)HP: -3.07
Evaluating '-0.40909094'...
Evaluating '0'...
Evaluating '0.6'...
Evaluating '7'...
Evaluating '0'...
Evaluating '12'...
Evaluating '0'...
Evaluating '0.5'...
Evaluating '-5'...
Evaluating '-5'...
Evaluating '0'...
Evaluating '-2'...
Evaluating '-2'...
Evaluating '2.5'...
Evaluating '0'...
Evaluating '0.5'...
Evaluating '22.5'...
Evaluating '-4'...
Evaluating '-4'...
Evaluating '0.5'...
Evaluating '0'...
Evaluating '0'...
Evaluating '0'...
Evaluating '40'...
Evaluating '0'...
Evaluating '25'...
Evaluating '0'...
Evaluating '10'...
Evaluating '45*loc(chasm)'...
Evaluating '0'...
Evaluating '-4.5'...
Evaluating '-4.5'...
Evaluating '0.5'...
Evaluating '20'...
Evaluating '-13.3'...
Evaluating '0'...
Evaluating '-2'...
Evaluating '-2'...
Evaluating '42'...
Evaluating '0'...
Evaluating '-5.5'...
Evaluating '-5.5'...
Evaluating '0.51'...
Evaluating '0'...
Evaluating '-7'...
Evaluating '-7'...
1 MP costs 8.0 meat.
Evaluating 'min(20.0+3,10)+floor(sqrt(max(20.0-7,0)))'...
Evaluating '-0'...
This monster is not your huckleberry.
Round 1: edfox executes a macro!
Round 1: edfox attacks!
Round 2: edfox wins the fight!
You gain 146 Meat
You acquire an item: thin black candle
You acquire an item: Warm Subject gift certificate
You gain 19 Strengthliness
You gain 9 Mysteriousness
You gain 4 Smarm

And here is the other error, when TO fires.

Code:
[1169] Giant's Castle
Encounter: Goth Giant
Strategy: C:\Users\Eszetela\Documents\My Dropbox\KoLmafia\.kolmafia\ccs\Farm.ccs [default]
Round 0: edfox loses initiative!
You lose 46 hit points
awful poetry journal (30.0 @ +0.0): 136.0 meat * 30.0% = 40.8
thin black candle (30.0 @ +0.0): 144.0 meat * 30.0% = 43.2
Warm Subject gift certificate (30.0 @ +0.0): 447.0 meat * 30.0% = 134.1
Value of stat gain: 340
awful poetry journal (30.0 @ +0.0): 136.0 meat * 30.0% = 40.8
thin black candle (30.0 @ +0.0): 144.0 meat * 30.0% = 43.2
Warm Subject gift certificate (30.0 @ +0.0): 447.0 meat * 30.0% = 134.1
Value of stat gain: 340
Monster value: 708.1
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Profit per round: ActionProfitDamageOtherbase; Stab Bat (0μ)-307.14μ13.6 (0 MPD)HP: -3.07
Evaluating '-0.40909094'...
Evaluating '0'...
Evaluating '0.6'...
Evaluating '7'...
Evaluating '0'...
Evaluating '10'...
Evaluating '0'...
Evaluating '12'...
Evaluating '0'...
Evaluating '0.5'...
Evaluating '-5'...
Evaluating '-5'...
Evaluating '0'...
Evaluating '-2'...
Evaluating '-2'...
Evaluating '2.5'...
Evaluating '0'...
Evaluating '0.5'...
Evaluating '22.5'...
Evaluating '-4'...
Evaluating '-4'...
Evaluating '0.5'...
Evaluating '0'...
Evaluating '0'...
Evaluating '0'...
Evaluating '40'...
Evaluating '0'...
Evaluating '25'...
Evaluating '0'...
Evaluating '10'...
Evaluating '45*loc(chasm)'...
Evaluating '0'...
Evaluating '-4.5'...
Evaluating '-4.5'...
Evaluating '0.5'...
Evaluating '20'...
Evaluating '-13.3'...
Evaluating '0'...
Evaluating '-2'...
Evaluating '-2'...
Evaluating '42'...
Evaluating '0'...
Evaluating '-5.5'...
Evaluating '-5.5'...
Evaluating '0.51'...
Evaluating '0'...
Evaluating '-7'...
Evaluating '-7'...
1 MP costs 8.0 meat.
Evaluating 'min(20.0+3,10)+floor(sqrt(max(20.0-7,0)))'...
Evaluating '-0'...
Evaluating '-40'...
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0'...
Evaluator syntax error: expected ), found
CATEGORY II: skill 19 (no stun)
Executing macro: abort match effect*Poisoned || match effect*Toad || match "a massive loogie" || hpbelow 43; sub batround; endsub; skill 19; call batround; 
Round 1: edfox executes a macro!
Round 1: edfox casts TRANSCENDENT OLFACTION!
You acquire an effect: On the Trail (duration: 40 Adventures)
You lose 46 hit points
Evaluating '-0.40909094'...
Evaluating '0'...
Evaluating '0.6'...
Evaluating '7'...
Evaluating '0'...
Evaluating '10'...
Evaluating '0'...
Evaluating '12'...
Evaluating '0'...
Evaluating '0.5'...
Evaluating '-5'...
Evaluating '-5'...
Evaluating '0'...
Evaluating '-2'...
Evaluating '-2'...
Evaluating '2.5'...
Evaluating '0'...
Evaluating '0.5'...
Evaluating '22.5'...
Evaluating '-4'...
Evaluating '-4'...
Evaluating '0.5'...
Evaluating '0'...
Evaluating '0'...
Evaluating '0'...
Evaluating '40'...
Evaluating '0'...
Evaluating '25'...
Evaluating '0'...
Evaluating '10'...
Evaluating '45*loc(chasm)'...
Evaluating '0'...
Evaluating '-4.5'...
Evaluating '-4.5'...
Evaluating '0.5'...
Evaluating '20'...
Evaluating '-13.3'...
Evaluating '0'...
Evaluating '-2'...
Evaluating '-2'...
Evaluating '42'...
Evaluating '0'...
Evaluating '-5.5'...
Evaluating '-5.5'...
Evaluating '0.51'...
Evaluating '0'...
Evaluating '-7'...
Evaluating '-7'...
1 MP costs 8.0 meat.
Evaluating 'min(20.0+3,10)+floor(sqrt(max(20.0-7,0)))'...
Evaluating '-0'...
This monster is not your huckleberry.
Round 2: edfox executes a macro!
Round 2: edfox attacks!
Round 3: edfox wins the fight!
You gain 167 Meat
You acquire an item: thin black candle
You acquire an item: Warm Subject gift certificate
You gain 17 Muscleboundness
You gain 8 Mysteriousness
You gain 8 Sarcasm
 
Last edited:

zarqon

Well-known member
I'm having a bugger of a time tracking this down -- it looks to be caused by an illegal space after "fweight" in the data file, but when I look in the data file I can't see any such space. Does this happen using a different familiar or only with your stab bat? That should help narrow it down.

EDIT: Aha, it may have been the regex in the familiar parser -- I don't claim to fully understand it, but a forward slash shouldn't match \s. Anyway, I'll change it from this:

rate (.+?)[,\\s]

to this:

rate (.+?)(, |\\$)

and see if that fixes it. Perhaps they are both wrong!

(note the use of quote tags to safely enclose the evil, feral regexes)
 
Last edited:

EdFox

Member
That seems to have fixed it. :D

I have absolutely no idea what I did when I changed those characters (I don't even know what regex is!) but both error cases seem to be gone.

The critical line in both cases seems to be "Evaluating 'ceil(20.0/6.0)*0.1'..." When the bug was present, it was just "Evaluating 'ceil(20.0'...". Normal combats get one of these, when TO fires, like 50 additional lines that are exactly the same show up.

I tried a different familiar anyway. With a Blood Faced Volleyball, the lines where the error appeared don't even show up, even at verbosity 10.
Stab Bat:
Monster value: 708.1
Evaluating '(0.66+0.14*1.0)*(0.75*20.0+2)'...
Evaluating '-(0.33-0.13*1.0)*(20.0/1.5+2)'...
Evaluating 'ceil(20.0/6.0)*0.1'...
Profit per round:
Volley:
Monster value: 708.1
Profit per round:

EDIT:
Have some more confusion. I messed up my editing.
You wanted:
rate (.+?)(, |//$)
I didn't see the dollar sign and put:
rate (.+?)(, |//s)

Both seem to behave exactly the same. No error lines, with or w/o TO. Spooky!
 
Last edited:

Winterbay

Active member
Suggestion: Could the generated Macro include a "scrollwhendone" command? When running in the relay browser it is nice to not have to scroll all the way down manually, especially while stasising or as a moxie class.
 

xKiv

Active member
$ is end-of-text and \$ is a literal dollar sign; I suspect neither is what zarqoun had in mind there. I guesstimate the intended regex would rather have something like ',\\s*' (comma, optionally followed by any number of whitespace characters)
Also, there is a difference between //s, //$ and \\s, \\$. The first two are two forward slashes followed by a 's' or a '$', the third is any whitespace character, and the last is end-of-text.
 

zarqon

Well-known member
What I want is either comma with trailing space or eol. I just want to grab a value from a comma-delimited list like so:

tag value, tag2 value2, tag3 value3

So I guess "tag (.+?)[,$]" would get the appropriate value?

Also:


That's a new one! Usually it's "zargon." What do you think about that syzl?

@Winterbay: how are you running a consult script in the relay?
 

Winterbay

Active member
@Winterbay: how are you running a consult script in the relay?

By use of the "script" button which tells Mafia to make use of my CCS which currently states that it should consult smartishstasis (and spamattack, so I guess I could add it to that one instead...)
 

jwylot

Member
Help......what's happening here?
PHP:
[167] Haunted Conservatory
Encounter: anglerbush
Round 0: jwylot loses initiative!
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Round 1: jwylot executes a macro!
Round 1: jwylot casts ENTANGLING NOODLES!
Round 2: Fabulous Furry Freak hops on your back for an ironic piggy-back ride. You feel a little stronger after hauling all of that irony around.
You gain 4 Muscleboundness
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Round 2: jwylot executes a macro!
Round 2: jwylot uses the seal tooth!
Round 3: anglerbush takes 1 damage.
Round 3: Fabulous Furry Freak holds up a finger with a moustache tattooed on it. You laugh heartily at his ironically clever sight gag, and feel refreshed.
You gain 22 hit points
You gain 25 Muscularity Points
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Round 3: jwylot executes a macro!
Round 3: jwylot uses the seal tooth!
Round 4: anglerbush takes 1 damage.
Round 4: Fabulous Furry Freak filters moonslight through his oversized sunglasses.
You gain 19 Muscularity Points
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Expression syntax error for 'modifier_eval()': expected end, found ,
Round 4: jwylot attacks!
Round 5: anglerbush takes 80 damage.
Round 5: Fabulous Furry Freak gains the Power of Love! In practical terms, that means he pulls a flaming sword out of his chest and stabs it with it for 204 damage. Man, the Power of Love is a curious thing.
Round 5: anglerbush takes 204 damage.
Round 5: jwylot wins the fight!
You acquire an item: meat stack
You gain 4 Muscleboundness
You gain 4 Magicalness
You gain 5 Smarm
 

zarqon

Well-known member
@Galanodel: mine always has; just did today, in fact. What's different about yours? More info, please.

@jwylot: Wow, that's exciting! Try the latest BatBrain and see what that does for you. I replaced that regex with something that may work better.

@Winterbay: Interesting. I'd added an "Automate" button next to the "Run Away" button on my fight.php override. Anyway, also added the scrollwhendone for you. Enjoy!
 

Winterbay

Active member
Thanks!
Question: Is there a reason why the script prints every item twice with slightly different numbers? I've looked at the code and can't find any reason for it to do so (visible with verbosity at 8 or higher).

Example:
Code:
Bonus damage to DB skills: 15
You are able to cast 3 possible disco combos.
1 MP costs 3.4545455 meat.
Round 1: winterbay tries to steal an item!
You acquire an item: wolf mask
You snatched a wolf mask (165 μ)!
furry fur (35.0 @ +97.62019): 129.0 meat * 69.16707% = 89.22552
disturbing fanfic (30.0 @ +97.62019): 132.0 meat * 59.28606% = 78.2576
Revised monster value: 1162.34
1 MP costs 3.4545455 meat.
furry fur (35.0 @ +97.62019): 129.0 meat * 69.16707% = 89.22552
furry fur (45.5 @ +97.62019): 129.0 meat * 89.91719% = 115.99317
disturbing fanfic (30.0 @ +97.62019): 132.0 meat * 59.28606% = 78.2576
disturbing fanfic (39.0 @ +97.62019): 132.0 meat * 77.07188% = 101.73487
furry fur (35.0 @ +97.62019): 129.0 meat * 69.16707% = 89.22552
furry fur (45.5 @ +97.62019): 129.0 meat * 89.91719% = 115.99317
disturbing fanfic (30.0 @ +97.62019): 132.0 meat * 59.28606% = 78.2576
disturbing fanfic (39.0 @ +97.62019): 132.0 meat * 77.07188% = 101.73487
furry fur (35.0 @ +97.62019): 129.0 meat * 69.16707% = 89.22552
furry fur (45.5 @ +97.62019): 129.0 meat * 89.91719% = 115.99317
disturbing fanfic (30.0 @ +97.62019): 132.0 meat * 59.28606% = 78.2576
disturbing fanfic (39.0 @ +97.62019): 132.0 meat * 77.07188% = 101.73487
furry fur (35.0 @ +97.62019): 129.0 meat * 69.16707% = 89.22552
furry fur (45.5 @ +97.62019): 129.0 meat * 89.91719% = 115.99317
disturbing fanfic (30.0 @ +97.62019): 132.0 meat * 59.28606% = 78.2576
disturbing fanfic (39.0 @ +97.62019): 132.0 meat * 77.07188% = 101.73487
 

xKiv

Active member
What I want is either comma with trailing space or eol. I just want to grab a value from a comma-delimited list like so:

tag value, tag2 value2, tag3 value3

So I guess "tag (.+?)[,$]" would get the appropriate value?

Nope, that is just "comma or eos, no space ever" again. Your (, |\\$) was good (but introduces extra capturing group, if that's relevant).
Or you could eat extra spaces with "tag (.+?)[,$] *" - zero spaces still match after eos.
 

zarqon

Well-known member
No space is fine, since I only want a single value and the space would be after the comma anyway. Thanks for your help; even with my special tongs they make me doubt my manhood.

I've just run through the DB Nemesis quest with this, to see if it worked awesomely. It didn't. I fixed it. Now it does.

  • Don't keep stasising and gothily waving, just do it once per combat.
  • Steal from ravers outside the club.
  • Auto-learn unknown rave combos.
  • Don't use rave combos in non-volcano zones until after you've completed the Nemesis quest.

These improvements altered both SS and BB again, so unless there are impatient screams I'll hold off on uploading these until I also have other goodies to share.
 

heeheehee

Developer
Staff member
Would "\\s*tag ([^,]+),?" work for you? Basically, strip all leading whitespace, match non-commas, add on a possible comma at the end.
 

zarqon

Well-known member
I like that method. Although in that case, is there any reason just "tag ([^,]+)" wouldn't work?
 

xKiv

Active member
Depends on how you repeat the search.
If you have it inside a (....)*, you have to eat all characters in between.
If it's just a /.../g, it will find all occurences, no matter what's between the occurences, so "tag ([^,]+)" would be almost OK (you would have to take care so that you look for longest tags first, so that you don't match "space 5" when you have "whitespace 5" in the string.
(note that none of the options presented here yet account for that possibility)
 

zarqon

Well-known member
There will be only one occurrence; the tags are all unique, and none contains another. I've changed it already locally, and it seems to be working fine -- granted, I haven't checked with many different familiars yet.
 
Top