Results 1 to 4 of 4

Thread: Allow "relay" command to specify initial page

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

    Lightbulb Allow "relay" command to specify initial page

    I would love being able to use the CLI "relay" command with a parameter for the page I intend to visit. Then, when the relay browser loads, the main frame would fetch my specified page rather than main.php (including running relay overrides, if applicable).

    Something like

    relay guild.php

    or

    relay myfancyrelayscript.ash

    The existing parameter for headless operation may add complications. If it's too much trouble I can certainly manage the extra clicks; but it would be a svelte feature.

    Thanks!
    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!

  2. #2

    Default

    The code would be easy to change. It might be intentional that it isn't possible though...

    I think I see how to force it to be a KoL URL (rather than an arbitrary one) (including KoLmafia relay scripts), looking over RelayLoader, which seems like it makes things safer.

    I'm going to think over it for a few days, to make sure I'm not missing something.

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

    Default

    I'd be happy with stripping the path and even requiring .php (mafia can still find .ash overrides that way).
    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!

  4. #4

    Default

    I'm seeing now that relay doesn't even specify main.php, it just loads game.php which happens to include main.php. So this feature could be implemented, but the page loaded would be the whole page and not just replacing main.php.

Posting Permissions

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