Author |
Message |
Mr. Beefy Guest
Offline
|
Posted: Thu Jun 01, 2006 4:42 am Post subject: Bot Programming |
 |
|
|
|
I'm not a SysOp or a Mod or anything, just a user, and I was trying to figure out how to make a "Bot" (using this term loosely) while I'm playing.
I figured FindWindow/Ex(...) would do the trick nicely. When Subspace is minimized (Alt+Tab), I just spied for the classes, etc. This was in vain because none of the LB_XXXXX/WM_XXXXX messages didn't work. So then I got the class of the window when it's not minimized. This seemed to work. I could send messages using WM_CHAR (with "\r\n" at the end of the message). The only way I could figure out how to get a player's name was to do "?log somefile"; then I would just read in that file and get it.
I'm curious of how the bots work. Do you have to be a SysOp/Mod? Can you even use windows messages to do everything? If I have to use WinSock, what messages do you have to send in order to get player's name and send stuff to the chat? Could I use DirectPlay even?
At least, is there any code that just sends stuff to the chat but while I'm playing.
I know C++ and Java (don't know WinSock in Java though).
Any help will be appreciated. Thanks. |
|
Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Thu Jun 01, 2006 8:24 am Post subject: |
 |
|
|
|
All the bots are stand-alone clients. They do not work through Continuum. They make their own connections to the server, login, receive settings and player lists, and send/recv text as normal. Most bots run as sysops so they can use commands like *arena, *warpto, *spec, etc. Some bots do not handle security stuff, so they have to be sysops (or VIP) to avoid being booted. _________________ 4,691 irradiated haggis! |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Thu Jun 01, 2006 11:16 am Post subject: |
 |
|
|
|
Well, all bots have to be >=smod or VIP because they use Subspace encryption, not the improved Continuum encryption. That is, unless you allow Subspace clients into your game, which is a big security risk. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
Mr. Beefy Guest
Offline
|
Posted: Thu Jun 01, 2006 3:50 pm Post subject: |
 |
|
|
|
So how would I make a Bot to run through continuum? |
|
Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Thu Jun 01, 2006 3:52 pm Post subject: |
 |
|
|
|
You can't. |
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:42 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Fri Jun 02, 2006 6:16 pm Post subject: |
 |
|
|
|
Well, you can always do what he suggested in his first paragraph, but youll be very limited in functionality and reliability. _________________ There are 7 user(s) ignoring me right now. |
|
Back to top |
|
 |
|