AlbinoRhino
Active member
I have recently acquired an effect (intrinsic): Dad
lol. Congrats!
I have recently acquired an effect (intrinsic): Dad
For your case, is there a reason to make the filenames user-configurable?
OCDdata_shared.txt
) for all my multis.setvar()
, then use the player's name if getvar()
returns an empty string. Unfortunately, my hands are full, so I can't test the idea right now.vars
, could you provide an alternative way to programmatically modify a variable? I could call cli_execute("zlib somevar = newvalue")
but it's rather clunky and slow.I have recently acquired an effect (intrinsic): Dad, though, so my coding time is quite limited at the moment.
I did as you asked and found "vars[" in quite a few scripts that I've accumulated over the years. Some of them are minor but EatDrink is not.
View attachment 10240
equals(str1, str2)
? It's supposed to case-sensitively compare two strings, but is now redundant because the ==
operator became case-sensitive in KoLmafia r16180. This was 6 years ago, and I doubt anyone is using equals()
now.equals()
in ZLib itself, and (2) prints a once-per-session warning if equals()
is called.I'm seeing the once per session warning, when going into combat. Do I need to set up a debug log before entering combat, or would this be something caused by Smart Stasis and/or WHAM?
Edit:Went ahead and made a debug log, but it's too big to upload. Did another session and only fought once, finally got a debug log small enough to upload.
Hi - I've been getting an error in KolMafia today: Bad class value: "ed the undying" (zlib.ash, line 503). Does anyone know how I can fix it? Thank you!
Thanks for the response! Sorry, I'm new to using KolMafia - how should I update zlib's since directive?If you are getting the message I've seen, it's not an error that stops things and it should tell you you can edit the script and change something to make the message go away. If that is not your experience than I wonder if you are running a recent enough version of KoLmafia?
It might be appropriate to update zlib's "since" directive.
Thanks for the response! Sorry, I'm new to using KolMafia - how should I update zlib's since directive?
I have the most recent version of KoLmafia I believe, version 26.143.
@fronoulax
Greetings from the past. To help elsyecat I rant text editor+ to get the line count:
}
// returns the amount of ka dropped by a given monster
float kadrop(monster m) {
if (my_class() != $class[ed the undying]) return 0;
float res;
switch (m.phylum) {
case $phylum[dude]: case $phylum[hippy]: case $phylum[hobo]: case $phylum[pirate]: res = 1;
case $phylum[beast]: case $phylum[bug]: case $phylum[elf]: case $phylum[fish]: case $phylum[goblin]: case $phylum[humanoid]:
case $phylum[mer-kin]: case $phylum[orc]: case $phylum[penguin]: case $phylum[elemental]: res += 1;
if (res > 0 && my_servant() == $servant[priest] && $servant[priest].level >= 14) res += 1; break;
case $phylum[undead]: if (have_equipped($item[the crown of ed the undying])) return 0.2; // total guess
}
return res;
}
In my case Harvest was calling the zlib script and when it sees "ed the undying" it errors out. I replaced Ed with a pastamancer and harvest ran just fine. I suspect the class ed the undying has been changed to something new.