Update to the latest version of ZLib.
Also, is there a way I can use the auto-olfact functionality of first things first and incorporate it into a combat macro? That would excellent.
I have updated to the latest version of ZLib and i am still getting that message.
Whenever I encounter the bustle I go right from my combat macro to attacking. Is it because of my macro or something else? By the way, I'm using the latest daily build so that combat macros work.
1: consult smartstasis.ash
2: attack
Ah, okay. I'll try converting my native combat macro to a kolmafia combat macro. I'll try and figure out how to incorporate olfaction into a native combat macro too to reduce server hits, but I'm kind of a nub at coding and the combat macro thread seems really confusing. I was hoping you guys had magically already figured that out!Did you also delete any old versions of ZLib in your mafia directory? If you have the newest SS/FTF/ZLib, you basically can't get that error.
@Geno: yeah, this won't work with macros, but BatMan probably would if it was last action in your CCS. Too bad you can't use BatMan yet. Ha. Also, please note that you don't need "special action" in your CCS if you use FTF.
Hmm, I'll give this a try. I still don't know a lot about the cli and mafia in general, so thanks for the tip.Actually, setvar only works the first time a variable is executed. Type
zlib ftf_olfact = bustle in the hedgerow, blooper, dairy goat, shaky clown, some zombie waltzers, goth giant, knott yeti, hellion, violent fungus
into the CLI, and that should work. Just remember to set your ZLib variables this way.
Well, I don't know what to tell you about the combat macro working. It totally works fine for me aside from the actions not being described correctly in the cli. Maybe I just got lucky.It is not possible for your native combat macro to be used when you auto-adventure with Mafia. Unless you modified it in some way, or are using an elaborate script.
Please, let's use the same vocabulary so we can understand each other:
- combat macro: the new native KoL feature that allows you to script fights (when adventuring manually)
- custom combat script (CCS): a way to define what Mafia does during a combat, set up in Adventure -> Custom Combat
A few basic questions first:
- did you set your action to "custom combat script" in the Adventure tab (as described KoLMafia Guide)?
- can you autoadventure until you fight a bustle in the hedgerow, and copy/paste the gCLI ouput for the fight here?
EDIT: Ah, thanks heeheehee, I misread geno's post.
To clarify a little: the setvar() function in a script only contains the default value for the variable that is defined. In this case, you edited the script, and told him that "if ftf_olfact doesn't exist in vars_<playername>.txt, use this". Since ftf_olfact already existed, the list you edited wasn't used and your current ftf_olfact value was used.
Zarqon did this so that users wouldn't have to edit scripts to change settings. There are a few ways you can change it: by directly editing vars_<playername>.txt, by using the zlib command in the gCLI ( zlib <var> = <value>, with the spaces), or by using a User Interface Script like this one.
This problem comes up regularly, maybe scripters should add a comment warning how zlib settings should be used next to setvar().
// NOTE: after running this script, changing these variables here in the script will have no
// effect. You can view ("zlib vars") or edit ("zlib <settingname> = <value>") values in the CLI.
[ default ]
1: skill pop and lock it
2: skill break it on down
3: skill run like the wind
4: consult smartstasis.ash
5: attack with weapon
[58530] Astral Mushroom (Great Trip)
Encounter: the Elders of the Gentle Race
Strategy: C:\Users\John\Documents\KoL\KoL mafia\ccs\Cupcakes.ccs [default]
Round 0: geno wins initiative!
Round 1: geno casts POP AND LOCK IT!
Round 2: geno casts BREAK IT ON DOWN!
Round 3: geno casts RUN LIKE THE WIND!
You acquire an item: purple-frosted astral cupcake
"if" requires a boolean conditional expression (FirstThingsFirst.ash, line 257)
Consult script 'smartstasis.ash' not found.
You're on your own, partner.
Round 4: geno attacks!
You acquire an item: toast
You gain 6 Strengthliness
You gain 10 Magicalness
You gain 30 Smarm