[Script] Worker.mturk Overwatch Script

Discussion in 'Scripts & Resources' started by Ethraiel, Nov 21, 2016.

Tags:
  1. Ethraiel

    Ethraiel Member

    Messages:
    90
    Gender:
    Male
    Ratings:
    +184 / 0 / -0
    In short i can't think of a way to do what you want simply, without writing code to manipulate the two lists
    The export is strait JSON
    Code:
    {"idDB":{
    "*RID*":{"searchId":"*RID*","userName":"*ANYNAME*","logData":{}},
    "*RID*":{"searchId":"*RID*","userName":"*ANYNAME*","logData":{}},
    "*GID*":{"searchId":"*GID*","userName":"*ANYNAME*","logData":{}}
    },
    ...and similar for the serDB... 
    }
    
    so adding the other list should be as easy as copying one to the other, but there's nothing to check for duplicates in the script so i dont think that would really work. :\
    writing code would be something like this, run just in the console anywhere... (just replace export 1 and 2)

    Code:
    var listA = *export1*
    var listB = *export2*
    
    for (var x in listA.idDB) {
    if (listB.idDB[x]){
    console.log("dupe");
    }
    else{
    listB.idDB[x] = {};
    listB.idDB[x].searchId = x;
    listB.idDB[x].userName = listA.idDB[x].userName;
    listB.idDB[x].logData = {};
    console.log("Transferred " + listA.idDB[x].userName);
    }
           }
    console.log(JSON.stringify(listB));
    
    that works for the IDs so something similar should work for the searches if you need it
     
  2. LurkinNturkin

    LurkinNturkin Active Member

    Messages:
    277
    Gender:
    Male
    Ratings:
    +849 / 0 / -0
    There's no limit on requesters you can add is there?
     
  3. Ethraiel

    Ethraiel Member

    Messages:
    90
    Gender:
    Male
    Ratings:
    +184 / 0 / -0
    There is no hard limit. Chrome has a limit on the amount of characters localStorage can save but it's quite a large number.
     
    • Like Like x 1
  4. Randomacts

    Randomacts Well-Known Member

    Messages:
    12,265
    Gender:
    Male
    Ratings:
    +18,500 / 27 / -6
    Huh this morning is the first time in a long time that I have seen overwatch go silent on me.

    Error handling is still unchecked.. I'll go reboot now to fix it >.>
     
    • Useful / Informative Useful / Informative x 1
  5. LurkinNturkin

    LurkinNturkin Active Member

    Messages:
    277
    Gender:
    Male
    Ratings:
    +849 / 0 / -0
    Can I block a certain hit from a requester using "edit block list" and entering in the hit or group ID? Or does this only work for blocking requesters entirely?
     
  6. Ethraiel

    Ethraiel Member

    Messages:
    90
    Gender:
    Male
    Ratings:
    +184 / 0 / -0
    Only requesters unfortunately, and only names at that. Im planning on doing a better blocklist when i finally get to updating it, but for now there's no way to do it.
     
    • Like Like x 1
    • Useful / Informative Useful / Informative x 1
  7. slothbear

    slothbear Well-Known Member

    Messages:
    943
    Ratings:
    +1,771 / 4 / -2
    Hey @Ethraiel, how's it going. Came across a requester id with a length of 20, so you should slap that into idChecker() whenever you update.
     
    • Like Like x 1