Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Are pinEvents triggered when using "FUT Auto Relist Expired Auctions" #46

Closed
fifa2017player opened this issue Oct 13, 2017 · 14 comments
Closed

Comments

@fifa2017player
Copy link

Expected behavior:

pinEvents are triggered when you switch between screens and perform certain actions. If I use this script, does it trigger the necessary pinEvents so that the server knows that we aren't relisting automatically?

I was reading this futapi/fut#287 (a separate Python API using the same Web app backend) which says that pinEvents should be triggered so as not to be detected as anomaly.

Current behavior:

This is more of a question, I am not sure whether pinEvents are triggered or not.

Metadata:

  • Script name: FUT Auto Relist Unsold Transfers
  • Script version:
  • Browser:
  • OS:
@Mardaneus86
Copy link
Owner

They are not triggered (yet). I will try to detect when and which pinEvents have to be sent when relisting auctions. Good point.

@debugman5
Copy link

I don't see any pinEvents triggered after relisting, only before, when entering the transfer list page

@Mardaneus86
Copy link
Owner

Mardaneus86 commented Oct 23, 2017

I've done some research, but didn't implement it yet. Code to be used is:

gPinManager.trigger(utils.PinFactory.createEvent(enums.PIN.EVENT.PAGE_VIEW, {
          type: PinManager.PAGEVIEW_EVT_TYPE,
          pgid: pageId
}));

pageId should be "Hub - Transfers" for the first call to the hub, then "Transfer List - List View" for navigating to the transfer list view.

This will be included in the single script version I'm working on.

@debugman5
Copy link

debugman5 commented Oct 23, 2017

We should also trigger pinEvents when searching for min price, and its more complicated, because it depends in which screen you currently on.

Actually, its also necessary with auto relisting. I mean, lets say you in the club page and now its time to relist: so you first need to send pinEvent with "Hub - Transfers" and then a pinEvent with "Transfer List - List View" and then a pinEvent with "Hub - Club"

Question: is it possible to "click" on the actual buttons? I mean fire the click event

@Mardaneus86
Copy link
Owner

Mardaneus86 commented Oct 23, 2017

Yeah, that would be possible when we get the script in 1 single file. Every action could go through a queue so they don't interfere with each other.

It is possible to fake click events. Take a look at https://github.com/martellaj/shortfuts for an example of this.

@debugman5
Copy link

Wouldn't it be better to take this approach?

@Mardaneus86
Copy link
Owner

It's a different approach. If either one is better is open for discussion, but in the end all actions are sent through the communication delegates.

@debugman5
Copy link

I think its better in case they will decide to change something in the events

@debugman5
Copy link

debugman5 commented Oct 25, 2017

I tested sending the pinEvents using the method you mentioned above and I noticed a difference between the pinEvents that are sent and the one I sent manually.

I attached two har files: originalPostPinEvent.har representing an original post pin event when entering the transfer search page and manualPostPinEvent.har representing the manual one.

Edit by Mardaneus86: (removed HAR files for security reasons)

@Mardaneus86
Copy link
Owner

Mardaneus86 commented Oct 25, 2017

Well that difference is an extra request to remoteConfig.json which might have been caused by another process. The rest is completely the same.

By the way, I've removed those HAR files for you because they contain your personal cookie information!

@debugman5
Copy link

debugman5 commented Oct 25, 2017

So what causing the difference?

And thanks! I forgot to remove them

@Mardaneus86
Copy link
Owner

Like I said, the remoteConfig.json is called on specific intervals by the app. It has nothing to do with pinEvents. I see no difference for the pinEvents themselves... Please reach out on Gitter to discuss this further if you want to.

@debugman5
Copy link

I've joined Gitter

@Mardaneus86
Copy link
Owner

Fixed in v0.2.2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants