Which function issues bot commands for each bot?

General help and assistance forum.
Post Reply
sleep
New User
Posts: 2
Joined: Wed Mar 25, 2020 10:05 pm

Which function issues bot commands for each bot?

#1

Post by sleep » Wed Mar 25, 2020 10:12 pm

BOTCMD_RunCommand() does not seem to be it. I have the following code:

Code: Select all

void BOTCMD_RunCommand( BOTCMD_e Command, CSkullBot *pBot )
{
        SDWORD  sdwNumArgs;
//      LONG    lExpectedStackPosition;

        if (Command >= (BOTCMD_e)BOTCMD_SAY && Command <= (BOTCMD_e)BOTCMD_GETCHATFREQUENCY && Command >= (BOTCMD_e)BOTCMD_SAYFROMLUMP && Command <= (BOTCMD_e)BOTCMD_CHATSECTIONEXISTSINCHATLUMP )
                return;
        if ( Command >= (BOTCMD_e)BOTCMD_JUMP && Command <= (BOTCMD_e)BOTCMD_STOPJUMPING )
                return;


        pBot->GetRawScriptData( )->Read( &sdwNumArgs, sizeof( SDWORD ));
        pBot->IncrementScriptPosition( sizeof( SDWORD ));
[...]
Taken from here: https://bitbucket.org/sosleepy/zandronu ... #lines-553
I've also been posting notes in the tracker https://zandronum.com/tracker/view.php?id=3769

Vicious Pariah
New User
Posts: 12
Joined: Sun Oct 20, 2013 2:39 am

Re: Which function issues bot commands for each bot?

#2

Post by Vicious Pariah » Sun Mar 29, 2020 12:12 pm

I don't think these kinds of posts are usually made here, since we use the bug tracker, to try as much as possible to record all bugs and whatnot. But, I see your commit here.

https://bitbucket.org/sosleepy/zandronu ... 29f6cb14e8

Like I said in the tracker, the bot code is basically a relic of Skulltag and generally any progress made to bot code like in Zdaemon and otherwise were somehow lost. Heh. Not to mention hardly anyone uses them anymore, I guess...

But anyway, my suggestion would be to hop on Discord or even IRC if you're interested in developing this further. Let me know, or PM someone in staff if you have any questions about that.

PS. first post in probably at least a thousand days I guess. heh (nope, just a few days shy of 600)

sleep
New User
Posts: 2
Joined: Wed Mar 25, 2020 10:05 pm

Re: Which function issues bot commands for each bot?

#3

Post by sleep » Sun Mar 29, 2020 7:17 pm

The bots are useful for me at least, I'd like to see them being able to play all game modes. Making them aware of the location of all the items in a level is the only thing getting in the way; monster detection is also lacking.
I can't tackle this alone so I'm definitely interested in some company developing this thing.

Post Reply