SRL Archive - Suggestions

Multiple SMARTs from the one script


The Claw

2010-06-28 13:10:10

Possible?

i luffs yeww

2010-06-28 14:04:57

You could try? :p I don't think so, though.

Wizzup?

2010-06-28 14:17:20

Why from one script?

Narcle

2010-06-28 14:29:43

Well as of right now SMART crashes when you try to run 2 scripts using SMART in one Simba (tabbed).

The Claw

2010-06-28 14:36:19

I'm thinking of a modulated do-everything script that could run multiple characters at once, seperate functions for each character (one alching, one mining, etc), seperate smarts..basically a central script to handle all autoing at the one time, easily (groundwork for a nice GUI perhaps). Although I guess handling the mouse etc would be troublesome without some sort of threading or something?

Narcle

2010-06-28 14:41:42

Without threads I don't think it would run efficiently. It doesn't support multi-threading as is (excluding ttimers), so I think the effort would be in vain sadly. However if you could maybe run multiple scripts via tab menu then it might be possible, but again it would be another script and I don't know of any interSimba messaging system if you wanted to communicate with each other script.

Nava2

2010-06-28 14:58:15

I think that this is a great idea, if we had threads…

:(

Wanted

2010-06-28 15:00:18

Could be done if you had another 3rd party program coordinating it.

Wizzup?

2010-06-28 17:22:34

Why you want to run it in one script? I think it would be much better to start two scripts that both run a SMART, and communicate with each other using sockets or similar.

I honestly don't see where multiple threads per script come in.
Why do you want to use one script with multiple threads, if you can simply start another script that has its own thread? Multithreading is much harder and should generally not be used unless you need it for specific implementations or performance.