Page 3 of 21 FirstFirst 1 2 3 4 5 13 ... LastLast
Results 21 to 30 of 204

Thread: Script Registry -- for script authors; track your script usage

  1. #21
    Developer
    Join Date
    Apr 2006
    Posts
    887

    Default

    Subfolders work wonders to organize scripts.

  2. #22
    Senior Member bumcheekcity's Avatar
    Join Date
    Mar 2009
    Posts
    1,401

    Default

    @bumcheek: Looked at the PHP... it's still checking to see that the agent is identified as mafia. I bet you've set mafia's "use last browser's userAgent" preference (on the "General" tab). Unchecking that preference and restarting mafia would probably allow you to run this script just fine, with little to no effect on your relay browser play.

    I think that check is probably unnecessary (perhaps I was a little overzealous about security) and I'll look for a way to rewrite that. For now, I would recommend unchecking that setting.
    Originally Posted by zarqon View Post
    That worked perfectly. Perhaps you should say that on the error, but not to sound ungrateful. Thanks, the script's great!

  3. #23
    Senior Member bumcheekcity's Avatar
    Join Date
    Mar 2009
    Posts
    1,401

    Default

    Zarqon, what do you do about people who re-name your scripts before they use them? It's pretty obvious they're users of the script, but they named it hccheck-cc.ash or whatever, so it won't work with the script.

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

    Default

    I can tell you what I do when that happens. I add a line to register_user() that looks like this:

    if(scriptname == "chamoix.ash") scriptname = "chamois.ash";

    You should be able to figure out exactly where in the function to insert it. Then I just change the specifics based on the kmail.
    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,492

    Default

    I originally planned a kind of "aliasing" idea, where you could register aliases of scripts by typing [register secondaryscriptname alias of primaryscriptname]. This is supported in the ASH script, but is still not supported server-side.

    For now, Bale's solution ought to do you nicely. Personally, I usually just delete those notifications. But it is becoming common knowledge that I am not as OCD as he is.
    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
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default

    LoL! Yeah, I like certain things to be done precisely. If someone sends me a notification for one of my scripts I want it sorted properly even if they change the name.

    Anyway, I'd say that anyone who has a valid need for this script should be able to figure out such a minor detail as how to use that information I provided in the previous post so it isn't important for you to update the script for such eventualities. This is a script for script writers after all.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  7. #27
    Senior Member mredge73's Avatar
    Join Date
    Dec 2008
    Location
    Houston TX
    Posts
    519

    Default

    hello Zarqon

    I have a low priority request:

    • [unregister scriptname] - Use this command to delete a script you have registered from the registry. At present, scripts cannot be unregistered if they have more than one registered user. Example: [unregister myscript.ash]


    Can this be updated so an author can remove scripts no longer supported?
    Personally, I have changed the name of 3 of my scripts that I have registered and would like to be able to remove them since I no longer support them by that name.

    Again, this is low-priority. They are not hurting anything by being up there, just making a mess.

  8. #28
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default

    What might be better and more useful is: [changename oldscriptname newscriptname]

    which would merge the user lists of the two scripts into newscriptname while removing the entry for oldscriptname. I think that is really what you want. It would tidy up your list of scripts without losing any relevant information.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


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

    Default

    If you want to change the name of a script, just kmail/PM me, and I'll edit the data file directly. Then all your previously registered users will persist. In your case, if you've already added the renamed scripts to the registry, that presents more of a difficulty. Let me know what you'd like to do.

    PS -- yay for the recent "script" directive, eh? I should probably include this in the Wiki page I made for notify.
    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
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default

    I just wanted to thank you again for this script. Whenever I have a heavy notify day...

    14 messages processed successfully.
    Deleting processed mail...
    14 messages deleted.
    That makes me so glad that I didn't have to check them all manually. It's nice when they disappear and I can find a few personal messages from their midst.

    Thanks zarqon.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


Similar Threads

  1. Replies: 1
    Last Post: 09-28-2015, 11:43 PM
  2. Official script registry - discussion
    By roippi in forum Scripting Discussion
    Replies: 84
    Last Post: 03-03-2014, 11:45 PM
  3. Replies: 0
    Last Post: 02-19-2012, 10:11 PM
  4. Don't ignore me! (attn: script authors)
    By StDoodle in forum Scripting Discussion
    Replies: 3
    Last Post: 11-21-2011, 03:08 PM
  5. usage of hermit script, the item
    By Spiny in forum Community Support
    Replies: 2
    Last Post: 10-06-2009, 08:07 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
  •