Author |
Message |
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Sat Sep 13, 2008 3:49 pm Post subject: second bot from dll |
|
|
|
|
is it possible to launch a bot using a plugin using mervbot?
ive been poking around the src code somewhat... _________________ SSC Distension Owner
SSCU Trench Wars Developer |
|
Back to top |
|
|
k0zy Server Help Squatter
Gender: Joined: Jan 11 2003 Posts: 571 Location: Germany Offline
|
Posted: Sat Sep 13, 2008 6:38 pm Post subject: |
|
|
|
|
You can load plugins dynamically using !spawn, I think. _________________ It's a shark! Oh my god! Unbelievable! |
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Sun Sep 14, 2008 1:10 am Post subject: |
|
|
|
|
not loading a plugin from a bot...
loading a bot from a plugin
and also, im looking for a good example code of bot fliying, shooting, laying bricks, etc |
|
Back to top |
|
|
k0zy Server Help Squatter
Gender: Joined: Jan 11 2003 Posts: 571 Location: Germany Offline
|
Posted: Sun Sep 14, 2008 4:20 am Post subject: |
|
|
|
|
So you want to spawn another instance of the mervbot.exe or what? |
|
Back to top |
|
|
Maverick
Age:39 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Sun Sep 14, 2008 1:36 pm Post subject: |
|
|
|
|
I suggest mav's spawnbot
As for a bot moving, there's always the AIbot, don't know if the source of this was public though.
Making it move is far from easy, though... Shooting weapons is not that hard, but moving is another story. _________________ (Insert a bunch of dead links here) |
|
Back to top |
|
|
Purge Episode I > Eposide III Jar-Jar is kool
Age:34 Gender: Joined: Sep 08 2004 Posts: 2018 Offline
|
Posted: Sun Sep 14, 2008 3:35 pm Post subject: |
|
|
|
|
Or this. |
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Mon Sep 15, 2008 12:49 am Post subject: |
|
|
|
|
purge kept it simple, all his does is have the bot pm itself a merv command.
mavs is actually closer to what i was aiming to do...
he used
tell(makeSpawnBot(name,password+"*"+staffpw,"",arena));
which is what i was looking for, specifically.
i also noticed you used
tell(makeChangeArena(aarena));
where can i find a list of all the possible tell() events? |
|
Back to top |
|
|
Purge Episode I > Eposide III Jar-Jar is kool
Age:34 Gender: Joined: Sep 08 2004 Posts: 2018 Offline
|
Posted: Mon Sep 15, 2008 7:38 am Post subject: |
|
|
|
|
I used !spawn so I can choose which plugins to load.
I think the tell events are located in the dllcore source (not sure). |
|
Back to top |
|
|
Maverick
Age:39 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Mon Sep 15, 2008 10:07 am Post subject: |
|
|
|
|
search for "makeSpawnBot" and you'll find the goodies? |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Mon Sep 15, 2008 12:16 pm Post subject: |
|
|
|
|
Mav's bot spawns the bot, then the spawn says something in the chat to the spawner to indicate it is ready, then the spawner goes in the arena where the bot was spawned, and makes it !load the required plugin(s)
I think
Of course, Mav is better placed than me to explain how it works |
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Mon Sep 15, 2008 3:20 pm Post subject: |
|
|
|
|
Cheese wrote: |
where can i find a list of all the possible tell() events? |
thats really all i wanted.
also, is there -any way possible- to have the merv core spawn a second bot to another ip/port?
aside from making a dll that has almost the entire core src...
-edit-
search here returned nothing.
checked the wiki, nothing as well...
searching BOTH yahoo and google returned nothing. (about 10 results combined)
Last edited by Cheese on Mon Sep 15, 2008 3:32 pm, edited 2 times in total |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Mon Sep 15, 2008 3:23 pm Post subject: |
|
|
|
|
You could always execute a different exe (that has its own mervbot.ini)
and you could use window messages to close the exe as well |
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Tue Sep 16, 2008 4:18 pm Post subject: |
|
|
|
|
really?
noone knows anything about tell()? |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Tue Sep 16, 2008 5:57 pm Post subject: |
|
|
|
|
search in the core, you'll find these
with a couple of right-click -> definition/declaration you can certainly reach them |
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Tue Sep 16, 2008 11:29 pm Post subject: |
|
|
|
|
that was a good idea =p
after that, found everything almost instantaneously =P
anyone that cares, the BotEvent struct followed by possibilities of use is in dllcore.h, and the definitions are in dllcore.cpp.
new post:
another hurdle to that i have to cross is:
i can now spawn new bots, but have no way to make them do things instead of the core bot...
for instance, i can tell Bot1 !do, Bot2 enters arena.
but is it possible to make Bot2 say anything after it enters? |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Wed Sep 17, 2008 11:14 am Post subject: |
|
|
|
|
One way would be to have them both in the same chat channel, and make the bots communicate 'orders' in there.
Of course, bot2 needs to have a specific plugin loaded to fit what you want to do.
If you simply want bot2 to do things on its own, then yeah, just !load a plugin on him; but if you want him to react on bot1's actions, you'll probably need to make them chat a bit. If they are in the same arena, they can use simple private messages, but if they can be anywhere, chat channel would be the way to go. |
|
Back to top |
|
|
Purge Episode I > Eposide III Jar-Jar is kool
Age:34 Gender: Joined: Sep 08 2004 Posts: 2018 Offline
|
Posted: Wed Sep 17, 2008 12:04 pm Post subject: |
|
|
|
|
Purge wrote: | I used !spawn so I can choose which plugins to load.
I think the tell events are located in the dllcore source (not sure). |
Cheese wrote: |
really?
noone knows anything about tell()? |
Didn't I answer that already? |
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Wed Sep 17, 2008 5:38 pm Post subject: |
|
|
|
|
well, i think i have reached the limits of what the merv core is capable of.
it simply has no reliable way to generate more then one bot from a dll, in which full control is given over the actions of each individual bot.
even in something as simple as bot1 spawning bot2, bot1 saying "i am bot 1", then bot 2 saying "i am bot 2", is impossible, as the message queueing and nonspecific sending system makes the messaging seemingly random... |
|
Back to top |
|
|
|