mousey / FIFA13-Ultimate-Team-Search

Search the FIFA13 Ultimate Team Web App
22 stars 12 forks source link

Incorrect Machine Type #3

Open mousey opened 12 years ago

mousey commented 12 years ago

It would seem that currently my code only works if you have an xbox. This is down to line 98 on connector:

$machine = $d->shardInfo[0]->customdata1[0];

if you are PC it should be "card-pc" if you are Xbox it should be "card-360" if you are PS3 it should be "card-ps3"

just change line 98 to be the correct one while I work on this: $machine = "card-360";

Tuuttuut commented 12 years ago

Tampered around a bit with this and found that you need to change the 1 and 0 to get the other consoles.

PS3 = $machine = $d->shardInfo[1]->customdata1[1];

So I guess PC should be 0-1 or 1-0 but it is easy to check by echoing the $machine.

Tuuttuut commented 12 years ago

Check this issue for a more elaborate explaination: https://github.com/mousey/FIFA13-Ultimate-Team-Search/pull/4