Done Implicitly give consent when Player does /requestinputlog

DaWoblefet

Demonstrably so
is a Smogon Social Media Contributoris a Top Researcheris a Tiering Contributoris a Battle Simulator Moderator
This is probably only relevant for me, but when you /requestinputlog log as a player in a battle, you are still obligated to click the button to give consent to yourself. It'd be nice if it was just implicitly assumed that the initial player gives consent, and so only the opponent has to click the button / type the command, rather than both users.

For example: https://replay.pokemonshowdown.com/gen6doublescustomgame-952152931

Notice that after I requested the battle input log be extracted, I also gave consent - this had to be manually done. It'd be especially convenient when I'm battling myself on an alt for tests, to save an extra click.
 

pre

shaving yaks and herding cats
is a Battle Simulator Administratoris a Community Leaderis a Programmer
PS Leader
Hmm, this seems like a bug? The code seems to imply its already should not be showing a prompt if you're the user requesting extraction?
JavaScript:
    if (battle.allowExtraction[0] !== user.userid) {
      const p1 = Users(battle.p1.name);
      if (p1) p1.sendTo(room, Chat.html`|html|${user.name} wants to extract the battle input log. <button name="send" value="/allowexportinputlog ${user.userid}">Share your team and choices with "${user.name}"</button>`);
    }
    if (battle.allowExtraction[1] !== user.userid) {
      const p2 = Users(battle.p2.name);
      if (p2) p2.sendTo(room, Chat.html`|html|${user.name} wants to extract the battle input log. <button name="send" value="/allowexportinputlog ${user.userid}">Share your team and choices with "${user.name}"</button>`);
    }
 

DaWoblefet

Demonstrably so
is a Smogon Social Media Contributoris a Top Researcheris a Tiering Contributoris a Battle Simulator Moderator
Here are some screenshots of how the process currently works:
189164

After the command, this button shows up in the battles of both players:
189165

Once the opponent clicks the button to consent to exporting the log, it notifies the original player that requested it.
189167
Once the original player clicks the button, then the original player has the full input log.
189168

The other person consenting to the request is not shown the input log (just a notice that it has been extracted). Then, if it's for a bug report, I copy the battle log and do !code to display it in battle. Here's the replay used in the screenshots if it helps illuminate any further: http://replay.pokemonshowdown.com/gen7anythinggoes-955341353
 

Users Who Are Viewing This Thread (Users: 1, Guests: 0)

Top