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

Go Back   .:: Bots United ::. > Cyborg Factory > POD-Bot mm > Common Questions
Common Questions Are you seeking help ? Get it here !

Reply
 
Thread Tools
Re: Turn off Bots shooting back after Teamattack
Old
  (#51)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,605
Join Date: Jul 2004
Location: Bulgaria
Default Re: Turn off Bots shooting back after Teamattack - 30-06-2018

@RoboCop You seem to be using the dynamic C runtime for Windows(MSVCR120.dll and MSVCV120.dll) which also means that you are using Microsoft Visual Studio 2013. So here you are two things:

1. Link with the static runtime for best compatibility, else the end users will have to install the VC++ redistributable packages. To link with the static runtime go to Project Properties => C/C++ => Code Generation and on the section Runtime Library choose "Multi-threaded Debug(/MTd)" for the debug configuration and "Multi-threaded(/MT)" for the Release configuration. Rebuild the project and publish a new zip.

2. MS Visual Studio 2013 is one of the most buggy VS ever released. I highly recommend to update to MS Visual Studio 2017.

3. The dynamic runtime is actually good when you have big project with lots of .exe and .dll files, because it will save you lots of trouble and file size but here for a single .dll the best suit is the static runtime.
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#52)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 167
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: Turn off Bots shooting back after Teamattack - 30-06-2018

Yes I wasn't sure on using newer compilers as not every Metamod Addon or even some Source Addons work with newer compilers as Cheeseh did mention that RCBot2 works best on VS 2012 or 2013. Even using GCC 4.8 or 4.9 appears to compile better for like FoxBot and some other bots that seem to hate newer compilers, maybe due to too many depreciation warnings or forward compatibility issues.

Also I'm not a big fan of MSVC but I have already got VS 2017 ready for other projects that aren't as ancient like some old MSVC 6.0 projects back near the end of the 1990s. But personally I seriously think MS are being too inconsiderate as well maybe made a wrong move for taking over Github and buying Nokia's Lumia range that sucks on Windows Phone. So good riddance to Windows Phone SDK!

As for this POD-Bot Windows compiling method I didn't adjust anything apart from using the VS 2013 compiler kit inside VS 2017 and using the newer Metamod headers and HLSDK 2.3 headers. The VS project for POD-Bot already appears to have the Runtime Library in Multi-Threaded mode - individually for Debug and Opt releases.

Anyway I've recompiled them with VS 2017 compiler kit and ensure they got Runtime Libs Multi-Threaded. Try this zip again.
Attached Files
File Type: zip podbot_mm.zip (657.6 KB, 18 views)





vBulletin Webmaster since 2001
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#53)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,605
Join Date: Jul 2004
Location: Bulgaria
Default Re: Turn off Bots shooting back after Teamattack - 30-06-2018

Well, I'm not really sure what's wrong but you are still using the dynamic C/C++ runtime. Anyway chances are better for newer windows to have that installed. If you want share here the whole project ready for compilation with VS 2017 and I will check what's wrong.
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#54)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 167
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: Turn off Bots shooting back after Teamattack - 30-06-2018

Whew quick reply! Sure I've just published the src code on GitHub now! Forgive me but I've not quite neatly fixed the _dbg suffix nor any quick fix Makefiles for compiling only as 32-Bit.

https://github.com/APGRoboCop/podbot_mm





vBulletin Webmaster since 2001
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#55)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,605
Join Date: Jul 2004
Location: Bulgaria
Default Re: Turn off Bots shooting back after Teamattack - 30-06-2018

Thanks, I will look on to it later today.
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#56)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,605
Join Date: Jul 2004
Location: Bulgaria
Default Re: Turn off Bots shooting back after Teamattack - 01-07-2018

Uploaded static linked version. You forgot to choose "Multi-threaded(/MT)" for the release build...
Attached Files
File Type: zip podbot_mm-static.zip (721.3 KB, 15 views)
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#57)
joeysmile
BRUT.me
 
Status: Offline
Posts: 25
Join Date: Aug 2013
Default Re: Turn off Bots shooting back after Teamattack - 01-07-2018

the new bots work but they seem to crash randomly my server :/ I do not have the server in the last version, and the bot still shoot back, what do we achieved with this update?
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#58)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 167
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: Turn off Bots shooting back after Teamattack - 01-07-2018

Quote:
Originally Posted by The Storm View Post
Uploaded static linked version. You forgot to choose "Multi-threaded(/MT)" for the release build...
Oh sorry I must of looked at the /MD not /MT compile flag. As I said I'm not a big fan on VS.





vBulletin Webmaster since 2001
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#59)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,605
Join Date: Jul 2004
Location: Bulgaria
Default Re: Turn off Bots shooting back after Teamattack - 01-07-2018

Hey guys,

I decided to take a look at the code and it seems that there is already a cvar about the bots shooting back. It's called pb_ffa which can have two values - 0 and 1. Try playing out with it using the official .dll of the bot and check what happens.

EDIT: Oh, it seems that this is variable for free for all game mode. Sorry.
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#60)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,605
Join Date: Jul 2004
Location: Bulgaria
Default Re: Turn off Bots shooting back after Teamattack - 01-07-2018

OK, I've took some time and added new cvar pb_ffrev with default value 0, i.e. teammate revenge is disabled by default. I'm uploading the new .dll on my post. Please bare in mind that I haven't tested this at all. If you confirm that it is working I will upload the code.
Attached Files
File Type: zip podbot_mm.zip (236.4 KB, 19 views)

Last edited by The Storm; 01-07-2018 at 21:26..
  
Reply With Quote
Reply


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

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 - 2018, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com