I think I should also mention this particular update in the thread:
You can now type "zlib vars" in the CLI to see all your current script settings. This is quite useful since you can also set vars using the CLI. ("zlib settingname = value")
unless zarqon purposefully tries to screw with you.
I see you posted a new build today of zlib, strangley though zlib is saying something weird.
New Verison of ZLib Available: : 8
Upgrade ZLib from : 9 to : 8 here: http://kolmafia.us/showthread.php?t=2072
The previous version stored the local script's version in the property, the new version stores the current version's. You need to clear that property. Try this.
Code:[COLOR="Olive"]> set _version_zlib =[/COLOR] _version_zlib => [COLOR="#808000"]> zlib[/COLOR] Checking for updates (running ZLib ver. : 9)... _version_zlib => : 9 You have a current version of ZLib.
string excise(string source, string start, string end) {
matcher result = create_matcher(start+"(.+?)"+end, source);
if(result.find()) return result.group(1);
return "";
}
Never mind. My mind zoned out and I have no idea what I was thinking at the time. Anyway, this shouldn't cause trouble again after people manage the update to this version.What are you talking about? It first checks to see if they are identical.
Consider what would happen if start or end contained any regex metacharacters. To safely include arbitrary text, you'd need to build the regex like this:matcher result = create_matcher(start+"(.+?)"+end, source);
[864] Goatlet
Encounter: dairy goat
Strategy: C:\Users\AustinCPC\Desktop\KoL Shit\ccs\sputnik1.ccs [default]
Round 0: sputnik1 wins initiative!
New Version of ZLib Available: : 8
Upgrade ZLib from : 9 to : 8 here: http://kolmafia.us/showthread.php?t=2072
Countdown: 5 seconds...
Countdown: 4 seconds...
Reclaimed 10528 KB of memory
Countdown: 3 seconds...
KoLmafia declares world peace.
You're on your own, partner.
Now. I'm done with this one. If people can't read the thread, where the solution has already been presented THREE TIMES, I don't mind letting them suffer a 25-second wait every time ZLib is called.
New Version of ZLib Available: : 6
Upgrade ZLib from : 9 to : 6 here: http://kolmafia.us/showthread.php?t=2072
Countdown: 5 seconds...
Countdown: 4 seconds...
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.
> set_version_zlib=
Unable to invoke set_version_zlib=
Sorry to bring this demon up again... but let's say some backwards and unassuming individual did not keep his versions up to date (me!).
Code:New Version of ZLib Available: : 6 Upgrade ZLib from : 9 to : 6 here: http://kolmafia.us/showthread.php?t=2072 Countdown: 5 seconds... Countdown: 4 seconds... Countdown: 3 seconds... Countdown: 2 seconds... Countdown: 1 second... Waiting completed. > set_version_zlib= Unable to invoke set_version_zlib=
Clearly set_version_zlib was not added for the version I am running. Can someone explain how I can fix this? Sorry to be a pain