efilnikufecin
Member
Start a new session, run inv_cleanup get the results expected. Try to run pulvmalldump, nothing happens.
Start a new session, run pulvmalldump it runs as expected up to the point in which it calls inv_cleanup nothing inside inv_cleanup gets executed. Not even the initial Print("using stuff"); statement. "echo call completed, exiting script." does get executed in pulvmalldump, and is the command right after "call inv_cleanup".
Start a new session, run inv_cleanup, runs as expected. Run it again, nothing happens. Run pulvmalldump nothing happens.
Start a new session, run pulvmmalldump runs as expected (except call statement). Run it again, nothing happens. Run inv_cleanup, Nothing happens.
All of the above scripts still generate "unexpected error, Debug log printed" during (the group of) Mallsell statement(s). Kolmafia does not seem to print more than 1 debug log per session, or display such error message more than once per session. Typing this paragraph has caused me to think of commenting out all the mallsell statements. I will try that and edit with the results.
Edit: Kolmafia also does not seem to be closing the file it errors on.
Edit: the results of the test with a new session, and all mallsell commands removed or commented out starting pulvmalldump which calls inv_cleanup
net.sourceforge.kolmafia.KoLmafiaASH$AdvancedScriptException: Illegal amount of parameters for function file_to_map, got 3, expected 2 (Item_usage.ash, line 15)
Item_usage.ash, line 15, 16, 17, 18:
It's still file_to_map being called more than once causing the problem?
Start a new session, run pulvmalldump it runs as expected up to the point in which it calls inv_cleanup nothing inside inv_cleanup gets executed. Not even the initial Print("using stuff"); statement. "echo call completed, exiting script." does get executed in pulvmalldump, and is the command right after "call inv_cleanup".
Start a new session, run inv_cleanup, runs as expected. Run it again, nothing happens. Run pulvmalldump nothing happens.
Start a new session, run pulvmmalldump runs as expected (except call statement). Run it again, nothing happens. Run inv_cleanup, Nothing happens.
All of the above scripts still generate "unexpected error, Debug log printed" during (the group of) Mallsell statement(s). Kolmafia does not seem to print more than 1 debug log per session, or display such error message more than once per session. Typing this paragraph has caused me to think of commenting out all the mallsell statements. I will try that and edit with the results.
Edit: Kolmafia also does not seem to be closing the file it errors on.
Edit: the results of the test with a new session, and all mallsell commands removed or commented out starting pulvmalldump which calls inv_cleanup
import complete
creating wads
smashing completed,
dumping items to mall
calling inv_cleanup
UNEXPECTED ERROR. Debug log printed.
call completed, exiting script.
net.sourceforge.kolmafia.KoLmafiaASH$AdvancedScriptException: Illegal amount of parameters for function file_to_map, got 3, expected 2 (Item_usage.ash, line 15)
Item_usage.ash, line 15, 16, 17, 18:
Code:
if (!file_to_map( "itemusage.txt", return_table ))
{
print ("File not loaded, A new file will be created.");
}
It's still file_to_map being called more than once causing the problem?