A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Iv gotten an idea for new multi bot!

1k views · started by MattSmith ·
#1
Iv gotten an idea for new multi bot!
Well, the past couple of days iv been messing with the allegro library in C++. And among the examples there are multiple 'windows' examples. Its hard to explain, ill post up a screenshot of one. Anyways, i thought if we can figure out how to use the php librarys for web servers (like in wamp) to compile and run php scripts in it. We can make a new multi bot.

Once we figure that out, we could add other languages like Python and possibly some C++ and C#. but.. it will take a lot of work and i cant do it all on my own. I can probably do just the php on my own with some research but adding other languages will be difficult so.


Screenshots:
http://i45.tinypic.com/98r3n7.png
#2
Why do you want to use different languages? Can't you just do the programs in C++?
#3
It makes it easier for all users to add programs. C++ happens to be a more advanced language.
#4
Well... It sounds like something overcomplicated in my opinion. You should go simple. Remember Terry's Fisher? People could create their own scripts and just add them to his collection and the program would load them. Python is excellent for the kind of thing you want to make, and very easy to learn. Gaia programs don't even need the GUI... you can just do console applications and they should work just fine. If you need to load a CAPTCHA image you can use on of the graphic libraries to have an external window pop up with the image, or you can even save it to the HD and have the user look at it from his own computer.

I you REALLY just want to use C++ because for some reason you find the need to over-complicate things (unless you know how to use pointers REALLY well in order to make a difference in program speed, which I don't think is necessary at all for the kind of programs that are going to be ran there... and the visual part slows whatever speed you gain by intelligently using pointers), then I recommend that you come up with a simple Scripting Language which your program can parse and interpret.

Sadly, with C++ you can't really compile those scripted modules into your program, but you can simulate an interpreter and make a class that will follow instructions from those scripts added by other users.

If you use Python (which is ran by an interpreter), the modules are compiled into the program and you save a lot of time creating libraries for your own makeshift interpreter. So my advice is: Go with something simple.
#5
Riddle wrote:
Well... It sounds like something overcomplicated in my opinion. You should go simple. Remember Terry's Fisher? People could create their own scripts and just add them to his collection and the program would load them. Python is excellent for the kind of thing you want to make, and very easy to learn. Gaia programs don't even need the GUI... you can just do console applications and they should work just fine. If you need to load a CAPTCHA image you can use on of the graphic libraries to have an external window pop up with the image, or you can even save it to the HD and have the user look at it from his own computer.

I you REALLY just want to use C++ because for some reason you find the need to over-complicate things (unless you know how to use pointers REALLY well in order to make a difference in program speed, which I don't think is necessary at all for the kind of programs that are going to be ran there... and the visual part slows whatever speed you gain by intelligently using pointers), then I recommend that you come up with a simple Scripting Language which your program can parse and interpret.

Sadly, with C++ you can't really compile those scripted modules into your program, but you can simulate an interpreter and make a class that will follow instructions from those scripts added by other users.

If you use Python (which is ran by an interpreter), the modules are compiled into the program and you save a lot of time creating libraries for your own makeshift interpreter. So my advice is: Go with something simple.


I agree with this alot actually, but Gamers idea is also good, But very complicated.

I was actually going to make something like this in python when I get better, right now I can make multiple threads, and basic gaia bots. But i need more experience :P
#6
Riddle wrote:
Well... It sounds like something overcomplicated in my opinion. You should go simple. Remember Terry's Fisher? People could create their own scripts and just add them to his collection and the program would load them. Python is excellent for the kind of thing you want to make, and very easy to learn. Gaia programs don't even need the GUI... you can just do console applications and they should work just fine. If you need to load a CAPTCHA image you can use on of the graphic libraries to have an external window pop up with the image, or you can even save it to the HD and have the user look at it from his own computer.

I you REALLY just want to use C++ because for some reason you find the need to over-complicate things (unless you know how to use pointers REALLY well in order to make a difference in program speed, which I don't think is necessary at all for the kind of programs that are going to be ran there... and the visual part slows whatever speed you gain by intelligently using pointers), then I recommend that you come up with a simple Scripting Language which your program can parse and interpret.

Sadly, with C++ you can't really compile those scripted modules into your program, but you can simulate an interpreter and make a class that will follow instructions from those scripts added by other users.

If you use Python (which is ran by an interpreter), the modules are compiled into the program and you save a lot of time creating libraries for your own makeshift interpreter. So my advice is: Go with something simple.

ok, i see where your going with this. I suppose i can do it in python. This would give me the capabilities to not release the source also. Even though there are ways to decrypt python. I will have to go into learning python again though.. Been a couple years since i touched any python.
#7
To be honest, I like the multi language idea. Other programmers can make it in there own favorite language instead of having to learn some new language or having to remember an old language. Also, i've made a remote administrator tool like this with multi windows with a MDIparent form. It was interesting. I suppose we could make a new multi bot with it as well.
#8
Mk well iv start work on the python multi bot and its coming along nicely.
#9
Anyone got Python examples. I can't use anything between 2.5 to I think 2.9 Because of it being incompatible with windows 7 so I might not be able to contribute.
#10
Chad wrote:
Anyone got Python examples. I can't use anything between 2.5 to I think 2.9 Because of it being incompatible with windows 7 so I might not be able to contribute.

Thats a lie. Im on windows 7 and using 2.6
#11
Im using 3.1 :O

Will there be compatability issues?
#12
I unno. I was thinking of upgrading so ill find out >,<
#13
Use 3.1. Why? No reason in particular, I just like it. XD
#14
BTW 2.6 is not compatible with 3.1
#15
Awww fuck :(

Sk8er, Port it!

:D

Shouldnt take that long, plus 3.1 is alot better.
#16
yea i realized that its not once i updated. Eh, ima just make a couple simpler bots now to get use to it then once its done(when im good with what i do.), i will work on GUIs in 3.1. Google will be my best friend :D
#17
Google is more than a friend, he's your Saviour. lol
#18
I don't understand. Not being a Python guru, why wouldn't you use the latest version?

To be honest, a single language would almost always be more advantageous. I experimented with a similar idea in Java a while back in hope of creating a botting framework (after seeing the power of RSBot). While I had the base code all there, it was too much of a hassle and, I reasoned most LG programmers wouldn't feel comfortable programming in Java. Then again, I really do hate working with Java, at least in Net Beans, so maybe that was the real reason :p

Python is actually a language I'm really interested in learning. It's gaining momentum in industry (curse those elusive, high paying web developer positions that specify python as a requisite), and it actually seems quite easy and lightweight to code in (one of the reasons I stuck with PHP so long - don't spend all of your time messing around with a damn designer). I might buy a couple of books and spend a 3-4 hours each day on weekends going through it.
#19
Alex, Python is developing two versions at the same time: The 2.6 and 3.1. So they're basically both the latest versions. They just very in syntax and other technical aspects.