Page 3 of 126 FirstFirst 1 2 3 4 5 13 53 103 ... LastLast
Results 21 to 30 of 1254

Thread: ZLib -- Zarqon's useful function library

  1. #21
    Junior Member
    Join Date
    Aug 2007
    Posts
    20

    Default

    installed this and now get the following error when trying to use FirstThingsFirst.ash

    Code:
    Unknown variable 'threshold' (FirstThingsFirst.ash, line 77)

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

    Default

    Have patience -- I'll have all the updated scripts up within a few hours, I should expect.

    For an immediate quick fix, replace instances of "threshold" with:

    to_int(vars["threshold"])
    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. #23
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

    Default

    WOO! This rocks!

    Suggestion: In the map file, include with each setting:
    * the name of the script that initially set it
    * the date it was originally set
    * the name of the script that accessed it last
    * the date it was last accessed.
    That should go a long way towards the problem of "does anything use this setting any more, and if not, can I delete it".

    Yippitee skippity!

  4. #24
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default

    As dj_d says. It would be nice to be able to tell at a glance "does anything use this setting any more, and if not, can I delete it".
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


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

    Default

    If you aren't sure it's used by anything, just delete it. A script that uses that setting will just reset it to the default value next time it's run.

    I have plans in the wings for some kind of online user-editable documentation, where script authors and users alike can add which scripts use which settings and what they do. Users will also be able to edit their settings online (where the documentation is) and fetch that edited map from the server. This release has taken my scripting energy for the nonce, so don't expect it in the immediate future.
    Last edited by zarqon; 07-25-2009 at 11:41 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!

  6. #26
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

    Default

    I knew you could put it on a server! I had faith!

  7. #27
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

    Default

    If you aren't sure it's used by anything, just delete it. A script that uses that setting will just reset it to the default value next time it's run.

    You dramatically underestimate the OCDfactor of your colleagues here. I am already concerned that, right this very minute, I MIGHT HAVE SOME EXTRA SETTINGS THAT I DON'T NEED. Or even worse, I might DELETE A SETTING THAT WAS OPTIMAL AND REVERT TO AN INFERIOR DEFAULT!!!

    I hate to shout, but this is our collective sanity on the line. Or over the line.

  8. #28
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,499

    Default

    That was actually one of my design considerations. I originally designed a record for settings that included the script using the setting. But I realized that several things about the implementation were better simpler, and decided to leave the calling script information out of it, and use the script prefix idea: callingscript_settingname.

    I also knew that I could trust my fellow OCD script authors to keep the settings file organized by following the naming conventions I wrote about at length in the above post.
    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!

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

    Default

    Sorry for what I'm sure has been a flurry of annoying popups lately. This (Build 4) should be the last of the semi-unnecessary ones! The new system seems fairly stable. Any further popups will be due to bugfixes or Super Awesome Things, both of which are quite necessary.
    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. #30
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

    Default

    My $0.02: Better to have a setting with a clear parent that is also incidentally accessed by something else, than a setting with no clear parent. If a script attempts to set the default, it should claim it with a prefix; if others want to access it, that's OK. That way every setting has a connection to the script that set it, and you have a chance in hell to figure out what it's for.

    So basically, I'd recommend doing away with "common settings" and give them all a prefix - the script which created the setting.

    (that's what I'm doing for my scripts, anyway!)

Similar Threads

  1. Replies: 1
    Last Post: 11-25-2013, 07: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
  •