Jump to content
UBot Underground

earthlingj

Fellow UBotter
  • Content Count

    244
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by earthlingj

  1. I have a multi threaded bot i just made that is pretty straight forward... 

     

    problem is... its crashing... as in... the bot will run... for a bit and then simply close itself? does the same in ubotstudio.. ill leave it running and i come back to it not even being open anymore.

    previously i solved this by not using load html. my bots all use http post plugin. 

     

    Well this bot.... im not using load html or anything at all... why is it crashing like that? ubot sucks. sucks sucks sucks. 

     

    doesnt matter if i use 3 threads or 20 threads. it just closes itself. at least give us a damn error log or something so we can POSSIBLY see what wrong? 

    • Like 1
  2. im using the exact same code in the demo here. the problem is the DECREMENTING thread count. it really doesnt seem to be thread safe. I dont want to share my full source for obvious reasons, but what i can say is.. im 100% using the exact demo in this thread and im not new to ubot ive been doing this a long time. unless defines sometimes randomly get skipped, there is no reason for the thread count to be off other than it not being thread safe and decrementing ' at the same time' which is throwing off the count. 

  3. it works fine at the beginning but if you leave it running for a while ( after a few hours ) thats when the thread counter goes off

     

     

    in one of my other bots, the thread counter sometimes even goes in the negative after a while.  

     

     

     

    also, as for passing the list item in a define? why that instead of local dictionary? I thought local dictionary is thread safe?

  4. Loops is the number of scraped posts ( usually between 20-30  )

    Then you are not experiencing that problem (I guess you didn't read that post...the problem is related to part when bot reaches the end of script but won't stop).

    You should still take that other suggestion into consideration...

     

    Yes, threads should drop to 0.

     

    I've stripped down your code a bit and threading itself works just fine (threads drop to 0 and alert is displayed), so I think you may have problems elsewhere. 

     

    Here is the code:

    loop(99999999) {
        set(#ThreadCount, $plugin function("Threads Counter.dll", "threads counter", "reset"), "Global")
        set(#Loops, 101, "Global")
        set(#ListItem, 0, "Global")
        loop(#Loops) {
            loop while($comparison(#ThreadCount, ">=", 10)) {
                wait(0.1)
            }
            set(#ThreadCount, $plugin function("Threads Counter.dll", "threads counter", "increment"), "Global")
            thread {
                set(#ThreadCount, $plugin function("Threads Counter.dll", "threads counter", "decrement"), "Global")
            }
            wait(0.1)
            increment(#ListItem)
        }
        loop while($comparison($plugin function("Threads Counter.dll", "threads counter", "read"), ">", 0)) {
            wait(5)
        }
        alert("")
    }
    
    

    What value does variable #Loops have on your side - are you opening too many threads?


  5. plugin command("HTTP post.dll", "http clear objects")
    plugin command("LocalDictionary.dll", "clear global dictionary")
    loop(99999999) {
    Scrape Process()
    set(#ThreadCount, $plugin function("Threads Counter.dll", "threads counter", "reset"), "Global")
    set(#Loops, $list total(%UniqueUsers), "Global")
    set(#ListItem, 0, "Global")
    loop(#Loops) {
    loop while($comparison(#ThreadCount, ">=", 10)) {
    wait(1)
    }
    set(#ThreadCount, $plugin function("Threads Counter.dll", "threads counter", "increment"), "Global")
    thread {
    plugin command("LocalDictionary.dll", "init local dictionary")
    plugin command("LocalDictionary.dll", "local dictionary add", "Target", $list item(%UniqueUsers, #ListItem))
    Login()
    set(#ThreadCount, $plugin function("Threads Counter.dll", "threads counter", "decrement"), "Global")
    }
    wait(1)
    increment(#ListItem)
    }
    loop while($comparison($plugin function("Threads Counter.dll", "threads counter", "read"), ">", 0)) {
    wait(5)
    }
    }
  6. I tried threading my browser based bots and http bots but it just didnt seem to be working properly with values and such. so im wondering if there are any basic examples because the 2 videos on the sales page dont show anything about threading with browser or http bots. and why the proxy control if we can just set it directly within each thread? do we have to use the 'thread' function? etc. just a basic browser sample and http sample would be nice to see

     

     

    ** i haven't downloaded the update yet but still, samples of browser and http bots would be great. even simple navigate or http get request with proxies ** 

  7. $fb api graph token authentication

     

    that is used to try and authorize graph explorer usage for first timers

     

     

    $fb api http graph token

     

    that is used to go to graph explorer page and extract the current token from the page

     

     

    we're specifically talking about: $fb api graph token authentication 

    I've talked to a few others and they are saying that specific command is not working for them and that they have to use the 'workaround' 

    I'm not sure why you keep bringing up the api login or even http graph token. i'm talking about graph token authentication on first time user. its pretty clear it doesn't work. would just be nice to have that fixed rather than a browser workaround or using fb api login. It would be the smoothest and simplest way. 

     

    Thanks

×
×
  • Create New...