Results 1 to 5 of 5

Thread: Too many scripts for one page

  1. #1
    Senior Member
    Join Date
    Apr 2006
    Posts
    165

    Default Too many scripts for one page

    So my menu is full of scripts. I've tried to pull a few on-off scripts into their own directory, but I'm afraid of moving ones that have dependencies and there are some that were installed by other scripts and I'm not sure which ones need them and if moving them would be a problem. (gain.ash, zlib.ash etc.)
    Is there anything I can do to help clean up my menu so that I can see the scripts at the bottom of my list?
    A bumcheekcity page I can be proud of!

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

    Default

    You can move any of the scripts into subdirectories (e.g. scripts/libraries). You may want to test this to confirm, but I believe even if they're not in the default location (where they installed), updating over SVN will still work just fine in the new locations (and dependencies will still work as well).
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Woss | Om****est (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mercenary Mood | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  3. #3
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,698

    Default

    I assume you mean mafia's script menu?

    My solution is to use the scriptMRULength parameter. If if it is set to something greater than zero it will replace the drop down listing of all scripts in the scripts directory with list of the most recently used scripts. If I need to run something that is not on the list then I use the mafia feature to browse the scripts directory and choose one from there. On my screen something around 30-35 keeps the complete list visible on the screen.

    The preferred solution would be to make the list display scroll-able so that you could find everything. I looked at that years ago and making it so required making a lot of unrelated changes as well because the component was used in a lot of places. It is possible I am smarter now and could find a less intrusive method to make the change but since doing so merely duplicates the browse the directory functionality I don't have a lot of personal motivation to do the work.

    OK?

  4. #4
    Senior Member
    Join Date
    Jun 2016
    Posts
    406

    Default

    You can move scripts and dependencies into subfolders however you want, and svn updates will still find them, but there's two things to watch out for:
    A) Multiple folders means you can have multiple scripts with the same name, which will produce an error when you're trying to import either of them
    B) Script calls with hardcoded folder locations will break (like cc_ascend used to have, when it preset your kingFreed/betweenBattle/afterAdventure scripts to /cc_ascend/kingcheese.ash. If you move that to scripts/ascension/cc_ascend/kingcheese.ash, mafia can't find them.)

  5. #5
    Senior Member
    Join Date
    Apr 2006
    Posts
    165

    Default

    Thanks guys, this will help me clean up stuff a lot. I've been afraid of moving zlib for fear of breaking 50% of my scripts.

Posting Permissions

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