Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
second bot from dll

 
Post new topic   Reply to topic Printable version
 View previous topic  second bot in arena Post :: Post TWCore: Security Packet not returned?  View next topic  
Author Message
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Sat Sep 13, 2008 3:49 pm    Post subject: second bot from dll Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Sat Sep 13, 2008 6:38 pm    Post subject: Reply to topic Reply with quote

You can load plugins dynamically using !spawn, I think.
_________________
It's a shark! Oh my god! Unbelievable!
Back to top
View users profile Send private message Add User to Ignore List
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Sun Sep 14, 2008 1:10 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Sun Sep 14, 2008 4:20 am    Post subject: Reply to topic Reply with quote

So you want to spawn another instance of the mervbot.exe or what?
Back to top
View users profile Send private message Add User to Ignore List
Maverick
broken record


Age:39
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Sun Sep 14, 2008 11:27 am    Post subject: Reply to topic Reply with quote

Cheese, maybe this is what you're looking for?

http://maverick.sscentral.com/downloads/details.php?id=42
_________________
Nickname: Maverick (I changed my name!)
TWCore developer | Subspace statistics
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Sun Sep 14, 2008 1:36 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:34
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2018
Offline

PostPosted: Sun Sep 14, 2008 3:35 pm    Post subject: Reply to topic Reply with quote

Or this.
Back to top
View users profile Send private message Add User to Ignore List
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Mon Sep 15, 2008 12:49 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:34
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2018
Offline

PostPosted: Mon Sep 15, 2008 7:38 am    Post subject: Reply to topic Reply with quote

I used !spawn so I can choose which plugins to load. sa_tongue.gif

I think the tell events are located in the dllcore source (not sure).
Back to top
View users profile Send private message Add User to Ignore List
Maverick
broken record


Age:39
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Mon Sep 15, 2008 10:07 am    Post subject: Reply to topic Reply with quote

search for "makeSpawnBot" and you'll find the goodies?
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Mon Sep 15, 2008 12:16 pm    Post subject: Reply to topic Reply with quote

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 tongue.gif
Back to top
View users profile Send private message Add User to Ignore List
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Mon Sep 15, 2008 3:20 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Mon Sep 15, 2008 3:23 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Tue Sep 16, 2008 4:18 pm    Post subject: Reply to topic Reply with quote

really?
noone knows anything about tell()?
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Tue Sep 16, 2008 5:57 pm    Post subject: Reply to topic Reply with quote

search in the core, you'll find these

with a couple of right-click -> definition/declaration you can certainly reach them
Back to top
View users profile Send private message Add User to Ignore List
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Tue Sep 16, 2008 11:29 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Wed Sep 17, 2008 11:14 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:34
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2018
Offline

PostPosted: Wed Sep 17, 2008 12:04 pm    Post subject: Reply to topic Reply with quote

Purge wrote:
I used !spawn so I can choose which plugins to load. sa_tongue.gif

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
View users profile Send private message Add User to Ignore List
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Wed Sep 17, 2008 5:38 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 412 page(s) served in previous 5 minutes.

phpBB Created this page in 0.521631 seconds : 44 queries executed (80.9%): GZIP compression disabled