import not recognized

kadan

New member
Hello,

What do I do to use the ZLIB.ash call in my KolMafia scripts?

I tried to use ZLIB.ash function and per the documentation added

import <zlib.ash>

to my script.

When I ran the script through mafia I got this result...

No available namespace with fuction: import

I believe I am missing something very basic. I tried to search on import ash script and the tutorial is under construction.
 

Catch-22

Active member
Only if you actually want it to be one.

Agreed.

Actually I think somewhere along the line somebody did that knowingly, don't ask me why.
I just remember reading a comment somewhere that said something like "allow .ash to be anywhere in the file name".

Just a simple matter of changing the ASHNAME_PATTERN to
Code:
"^.+\\.ash$"
on line 159 of KoLmafiaCLI.java

It's not going to kill anyone if you don't fix it though.

Code:
hello.ash       Yes
.ash            No
hello.ash.bye   No
 
Last edited:

Spiny

Member
Agreed.

Actually I think somewhere along the line somebody did that knowingly, don't ask me why.
I just remember reading a comment somewhere that said something like "allow .ash to be anywhere in the file name".

Just a simple matter of changing the ASHNAME_PATTERN to "^.+\\.ash$" on line whatever of KoLmafiaCLI.java

It's not going to kill anyone if you don't fix it though.

Code:
hello.ash       Yes
.ash            No
hello.ash.bye   No

*thinks I'll have to double check that my backup copies of scripts are all named blah_old.ash rather than blah.ash.old*
 
Top