Jump to content
UBot Underground

Recommended Posts

So since it said that multithreading is fixed on ubot 5.5 so we don't need to use threadcounter plugin to make it works

 

And now how we do multi threading (ex. login using multi account to same site) on ubot 5.5 ?

 

How we structured our code? Anyone has an example to follow along?

Link to post
Share on other sites

From my testing it is not fixed  Amand's HTTP POST 2.5.4 plugin conflicts with it(you have to disable it, and restart ubotsudio), and the "socket page html" only works with a single thread. also I can't see how it could work without a thread counter of some sort.

Link to post
Share on other sites
  • 2 weeks later...

I'm a tad confused with the current state of play with multi threading in v5.5.

 

Has anyone done some serious testing with 5.5? Care to share your findings?

 

Are variables, lists and tables now thread-safe?

Link to post
Share on other sites
I'm a tad confused with the current state of play with multi threading in v5.5.

I would say at this point it looks hopeful but still needs more work, without posting details the html panel has problems as the bots get bigger, along with displaying the debugger, as far as I know lists and tables are still globe. Lack of fixes over the last few weeks not looking so good.

 

Link to post
Share on other sites
  • 2 weeks later...

From my testing it is not fixed  Amand's HTTP POST 2.5.4 plugin conflicts with it(you have to disable it, and restart ubotsudio), and the "socket page html" only works with a single thread. also I can't see how it could work without a thread counter of some sort.

 

Hi

 

I actually sent support a ticket about this issue ''and the "socket page html" only works with a single thread'' with no success,

 

HOWEVER

 

seems it still does work,have been tinkering around for ages,really considered going back to ubot 5,however,the coding has just changed around slightly,if you try this snippet,it works,to get $socket page html,working in multiple threads,I have just realised this now,so maybe there is some problems,but if you put the threads within a socket container,and do not add additional socket containers,seems to work,try below code

 

set(#one"""Global")

set(#two"""Global")

plugin command("SocketCommands.dll""socket container") {

    thread {

        plugin command("SocketCommands.dll""socket navigate""GET""http://webrates.truefx.com/rates/connect.html?f=html&c=AUD/USD")

        set(#a$plugin function("SocketCommands.dll""$socket page html"), "Global")

        set(#one, 1, "Global")

    }

    thread {

        plugin command("SocketCommands.dll""socket navigate""GET""http://webrates.truefx.com/rates/connect.html?f=html&c=GBP/USD")

        set(#b$plugin function("SocketCommands.dll""$socket page html"), "Global")

        set(#two, 2, "Global")

    }

}

loop while($comparison($add(#one#two), "!=", 3)) {

}

alert("{#a}{$new line}{#b}")

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...