ZLib -- Zarqon's useful function library

I want the stack trace that culminates in a NullPointerException.
Which is to say, the root cause of what caused the script to abort.
Given that, we presumably could fix it and make it not happen again.

You could upload the DEBUG file, rather than copying it into a message.
 
Code:
java.lang.NullPointerException
	at java.io.ByteArrayInputStream.<init>(Unknown Source)
	at net.sourceforge.kolmafia.textui.DataFileCache.getReader(DataFileCache.java:192)
	at net.sourceforge.kolmafia.textui.RuntimeLibrary.file_to_map(RuntimeLibrary.java:7107)
It really was in file_to_map(). This line of code took the NPE:

Code:
		return DataUtilities.getReader( new ByteArrayInputStream( data ) );
in particular, this:

Code:
new ByteArrayInputStream( data )
If data were to be null, I'd expect that, but tracing through all the functions used to get "data", I don't see how that could happen. Hmm. If the DataFileCache had a null stored for the bytes of the requested file, maybe? Still not seeing it.
 
Last edited:
Could be different/broken version of java?

Or corrupted RAM? (but then it probably shouldn't cause exactly the same problem in exactly the same place every time ...)

Or some unrelated problem that just happens to manifest during that constructor. Unlikely.
 
Since it's not in the log... any chance it's funky characters in the name? Only character we escape are spaces, so...
 
After the update to r37 of zlib I get the following in the gCLI when BBB, via zlib, tries to update things:

Code:
Updating recoveryScript_map_v2.txt from '2017-02-06T21:18:34-06:00' to '<html><head><title>KoLmafia Script Registry :: Mafia Map Manager</title><script>function _onload() { document.searchform.search.focus();}</script><link rel="stylesheet" type="text/css" href="styles.css"/></head><body bgcolor=white link=black alink=black vlink=black text=black onLoad="_onload();"><div align="center"><table cellpadding=5> <td><a href="./"><img src="leftswordguy.gif" width=80 height=100 border=0 title="I am not left-handed!" /></a></td> <td><center><b><font size=+2>The KoLmafia Script Registry</font></b><br> A Botter is You!</center></td> <td><a href="./"><img src="rightswordguy.gif" width=80 height=100 border=0 title="!" /></a></td></table><table cellpadding=3><tr><td style="font-family: arial; font-size: 12px;"> <a href="./">Home</a> <b>::</b> <a href="./?p=about">What is This?</a> <b>::</b> <a href="list.php">Scripts</a> <b>::</b> <a href="list.php?w=authors">Authors</a> <b>::</b> <a href="autoupdate.php">Map Manager</a> <b>::</b> <a href="bats.php">BATS!</a> <b>::</b> <a target="_blank" href="http://kolmafia.us/member.php?u=697&tab=aboutme&simple=1" rel="nofollow">Contact</a></td></tr></table><table width="600" cellspacing="0" cellpadding="0" margin="7"><tr> <td style="color: white;" align=center bgcolor=blue><b>Mafia Map Manager</b></td> </tr><tr> <td style="padding: 5px; border: 1px solid blue;"><center> <p> Script authors/contributors can upload data files here which are used by KoLmafia scripts. These data files are easily accessible by mafia scripts. This is designed as a way to ensure that users have the latest version of these files automatically. Moreover, a single user can make an update which will propagate immediately to all users. <p><b>Map files currently stored here:</b><p><div id="maptable"><table style="font-size: smaller"><tr><th>Filename</th><th>Size</th><th>Date</th></tr><tr><td><a href="autoupdate.php?f=ChibiBuddy&act=getmap">ChibiBuddy.txt</a></td><td align="right" style="padding-left: 15px">652 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=HAR_Bounty_Data&act=getmap">HAR_Bounty_Data.txt</a></td><td align="right" style="padding-left: 15px">884 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=HAR_Bounty_Info&act=getmap">HAR_Bounty_Info.txt</a></td><td align="right" style="padding-left: 15px">1.36 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=HAR_Buffbot_Data&act=getmap">HAR_Buffbot_Data.txt</a></td><td align="right" style="padding-left: 15px">4.02 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=HAR_Buffbot_Info&act=getmap">HAR_Buffbot_Info.txt</a></td><td align="right" style="padding-left: 15px">4.04 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=HAR_Options&act=getmap">HAR_Options.txt</a></td><td align="right" style="padding-left: 15px">5.92 KB</td><td align="right" style="padding-left: 15px">6-13-13 10:57</td></tr><tr><td><a href="autoupdate.php?f=HAR_Options_Data&act=getmap">HAR_Options_Data.txt</a></td><td align="right" style="padding-left: 15px">2.52 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=OCDdata_HAR_Default&act=getmap">OCDdata_HAR_Default.txt</a></td><td align="right" style="padding-left: 15px">532 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=OCDdata_selloff&act=getmap">OCDdata_selloff.txt</a></td><td align="right" style="padding-left: 15px">46.52 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=PotionChecker&act=getmap">PotionChecker.txt</a></td><td align="right" style="padding-left: 15px">7.23 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=Trophy&act=getmap">Trophy.txt</a></td><td align="right" style="padding-left: 15px">1.67 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=ascensionrewards&act=getmap">ascensionrewards.txt</a></td><td align="right" style="padding-left: 15px">441 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=batfactors&act=getmap">batfactors.txt</a></td><td align="right" style="padding-left: 15px">114.98 KB</td><td align="right" style="padding-left: 15px">10-15-17 10:54</td></tr><tr><td><a href="autoupdate.php?f=bestfamiliars&act=getmap">bestfamiliars.txt</a></td><td align="right" style="padding-left: 15px">3.95 KB</td><td align="right" style="padding-left: 15px">6-22-13 13:52</td></tr><tr><td><a href="autoupdate.php?f=bestthrone&act=getmap">bestthrone.txt</a></td><td align="right" style="padding-left: 15px">6.94 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=canadv&act=getmap">canadv.txt</a></td><td align="right" style="padding-left: 15px">1.97 KB</td><td align="right" style="padding-left: 15px">9-17-13 09:34</td></tr><tr><td><a href="autoupdate.php?f=checklist&act=getmap">checklist.txt</a></td><td align="right" style="padding-left: 15px">5.86 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=clover_adventures&act=getmap">clover_adventures.txt</a></td><td align="right" style="padding-left: 15px">5.4 KB</td><td align="right" style="padding-left: 15px">9-27-13 03:23</td></tr><tr><td><a href="autoupdate.php?f=combatEndingText&act=getmap">combatEndingText.txt</a></td><td align="right" style="padding-left: 15px">1.72 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=con_cocktail&act=getmap">con_cocktail.txt</a></td><td align="right" style="padding-left: 15px">7.7 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=con_food&act=getmap">con_food.txt</a></td><td align="right" style="padding-left: 15px">11.86 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=con_jewel&act=getmap">con_jewel.txt</a></td><td align="right" style="padding-left: 15px">2.16 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=con_meat&act=getmap">con_meat.txt</a></td><td align="right" style="padding-left: 15px">7.14 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=con_misc&act=getmap">con_misc.txt</a></td><td align="right" style="padding-left: 15px">2.8 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=con_smith&act=getmap">con_smith.txt</a></td><td align="right" style="padding-left: 15px">14 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=createby&act=getmap">createby.txt</a></td><td align="right" style="padding-left: 15px">14.38 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=dungeonstatchecks&act=getmap">dungeonstatchecks.txt</a></td><td align="right" style="padding-left: 15px">322 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=eatdrink_drink_data&act=getmap">eatdrink_drink_data.txt</a></td><td align="right" style="padding-left: 15px">16.49 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=eatdrink_food_data&act=getmap">eatdrink_food_data.txt</a></td><td align="right" style="padding-left: 15px">25.42 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=faxbot_monsters&act=getmap">faxbot_monsters.txt</a></td><td align="right" style="padding-left: 15px">3.56 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=feedme_food&act=getmap">feedme_food.txt</a></td><td align="right" style="padding-left: 15px">623 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=item_search_classifiers&act=getmap">item_search_classifiers.txt</a></td><td align="right" style="padding-left: 15px">315 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=lar_encounter_data_v1&act=getmap">lar_encounter_data_v1.txt</a></td><td align="right" style="padding-left: 15px">208.34 KB</td><td align="right" style="padding-left: 15px">8-19-17 09:26</td></tr><tr><td><a href="autoupdate.php?f=mad-tea-party&act=getmap">mad-tea-party.txt</a></td><td align="right" style="padding-left: 15px">1.02 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=mr_items&act=getmap">mr_items.txt</a></td><td align="right" style="padding-left: 15px">5.52 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=noncombats&act=getmap">noncombats.txt</a></td><td align="right" style="padding-left: 15px">2.75 KB</td><td align="right" style="padding-left: 15px">7-18-13 23:37</td></tr><tr><td><a href="autoupdate.php?f=passive_damage_sources&act=getmap">passive_damage_sources.txt</a></td><td align="right" style="padding-left: 15px">1.04 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=pluralMonsters&act=getmap">pluralMonsters.txt</a></td><td align="right" style="padding-left: 15px">813 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=postal_locations&act=getmap">postal_locations.txt</a></td><td align="right" style="padding-left: 15px">465 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=postal_questlogs&act=getmap">postal_questlogs.txt</a></td><td align="right" style="padding-left: 15px">3.83 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=quests&act=getmap">quests.txt</a></td><td align="right" style="padding-left: 15px">598 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=rare_items&act=getmap">rare_items.txt</a></td><td align="right" style="padding-left: 15px">6.5 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=recoveryScript_map_v2&act=getmap">recoveryScript_map_v2.txt</a></td><td align="right" style="padding-left: 15px">4.2 KB</td><td align="right" style="padding-left: 15px">2-06-17 21:18</td></tr><tr><td><a href="autoupdate.php?f=relfx&act=getmap">relfx.txt</a></td><td align="right" style="padding-left: 15px">6.78 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=skills_descriptions&act=getmap">skills_descriptions.txt</a></td><td align="right" style="padding-left: 15px">12.46 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=slimetube_equipment&act=getmap">slimetube_equipment.txt</a></td><td align="right" style="padding-left: 15px">320 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=sry_bestfams&act=getmap">sry_bestfams.txt</a></td><td align="right" style="padding-left: 15px">3.65 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=sry_fameq&act=getmap">sry_fameq.txt</a></td><td align="right" style="padding-left: 15px">587 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=sry_spirits&act=getmap">sry_spirits.txt</a></td><td align="right" style="padding-left: 15px">1.77 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=std_NegativeStatusEffects&act=getmap">std_NegativeStatusEffects.txt</a></td><td align="right" style="padding-left: 15px">1.24 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=tattoos_gifname_outfits&act=getmap">tattoos_gifname_outfits.txt</a></td><td align="right" style="padding-left: 15px">8.67 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=trophies_descriptions&act=getmap">trophies_descriptions.txt</a></td><td align="right" style="padding-left: 15px">8.36 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=turtles&act=getmap">turtles.txt</a></td><td align="right" style="padding-left: 15px">5.63 KB</td><td align="right" style="padding-left: 15px">3-11-14 05:29</td></tr><tr><td><a href="autoupdate.php?f=use_for_items&act=getmap">use_for_items.txt</a></td><td align="right" style="padding-left: 15px">42.2 KB</td><td align="right" style="padding-left: 15px">10-04-17 13:06</td></tr><tr><td><a href="autoupdate.php?f=use_for_meat&act=getmap">use_for_meat.txt</a></td><td align="right" style="padding-left: 15px">756 B</td><td align="right" style="padding-left: 15px">10-15-15 07:46</td></tr><tr><td><a href="autoupdate.php?f=vars_documentation&act=getmap">vars_documentation.txt</a></td><td align="right" style="padding-left: 15px">62.72 KB</td><td align="right" style="padding-left: 15px">10-07-17 02:41</td></tr></table></div> <p> <b>Only upload data files here if</b>: <ul> <li>The file is a map, such as those generated by map_to_file().</li> <li><a href="http://kolmafia.us/showthread.php?t=1515" target="_new">Automatic update functionality</a> is written into the script which uses the file.</li> </ul> <p> <b>File Upload:</b> <p> <form name="scriptform" method="post" action="autoupdate.php" enctype="multipart/form-data"> <input name="scriptdata" type="file" class="uinfo"> <input type="submit" value="Upload"></form> </td></center> </tr></table><center><font face=Arial size=1>Script Registry by<a target="_blank" href="http://kolmafia.us/member.php?u=697&tab=aboutme&simple=1" rel="nofollow">zarqon</a>is provided as a free service to users of<a target="_blank" href="http://kolmafia.sourceforge.net/" rel="nofollow">KoLmafia</a>,<br>who are in turn players of<a target="_blank" href="http://www.kingdomofloathing.com/" rel="nofollow">Kingdom of Loathing</a>,which is ? 2007 <a target="_blank" href="http://asymmetric.net/" rel="nofollow">Asymmetric Publications, LLC</a></font></center></div></body></html>'...
Updating recoveryScript_map_v2.txt from '2017-02-06T21:18:34-06:00' to '<html><head><title>KoLmafia Script Registry :: Mafia Map Manager</title><script>function _onload() { document.searchform.search.focus();}</script><link rel="stylesheet" type="text/css" href="styles.css"/></head><body bgcolor=white link=black alink=black vlink=black text=black onLoad="_onload();"><div align="center"><table cellpadding=5> <td><a href="./"><img src="leftswordguy.gif" width=80 height=100 border=0 title="I am not left-handed!" /></a></td> <td><center><b><font size=+2>The KoLmafia Script Registry</font></b><br> A Botter is You!</center></td> <td><a href="./"><img src="rightswordguy.gif" width=80 height=100 border=0 title="!" /></a></td></table><table cellpadding=3><tr><td style="font-family: arial; font-size: 12px;"> <a href="./">Home</a> <b>::</b> <a href="./?p=about">What is This?</a> <b>::</b> <a href="list.php">Scripts</a> <b>::</b> <a href="list.php?w=authors">Authors</a> <b>::</b> <a href="autoupdate.php">Map Manager</a> <b>::</b> <a href="bats.php">BATS!</a> <b>::</b> <a target="_blank" href="http://kolmafia.us/member.php?u=697&tab=aboutme&simple=1" rel="nofollow">Contact</a></td></tr></table><table width="600" cellspacing="0" cellpadding="0" margin="7"><tr> <td style="color: white;" align=center bgcolor=blue><b>Mafia Map Manager</b></td> </tr><tr> <td style="padding: 5px; border: 1px solid blue;"><center> <p> Script authors/contributors can upload data files here which are used by KoLmafia scripts. These data files are easily accessible by mafia scripts. This is designed as a way to ensure that users have the latest version of these files automatically. Moreover, a single user can make an update which will propagate immediately to all users. <p><b>Map files currently stored here:</b><p><div id="maptable"><table style="font-size: smaller"><tr><th>Filename</th><th>Size</th><th>Date</th></tr><tr><td><a href="autoupdate.php?f=ChibiBuddy&act=getmap">ChibiBuddy.txt</a></td><td align="right" style="padding-left: 15px">652 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=HAR_Bounty_Data&act=getmap">HAR_Bounty_Data.txt</a></td><td align="right" style="padding-left: 15px">884 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=HAR_Bounty_Info&act=getmap">HAR_Bounty_Info.txt</a></td><td align="right" style="padding-left: 15px">1.36 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=HAR_Buffbot_Data&act=getmap">HAR_Buffbot_Data.txt</a></td><td align="right" style="padding-left: 15px">4.02 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=HAR_Buffbot_Info&act=getmap">HAR_Buffbot_Info.txt</a></td><td align="right" style="padding-left: 15px">4.04 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=HAR_Options&act=getmap">HAR_Options.txt</a></td><td align="right" style="padding-left: 15px">5.92 KB</td><td align="right" style="padding-left: 15px">6-13-13 10:57</td></tr><tr><td><a href="autoupdate.php?f=HAR_Options_Data&act=getmap">HAR_Options_Data.txt</a></td><td align="right" style="padding-left: 15px">2.52 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=OCDdata_HAR_Default&act=getmap">OCDdata_HAR_Default.txt</a></td><td align="right" style="padding-left: 15px">532 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=OCDdata_selloff&act=getmap">OCDdata_selloff.txt</a></td><td align="right" style="padding-left: 15px">46.52 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=PotionChecker&act=getmap">PotionChecker.txt</a></td><td align="right" style="padding-left: 15px">7.23 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=Trophy&act=getmap">Trophy.txt</a></td><td align="right" style="padding-left: 15px">1.67 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=ascensionrewards&act=getmap">ascensionrewards.txt</a></td><td align="right" style="padding-left: 15px">441 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=batfactors&act=getmap">batfactors.txt</a></td><td align="right" style="padding-left: 15px">114.98 KB</td><td align="right" style="padding-left: 15px">10-15-17 10:54</td></tr><tr><td><a href="autoupdate.php?f=bestfamiliars&act=getmap">bestfamiliars.txt</a></td><td align="right" style="padding-left: 15px">3.95 KB</td><td align="right" style="padding-left: 15px">6-22-13 13:52</td></tr><tr><td><a href="autoupdate.php?f=bestthrone&act=getmap">bestthrone.txt</a></td><td align="right" style="padding-left: 15px">6.94 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=canadv&act=getmap">canadv.txt</a></td><td align="right" style="padding-left: 15px">1.97 KB</td><td align="right" style="padding-left: 15px">9-17-13 09:34</td></tr><tr><td><a href="autoupdate.php?f=checklist&act=getmap">checklist.txt</a></td><td align="right" style="padding-left: 15px">5.86 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=clover_adventures&act=getmap">clover_adventures.txt</a></td><td align="right" style="padding-left: 15px">5.4 KB</td><td align="right" style="padding-left: 15px">9-27-13 03:23</td></tr><tr><td><a href="autoupdate.php?f=combatEndingText&act=getmap">combatEndingText.txt</a></td><td align="right" style="padding-left: 15px">1.72 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=con_cocktail&act=getmap">con_cocktail.txt</a></td><td align="right" style="padding-left: 15px">7.7 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=con_food&act=getmap">con_food.txt</a></td><td align="right" style="padding-left: 15px">11.86 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=con_jewel&act=getmap">con_jewel.txt</a></td><td align="right" style="padding-left: 15px">2.16 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=con_meat&act=getmap">con_meat.txt</a></td><td align="right" style="padding-left: 15px">7.14 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=con_misc&act=getmap">con_misc.txt</a></td><td align="right" style="padding-left: 15px">2.8 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=con_smith&act=getmap">con_smith.txt</a></td><td align="right" style="padding-left: 15px">14 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=createby&act=getmap">createby.txt</a></td><td align="right" style="padding-left: 15px">14.38 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=dungeonstatchecks&act=getmap">dungeonstatchecks.txt</a></td><td align="right" style="padding-left: 15px">322 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=eatdrink_drink_data&act=getmap">eatdrink_drink_data.txt</a></td><td align="right" style="padding-left: 15px">16.49 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=eatdrink_food_data&act=getmap">eatdrink_food_data.txt</a></td><td align="right" style="padding-left: 15px">25.42 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=faxbot_monsters&act=getmap">faxbot_monsters.txt</a></td><td align="right" style="padding-left: 15px">3.56 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=feedme_food&act=getmap">feedme_food.txt</a></td><td align="right" style="padding-left: 15px">623 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=item_search_classifiers&act=getmap">item_search_classifiers.txt</a></td><td align="right" style="padding-left: 15px">315 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=lar_encounter_data_v1&act=getmap">lar_encounter_data_v1.txt</a></td><td align="right" style="padding-left: 15px">208.34 KB</td><td align="right" style="padding-left: 15px">8-19-17 09:26</td></tr><tr><td><a href="autoupdate.php?f=mad-tea-party&act=getmap">mad-tea-party.txt</a></td><td align="right" style="padding-left: 15px">1.02 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=mr_items&act=getmap">mr_items.txt</a></td><td align="right" style="padding-left: 15px">5.52 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=noncombats&act=getmap">noncombats.txt</a></td><td align="right" style="padding-left: 15px">2.75 KB</td><td align="right" style="padding-left: 15px">7-18-13 23:37</td></tr><tr><td><a href="autoupdate.php?f=passive_damage_sources&act=getmap">passive_damage_sources.txt</a></td><td align="right" style="padding-left: 15px">1.04 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=pluralMonsters&act=getmap">pluralMonsters.txt</a></td><td align="right" style="padding-left: 15px">813 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=postal_locations&act=getmap">postal_locations.txt</a></td><td align="right" style="padding-left: 15px">465 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=postal_questlogs&act=getmap">postal_questlogs.txt</a></td><td align="right" style="padding-left: 15px">3.83 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=quests&act=getmap">quests.txt</a></td><td align="right" style="padding-left: 15px">598 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=rare_items&act=getmap">rare_items.txt</a></td><td align="right" style="padding-left: 15px">6.5 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=recoveryScript_map_v2&act=getmap">recoveryScript_map_v2.txt</a></td><td align="right" style="padding-left: 15px">4.2 KB</td><td align="right" style="padding-left: 15px">2-06-17 21:18</td></tr><tr><td><a href="autoupdate.php?f=relfx&act=getmap">relfx.txt</a></td><td align="right" style="padding-left: 15px">6.78 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=skills_descriptions&act=getmap">skills_descriptions.txt</a></td><td align="right" style="padding-left: 15px">12.46 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=slimetube_equipment&act=getmap">slimetube_equipment.txt</a></td><td align="right" style="padding-left: 15px">320 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=sry_bestfams&act=getmap">sry_bestfams.txt</a></td><td align="right" style="padding-left: 15px">3.65 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=sry_fameq&act=getmap">sry_fameq.txt</a></td><td align="right" style="padding-left: 15px">587 B</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=sry_spirits&act=getmap">sry_spirits.txt</a></td><td align="right" style="padding-left: 15px">1.77 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=std_NegativeStatusEffects&act=getmap">std_NegativeStatusEffects.txt</a></td><td align="right" style="padding-left: 15px">1.24 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=tattoos_gifname_outfits&act=getmap">tattoos_gifname_outfits.txt</a></td><td align="right" style="padding-left: 15px">8.67 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=trophies_descriptions&act=getmap">trophies_descriptions.txt</a></td><td align="right" style="padding-left: 15px">8.36 KB</td><td align="right" style="padding-left: 15px">4-02-13 09:27</td></tr><tr><td><a href="autoupdate.php?f=turtles&act=getmap">turtles.txt</a></td><td align="right" style="padding-left: 15px">5.63 KB</td><td align="right" style="padding-left: 15px">3-11-14 05:29</td></tr><tr><td><a href="autoupdate.php?f=use_for_items&act=getmap">use_for_items.txt</a></td><td align="right" style="padding-left: 15px">42.2 KB</td><td align="right" style="padding-left: 15px">10-04-17 13:06</td></tr><tr><td><a href="autoupdate.php?f=use_for_meat&act=getmap">use_for_meat.txt</a></td><td align="right" style="padding-left: 15px">756 B</td><td align="right" style="padding-left: 15px">10-15-15 07:46</td></tr><tr><td><a href="autoupdate.php?f=vars_documentation&act=getmap">vars_documentation.txt</a></td><td align="right" style="padding-left: 15px">62.72 KB</td><td align="right" style="padding-left: 15px">10-07-17 02:41</td></tr></table></div> <p> <b>Only upload data files here if</b>: <ul> <li>The file is a map, such as those generated by map_to_file().</li> <li><a href="http://kolmafia.us/showthread.php?t=1515" target="_new">Automatic update functionality</a> is written into the script which uses the file.</li> </ul> <p> <b>File Upload:</b> <p> <form name="scriptform" method="post" action="autoupdate.php" enctype="multipart/form-data"> <input name="scriptdata" type="file" class="uinfo"> <input type="submit" value="Upload"></form> </td></center> </tr></table><center><font face=Arial size=1>Script Registry by<a target="_blank" href="http://kolmafia.us/member.php?u=697&tab=aboutme&simple=1" rel="nofollow">zarqon</a>is provided as a free service to users of<a target="_blank" href="http://kolmafia.sourceforge.net/" rel="nofollow">KoLmafia</a>,<br>who are in turn players of<a target="_blank" href="http://www.kingdomofloathing.com/" rel="nofollow">Kingdom of Loathing</a>,which is ? 2007 <a target="_blank" href="http://asymmetric.net/" rel="nofollow">Asymmetric Publications, LLC</a></font></center></div></body></html>'...

It does so every time a combat ends. Reverted to the previous version and the behavior persisted.

What "fixed" it was to go directly to https://www.zachbardon.com/mafiatools/autoupdate.php and download the recoveryScript_map_v2.txt file into the KoLmafia data directory.
 
Last edited:
That's not Zlib's fault, since UR doesn't import ZLib. I can tell you what the problem is though. The website switched to use https and even though it redirects automatically, somehow POST information is lost when forwarding, but only from within a script. The identical ASH command works from the CLI. I don't fully understand it, but I updated ZLib to use https in keeping with the server change and that seems to have fixed it. Bale's UR doesn't import ZLib and instead uses his own version of the map updating code, which needless to say I can't update. But change it from http to https and you should be good.
 
http redirects to https but KoLmafia loses ... something ... when following that redirect?

Seems like a KoLmafia bug report would be in order - preferably with a specific "I did this, expected that and got something else" accompanied by a DEBUG log.

Thanks.
 
There seems to be a problem with the SSL certificate in use by zachbardon.com.

Code:
There was a problem accessing the Map Manager.
IOException during data post (https://zachbardon.com/mafiatools/autoupdate.php?f=recoveryScript_map_v2&act=getver): sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed.
IOException during data post (https://zachbardon.com/mafiatools/autoupdate.php?f=recoveryScript_map_v2&act=getver): sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed.
There was a problem accessing the Map Manager.

When I went to the site in Chrome it complained about an invalid date for the certificate.
 
Reported, and fixed.

Wedding preparations have me automating all my turns for the last several months like some kind of... automaton. Good thing there are all these scripts!
 
I create a new .ash file and enter one line:
import <zlib.ash>

Now every time I run this script I get a stack overflow error. Specifically:

Stack overflow during ASH script: (zlib.ash, line 54)

I've made sure the script was up to date (checked it out and updated it using Mafia's script management interface). Please help me identify what it is I'm doing wrong.
 
Ok, I guess I just needed to update zlib, just not sure how I did it. I ran my script: Stack Overflow. Ran it again, no changes: same. Ran it a third time, no changes: it updated zlib. Now the script seems to run fine. Sorry to bother everyone.
 
I got a "Bad monster value: "the clownlord beelzebozo" (zlib.ash, line 708)" today, I assume because Veracity fixed the names in mafia's data files. I can fix it for myself easily enough, but I assume it is something that it'd be good to put in order in the script proper too :)
 
Well... it's because I changed monster names to be case sensitive in ASH. Just like items, effects, etc.
However, unlike those latter ones, there's no code, yet, to be case-tolerant and give "friendly warnings" rather than errors.
I'll do that, eventually.
 
Back
Top