.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > Sandbot
Sandbot A bot for Gunman Chronicles and They Hunger - by tschumann

Reply
 
Thread Tools
Re: Sandbot v0.3.1
Old
  (#11)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Sandbot v0.3.1 - 11-02-2017

It looks okay, yes.
  
Reply With Quote
Re: Sandbot v0.3.1
Old
  (#12)
tschumann
Moderator
 
tschumann's Avatar
 
Status: Offline
Posts: 277
Join Date: Apr 2011
Location: Australia
Default Re: Sandbot v0.3.1 - 11-02-2017

Thanks! Actually, is my problem that all API calls need a RETURN_META or RETURN_META_VALUE? Whatever documentation I read last time didn't mention it but looking http://metamod-p.sourceforge.net/doc/html/coding.html it looks like everything in enginefuncs_t, GetEntityAPI and GetNewDLLFunctions should have a RETURN_META or RETURN_META_VALUE - is that right? Do I need to worry about OVERRIDE or SUPERCEDE?
  
Reply With Quote
Re: Sandbot v0.3.1
Old
  (#13)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Sandbot v0.3.1 - 12-02-2017

Yes, you must return meta results and yes you need to worry about OVERRIDE and SUPERCEDE. The Metamod documentation says well how they are used. Please bare in mind that I upgraded the project file to VS 2015, I don't have older VS, so you will have to upgrade also.

I created a pull request with my changes. Please compile and test it out before accepting it. The bot can be used with or without Metamod now so everyone should be happy.

P.S. I upgraded the FakeClientCommand() function to more modern one used by most of the bots here, now you can use it as the original engine ClientCommand().

EDIT: I just fixed some nasty issue that I missed out. Pull again from the branch using the git pull --rebase command, because I amended the commit.

Last edited by The Storm; 12-02-2017 at 03:05..
  
Reply With Quote
Re: Sandbot v0.3.1
Old
  (#14)
tschumann
Moderator
 
tschumann's Avatar
 
Status: Offline
Posts: 277
Join Date: Apr 2011
Location: Australia
Default Re: Sandbot v0.3.1 - 12-02-2017

Thanks so much! I've had a look at the code and it all looks good (and reminds me how much I need to tidy it all up).
I've pushed up a patch to add Visual Studio 2008 support (I've got a bunch of other stuff that I don't want to upgrade yet and the Source SDK only works with Visual Studio 2013 or earlier).

I'll test it out next weekend.

Thanks again!
  
Reply With Quote
Re: Sandbot v0.3.1
Old
  (#15)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Sandbot v0.3.1 - 12-02-2017

I made another push with some optimizations. I don't have VS2008 but I think that I updated the VS2008 project files properly.

Also there is no issue to have multiple Visual Studios installed on your box. You can install VS2015 side-by-side with VS2008 and all will be fine.

Also I think that the SourceSDK shouldn't be too hard to port to VS2015.
  
Reply With Quote
Re: Sandbot v0.3.1
Old
  (#16)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Sandbot v0.3.1 - 13-02-2017

I've pushed several more changes that fixed wrong function calls to the gamedll when the bot is loaded as Metamod plugin. I hope that there will be no more issues.
  
Reply With Quote
Re: Sandbot v0.3.1
Old
  (#17)
tschumann
Moderator
 
tschumann's Avatar
 
Status: Offline
Posts: 277
Join Date: Apr 2011
Location: Australia
Default Re: Sandbot v0.3.1 - 18-02-2017

Thanks, I gave it a go today with Half-Life and it all seemed to work just fine (though the bots seemed a lot more violent - maybe I'm just imagining things). I'll hopefully do some more testing with other games/mods and on Linux next weekend then merge it in.
How do I properly test MetaMod anyway? Everything seemed to work but I don't know what kind of problems I should expect.

And yeah, I might go down the path of multiple Visual Studio installs. Need more time...
  
Reply With Quote
Re: Sandbot v0.3.1
Old
  (#18)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Sandbot v0.3.1 - 18-02-2017

Well, there is no some strong path to test if Metamod is working fine. If the bots join fine and play well it should be ok.

Also test it in non-metamod mode, because I made it with dual compatibility. Normal Metamod plugins cannot be loaded without Metamod but I made Sandbot in a way that it should work in both modes.

About the bots been more violent - I have nothing to do with that.
  
Reply With Quote
Re: Sandbot v0.3.1
Old
  (#19)
tschumann
Moderator
 
tschumann's Avatar
 
Status: Offline
Posts: 277
Join Date: Apr 2011
Location: Australia
Default Re: Sandbot v0.3.1 - 18-02-2017

Yeah okay - still, the code looks fine so I guess it should work.
I tested it without MetaMod too and it ran fine too.

Many thanks!
  
Reply With Quote
Re: Sandbot v0.3.1
Old
  (#20)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Sandbot v0.3.1 - 18-02-2017

You are welcome.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com