Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: BluntMasta on December 24, 2004, 01:42 AM

Title: [HeLp] LiNuX BoT
Post by: BluntMasta on December 24, 2004, 01:42 AM
Hello Im looking for a bot that uses linux and can connect  with 1.11 to run shell ops off of a server if anyone has or knows of a bot like this plz lemme know

all help is mucho apreaciated
Title: Re: [HeLp] LiNuX BoT
Post by: Falcon[anti-yL] on December 24, 2004, 01:53 AM
http://forum.valhallalegends.com/phpbbs/index.php?topic=9433.0
Title: Re: [HeLp] LiNuX BoT
Post by: iago on December 24, 2004, 08:31 AM
http://javaop.clan-e1.net
http://iago.no-ip.com
Title: Re: [HeLp] LiNuX BoT
Post by: Meh on December 24, 2004, 09:44 AM
Quote from: iago on December 24, 2004, 08:31 AM
http://javaop.clan-e1.net
http://iago.no-ip.com
How many time shave you had topost that link. There should be a sticky "If you want a multi OS bot then click here!"
Title: Re: [HeLp] LiNuX BoT
Post by: iago on December 24, 2004, 11:10 AM
Quote from: Meh on December 24, 2004, 09:44 AM
Quote from: iago on December 24, 2004, 08:31 AM
http://javaop.clan-e1.net
http://iago.no-ip.com
How many time shave you had topost that link. There should be a sticky "If you want a multi OS bot then click here!"

You suck at spaces, I had to read through that a few times before I got it right :P

But yeah, I know what you mean.  But eh
Title: Re: [HeLp] LiNuX BoT
Post by: MyndFyre on December 24, 2004, 01:20 PM
Quote from: iago on December 24, 2004, 11:10 AM
But eh

The standard Canadian response to everything.  :P
Title: Re: [HeLp] LiNuX BoT
Post by: BluntMasta on December 24, 2004, 01:31 PM
:-\ thats all good and shit but wow that bots confusing dude :-\ if anyones got anything else id apreaciate it
Title: Re: [HeLp] LiNuX BoT
Post by: Falcon[anti-yL] on December 24, 2004, 03:11 PM
Did you read the documentation?
Title: Re: [HeLp] LiNuX BoT
Post by: MyndFyre on December 24, 2004, 03:25 PM
Quote from: Falcon[anti-yL] on December 24, 2004, 03:11 PM
Did you read the documentation?

You're asking too much.  We need to give him a copy of that bot that has the telepathic user interface.
Title: Re: [HeLp] LiNuX BoT
Post by: Sorc.Polgara on December 24, 2004, 03:40 PM
Quote from: iago on December 24, 2004, 11:10 AM
Quote from: Meh on December 24, 2004, 09:44 AM
Quote from: iago on December 24, 2004, 08:31 AM
http://javaop.clan-e1.net
http://iago.no-ip.com
How many time shave you had topost that link. There should be a sticky "If you want a multi OS bot then click here!"

You suck at spaces, I had to read through that a few times before I got it right :P

But yeah, I know what you mean.  But eh

LOL, same here, I had to read it like a couple more times.


Question, writing a bot in C++ would be considered a multi-platform bot too?  As long as Microsoft Windows API and stuff isn't put in it?
Title: Re: [HeLp] LiNuX BoT
Post by: Zakath on December 24, 2004, 04:01 PM
Not exactly. Much code will be platform independent, but to use the internet, you're going to need to use sockets. On Windows, that means Winsock 2, which of course does not use the same headers or the same syntax as a *nix socket library (although it will be similar in many regards, since everything is at some level based on Berkeley [sp?] Sockets).
Title: Re: [HeLp] LiNuX BoT
Post by: Mephisto on December 24, 2004, 07:13 PM
Anything you create in C++ will be dependent on the platform you compile it, though the source code won't be as long as you didn't use anything platform specific in it.  You'll just need to recompile it on another platform so yes, you could make a multi-platform bot in C/C++, but you would have to distribute differenent copies of it, and as Zakath said, something that uses the internet via sockets can not be 100% portable (though easily?).  I think we had a discussion on this once too...MyndFyre?
Title: Re: [HeLp] LiNuX BoT
Post by: Eric on December 24, 2004, 09:21 PM
Quote from: Mephisto on December 24, 2004, 07:13 PM
Anything you create in C++ will be dependent on the platform you compile it, though the source code won't be as long as you didn't use anything platform specific in it.  You'll just need to recompile it on another platform so yes, you could make a multi-platform bot in C/C++, but you would have to distribute differenent copies of it, and as Zakath said, something that uses the internet via sockets can not be 100% portable (though easily?).  I think we had a discussion on this once too...MyndFyre?

There's a few socket functions, headers as well, that are different between Windows and *nix, but if you were to assign those that have different names an alias and call them using it, it would make porting the program very easy.
Title: Re: [HeLp] LiNuX BoT
Post by: MyndFyre on December 24, 2004, 09:47 PM
Quote from: Zakath on December 24, 2004, 04:01 PM
Not exactly. Much code will be platform independent, but to use the internet, you're going to need to use sockets. On Windows, that means Winsock 2, which of course does not use the same headers or the same syntax as a *nix socket library (although it will be similar in many regards, since everything is at some level based on Berkeley [sp?] Sockets).

You could use wxWidgets (http://www.wxwidgets.org/), which has a inter-OS layer for sockets.
Title: Re: [HeLp] LiNuX BoT
Post by: iago on December 25, 2004, 12:44 AM
Quote from: Mephisto on December 24, 2004, 07:13 PM
Anything you create in C++ will be dependent on the platform you compile it, though the source code won't be as long as you didn't use anything platform specific in it.  You'll just need to recompile it on another platform so yes, you could make a multi-platform bot in C/C++, but you would have to distribute differenent copies of it, and as Zakath said, something that uses the internet via sockets can not be 100% portable (though easily?).  I think we had a discussion on this once too...MyndFyre?

You could also distribute source code, which automatically configures itself.  It's much easier than distributing a different binary for each platform :P
Title: Re: [HeLp] LiNuX BoT
Post by: MyndFyre on December 25, 2004, 01:00 AM
Quote from: iago on December 25, 2004, 12:44 AM
Quote from: Mephisto on December 24, 2004, 07:13 PM
Anything you create in C++ will be dependent on the platform you compile it, though the source code won't be as long as you didn't use anything platform specific in it.  You'll just need to recompile it on another platform so yes, you could make a multi-platform bot in C/C++, but you would have to distribute differenent copies of it, and as Zakath said, something that uses the internet via sockets can not be 100% portable (though easily?).  I think we had a discussion on this once too...MyndFyre?

You could also distribute source code, which automatically configures itself.  It's much easier than distributing a different binary for each platform :P

As long as you distribute cross-platform source code it will work.  But using C++, if you're heavily into the Win32 API, you're not going to get very far distributing that source code to *nix users. :P
Title: Re: [HeLp] LiNuX BoT
Post by: iago on December 25, 2004, 09:04 AM
If you're going for cross platform, you wouldn't do that :P

The API for Windows and Linux sockets is identical, except for the includes.  So it's a really simple #ifdef to switch from Windows to Linux.

The GTK/Glib libraries are the best way to write cross-platform software.  They let you easily do code that will work cross platform.  There's variables (gint32, gint16), gui's, etc.