efilnikufecin
Member
I was working on building the datamaps for use in conjunction with the scriptlet posted herewhen the thought crossed my mind "what if one of the data maps is empty?" well seemingly a test would be reasonable.
Typing stash put (with the space on the end) resulted in the following:
Now that was scary because there is no way to remove meat from the stash once you put it in. I have 12mil on the multi I was on at the time. I thought I might suddenly be broke.
The command did not put any meat in the coffer. Sighs of relief! This was verified by looking at the stash log. It sure was scary looking though.
I really should have tested with closet put I would have felt safer.
Attached files:
display_stash_closet_multi.ash The script I am working on.
inv_cleanup.ash The script which imports the above script.
I ran into a few problems:
first:
generated the error: error: For input string: "2147483648"
I commented out the line, and created a new maxint and set it to 1 to continue testing. What would the correct value be for maxint? the purpose can easily be seen in that I want to replace the value of maxint with * when generating cli commands from ash. Otherwise I want to be able to use positive and negative numbers as can be done in the cli.
second:
generated the error Record expected (display_stash_closet_multi.ash, line 59) so I changed it to:
I was thinking I was doing the same thing inside the functions: display_dump(itemset set), closet_dump(itemset set), and stash_dump(itemset set) maybe not, but can someone point out the difference to me?
third:
after editing for the previous problem I got "error saving (filename)" from my text editor.
This normally means there is a sharing violation. kolmafia should have released the file though. Exiting and restarting kolmafia was my only solution. No Question, Just pointing this out.
The final problem:
Exception during call to cli_execute. Debug log printed. This one I cannot find a way around. Does anyone see an error on my part? There is only 1 cli execute call, and it is in display_stash_closet_multi.ash.
If need be I can send in a copy of my debug log.
Corrected file attached to bottom post
Typing stash put (with the space on the end) resulted in the following:
> stash put
Donating meat to stash...
Stash list retrieved.
Now that was scary because there is no way to remove meat from the stash once you put it in. I have 12mil on the multi I was on at the time. I thought I might suddenly be broke.
The command did not put any meat in the coffer. Sighs of relief! This was verified by looking at the stash log. It sure was scary looking though.
I really should have tested with closet put I would have felt safer.
Attached files:
display_stash_closet_multi.ash The script I am working on.
inv_cleanup.ash The script which imports the above script.
I ran into a few problems:
first:
Code:
//I don't know if this is max for ash, but I read somewhere this is max for java
//can easily be fixed if not correct.
int maxint = 2147483648;
I commented out the line, and created a new maxint and set it to 1 to continue testing. What would the correct value be for maxint? the purpose can easily be seen in that I want to replace the value of maxint with * when generating cli commands from ash. Otherwise I want to be able to use positive and negative numbers as can be done in the cli.
second:
Code:
void execute_cleanup()
{
display_items.display_dump;
closet_items.closet_dump;
stash_items.stash_dump;
}
Code:
void execute_cleanup()
{
//Record expected (display_stash_closet_multi.ash, line 59)
//display_items.display_dump;
//closet_items.closet_dump;
//stash_items.stash_dump;
display_dump(display_items);
closet_dump(closet_items);
stash_dump(stash_items);
}
third:
after editing for the previous problem I got "error saving (filename)" from my text editor.
This normally means there is a sharing violation. kolmafia should have released the file though. Exiting and restarting kolmafia was my only solution. No Question, Just pointing this out.
The final problem:
Exception during call to cli_execute. Debug log printed. This one I cannot find a way around. Does anyone see an error on my part? There is only 1 cli execute call, and it is in display_stash_closet_multi.ash.
If need be I can send in a copy of my debug log.
Corrected file attached to bottom post