Page 124 of 125 FirstFirst ... 24 74 114 122 123 124 125 LastLast
Results 1,231 to 1,240 of 1250

Thread: ZLib -- Zarqon's useful function library

  1. #1231
    Senior Member
    Join Date
    Apr 2009
    Posts
    1,726

    Default

    Harmful to whom? Error reports due to using an out-of-date version of one of my scripts have dwindled to nearly nonexistent. My scripts also take advantage of the "since" command to avoid problems caused by using a non-current build of mafia.
    Originally Posted by zarqon View Post
    Do you think "since" will prevent mafia from installing a too-new version of a script? I don't see any protection against that. It will just print a more intelligent error message with any action that uses the script.

  2. #1232
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,483

    Default

    @xKiv: Unfortunately no, but at least there will be no user confusion over the error.

    @Magus: Such a variable (or rather, property) now exists, if you think about it.

    @frono: Perhaps, for your amusement, I will post error messages in your threads caused by outdated versions of your scripts, just for old times' sake! Then when you smugly ask me about which version I am using, I will reply with the appropriate level of mildly embarrassed chagrin and let you know that the problem is solved!

    at least three different ways of checking for updates
    Originally Posted by fronobulax View Post
    All but one of which are now controlled by user settings. But this makes me wonder if anyone is using ZLib's old "forum thread" method of version checking. I strongly doubt that I am.
    Sig by JakAtk
    My scripts: Prefref Plus | One-Click Wossname | Om******t (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mer********d (?!) | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | CanAdv | Script Registry | Map Manager | About Bats
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  3. #1233
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    D.C. suburbs of Virginia, USA
    Posts
    3,774

    Default

    *snicker*

    I would support deprecating and then removing the "check a thread for updates" code.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post
    There are 69 players more powerful than you.
    Originally Posted by Statistics Leaderboards

  4. #1234
    Senior Member
    Join Date
    Aug 2008
    Posts
    106

    Default

    Script execution aborted (java.lang.NullPointerException): (zlib.ash, line 314)


    I have 0 idea what this means or how to fix it. Just started a few minutes ago, can't do anything that uses zlib.

  5. #1235
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,483

    Default

    That line is:

    PHP Code:
    file_to_map("vars_"+replace_string(my_name()," ","_")+".txt",vars); 
    So perhaps there's a problem with your settings file? Did you edit it manually at any point? Does KoLmafia somehow not have permission to read the file? Does the error stop if you rename the file? (Careful with that last one as all your settings will be temporarily deleted until you rename it back.)
    Sig by JakAtk
    My scripts: Prefref Plus | One-Click Wossname | Om******t (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mer********d (?!) | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | CanAdv | Script Registry | Map Manager | About Bats
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  6. #1236
    Senior Member
    Join Date
    Aug 2008
    Posts
    106

    Default

    I don't recall editing that particular line, unless it was in that section regarding SVN updates. That's the only time I've edited zlib manually (as far as I recall), for anything else I normally just use the gcli commands. Did not try renaming the file, can't until tomorrow. Auto-attack bypassed zlib again so I was able to finish the day. I did a manual update, just in case something was being stupid on my end somewhere. Will check back in tomorrow, and thanks for the swift response! <3

  7. #1237
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    D.C. suburbs of Virginia, USA
    Posts
    3,774

    Default

    I don't recall editing that particular line, unless it was in that section regarding SVN updates.
    Originally Posted by snooty View Post
    This raises the possibility that the line 314 that caused the error is not the same line 314 in what zarqon was looking at.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post
    There are 69 players more powerful than you.
    Originally Posted by Statistics Leaderboards

  8. #1238
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,131

    Default

    Script execution aborted (java.lang.NullPointerException): (zlib.ash, line 314)
    Originally Posted by snooty View Post
    What does the DEBUG log say?
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  9. #1239
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,483

    Default

    Sorry, I wasn't asking about your editing ZLib, but rather your ZLib settings file, vars_<yourname>.txt. Editing that in a non-text editor was all I could think of that might possibly be a cause for your error.
    Sig by JakAtk
    My scripts: Prefref Plus | One-Click Wossname | Om******t (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mer********d (?!) | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | CanAdv | Script Registry | Map Manager | About Bats
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  10. #1240
    Senior Member
    Join Date
    Aug 2008
    Posts
    106

    Default

    @Veracity: the list is huge and I don't know how to make those little scroll windows so my reply won't take up half the internet.

    @zarqon: My vars I do through the gCli, when I edited zlib directly it was in notepad so, yeah. Was zlib updated yesterday? It's working fine now (after the manual update + new session) and what comes to mind is maybe there was an update posted in the middle of my session and it freaked out mafia? Also, I know this isn't zlib's fault, but mafia seems to keep forgetting I have access to that 70s volcano and won't fetch my volcoino through a script. Where would I stick that issue?

Similar Threads

  1. Replies: 1
    Last Post: 11-25-2013, 06:48 PM
  2. StDoodle's Libray - Another function library
    By StDoodle in forum Scripting Discussion
    Replies: 6
    Last Post: 10-29-2013, 10:04 PM
  3. ROFL -- Ridiculously Overelaborate Function Library
    By Catch-22 in forum Informational Scripts
    Replies: 6
    Last Post: 06-07-2012, 07:28 AM
  4. is there a way to see what a function within zlib returns?
    By maximillian the red in forum Community Support
    Replies: 6
    Last Post: 10-03-2011, 07:33 PM
  5. Adventure Function Library
    By muffins in forum Scripting Discussion
    Replies: 9
    Last Post: 05-06-2006, 12:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •